@charset "UTF-8";

/* -------------------------------------------
   0. 変数設定（納品版のデザイン数値を完全移植）
------------------------------------------- */
:root {
    /* Brand Colors */
    --clr-main: #3e3e3e;
    --clr-accent: #C5A059;
    --clr-line: #06C755;
    --clr-bg-light: #F8F9FA;
    --clr-white: #ffffff;
    
    /* Typography */
    --fz-list: 20px;            /* Section 02 納品版確定サイズ */
    
    /* Layout */
    --header-h: 90px;
    --container-max: 1164px;    /* 1164pxを死守（デザイン崩れ防止） */
    --section-sp: 120px;
    --pd-container: 4%;         /* デスクトップ用余白 */
    --pd-container-sp: 20px;    /* スマホ用余白（991px以下） */
    
    /* Animation */
    --trans-base: 0.3s ease;
    --trans-slow: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* -------------------------------------------
   1. Base Setting (Refactored)
------------------------------------------- */
html { 
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    color: var(--clr-main);
    background-color: var(--clr-white);
    font-family: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
    line-height: 2.0; 
    -webkit-font-smoothing: antialiased;
    word-break: break-all;
}

img { width: 100%; height: auto; vertical-align: bottom; }
ul { list-style: none; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; transition: var(--trans-base); }

/* -------------------------------------------
    2. Common Components (Refactored & Lightweight)
------------------------------------------- */
.section-padding { padding: var(--section-sp) 0; }

.container-works {
    max-width: var(--container-max);
    margin: 0 auto;
    width: 100%;
    padding: 0 var(--pd-container);
    box-sizing: border-box;
}

/* UI Elements Visibility Control */
.menu-trigger, .nav-list li a span, .nav-footer-sp { display: none; }

/* Section Headers */
.sec-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 60px;
}
.en-title {
    color: var(--clr-accent);
    font-size: 2.5rem;
    line-height: 1.2;
}

/* --- Buttons (Works 01-03 Delivery Version) --- */
.btn-more, .btn-story, .btn-more-04 { 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 7.5px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    background-color: #f2f2f2 !important; 
    color: var(--clr-main) !important;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1;
}

.btn-more img, .btn-story img, .btn-more-04 img {
    width: 18px;
    height: auto;
    filter: brightness(0) opacity(0.6); /* 軽量化したプロ仕様のフィルタ */
    transition: 0.4s ease;
}

/* Hover Actions: Polished UX */
.btn-more:hover:not(:disabled), .btn-story:hover, .btn-more-04:hover {
    background-color: var(--clr-main) !important;
    color: var(--clr-white) !important;
    border-color: var(--clr-main);
    transform: translateY(-2px);
}

.btn-more:hover:not(:disabled) img, .btn-story:hover img, .btn-more-04:hover img {
    filter: brightness(0) invert(1);
    transform: translateX(4px);
}

/* -------------------------------------------
    Header & Navigation (Refactored & Lightweight)
------------------------------------------- */
.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-h);
    z-index: 9999;
    background-color: transparent;
    border-bottom: 1px solid rgba(224, 224, 224, 0.5);
    transition: var(--trans-slow);
    display: flex;
    align-items: center;
}

/* Scroll State */
.site-header.is-scrolled {
    background-color: var(--clr-white) !important;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 80px;
}

