/* ===== 基本設定と変数 (最終デザイン案) ===== */
:root {
    --color-bg: #FFFFFF; /* 背景は白でクリーンに */
    --color-text: #6D6875; /* 少し紫がかった優しいグレー */
    --color-pink: #FFF0F5; /* パステルピンク */
    --color-blue: #F0F8FF; /* パステルブルー */
    --color-gold: #C0A56E; /* 落ち着いたゴールド */
    --font-serif: 'Shippori Mincho', serif; /* よりエレガントな明朝体 */
    --font-sans: 'Noto Sans JP', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    /* 背景に淡いピンクからブルーへのグラデーションを敷く */
    background: linear-gradient(180deg, var(--color-pink) 0%, var(--color-blue) 100%);
}

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

/* ===== ヘッダー (最終デザイン案) ===== */
.header {
    width: 100%;
    display: flex;
    flex-direction: column; /* 縦並びにする */
    align-items: center; /* 子要素を縦中央揃え */
    padding: 0 40px 10px; 
    background-color: rgba(255, 255, 255, 0.7); /* 半透明の白 */
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(192, 165, 110, 0.3); /* ゴールドの細い線 */
}

.header-logo {
    flex-shrink: 0; 
    margin-right: 0; /* 右マージンを削除 */
    margin-bottom: 15px; 
    height: 84px; /* ▼▼▼ 修正点: 105px の 80% = 84px に変更 ▼▼▼ */
}

.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px; 
}

.header-nav a {
    transition: color 0.3s;
}
.header-nav a:hover {
    color: var(--color-gold);
}

.header-contact-btn {
    /* ご依頼に基づき, !important をつけて強制的に非表示にします */
    display: none !important; 
}

/* ===== ファーストビュー (ヒーローセクション) (最終デザイン案) ===== */
.hero {
    height: 90vh; /* 90vh に変更済み */
    background-image: url('images/hero-bg.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center; /* 'center' に変更済み */
    text-align: center;
    position: relative;
    color: #fff; 
    overflow: hidden; 
    box-sizing: border-box; 
    padding-top: 149px; /* ▼▼▼ 修正点: ヘッダーの高さ調整分を反映 (178px -> 149px) ▼▼▼ */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(35deg, rgba(255, 240, 245, 0.7), rgba(240, 248, 255, 0.7));
}

/* 曲線的なセクションの区切り */
.hero::after {
    content: '';
    position: absolute;
    bottom: -1px; 
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--color-bg); 
    clip-path: polygon(0 100%, 100% 100%, 100% 10%, 75% 50%, 50% 15%, 25% 45%, 0 20%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px; /* 上下の padding を 0 に変更済み */
    top: -30px; /* 中央から 30px 上にずらし済み */
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0 0 10px; /* 下余白を 10px に変更済み */
    line-height: 1.5;
    color: #4B4259;
}

.hero-subtitle {
    font-size: 1.125rem;
    margin: 20px 0 20px; /* 上下の余白を 20px に変更済み */
    color: var(--color-text);
}

.hero-authority {
    font-size: 1rem; /* 1rem に変更済み */
    margin: 0 0 40px; /* 40px に変更済み */
    opacity: 0.8;
    color: var(--color-text);
}

.hero-cta-btn {
    display: inline-block;
    color: #fff;
    background: var(--color-gold);
    font-weight: bold;
    font-size: 1.125rem;
    padding: 15px 40px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(192, 165, 110, 0.5);
}

.hero-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(192, 165, 110, 0.7);
}

/* ===== 共通セクション設定 ===== */
.section {
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

/* ヘッダーの重なり回避 */
body > main > .section:first-of-type {
    padding-top: 150px !important; 
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0 0 60px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

/* 見出しの英語サブタイトル */
.section-title::before {
    content: attr(data-en);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--color-gold);
    position: absolute;
    top: -1.2em;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* 見出し下の波線 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-blue));
    opacity: 0.7;
}


/* ===== 課題提起 ===== */
.problem {
    background-color: #fff;
}

