/*
Theme Name: FUJIMURA Portfolio Theme
Author: FUJIMURA
*/

/* ==========================================
   共通設定・リセット
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: #2C2A29;
    background-color: #F9F8F6;
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* ==========================================
   0. ヘッダー (Header) のレイアウト
   ========================================== */
.header {
    width: 100%;
    background-color: #f9f8f6;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid rgba(224, 225, 220, 0.5);
}

body.admin-bar .header {
    top: 32px; 
}

@media screen and (max-width: 782px) {
    body.admin-bar .header { top: 46px; } /* スマホ用の黒いバーの高さに合わせる調整 */
}

.header__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo a {
    display: block;
    width: 90px;
    height: auto;
}

.header__logo img {
    width: 100%;
    height: auto;
    display: block;
}

.header__menu {
    display: flex;
    gap: 30px;
}

.header__menu a {
    font-size: 14px;
    letter-spacing: 0.1em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.header__menu a:hover {
    color: #A8B5A2;
}

.header__hamburger {
    display: none;
}

/* ==========================================
   1. メインビジュアル (MV) のレイアウト
   ========================================== */
.mv {
    padding: 100px 0;
    height: auto;
}

.mv__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mv__text-info {
    width: 48%;
}

.mv__sub-title {
    font-size: 16px;
    color: #8C8A85;
    margin-bottom: 10px;
}

.mv__title {
    font-size: 64px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
    padding-left: 4px; /* フォント特有のズレを微調整 */
}

.mv__image-box {
    width: 48%;
    height: 450px;
    background-color: #E4E1DC;
    border-radius: 4px;
}

.mv__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

/* Webデザイナーの文字だけを小さく調整 */
.mv__title-label {
  font-size: 16px !important;
  display: inline-block;  /* バランスを整えやすくするための設定 */
  margin-bottom: -10px;    /* 下の名前（FUJIMURA）とのすき間を少しだけ空けます */
}

/* ==========================================
   2. アバウト (ABOUT) のレイアウト
   ========================================== */
.about {
    padding: 100px 0;
    background-color: #F2F0EB;
}
.about__lead {
    font-weight: bold;
}

.about__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.about__section-title {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

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

.about__image-box {
    width: 40%;
    height: 400px;
    background-color: #E4E1DC;
    border-radius: 4px;
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.about__text-box {
    width: 54%;
}

/* 💡 196行目付近：隠れていた文章の正しい設定に書き換えます */
.about__description {
    font-size: 15px;
    color: #4A4846;
    
    /* 👇 これで下のグレーボックスとの間に、あの心地よい隙間を確実に作ります！ */
    margin-bottom: 30px !important; 
}

/* 💡 【完全復活】リスト全体を囲む薄いグレーのボックス */
.about__skills {
    background-color: #F2F0EB; /* 優しいグレージュの背景色 */
    padding: 24px 30px;        /* ボックスの内側のゆったりとした余白 */
    border-radius: 4px;        /* 優しい角丸 */
    margin-top: 30px;
}

/* 💡 ボックスの中の1行ずつの設定 */
.about__skills li {
    font-size: 15px;
    color: #2C2A29;
    margin-bottom: 12px;
    font-weight: normal;       /* 右側の文字は細い通常文字に戻します */
}

/* 最後の行だけ下に余白を作らない綺麗な設定 */
.about__skills li:last-child {
    margin-bottom: 0;
}

/* 💡 左側の見出し（strongタグ）だけをピンポイントで力強い太字にします */
.about__skills li strong {
    font-weight: bold !important;
    display: inline-block;
    margin-right: 6px;         /* コロン「:」の右側に心地よい隙間を作ります */
}

/* ==========================================
   3. ワークス (WORKS) のレイアウト
   ========================================== */
.works {
    padding: 100px 0;
}

.works__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.works__section-title {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.works__item {
    background-color: #E4E1DC;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.works__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* 16:9に固定 */
    object-fit: cover;
    background-color: #E4E1DC;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.works__img:hover {
    transform: scale(1.03); /* マウスホバーで少し浮き上がるおしゃれ演出 */
}

/* ==========================================
   4. コンタクト (CONTACT) のレイアウト
   ========================================== */
.contact {
    padding: 100px 0 140px 0;
    background-color: #F2F0EB;
    text-align: center;
}

.contact__container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact__section-title {
    font-size: 36px;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.contact__text {
    font-size: 15px;
    color: #5A5856;
    margin-bottom: 40px;
}

.contact__btn {
    display: inline-block;
    background-color: #A8B5A2; /* 大切なくすみグリーン */
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 16px 48px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact__btn:hover {
    background-color: #93A08D;
    transform: translateY(-2px);
}

/* ==========================================
   📱 スマートフォン用の表示設定（画面幅767px以下）
   ========================================== */
@media screen and (max-width: 767px) {
    
    /* セクションの親箱を画面ぴったりにしつつ、左右共通クッション */
    .header__container,
    .mv__container,
    .about__container,
    .works__container,
    .contact__container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* 共通：余白をスマホ用にスリムにする */
    .mv, .about, .works, .contact {
        padding: 60px 0 !important;
    }

    /* 0. ヘッダー＆ハンバーガーメニューのスマホ対応 */
    .header__container {
        padding: 15px 20px !important;
        position: relative;
    }

    .header__nav {
        position: fixed;
        top: 60px;
        left: 100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #F9F8F6;
        transition: left 0.4s ease;
        z-index: 99;
    }

    .header__nav.is-active {
        left: 0;
    }

    .header__menu {
        flex-direction: column !important;
        align-items: center;
        padding-top: 60px;
        gap: 40px !important;
    }

    .header__menu a {
        font-size: 20px !important;
    }

    .header__hamburger {
        display: block !important;
        background: none;
        border: none;
        width: 30px;
        height: 24px;
        position: relative;
        cursor: pointer;
        z-index: 100;
    }

    .header__hamburger span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #2C2A29;
        left: 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .header__hamburger span:nth-child(1) { top: 0; }
    .header__hamburger span:nth-child(2) { top: 11px; }
    .header__hamburger span:nth-child(3) { bottom: 0; }

    .header__hamburger.is-active span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    .header__hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .header__hamburger.is-active span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* 1. メインビジュアル (MV) のスマホ対応 */
    .mv {
        margin-top: 70px !important;
        height: auto !important;
    }

    .mv__container {
        flex-direction: column-reverse !important;
        gap: 30px !important;
    }

    .mv__title {
        font-size: 40px !important;
        padding-left: 4px !important;
    }

    .mv__text-info,
    .mv__image-box {
        width: 100% !important;
    }

    .mv__image-box {
        height: 250px !important;
    }

    /* 2. アバウト (ABOUT) のスマホ対応 */
    .about__section-title,
    .works__section-title,
    .contact__section-title {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }

    .about__content {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .about__image-box,
    .about__text-box {
        width: 100% !important;
    }

    .about__image-box {
        height: 280px !important;
    }

    /* 3. ワークス (WORKS) のスマホ対応 */
    .works__grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    .works__item {
        margin: 0 auto;
        max-width: 100%;
    }

    .works__img {
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        width: 100% !important;
    }

    /* 4. コンタクト (CONTACT) のスマホ対応 */
    .contact {
        padding: 60px 0 100px 0 !important;
    }

    .contact__container {
        width: 100% !important;
    }

    .contact__btn {
        display: block !important;
        width: 100% !important;
        padding: 16px 20px !important;
    }
}