.header-inner {
    width: 100%;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Fix */
.header-logo { flex: 0 0 160px; display: flex; align-items: center; }
.header-logo img { width: 100%; max-height: 70px; object-fit: contain; display: block; }

.header-right-group { display: flex !important; align-items: center; gap: 50px; }
.nav-list { display: flex; gap: 50px; }

/* Nav Link & Triangle Animation */
.nav-list a {
    position: relative;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color var(--trans-base);
    display: inline-block;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: calc(50% - 8px);
    border: 8px solid transparent;
    border-bottom-color: var(--clr-accent);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(5px) rotateY(0deg);
    pointer-events: none;
}

.nav-list a:hover { color: var(--clr-accent); }
.nav-list a:hover::after { opacity: 1; transform: translateY(0) rotateY(360deg); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after { bottom: -2px !important; }

.dropdown-menu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--clr-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transition: var(--trans-slow);
    z-index: 1000;
}

.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.dropdown-menu li a {
    display: block;
    padding: 5px 20px !important;
    font-size: 13px !important;
    color: #333 !important;
    text-align: center;
}
.dropdown-menu li a span, .dropdown-menu li a::after { display: none !important; }
.dropdown-menu li a:hover { color: var(--clr-accent) !important; }

/* Header CTA Button (Polished Edition) - 修正版 */
.header-cta-btn {
    position: relative;
    overflow: hidden;
    background-color: var(--clr-main);
    color: var(--clr-white) !important; /* ボタン全体の基本色を白に */
    border-radius: 50px !important;
    transition: var(--trans-base) !important;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 250px; height: 60px;
    border: 1px solid transparent;
    text-decoration: none; /* リンクの下線を消去 */
}

/* ホバー時の背景と文字色の切り替え */
.header-cta-btn:hover {
    background-color: #f2f2f2 !important;
    color: var(--clr-main) !important;
    border-color: #e0e0e0;
}

/* 内部の各テキスト要素に色を明示的に指定 */
.btn-top, 
.ticker-inner span {
    color: var(--clr-white); /* 初期状態は白 */
    transition: color 0.3s ease;
}

/* ホバー時に内部テキストもメインカラーへ変更 */
.header-cta-btn:hover .btn-top,
.header-cta-btn:hover .ticker-inner span {
    color: var(--clr-main) !important;
}

.btn-top { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.btn-top img { width: 16px; transition: 0.3s; filter: brightness(0) invert(1); }

/* ホバー時のアイコン色変換 */
.header-cta-btn:hover img {
    filter: invert(68%) sepia(16%) saturate(1185%) hue-rotate(11deg) brightness(92%) contrast(83%) !important;
}

/* テロップ制御 */
.btn-bottom-ticker { height: 18px; overflow: hidden; }
.ticker-inner { animation: scrollTicker 8s infinite; }
.ticker-inner span {
    display: flex; align-items: center; justify-content: center;
    height: 18px; font-size: 11px; line-height: 1;
}

.dot { width: 7px; height: 7px; background: #00ff88; border-radius: 50%; margin-right: 6px; animation: blink 1.2s infinite; }

/* Global Animations */
.header-cta-btn::before {
    content: ""; position: absolute; top: -50%; left: -120%; width: 50%; height: 200%;
    background: rgba(255, 255, 255, 0.3); transform: rotate(35deg);
    animation: shiny-move 3s infinite; pointer-events: none;
}

@keyframes shiny-move { 0% { left: -120%; } 30%, 100% { left: 120%; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes scrollTicker {
    0%, 30% { transform: translateY(0); }
    33%, 63% { transform: translateY(-18px); }
    66%, 96% { transform: translateY(-36px); }
    100% { transform: translateY(0); }
}

/* -------------------------------------------
    00-1. FV (First View) - 2026 Professional Ver.
------------------------------------------- */
.fv, .fv-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.fv {
    background: var(--clr-bg-light) url("images/haikei15.png") no-repeat center / cover;
}

/* Ferris Wheel Area: Fixed Absolute Position */
.fv-visual-area {
    position: absolute;
    bottom: 100px; 
    left: -900px;  
    width: 1600px;
    height: 1600px;
    z-index: 1;
    pointer-events: none;
}

.fv-circle-rail, .slider-track {
    width: 100%;
    height: 100%;
    position: absolute;
}

/* Main Rotation */
.slider-track {
    animation: rotate-main 60s linear infinite;
    will-change: transform;
}

/* Slide Items: Syncing rotation & counter-rotation */
.slide-item {
    position: absolute;
    top: 50%; left: 50%;
    width: 400px; height: 400px;
    margin: -200px 0 0 -200px;
}

/* Individual Positions */
.slide-item:nth-child(1) { transform: rotate(0deg) translate(600px) rotate(0deg); }
.slide-item:nth-child(2) { transform: rotate(60deg) translate(600px) rotate(-60deg); }
.slide-item:nth-child(3) { transform: rotate(120deg) translate(600px) rotate(-120deg); }
.slide-item:nth-child(4) { transform: rotate(180deg) translate(600px) rotate(-180deg); }
.slide-item:nth-child(5) { transform: rotate(240deg) translate(600px) rotate(-240deg); }
.slide-item:nth-child(6) { transform: rotate(300deg) translate(600px) rotate(-300deg); }

.slide-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    background: var(--clr-white);
    display: block;
    animation: rotate-reverse 60s linear infinite;
    transform-origin: center;
    will-change: transform;
}

/* Animation Definitions */
@keyframes rotate-main { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotate-reverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* --- Copy & Content Layout --- */
.fv-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-30%, 30%);
    width: 100%;
    max-width: 1400px;
    padding: 0 50px;
    display: flex;
    z-index: 10;
    pointer-events: none;
}

.fv-copy {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px 45px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    width: fit-content;
    max-width: 600px;
    margin-left: 5%;
    pointer-events: auto;
}

.fv-copy h1, .fv-copy .main-copy, .fv-copy .fv-span { 
    font-size: 25px; 
    line-height: 1.6;
    font-weight: 700;
    color: var(--clr-main);
}

.fv-person {
    position: absolute;
    bottom: 0; right: 5%;
    z-index: 5;
    pointer-events: none;
}

.fv-person img {
    height: 60vh;
    width: auto;
    display: block;
}

/* --------------------------------------------
    00-2. Section共通デザイン (Optimized)
--------------------------------------------- */
.sec-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px; 
    text-align: center;
}

/* セクション番号 (01, 02...) */
.sec-num {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: -30px; /* 前回の調整値を維持 */
    z-index: 1;
}

.sec-num span {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    color: var(--clr-main);
    font-weight: 700;
    letter-spacing: 0.1em;
}

.sec-num::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--clr-white);
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    z-index: -1;
}