.problem-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px;
    max-width: 600px;
    text-align: left;
}
.problem-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    font-size: 1.125rem; /* ▼▼▼ 修正点: 文字サイズを追加 ▼▼▼ */
}
.problem-list li::before {
    content: '✧'; 
    color: var(--color-gold);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.problem-solution {
    font-weight: bold;
    font-family: var(--font-serif);
    font-size: 1.6rem; 
}


/* ===== サービス概要と強み ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}
.feature-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(109, 104, 117, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(109, 104, 117, 0.15);
}
.feature-icon {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-gold);
    margin-bottom: 15px;
}
.feature-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin: 0 0 15px;
}
.feature-text {
    margin: 0;
    line-height: 1.8;
}

/* ===== プロフィールセクション ===== */
.profile {
    background-color: #fff;
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.profile-image {
    flex-shrink: 0;
    width: 250px;
}

.profile-image img {
    width: 100%;
    border-radius: 15px; 
    border: 5px solid #fff;
    box-shadow: 0 10px 40px rgba(192, 165, 110, 0.3);
}

.profile-title {
    margin: 0 0 5px;
    font-weight: bold;
    color: var(--color-gold);
}

.profile-name {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin: 0 0 20px;
    color: #4B4259;
}

.profile-bio {
    margin: 0 0 30px;
    line-height: 1.9;
}
.profile-bio p {
    margin: 0 0 1.5em; 
}
.profile-bio p:last-child {
    margin-bottom: 0; 
}


.profile-cta {
    margin-top: 0;
    text-align: left;
}

/* ===== 制作実績 ===== */
.works {
    background-color: #fff;
}

/* ▼▼▼ 修正点: 「実績をさらに見る」ボタンを目立たせる ▼▼▼ */
.works .section-cta .btn {
    background: var(--color-gold);
    color: #fff;
    padding: 15px 45px;
    font-size: 1.1rem;
}
.works .section-cta .btn:hover {
    background: #d8b87a;
    border-color: #d8b87a;
}
/* ▲▲▲ ここまで ▲▲▲ */

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.work-card {
    border-radius: 10px;
    overflow: hidden; 
    box-shadow: 0 8px 30px rgba(109, 104, 117, 0.1);
    background-color: #fff; 
}

.work-image-wrapper {
    overflow: hidden; 
}

.work-image {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: contain; 
    transition: transform 0.5s;
}
.work-card:hover .work-image {
    transform: scale(1.1);
}
.work-info {
    padding: 20px;
    color: var(--color-text); 
    text-align: left;
}
.work-title {
    font-family: var(--font-serif);
    margin: 0 0 10px; 
    color: #4B4259; 
}
.work-category {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.7; 
}

/* ===== 共通ボタン ===== */
.section-cta {
    margin-top: 50px;
}
.btn {
    display: inline-block;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: bold;
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-gold);
    transition: all 0.3s;
}
.btn:hover {
    background: var(--color-gold);
    color: #fff;
}
.btn.btn-primary {
    background: var(--color-gold);
    color: #fff;
    padding: 15px 45px;
    font-size: 1.1rem;
}
.btn.btn-primary:hover {
    background: #d8b87a;
}


/* ===== お客様の声 ===== */
.voice-card {
    max-width: 800px;
    margin: 0 auto 30px;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    position: relative;
    text-align: left;
    box-shadow: 0 8px 30px rgba(109, 104, 117, 0.1);
}
.voice-card::before {
    content: '“';
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--color-pink);
    opacity: 0.5;
    position: absolute;
    top: 10px;
    left: 20px;
}
.voice-text {
    margin: 0 0 20px;
    line-height: 1.8;
}
.voice-meta {
    text-align: right;
    font-weight: bold;
}

/* ===== ご提供までの流れ ===== */
.flow {
    background-color: #fff;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.flow-step {
    position: relative;
}

/* ステップ間の矢印 (PC表示) */
.flow-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 45px; 
    right: -25px;
    font-size: 1.5rem;
    color: var(--color-gold);
    opacity: 0.5;
}

.flow-step-number {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border: 2px solid var(--color-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-gold);
}

.flow-step-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin: 0 0 10px;
}

.flow-step-text {
    font-size: 0.9rem;
    line-height: 1.8;
    text-align: left;
}


