/* =========================================
   Base Reset & Variables
   ========================================= */
:root {
    --text-color: #333333;
    --bg-color: #ffffff;
    --border-color: #e5e5e5;
    --accent-color: #e76666;
    --font-serif: 'Shippori Mincho', serif;
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-hero: 'Montserrat', sans-serif; /* ヒーロータイトル用フォント */
    --easing: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   Header
   ========================================= */
.header {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9); /* 背景を少し透過 */
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    position: fixed; /* ヘッダーを固定 */
    top: 0;
    left: 0;
    backdrop-filter: blur(10px); /* すりガラス効果 */
}

.header__inner {
    width: 100%;
}

.header__logo-wrapper {
    padding: 1.8rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.header__logo {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: #111;
    line-height: 1;
}

/* Nav Mobile (2 col grid) */
.nav__list {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.nav__item {
    /* 項目が3つになったので、スマホでは横幅を広くとるか、等分に調整 */
    width: 33.33%;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.nav__item:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

.nav__link {
    display: block;
    padding: 1.4rem 0;
    font-size: 0.9rem;
    color: #444;
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
    transition: background-color 0.3s ease;
}

.nav__link:hover {
    background-color: #fafafa;
    color: #000;
}

/* =========================================
   Hero Section (New Simple Style)
   ========================================= */
.hero {
    width: 100%;
    height: 100vh; /* 画面いっぱいの高さ */
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff; /* テキストは白 */
}

/* 背景画像設定 */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%; /* パララックス用に少し高く */
    /* サンプル画像：横長のデスク環境など */
    background-image: url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* 背景を暗くするオーバーレイ */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* 黒の半透明レイヤー */
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1; /* オーバーレイより上 */
    text-align: center;
}

.hero__title {
    font-family: var(--font-hero);
    font-weight: 700;
    font-size: 3rem; /* スマホのサイズ */
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.title-line {
    display: block;
    opacity: 0; /* アニメーション初期値 */
    transform: translateY(20px); /* アニメーション初期値 */
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.7);
}

/* =========================================
   Common Section Styles
   ========================================= */
section {
    padding: 6rem 0;
    width: 100%;
}

/* 最初のセクションはヘッダーの高さ分下げる */
main > section:first-of-type:not(.hero) {
     margin-top: 100px; /* ヘッダーの高さ（PC基準） */
}
@media screen and (max-width: 767px) {
    main > section:first-of-type:not(.hero) {
        margin-top: 160px; /* ヘッダーの高さ（スマホ基準・概算） */
    }
}

.section__inner {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-sans);
    font-weight: 100;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    color: #888;
    letter-spacing: 0.1em;
}

/* =========================================
   About Section
   ========================================= */
.about__content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about__img-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
    opacity: 0;
}

.about__img {
    width: 100%;
    height: auto;
    filter: grayscale(10%);
}

.about__text-wrapper {
    width: 100%;
    opacity: 0;
}

.about__desc {
    margin-bottom: 2.5rem;
    line-height: 2;
    color: #444;
}

.about__info {
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
}

.info__row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.info__row dt {
    width: 120px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}

.info__row dd {
    flex: 1;
    color: #666;
}

.sns__row {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sns__label {
    width: 120px;
    font-weight: 700;
}

/* =========================================
   Works Section
   ========================================= */
.works__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    width: 100%;
}

.work-item {
    width: 100%;
    cursor: pointer;
    opacity: 0;
}

.work__thumb {
    width: 100%;
    aspect-ratio: 16/9; /* スペースを削除 */
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #f0f0f0;
}

.work__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.work-item:hover .work__thumb img {
    transform: scale(1.1);
}

.work__info {
    padding-top: 0.5rem;
}

.work__title {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
    color: #333;
    transition: transform 0.4s ease, color 0.4s ease;
    transform: translateY(0);
}

.work__cat {
    font-size: 0.8rem;
    color: #999;
    font-family: var(--font-serif);
    transition: transform 0.4s ease 0.05s;
}

.work-item:hover .work__title {
    transform: translateY(-5px);
    color: #000;
}

.work-item:hover .work__cat {
    transform: translateY(-5px);
}

/* Link Style Fix for Works */
.work-link {
    display: block;      
    text-decoration: none; 
    color: inherit;      
    width: 100%;
    height: 100%;
}

/* =========================================
   Contact Section
   ========================================= */
.section-contact {
    /* margin-top: 6rem; ←これを削除しました */
    padding-bottom: 8rem;
    opacity: 0; /* JS初期値 */
}

.contact__desc {
    text-align: center;
    font-size: 0.9rem;
    line-height: 2;
    margin-bottom: 4rem;
    color: #444;
}

.contact__form {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.form__group {
    margin-bottom: 2.5rem;
}

.form__label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-family: var(--font-sans);
    color: #333;
}

.required-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    margin-left: 0.8rem;
    vertical-align: middle;
    border-radius: 2px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ddd;
    background-color: #fafafa;
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: border-color 0.3s, background-color 0.3s;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
}

.form__textarea {
    height: 200px;
    resize: vertical;
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: #999;
    background-color: #fff;
}

.form__submit {
    text-align: center;
    margin-top: 4rem;
}

.btn-submit {
    display: inline-block;
    padding: 1rem 5rem;
    background-color: #333;
    color: #fff;
    border: 1px solid #333;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #fff;
    color: #333;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    padding: 2rem 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: #aaa;
    letter-spacing: 0.05em;
}

/* =========================================
   Desktop View (min-width: 768px)
   ========================================= */
@media screen and (min-width: 768px) {
    
    /* Header Desktop */
    .header__inner {
        max-width: 1280px;
        height: 100px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 4vw;
    }

    .header__logo-wrapper {
        border: none;
        padding: 0;
        margin-right: auto;
    }

    .header__logo {
        font-size: 1.6rem;
    }

    .nav__list {
        flex-wrap: nowrap;
        width: auto;
        gap: 3vw;
        margin-left: auto; /* SNSアイコンが消えても右寄せにするための指定 */
    }

    .nav__item {
        width: auto;
        border: none !important;
    }

    .nav__link {
        padding: 0;
        position: relative;
    }

    .nav__link::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 100%;
        height: 1px;
        background-color: #333;
        transform: scaleX(0);
        transform-origin: center right;
        transition: transform 0.4s var(--easing);
    }

    .nav__link:hover {
        background: none;
    }

    .nav__link:hover::after {
        transform: scaleX(1);
        transform-origin: center left;
    }

    /* Hero Desktop (Simple Style) */
    .hero__title {
        font-size: 5rem; /* PCでのサイズ */
    }

    /* About Desktop */
    .about__content {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        gap: 4rem;
    }

    .about__img-wrapper {
        width: 40%;
        margin: 0;
    }

    .about__text-wrapper {
        width: 55%;
    }

    .section-title {
        font-size: 3.5rem;
    }

    /* Works Desktop */
    .works__grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 4rem;
        row-gap: 5rem;
    }

    /* Contact Desktop (ここにあった margin-top: 10rem; を削除しました) */
}