/* 英語タイトル */
.en-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 50px;
    color: rgba(62, 62, 62, 0.08);
    line-height: 1;
    text-transform: capitalize;
    margin-bottom: 40px; /* 前回の調整値を維持 */
}

/* 日本語タイトル（重なり調整版） */
.title-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.jp-title {
    position: relative;
    margin-top: -55px;
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-main);
    letter-spacing: 0.2em;
    white-space: nowrap;
    z-index: 2;
}

.jp-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 1px;
    background-color: var(--clr-accent);
    margin: 10px auto 0;
}

/* -------------------------------------------
   01. Works (制作実績) - 2026 Final Fixed Ver.
------------------------------------------- */
#case.case-section {
    background-color: var(--clr-white) !important;
    padding: 120px 0 !important; /* 上下120pxを一括指定 */
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px 40px;
    margin-top: 60px;
}

.work-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Thumbnail: 368x245 ratio strict compliance */
.work-item {
    width: 100%;
    max-width: 368px;
    aspect-ratio: 368 / 245;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    background-color: #eee;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--trans-slow); /* 0.4s sync */
    display: block;
}

/* Hover Animation: Polished Scale */
.work-card:hover .work-item img {
    transform: scale(1.05);
}

/* Title Styling */
.work-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--clr-main);
    margin: 20px 0 15px;
    letter-spacing: 0.05em;
    line-height: 1.4;
}
        
/* -------------------------------------------
    02. Skill / Service - 2026 Final Ver.
------------------------------------------- */
#strength {
    padding: 120px 0 !important; /* Section 01と同期 */
    background-color: var(--clr-bg-light) !important;
    border-block: 1px solid #f0f0f0;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.skill-card {
    background: var(--clr-white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--trans-base);
}

/* Icons & Labels */
.skill-icon-wrap {
    width: 80px; height: 80px;
    background: var(--clr-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.skill-icon { width: 40px; height: auto; }

.skill-lead {
    font-size: 1.4rem;
    color: var(--clr-accent);
    font-weight: 500;
    margin-bottom: 15px;
}

.skill-line {
    width: 40px; height: 1px;
    background: #ddd;
    margin: 0 auto 20px;
}

/* Skill List: Strict 24px Size Control */
.skill-list {
    text-align: left;
    list-style: none;
    padding: 0;
}

.skill-list li {
    font-size: var(--fz-list); /* 24px */
    color: #666;
    line-height: 1.6;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
}

.skill-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--clr-accent);
    font-weight: bold;
}

/* Footer Area */
.skill-footer {
    text-align: center;
    margin-top: 60px;
}

.skill-footer-text {
    font-size: 19.2px;
    color: var(--clr-accent);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* -------------------------------------------
    03. Process (制作の流れ) - Refactored & Lightweight
------------------------------------------- */
#process {
    padding: 120px 0 !important; /* Section 01, 02と同期 */
    background-color: var(--clr-white) !important;
}