/* ===== よくある質問 ===== */
.faq {
    background: #fff;
}
.faq-item {
    max-width: 800px;
    margin: 0 auto 15px;
    border: 1px solid rgba(192, 165, 110, 0.3);
    border-radius: 10px;
    text-align: left;
}
.faq-item summary {
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    position: relative;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--color-gold);
}
.faq-item details[open] summary::after {
    content: '-';
}
.faq-item p {
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.8;
}

/* ===== お問い合わせ ===== */
.contact {
    background: linear-gradient(180deg, var(--color-blue) 0%, var(--color-pink) 100%);
}
.contact-message {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* ===== フッター ===== */
.footer {
    padding: 50px 20px;
    background-color: #f7f3f9;
    color: var(--color-text);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}
.footer-nav a:hover {
    color: var(--color-gold);
}
.copyright {
    font-size: 0.8rem;
    margin: 0;
}


/* ===== レスポンシブ対応 ===== */
@media (max-width: 768px) {
    .header { 
        padding: 0 20px 5px; 
        flex-direction: row; /* スマホでは横並びに戻す */
        justify-content: space-between; /* ロゴとボタンを両端に */
    }

    .header-logo {
        margin-right: 20px; /* スマホでは余白を少し詰める */
        margin-bottom: 0; /* 下マージンをリセット */
        height: 84px; /* ▼▼▼ 修正点: 105px の 80% = 84px に変更 ▼▼▼ */
    }
    
    .hero {
        padding-top: 94px; /* ▼▼▼ 修正点: ヘッダーの高さ調整分を反映 (87px -> 94px) ▼▼▼ */
    }

    body > main > .section:first-of-type {
        padding-top: 80px !important; 
    }
    
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .hero::after { height: 50px; }
    
    .section {
        padding: 60px 20px;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .features-grid, .works-grid {
        grid-template-columns: 1fr;
    }

    .profile-content {
        flex-direction: column; 
        text-align: center;
    }

    .profile-image {
        width: 200px; 
    }
    
    .profile-bio p, .profile-cta {
        text-align: left;
    }

    .flow-steps {
        grid-template-columns: 1fr; 
        gap: 50px;
    }

    .flow-step:not(:last-child)::after {
        content: '↓'; 
        top: auto;
        bottom: -35px; 
        left: 50%;
        transform: translateX(-50%);
    }

    /* ▼▼▼ ハンバーガーメニュー関連 ▼▼▼ */
    .header-nav { display: none; } /* PC用ナビを非表示 */

    .hamburger-btn { 
        display: block;
        margin-left: auto; /* ハンバーガーボタンを右端に寄せる */
    } 

    /* .nav-open 時のスタイル */
    .nav-open .header-nav {
        display: block; 
        position: fixed;
        top: 0;
        right: -100%; 
        width: 80%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding-top: 100px;
        transition: right 0.5s;
        z-index: 120;
    }
    
    .nav-open .header-nav {
        right: 0; 
    }

    .nav-open .header-nav ul {
        flex-direction: column; 
        align-items: center;
        gap: 40px;
    }
    
    .nav-open .header-nav a {
        font-size: 1.2rem;
        font-weight: bold;
    }
    /* ▲▲▲ ここまで ▲▼▼ */
}

/* ===== ハンバーガーメニューボタン ===== */
.hamburger-btn {
    display: none; 
    position: relative;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 150; 
}

.hamburger-btn span {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-gold);
    transition: all 0.3s;
}

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

/* メニューが開いた時のボタン（×印）のスタイル */
.nav-open .hamburger-btn span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}
.nav-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}
.nav-open .hamburger-btn span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* ===== ロゴ画像の設定 ===== */
.header-logo a {
    display: flex;
    align-items: center;
    height: 100%; /* 親(84px)の高さを100%継承 */
}

.header-logo img {
    height: 100%; /* 親(aタグ)の高さを100%継承 */
    width: auto;
    /* !important は不要になりました */
}

.footer-logo img {
    height: 84px; /* ▼▼▼ 修正点: 105px の 80% = 84px に変更 ▼▼▼ */
    width: auto;
    vertical-align: middle; 
    margin: 0 auto 20px;
}

@media (max-width: 768px) {
    .header-logo img { 
        height: 100%; /* 親(84px)の高さを100%継承 */
    }
    .footer-logo img { 
        height: 84px; /* ▼▼▼ 修正点: 105px の 80% = 84px に変更 ▼▼▼ */
    }
}