@charset "UTF-8";

/* 変数設定 */
:root {
    --primary: #000;
    --accent: #FFD700;
    /* ゴールド */
    --text: #333;
    --bg-light: #f4f4f4;
    --white: #fff;
}

/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text);
    line-height: 1.8;
    margin: 0;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ヘッダー */
header {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.logo span {
    color: #888;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--accent);
}

/* ヒーローエリア */
.hero {
    background: #000;
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.hero-sub {
    color: var(--accent);
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0 0 20px;
    line-height: 1.3;
    font-weight: 700;
}

.hero h1 .highlight {
    background: linear-gradient(transparent 60%, var(--accent) 60%);
    display: inline-block;
}

.hero-desc {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1rem;
}

.btn-main {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1rem;
}

.btn-main:hover {
    background: #fff;
    transform: translateY(-3px);
}

/* セクション共通 */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto 50px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
}

/* 実績グリッド */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.work-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}

.work-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* 画像エリア設定 */
.work-thumb {
    height: 220px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

/* ▼▼▼ 追加：すべての画像が枠にピタッとハマるようにする設定 ▼▼▼ */
.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    /* 拡大アニメーション用 */
}

/* ▲▲▲▲▲▲ */

/* スライドショー用画像の特殊設定 */
.work-thumb img.slide {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease, transform 0.5s ease;
}

.work-thumb img.slide.active {
    opacity: 1;
}

/* ホバー時の拡大 */
.work-thumb:hover img {
    transform: scale(1.25);
}

.work-thumb:hover img.slide.active {
    transform: scale(1.25);
}


.work-content {
    padding: 25px;
}

.work-cat {
    color: #888;
    font-size: 0.8rem;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.work-card h3 {
    margin: 0 0 15px;
    font-size: 1.2rem;
}

.work-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.deadline {
    color: #d32f2f;
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
}

.work-link {
    color: #000;
    font-weight: bold;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
    display: inline-block;
    margin-right: 15px;
    cursor: pointer;
}

.work-link:hover {
    color: var(--accent);
    border-color: #000;
}

.work-link.disabled {
    color: #ccc;
    border-color: #eee;
    pointer-events: none;
}

.btn-group {
    display: flex;
    gap: 15px;
}

.placeholder-icon {
    font-size: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ddd;
}

/* About Section */
.about-section {
    background: var(--bg-light);
}

.about-flex {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.skill-tags {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Contact Section */
.contact-section {
    text-align: center;
    padding: 80px 0;
}

.contact-section p {
    margin-bottom: 40px;
    font-size: 1rem;
}

footer {
    background: #000;
    color: #666;
    text-align: center;
    padding: 30px 0;
    font-size: 0.8rem;
}

/* ライトボックス */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* レスポンシブ */
@media (max-width: 768px) {

    /* ハンバーガーメニュー */
    .hamburger {
        display: block;
        cursor: pointer;
        z-index: 200;
        position: relative;
        /* ensure it stays on top */
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #333;
        margin: 5px 0;
        transition: 0.3s;
    }

    /* ハンバーガーが開いた時の×印 */
    .nav-menu.active+.hamburger span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-menu.active+.hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-menu.active+.hamburger span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* スマホ用メニュー（サイドから出てくる） */
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        width: 70%;
        height: 100vh;
        background: #fff;
        padding-top: 80px;
        transition: 0.3s;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 150;
        display: block;
        /* ensure it's not hidden by default display rules if any */
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        display: flex;
        /* override display: none */
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-flex {
        flex-direction: column;
    }

    /* スマホ版の実績カード見やすく修正 */
    .work-card {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
        /* 影を濃くして浮き上がらせる */
        margin-bottom: 30px;
        /* カード同士の間隔を広げる */
        border: none;
        /* ボーダー不要 */
    }

    .work-thumb {
        height: 250px;
        /* 画像エリアを少し縦長に */
    }

    .work-link {
        display: block;
        text-align: center;
        background: #f4f4f4;
        padding: 12px;
        border-radius: 6px;
        border: none;
        /* default border removal */
        margin-top: 10px;
        font-size: 1rem;
        margin-right: 0;
        /* reset margin */
    }

    .work-link:hover {
        background: var(--accent);
        color: #000;
    }
}

/* PC以外の時はハンバーガー消す */
@media (min-width: 769px) {
    .hamburger {
        display: none;
    }
}

/* blur-card という名前がついたカードの画像だけボカす */
.blur-card .work-thumb img {
    filter: blur(5px);
    transition: 0.3s;
}

/* マウスを乗せた時の挙動 */
.blur-card:hover .work-thumb img {
    filter: blur(5px);
    transform: scale(1.25);
}

/* ライトボックスの中の画像用のボケ設定 */
/* 拡大画像は大きいので、ボケ足（15px）を thumbnail より強めに設定するのがコツです */
.lightbox img.is-blurred {
    filter: blur(15px);
}

/* プライバシーポリシーモーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.policy-text h3 {
    font-size: 1.1rem;
    margin-top: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.policy-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}