.process-container {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

/* 中央を通る縦ライン */
.process-container::before {
    content: "";
    position: absolute;
    top: 0; left: 40px;
    width: 1px; height: 100%;
    background: #e0e0e0;
    z-index: 1;
}

.process-item {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
    align-items: flex-start;
}

.process-item:last-child { margin-bottom: 0; }

/* 数字部分 */
.process-number {
    flex-shrink: 0;
    width: 80px; height: 80px;
    background: var(--clr-white);
    border: 1px solid var(--clr-accent);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.step-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--clr-accent);
    letter-spacing: 0.1em;
}

.step-num {
    font-size: 24px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--clr-main);
}

/* 内容部分 */
.process-content { flex: 1; }

.process-content h3 {
    margin: 0 0 15px;
    padding-top: 5px;
    font-size: 1.4rem;
    color: var(--clr-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.process-content p {
    font-size: 1.05rem;
    color: #666;
    line-height: 1.8;
}

/* お金に関連するステップの強調 */
.process-item.is-payment .process-content {
    background: #FDFBF7;
    padding: 20px 25px;
    border-radius: 12px;
    border-left: 3px solid var(--clr-accent);
}

/* フッター（CTA） */
.process-footer {
    text-align: center;
    margin-top: 60px !important;
}

.cta-message {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--clr-accent);
    margin-bottom: 30px;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/* -------------------------------------------
    04. お悩み整理診断 - 納品版デザイン復元
------------------------------------------- */
#onayami.diagnosis-section {
    background-color: var(--clr-bg-light) !important;
    padding: 120px 0 !important;
}

#onayami .sec-header { margin-bottom: 80px !important; }

.diagnosis-outer { max-width: 800px; margin: 0 auto; position: relative; z-index: 5; }

.diagnosis-container {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

/* 診断カード・質問 */
.diag-card { display: none; opacity: 0; transform: translateX(30px); transition: all 0.5s ease; }
.diag-card.active { display: block !important; opacity: 1; transform: translateX(0); }

.diag-progress {
    font-family: 'Poppins', sans-serif;
    color: var(--clr-accent);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
}

.diag-question {
    font-size: 24px;
    color: var(--clr-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.5;
}

/* 選択肢ボタン */
.diag-options { display: flex; flex-direction: column; gap: 15px; }
.diag-btn {
    padding: 20px 25px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    text-align: left;
    transition: 0.3s ease;
}
.diag-btn:hover {
    border-color: var(--clr-accent);
    background: #fdfaf5;
    color: var(--clr-main);
    transform: translateY(-2px);
}

/* --- 診断結果エリア（納品版リッチデザイン復元） --- */
.diag-result-card { display: none; text-align: center; }
.diag-result-card.active { display: block !important; animation: diagFadeIn 0.8s ease forwards; }

/* ラベル：あなたのステップアップ・ルート */
.result-label {
    display: inline-block;
    background: var(--clr-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

/* 指定の装飾を適用 */
.result-title {
    font-size: 28px;
    color: #3e3e3e; /* 指定カラー */
    background: #fdfaf5; /* 指定背景色 */
    border-radius: 16px; /* 指定角丸 */
    border: 1px solid rgba(176, 145, 110, 0.1); /* 指定枠線 */
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.4;
    padding: 20px; /* ボックス内の余白を追加 */
}

.result-description {
    font-size: 16px;
    line-height: 1.8;
    color: #888;
    margin-bottom: 30px;
    padding: 10px 20px; /* タイトルがボックス化したため余白を調整 */
    text-align: center;
}

.result-message {
    font-size: 15px;
    font-weight: 500;
    color: var(--clr-accent);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* LINE相談ボタン：復元デザイン */
.diag-footer { display: flex; justify-content: center; margin-bottom: 20px; }

/* --- LINE専用ボタン：干渉をすべて遮断 --- */
.btn-more-04.line-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 300px;
    height: 64px;
    background-color: #06C755 !important; /* 初期色固定 */
    color: #fff !important;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    box-shadow: 0 8px 25px rgba(6, 199, 85, 0.25);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), 
                box-shadow 0.4s ease;
}

/* アイコン：黒変防止 ＋ 横移動を完全に無効化 */
.btn-more-04.line-btn .line-icon-wrap img,
.btn-more-04.line-btn img {
    width: 38px;
    height: auto;
    filter: none !important;
    /* 重要：共通設定の translateX(4px) を打ち消して中央に固定 */
    transform: none !important; 
    transition: none !important;
}

/* Hover：色は変えず、アイコンも動かさず、全体がほわっと浮上するのみ */
.btn-more-04.line-btn:hover {
    background-color: #06C755 !important; /* 緑を維持 */
    color: #fff !important;               /* 白を維持 */
    transform: translateY(-8px) !important; /* フローティング同期の浮上 */
    box-shadow: 0 15px 35px rgba(6, 199, 85, 0.4) !important;
}

/* --- 診断結果エリア：クリック判定の確保 --- */
.diag-result-card { 
    display: none; 
    text-align: center; 
    position: relative; /* z-indexを有効にするため */
    z-index: 10;
}

.diag-result-card.active { 
    display: block !important; 
    animation: diagFadeIn 0.8s ease forwards; 
    pointer-events: auto; /* クリックを確実に有効化 */
}

/* もう一度診断するボタン：最前面に配置 */
.diag-reset {
    display: inline-block !important; /* ブロック要素にしてクリック範囲を確保 */
    position: relative;
    z-index: 20; /* 他の要素より上に配置 */
    background: none; 
    border: none; 
    color: #999; 
    text-decoration: underline;
    cursor: pointer; 
    font-size: 14px; 
    padding: 15px 20px; /* クリックしやすいよう余白を広げる */
    margin-top: 20px;
    transition: 0.3s;
}
.diag-reset:hover { 
    color: var(--clr-accent); 
}

/* --- セクション最下部：料金案内（最新グレー） --- */
.section-footer-04 {
    display: flex; justify-content: center; margin-top: 60px !important;
}

.btn-price-guide {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 32px;
    height: 28px; /* 28pxから48pxへ修正（01-03と同期） */
    font-size: 13px;
    font-weight: 700;
    background-color: #f2f2f2 !important;
    color: var(--clr-main) !important;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    text-decoration: none;
    transition: 0.4s;
}

.btn-price-guide img { width: 18px; height: auto; filter: brightness(0) opacity(0.6); transition: 0.4s; }

.btn-price-guide:hover {
    background-color: var(--clr-main) !important;
    color: #fff !important;
    transform: translateY(-2px);
}
.btn-price-guide:hover img { filter: brightness(0) invert(1); transform: translateX(4px); }

@keyframes diagFadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* -------------------------------------------
   05. Profile (私について) - Refactored
------------------------------------------- */
#profile {
    padding: 120px 0;
    background-color: var(--clr-white);
}

.profile-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.profile-flex {
    display: flex;
    gap: 70px;
    align-items: flex-start;
}

/* ビジュアルエリア (Sticky設定維持) */
.profile-image-area {
    flex: 0 0 360px;
    position: sticky;
    top: 100px;
}

.image-frame {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 5px 5px 0 0 rgba(181, 151, 89, 0.1);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-sub {
    font-size: 13px;
    color: var(--clr-accent);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.profile-name {
    margin-top: 10px;
    font-size: 28px;
    color: var(--clr-main);
    font-weight: 700;
}

.name-en {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #999;
    margin-left: 10px;
    font-weight: 500;
}

/* テキストエリア */
.profile-text-area {
    flex: 1;
}

.profile-copy {
    font-size: 22px;
    color: var(--clr-main);
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 700;
}

.copy-sub {
    font-size: 16px;
    color: var(--clr-accent);
    display: block;
    margin-top: 10px;
}

.profile-intro {
    font-size: 16px;
    line-height: 1.9;
    color: #555;
    margin-bottom: 50px;
}

/* ストーリーステップ */
.story-steps {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-bottom: 50px;
}

.story-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-icon {
    flex: 0 0 40px;
}

.step-icon img {
    width: 100%;
    height: auto;
}

.step-content h5 {
    margin-top: 0;
    line-height: 1.5;
    font-weight: 700;
    color: var(--clr-main);
}

.step-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* --- Profile Button Area --- */
.profile-btn-center-layout {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 50px !important;
    padding-bottom: 20px;
}

/* 共通ボタンスタイル (btn-story, btn-more-04等で共有可能) */
.btn-story, .btn-more-04 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    background-color: #f2f2f2 !important; 
    color: #3e3e3e !important;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s var(--trans-base);
    text-decoration: none;
    line-height: 1;
}

.btn-story img, .btn-more-04 img {
    width: 18px;
    height: auto;
    filter: brightness(0) saturate(100%) invert(21%) sepia(0%) saturate(0%) hue-rotate(175deg) brightness(96%) contrast(88%);
    transition: all 0.3s ease;
}

.btn-story:hover, .btn-more-04:hover {
    background-color: #3e3e3e !important;
    color: #fff !important;
    border-color: #3e3e3e;
    transform: translateY(-2px);
}

.btn-story:hover img, .btn-more-04:hover img {
    filter: brightness(0) invert(1);
    transform: translateX(4px);
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .profile-flex {
        flex-direction: column;
        gap: 50px;
    }
    .profile-image-area {
        flex: 0 0 auto;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        position: static;
        text-align: center;
    }
}

@media (max-width: 767px) {
    #profile { padding: 80px 0; }
    .profile-copy { font-size: 18px; }
    .btn-story { width: 100%; }
}

/* -------------------------------------------
   06. Contact (お問い合わせ)
------------------------------------------- */
#contact {
    padding: 120px 0 !important;
    background-color: var(--clr-bg-light) !important; /* 統一変数を使用 */
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.contact-container {
    max-width: 800px;
    margin: 60px auto 0;
    padding: 0 var(--space-md);
}

.contact-lead {
    text-align: center;
    display: block;
    width: 100%;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 50px;
    white-space: normal;
}

/* フォームグループ */
.form-group {
    margin-bottom: 50px;
}

.form-group label {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--clr-main);
    margin-bottom: 15px;
}

/* ラベルバッジ */
.required, .optional {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 12px;
    vertical-align: middle;
    font-weight: 700;
}

.required {
    background: var(--clr-accent);
    color: var(--clr-white);
}

.optional {
    background: #f2f2f2;
    color: #888;
}

/* 入力フィールド：Polished質感 */
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    font-size: 16px;
    color: var(--clr-main);
    transition: all 0.3s var(--trans-base);
    box-sizing: border-box;
}

input:focus,
textarea:focus {
    border-color: var(--clr-accent);
    background: var(--clr-white);
    outline: none;
    box-shadow: 0 5px 15px rgba(156, 132, 74, 0.08);
}

/* チェックボックスエリア */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
}

.checkbox-item {
    font-size: 16px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* プライバシーポリシー */
.policy-box {
    height: 160px;
    overflow-y: scroll;
    border: 1px solid #e0e0e0;
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
    color: #888;
    line-height: 1.7;
    background: var(--clr-white);
    margin-bottom: 20px;
}

/* スクロールバーのカスタマイズ */
.policy-box::-webkit-scrollbar { width: 6px; }
.policy-box::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }

.policy-agree {
    text-align: center;
    margin-top: 20px;
}

.policy-agree label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    cursor: pointer;
}

/* --- 送信ボタンエリア：上部余白の微調整 --- */
.form-submit {
    text-align: center;
}

/* 既存の .btn-more スタイルを継承し、ボタン固有の設定のみ追加 */
.form-submit .btn-more {
    cursor: pointer;
    appearance: none;
    border: none;
    outline: none;
}



/* ------------------------------------------
Floating & Footer
------------------------------------------ */
.floating-line-btn {
    position: fixed; right: 20px; bottom: 20px;
    width: 110px; height: 110px;
    background: #06C755; /* LINE色 */
    border-radius: 50%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(6,199,85,0.3);
    text-decoration: none;
}

.line-icon-wrap {
    width: 60px; height: 60px; background: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
}
.line-icon-wrap img { width: 40px; height: auto; }
.line-text { font-size: 11px; font-weight: bold; line-height: 1.3; text-align: center;  color: #fff; !important;}

/* フローティングボタンのホバー挙動：追加 */
.floating-line-btn {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
     color: #fff; !important;
}

.floating-line-btn:hover {
    transform: translateY(-8px) !important; /* ふわっと上に浮く */
    box-shadow: 0 15px 40px rgba(6, 199, 85, 0.5) !important; /* 影を強調して浮遊感を演出 */
    filter: brightness(1.05); /* わずかに明るくして反応を強調 */
}

/* アイコン自体の微細な動き（時間差のラグ演出） */
.floating-line-btn:hover .line-icon-wrap {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}

/* -------------------------------------------
   Footer: 2026 Polished Standard
------------------------------------------- */
.footer {
    background-color: #3e3e3e; /* ブランドのダークグレー */
    color: var(--clr-white);
    padding: 80px 0 30px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

/* ブランドエリア */
.footer-brand {
    max-width: 400px;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-concept {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    line-height: 1.6;
}

.footer-info {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
}

/* フッターナビゲーション */
.footer-nav .footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列を維持 */
    gap: 15px 40px;
    list-style: none;
}

.footer-nav .footer-links a {
    color: var(--clr-white);
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s var(--trans-base);
    opacity: 0.8;
}

.footer-nav .footer-links a:hover {
    opacity: 1;
}

/* コピーライト */
.footer-bottom {
    text-align: center;
}

.footer-bottom small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.05em;
}

/* -------------------------------------------
   Global Sections Background Management
------------------------------------------- */
/* 白背景セクション (01, 03, 05, 06の一部) */
#case, #process, #profile {
    background-color: var(--clr-white) !important;
}

/* 洗練されたグレー背景セクション (02, 04, 06) */
#strength, #simulator, #contact {
    background-color: var(--clr-bg-light) !important;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

/* ===========================================
   Final Integrated Responsive (2026 Optimized)
   配置：CSSファイルの最下部に一括で貼り付け
=========================================== */

/* --- 1. タブレット・共通レスポンシブ (max-width: 1024px) --- */
@media screen and (max-width: 1024px) {
    .header-cta-btn, .nav-sns-sp, .nav-list a::after { display: none !important; }
    .header-right-group { display: block !important; }
    .header-inner { padding: 0 25px !important; display: flex; justify-content: space-between; align-items: center; position: relative; }

    /* Drawer Menu Logic */
    .header-nav {
        display: block !important; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: #fff; z-index: 9999; opacity: 0; visibility: hidden;
        pointer-events: none; transform: translateY(-20px); transition: all 0.4s ease;
        padding: 120px 20px 60px; overflow-y: auto;
    }
    .site-header.nav-open .header-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
    .site-header.nav-open .header-nav .nav-list { display: flex !important; flex-direction: column; align-items: center; gap: 20px; margin: 0; padding: 0; }
    
    /* Menu Animation Loop */
    .nav-list > li { width: 100%; text-align: center; opacity: 0; transform: translateY(15px); transition: all 0.5s ease; }
    .site-header.nav-open .nav-list > li:nth-child(n) { opacity: 1; transform: translateY(0); }
    .site-header.nav-open .nav-list > li:nth-child(1) { transition-delay: 0.1s; }
    .site-header.nav-open .nav-list > li:nth-child(2) { transition-delay: 0.2s; }
    .site-header.nav-open .nav-list > li:nth-child(3) { transition-delay: 0.3s; }
    .site-header.nav-open .nav-list > li:nth-child(4) { transition-delay: 0.4s; }
    .site-header.nav-open .nav-list > li:nth-child(5) { transition-delay: 0.5s; }
    .site-header.nav-open .nav-list > li:nth-child(6) { transition-delay: 0.6s; }

    .nav-list li a { display: flex !important; flex-direction: column; align-items: center; font-weight: 700; color: var(--clr-main); }
    .nav-list li a span { display: block; font-size: 10px; color: var(--clr-accent); margin-top: 4px; letter-spacing: 0.1em; text-transform: uppercase; }
    .site-header.nav-open .dropdown-menu { display: block !important; position: relative; margin: 10px auto 0; width: 100%; text-align: center; opacity: 1; visibility: visible; box-shadow: none; background: transparent; }

    /* Nav Footer / CTA */
    .nav-footer-sp { margin-top: 40px; padding: 30px 0 60px; border-top: 1px solid #eee; display: flex; flex-direction: column; align-items: center; gap: 15px; width: 100%; opacity: 0; transform: translateY(10px); transition: all 0.6s ease 0.7s; }
    .nav-footer-sp p { font-size: 12px; color: #666; margin-bottom: 30px; text-align: center; }
    .site-header.nav-open .nav-footer-sp { opacity: 1; transform: translateY(0); }
    .nav-cta-btn-sp, .line-link-sp { display: inline-flex; align-items: center; justify-content: center; padding: 15px 20px !important; min-width: 260px; font-size: 14px; font-weight: 700; border-radius: 50px; line-height: 1; text-decoration: none; color: #fff !important; }
    .nav-cta-btn-sp { background: var(--clr-main); }
    .nav-cta-btn-sp img { width: 20px; margin-right: 10px; filter: brightness(0) invert(1); }
    .line-link-sp { background: #06C755; }

    /* Hamburger Button */
    .menu-trigger { display: block !important; position: relative; width: 30px; height: 24px; z-index: 10001; }
    .header-logo { z-index: 10001; }
    .menu-trigger span { display: block; position: absolute; left: 0; width: 100%; height: 2px; background: #3e3e3e; border-radius: 4px; transition: 0.3s; }
    .menu-trigger span:nth-of-type(1) { top: 0; }
    .menu-trigger span:nth-of-type(2) { top: 11px; }
    .menu-trigger span:nth-of-type(3) { bottom: 0; }
    .menu-trigger.active span:nth-of-type(1) { transform: translateY(11px) rotate(45deg); }
    .menu-trigger.active span:nth-of-type(2) { opacity: 0; }
    .menu-trigger.active span:nth-of-type(3) { transform: translateY(-11px) rotate(-45deg); }

    /* FV Layout Adjustment */
    .fv-content { position: absolute; top: 15% !important; left: 50% !important; transform: translateX(-50%) !important; width: 90% !important; justify-content: center !important; margin: 0 !important; z-index: 10; }
    .fv-copy { width: 100% !important; max-width: 500px !important; padding: 15px 20px !important; text-align: center; background: rgba(255, 255, 255, 0.9) !important; }
    .fv-copy h1, .fv-copy .main-copy { font-size: 23px !important; white-space: normal; line-height: 1.6; color: #3E3E3E !important; }
    .fv-person { right: 0 !important; bottom: 0 !important; }
    .fv-person img { height: 50vh !important; width: auto; }

    /* Sections Shared Spacing */
    #strength, .case-section, #onayami.diagnosis-section, #process { padding: 80px 0 !important; }
    #strength .skill-grid, .works-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
}

/* --- 2. スマートフォン対応 (max-width: 767px) --- */
@media screen and (max-width: 767px) {
    .header-nav { height: 100vh !important; overflow-y: scroll !important; -webkit-overflow-scrolling: touch; }
    .nav-inner { height: auto !important; min-height: 100% !important; display: block !important; padding-bottom: 150px !important; }
    .nav-footer-sp { display: flex !important; flex-direction: column !important; opacity: 1 !important; visibility: visible !important; position: relative !important; margin-top: 50px !important; }
    .nav-cta-btn-sp { display: inline-flex !important; }
    .sp-only { display: block; }
    .fv-copy h1, .fv-copy .main-copy, .fv-copy span, .fv-copy .fv-span { font-size: 17px !important; line-height: 1.5 !important; color: #3E3E3E !important; }

    /* Floating LINE Button Optimization */
    .floating-line-btn, [class*="floating-line-btn"] { 
        width: 85px !important; height: 85px !important; position: fixed !important; right: 15px !important; bottom: 20px !important; 
        z-index: 999; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; padding: 5px 0 0 !important;
    }
    .line-icon-wrap { width: 45px !important; height: 45px !important; display: flex !important; align-items: center !important; justify-content: center; }
    .line-icon-wrap img { width: 38px !important; height: auto !important; display: block !important; }
    .line-text { font-size: 8px !important; margin-top: 13px !important; line-height: 1.0 !important; color: #fff !important; font-weight: bold; }

    .fv-content { top: 100px !important; padding-left: 5%; } 
    .fv-person img { height: 45vh !important; }

    /* Diagnosis & Process Section SP */
    .diagnosis-container { padding: 40px 20px; margin: 0 15px; }
    .diag-question { font-size: 20px; }
    .diag-btn { font-size: 14px; }
    
    .process-container::before { left: 30px; }
    .process-item { gap: 20px; }
    .process-number { width: 60px; height: 60px; }
    .step-num { font-size: 18px; }
    .process-content h3 { font-size: 1.2rem; padding-top: 2px; }
}


