@charset "UTF-8";

/* ================================================================
   不動産⑧ 相続相談 Heritage Trust
   ================================================================ */

:root {
    --primary: #002F6C;
    --primary-dark: #001c40;
    --primary-light: #f2f4f7;
    --accent: #7F0800;
    --accent-dark: #4c0400;
    --accent-light: #f7f0ef;
    --text: #333;
    --text-light: #555;
    --white: #fff;
    --bg: #FAFBFC;
    --bg-gray: #F2F4F7;
    --charcoal: #1E2A3A;
    --border: #D5DAE2;
    --border-light: #EDF0F4;
    --footer-accent: #8CA3C0;
    --radius: 12px;
    --radius-sm: 8px;
    --btn-radius: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, .06);
    --shadow-hover: 0 8px 28px rgba(0, 0, 0, .12);
    --transition: all 0.3s ease;
    --font-base: 'Noto Sans JP', sans-serif;
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-en: 'Cormorant Garamond', serif;
    --font-num: "Noto Serif JP", serif;
}


/* ━━━━━━━━━━━━━━━━

 ■ 初期化

━━━━━━━━━━━━━━━━ */

/* ================================================================
   Foundation — Reset
   ================================================================
   *, html, body, img, a, ul/ol のリセット。
   テンプレートの :root で --bg, --text, --font-base を定義すること。
   ================================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 0 !important;
    font-family: var(--font-base);
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none !important;
}

ul,
ol {
    list-style: none;
}


/* ━━━━━━━━━━━━━━━━

 ■ ユーティリティ

━━━━━━━━━━━━━━━━ */

/* ================================================================
   Utility
   ================================================================
   u-hidden-sp / u-hidden-pc: レスポンシブ表示切替
   [data-animate]: Intersection Observer アニメーション基盤
   ================================================================ */

/* SP非表示 → PC表示 */
.u-hidden-sp {
    display: none;
}

@media (min-width: 769px) {
    .u-hidden-sp {
        display: block;
    }

    .u-hidden-pc {
        display: none;
    }
}

/* アニメーション基盤 */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* アンカースクロール時のヘッダー分オフセット */
[id] {
    scroll-margin-top: 80px;
}


/* ━━━━━━━━━━━━━━━━

 ■ コンポーネント

━━━━━━━━━━━━━━━━ */

/* ================================================================
   Component — c-section-title
   ================================================================
   全セクション共通のタイトル構造（EN + JA）。
   参照: component-css.md §1
   ================================================================ */

.c-section-title {
    margin-bottom: 48px;
    text-align: center;
}

@media (min-width: 769px) {
    .c-section-title {
        margin-bottom: 60px;
    }
}

.c-section-title__en {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}

.c-section-title__ja {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

/* ================================================================
   Component — c-btn
   ================================================================
   5バリアント: --primary / --accent / --outline / --outline-dark / --line
   参照: component-css.md §2
   ================================================================ */
.c-btn-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    padding: 24px 0 0 0;
    text-align: center;

    @media (min-width: 769px) {
        padding: 44px 0 0 0;
    }
}

.c-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border: 2px solid transparent;
    border-radius: var(--btn-radius);
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition);
}

@media (min-width: 769px) {
    .c-btn {
        font-size: 15px;
    }
}

/* SVG アイコン */
.c-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Primary: 塗りつぶし */
.c-btn--primary {
    background: var(--primary);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.c-btn--primary:hover {
    color: #fff !important;
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Accent: アクセントカラー */
.c-btn--accent {
    background: var(--accent);
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.c-btn--accent:hover {
    color: #fff !important;
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Outline: 白枠線（ヒーロー等の暗い背景用） */
.c-btn--outline {
    border-color: #fff;
    color: #fff !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.c-btn--outline:hover {
    color: var(--primary-dark) !important;
    background: #fff;
    transform: translateY(-2px);
}

/* Outline-dark: 色付き枠線（明るい背景用） */
.c-btn--outline-dark {
    border-color: var(--primary);
    color: var(--primary) !important;
    text-decoration: none !important;
    background: transparent;
}

.c-btn--outline-dark:hover {
    color: #fff !important;
    background: var(--primary);
}

/* ================================================================
   Component — c-card / c-card-grid
   ================================================================
   汎用カード + グリッドコンテナ。
   参照: component-css.md §4
   ================================================================ */

/* グリッドコンテナ */
.c-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 641px) {
    .c-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 901px) {
    .c-card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}

/* カード本体 */
.c-card {
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.c-card a {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.c-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* 画像エリア */
.c-card__image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.c-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f3f4f6;
    transition: transform 0.4s ease;
}

.c-card:hover .c-card__image img {
    transform: scale(1.05);
}

/* バッジ */
.c-card__badge {
    position: absolute;
    padding: 5px 14px 4px;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border-radius: 20px;
    z-index: 2;
}

@media (min-width: 769px) {
    .c-card__badge {
        top: 16px;
        left: 16px;
        font-size: 13px;
    }
}

/* カード本文 */
.c-card__body {
    padding: 20px;
}

.c-card__title {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
}

@media (min-width: 769px) {
    .c-card__title {
        font-size: 18px;
    }
}

.c-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
    font-size: clamp(15px, 1.9vw, 16px);
    line-height: 1.6;
    color: var(--text);
}

/* ================================================================
   Component — c-accordion
   ================================================================
   開閉パネル。2つの制御方式をサポート:
     A) <details> ネイティブ（component-css.md §6 準拠）
     B) .is-open クラス＋JS制御（不動産⑦実装）
   参照: component-css.md §6
   ================================================================ */

.c-accordion__item {
    margin-bottom: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.c-accordion__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: clamp(15px, 1.8vw, 16px);
    font-weight: 600;
    color: var(--text);
    list-style: none;
    cursor: pointer;
    transition: background 0.2s;
}

/* <details> マーカー非表示 */
.c-accordion__question::-webkit-details-marker {
    display: none;
}

.c-accordion__question:hover {
    background: #f9fafb;
}

/* 開閉アイコン（疑似要素） */
.c-accordion__question::after {
    content: '+';
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s;
}

/* 方式A: <details> ネイティブ */
.c-accordion__item[open] .c-accordion__question::after {
    content: '\2212';
    transform: rotate(180deg);
}

/* 方式B: .is-open クラス＋JS制御 */
.c-accordion__item.is-open .c-accordion__question::after {
    content: '\2212';
    transform: rotate(180deg);
}

/* 回答エリア */
.c-accordion__answer {
    padding: 0 24px 24px;
    font-size: clamp(15px, 1.8vw, 16px);
    line-height: 1.8;
    color: var(--text);
}

/* 方式B: JS制御時のデフォルト非表示 */
.c-accordion__item:not([open]):not(.is-open) .c-accordion__answer {
    display: none;
}

/* ================================================================
   Component — c-info-table
   ================================================================
   ラベル + 値のテーブルレイアウト（会社概要等）。
   参照: component-css.md §7
   ================================================================ */

.c-info-table {
    width: 90%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
}

.c-info-table__row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

@media (min-width: 769px) {
    .c-info-table__row {
        gap: 24px;
        padding: 20px 0;
    }
}

.c-info-table__label {
    flex-shrink: 0;
    width: 80px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

@media (min-width: 769px) {
    .c-info-table__label {
        width: 140px;
    }
}

.c-info-table__value {
    flex: 1;
    min-width: 0;
    font-size: clamp(15px, 1.8vw, 16px);
    line-height: 1.7;
    color: var(--text);
}

/* ================================================================
   Component — c-panel
   ================================================================
   画像 + テキストの2カラムパネル。--reverse で左右反転。
   参照: component-css.md §3
   ================================================================ */

.c-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    align-items: start;
}

@media (min-width: 769px) {
    .c-panel {
        grid-template-columns: 4fr 6fr;
        gap: 48px;
    }
}

/* 左右反転 */
@media (min-width: 769px) {
    .c-panel--reverse {
        direction: rtl;
    }

    .c-panel--reverse>* {
        direction: ltr;
    }
}

.c-panel__img {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(26, 58, 92, 0.12);
}

.c-panel__img img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.c-panel__img:hover img {
    transform: scale(1.03);
}

.c-panel__content {
    padding-top: 8px;
}

@media (min-width: 769px) {
    .c-panel__content {
        padding-top: 16px;
    }
}

.c-panel__content h3 {
    margin-bottom: 20px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--text);
}

.c-panel__content p {
    font-size: clamp(15px, 1.8vw, 16px);
    line-height: 1.8;
    color: var(--text);
}

/* ================================================================
   Component — c-stat-box
   ================================================================
   統計カード（実績数値等）。
   ================================================================ */

.c-stat-box {
    text-align: center;
    padding: 24px 16px;
}

.c-stat-box__value {
    display: block;
    font-family: var(--font-num);
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

.c-stat-box__unit {
    font-size: clamp(14px, 1.8vw, 16px);
    font-weight: 600;
    color: var(--primary);
}

.c-stat-box__label {
    display: block;
    margin-top: 8px;
    font-size: clamp(13px, 1.5vw, 14px);
    color: var(--text-light);
}

/* ================================================================
   Component — c-banner
   ================================================================
   見出し + 説明文 + CTAボタンの横並びバナーカード。
   複数ページで再利用可能な汎用コンポーネント。
   ================================================================ */

.c-banner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 28px;
    background: var(--white);
    border: 1px solid rgba(27, 58, 92, 0.6);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (min-width: 769px) {
    .c-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 40px;
        padding: 40px 48px;
    }
}

.c-banner__body {
    flex: 1;
    min-width: 0;
}

.c-banner__title {
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 700;
    line-height: 1.5;
    color: var(--primary);
}

.c-banner__desc {
    font-size: clamp(15px, 1.6vw, 16px);
    line-height: 1.8;
    color: var(--text-light);
}

.c-banner__desc span {
    font-weight: 700;
    color: var(--text);
}

.c-banner__action {
    flex-shrink: 0;
    text-align: center;
}

.c-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-base);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #fff !important;
    text-decoration: none !important;
    background: var(--primary);
    border: none;
    border-radius: var(--btn-radius);
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.c-banner__btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: #fff;
}

.c-banner__btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(27, 58, 92, 0.3);
}

/* ================================================================
   CMS — h2.tit
   ================================================================
   CMSが出力するH2タイトルのスタイル。
   ================================================================ */
h2.tit {
    margin: 0 auto 30px auto;
    padding: 5px 8px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.4;
    color: #333;
    background-color: transparent !important;
}

@media screen and (min-width:768px) {
    h2.tit {
        max-width: 1140px;
        margin: 0 auto 50px auto;
        font-size: clamp(24px, 30 / 1140 * 100vw, 30px);
    }
}


/* ━━━━━━━━━━━━━━━━

 ■ レイアウト

━━━━━━━━━━━━━━━━ */

/* ================================================================
   Layout — l-container
   ================================================================
   ページ幅制限コンテナ。
   max-width: 1140px（テナントCSS変数で上書き可）
   ================================================================ */

.l-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================================
   Layout — l-header
   ================================================================
   固定ヘッダー + ハンバーガー + モバイルメニュー。
   l-header: padding-top でヘッダー高さ分のスペースを確保。
   l-header__wrapper: position: fixed で画面上部に固定。
   ================================================================ */

header {
    margin-bottom: 0 !important;
}

.l-header {
    position: relative;
    padding-top: 64px;
}

@media (min-width: 769px) {
    .l-header {
        padding-top: 72px;
    }
}

.l-header__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.l-header.is-scrolled .l-header__wrapper {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.l-header__inner {
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 769px) {
    .l-header__inner {
        height: 72px;
        padding: 0 24px;
    }
}

.l-header__logo-img {
    height: 32px;
    width: auto;
}

@media (min-width: 769px) {
    .l-header__logo-img {
        height: 38px;
    }
}

.l-header__nav {
    display: none;
}

@media (min-width: 1025px) {
    .l-header__nav {
        display: flex;
        gap: 28px;
    }

    .l-header__nav a {
        font-size: 14px;
        font-weight: 500;
        text-decoration: none !important;
        color: var(--text);
        transition: color 0.3s;
    }

    .l-header__nav a:hover {
        color: var(--primary);
    }
}

.l-header__cta {
    display: none;
}

@media (min-width: 1025px) {
    .l-header__cta {
        display: inline-flex;
        padding: 10px 24px;
        font-size: 13px;
    }
}

.l-header__hamburger {
    position: relative;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

@media (min-width: 1025px) {
    .l-header__hamburger {
        display: none;
    }
}

.l-header__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

.l-header.is-menu-open .l-header__logo {
    visibility: hidden;
}

.l-header__hamburger.is-active span {
    background: #fff;
}

.l-header__hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.l-header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.l-header__hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.l-header__mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(30, 42, 58, 0.98);
    z-index: 999;
    padding: 80px 24px 24px;
}

.l-header__mobile-menu.is-active {
    display: block;
}

.l-header__mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.l-header__mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    text-decoration: none !important;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.2s;
}

.l-header__mobile-nav a:hover {
    opacity: 0.8;
}

.l-header__mobile-cta {
    display: block;
    margin-top: 16px;
    padding: 16px;
    text-align: center;
    font-weight: 700;
    color: #fff !important;
    background: var(--accent);
    border-radius: var(--btn-radius);
    border-bottom: none !important;
}

/* ================================================================
   Layout — l-footer
   ================================================================
   フッター + コピーライト。
   ================================================================ */

.l-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 20px 30px;
}

.l-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 1140px;
    margin: 0 auto;
}

@media (min-width: 769px) {
    .l-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 56px;
    }
}

.l-footer__logo-img {
    height: 32px;
    width: auto;
    margin-bottom: 16px;
}

.l-footer__brand-desc {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
}

.l-footer__heading {
    margin-bottom: 7px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--footer-accent);
}

.l-footer__nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.l-footer__nav a {
    font-size: 14px;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.l-footer__nav a:hover {
    opacity: 1;
}

/* コピーライト（footer外に配置 — システム要件） */
.copyright {
    max-width: none;
    margin: 0;
    padding: 3px 20px 58px 20px !important;
    background: var(--charcoal) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 769px) {
    .copyright {
        padding: 6px 20px 10px 20px !important;
    }
}

/* ================================================================
   Layout — l-fixed-cta
   ================================================================
   SP固定ボタン（電話 + メール）。
   ================================================================ */

.l-fixed-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 900;
}

@media (min-width: 769px) {
    .l-fixed-cta {
        display: none;
    }
}

.l-fixed-cta__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
}

.l-fixed-cta__btn svg {
    width: 20px;
    height: 20px;
}

.l-fixed-cta__btn--tel {
    background: var(--primary);
}

.l-fixed-cta__btn--mail {
    background: var(--accent);
}

/* ================================================================
   Global — l-page-top
   ================================================================
   ページトップボタン（固定表示、右下）。
   SP: l-fixed-cta の上に配置（bottom: 80px）
   PC: 右下（bottom: 30px）
   ================================================================ */

.l-page-top {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 20px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
    z-index: 800;
}

@media (min-width: 769px) {
    .l-page-top {
        display: flex;
    }

    .l-page-top.is-show {
        opacity: 1;
        visibility: visible;
    }
}

.l-page-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.l-page-top svg {
    width: 24px;
    height: 24px;
}


/* ━━━━━━━━━━━━━━━━

 ■ セクション固有

━━━━━━━━━━━━━━━━ */

/* ================================================================
   Section — s-hero（中央配置・相続相談）
   ================================================================ */

.s-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/souzoku-soudan/hero-bg.jpg') center/cover no-repeat;
    padding: 60px 0 80px;
}

.s-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 38, 64, 0.85) 0%, rgba(27, 58, 92, 0.7) 50%, rgba(27, 58, 92, 0.5) 100%);
    z-index: 1;
}

.s-hero .l-container {
    position: relative;
    z-index: 2;
}

.s-hero__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

@media (min-width: 769px) {
    .s-hero__content {
        max-width: 740px;
    }
}

.s-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 4.5vw, 42px);
    font-weight: 900;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #fff;
    margin-bottom: 20px;
}

.s-hero__text {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

.s-hero__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

@media (min-width: 769px) {
    .s-hero__actions {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
}

/* ================================================================
   Section — s-catchcopy
   ================================================================
   ヒーロー直下のキャッチコピー帯。
   ダークブルー背景にセンター配置の1〜2行メッセージ。
   ================================================================ */

.s-catchcopy {
    background: var(--primary);
    padding: 40px 0;
    text-align: center;
}

@media (min-width: 769px) {
    .s-catchcopy {
        padding: 48px 0;
    }
}

.s-catchcopy__text {
    display: inline-block;
    padding: 8px 0;
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.8vw, 24px);
    font-weight: 700;
    line-height: 1.9;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.9);
}

/* ================================================================
   Section — s-worry
   ================================================================ */

.s-worry {
    padding: 72px 12px;
}

@media (min-width: 769px) {
    .s-worry {
        padding: 100px 12px;
    }
}

.s-worry__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.s-worry__item {
    position: relative;
    padding: 24px 24px 24px 52px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--accent);
}

.s-worry__item-icon {
    position: absolute;
    top: 29px;
    left: 18px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

@media (min-width: 769px) {
    .s-worry__item-icon {
        top: 31px;
    }
}

.s-worry__item-title {
    margin-bottom: 6px;
    font-family: var(--font-heading);
    font-size: clamp(16px, 2vw, 18px);
    font-weight: 700;
    color: var(--text);
}

.s-worry__item-text {
    font-size: clamp(15px, 1.6vw, 16px);
    line-height: 1.8;
    color: var(--text);
}

/* ================================================================
   Section — s-service（アクセント付き縦型カード 2×2）
   ================================================================ */

.s-service {
    padding: 72px 12px;
}

@media (min-width: 769px) {
    .s-service {
        padding: 100px 12px;
    }
}

/* グリッド: SP 1列 → PC 2×2 */
.s-service__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 769px) {
    .s-service__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* カード */
.s-service__card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.s-service__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

/* 画像エリア */
.s-service__card-img {
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.s-service__card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f3f4f6;
    transition: transform 0.4s ease;
}

.s-service__card:hover .s-service__card-img img {
    transform: scale(1.05);
}

/* テキストエリア（上辺アクセントボーダー） */
.s-service__card-body {
    padding: 20px 24px 24px 24px;
    border-top: 3px solid var(--accent);
}

@media (min-width: 769px) {
    .s-service__card-body {
        padding: 22px 28px 28px 28px;
    }
}

/* タイトル */
.s-service__card-title {
    margin-bottom: 10px;
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 700;
    color: var(--text);
}

/* 説明テキスト */
.s-service__card-text {
    font-size: clamp(15px, 1.6vw, 16px);
    line-height: 1.8;
    color: var(--text);
}

/* ================================================================
   Section — s-reason
   ================================================================ */

.s-reason {
    padding: 72px 12px;
}

@media (min-width: 769px) {
    .s-reason {
        padding: 100px 12px;
    }
}

/* パネル間の余白 + グリッド比率オーバーライド */
.s-reason .c-panel+.c-panel {
    margin-top: 48px;
}

@media (min-width: 769px) {
    .s-reason .c-panel {
        grid-template-columns: 1fr 1fr;
    }

    .s-reason .c-panel+.c-panel {
        margin-top: 64px;
    }
}

/* 番号 */
.s-reason__num {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-num);
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.05em;
    color: var(--primary);
}

/* タイトル */
.s-reason__title {
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-size: clamp(20px, 2.8vw, 24px);
    font-weight: 700;
    color: var(--text);
}

/* 説明テキスト */
.s-reason__text {
    font-size: clamp(14px, 1.6vw, 16px);
    line-height: 1.8;
    color: var(--text);
}

/* ================================================================
   Section — s-knowledge（独自：相続の基礎知識タイムライン）
   ================================================================ */

.s-knowledge {
    padding: 72px 12px;
}

@media (min-width: 769px) {
    .s-knowledge {
        padding: 100px 12px;
    }
}

.s-knowledge__timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 36px;
}

/* タイムライン縦線（SP/PC共通） */
.s-knowledge__timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 11px;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

@media (min-width: 769px) {
    .s-knowledge__timeline {
        gap: 40px;
        padding-left: 0;
    }

    .s-knowledge__timeline::before {
        left: 139px;
    }
}

/* 各アイテム（枠線・背景なし） */
.s-knowledge__item {
    position: relative;
    padding: 0;
}

/* ドット（SP/PC共通） */
.s-knowledge__item::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 3px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--accent);
    z-index: 1;
}

/* PC: アイテムを右にオフセット */
@media (min-width: 769px) {
    .s-knowledge__item {
        margin-left: 172px;
    }

    .s-knowledge__item::before {
        left: -40px;
        top: 11px;
        width: 14px;
        height: 14px;
    }
}

/* 期間ラベル（SP: 上部テキスト表示） */
.s-knowledge__item-period {
    display: block;
    margin-bottom: 5px;
    font-family: var(--font-base);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--accent);
}

/* PC: 期間ラベルをタイムライン左側に絶対配置 */
@media (min-width: 769px) {
    .s-knowledge__item-period {
        position: absolute;
        left: -172px;
        top: 3px;
        width: 120px;
        margin-bottom: 0;
        font-size: 15px;
        line-height: 1.8;
        text-align: right;
        color: var(--text);
    }
}

.s-knowledge__item-title {
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 700;
    color: var(--text);
}

@media (min-width: 769px) {
    .s-knowledge__item-title {
        margin-bottom: 5px;
    }
}

.s-knowledge__item-text {
    font-size: clamp(15px, 1.5vw, 16px);
    line-height: 1.8;
    color: var(--text);
}


.s-knowledge__note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 900px;
    margin: 40px auto 0;
}

.s-knowledge__note-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    fill: var(--accent);
}

.s-knowledge__note-text {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.8;
    color: var(--text-light);
}


/* ================================================================
   Section — s-flow
   ================================================================ */

.s-flow {
    padding: 72px 12px;
}

@media (min-width: 769px) {
    .s-flow {
        padding: 100px 12px;
    }
}

/* リスト */
.s-flow__list {
    max-width: 800px;
    margin: 0 auto;
}

/* 各ステップ: 横並び */
.s-flow__step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.s-flow__step:first-child {
    padding-top: 0;
}

.s-flow__step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

@media (min-width: 769px) {
    .s-flow__step {
        gap: 40px;
        padding: 36px 0;
    }
}

/* 番号エリア */
.s-flow__step-num {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 56px;
}

.s-flow__step-label {
    display: block;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.s-flow__step-number {
    display: block;
    font-family: var(--font-num);
    font-size: clamp(32px, 5vw, 42px);
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
}

/* テキストエリア */
.s-flow__step-body {
    flex: 1;
    padding-top: 4px;
}

.s-flow__step-title {
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.5vw, 20px);
    font-weight: 700;
    color: var(--text);
}

.s-flow__step-text {
    font-size: clamp(15px, 1.6vw, 16px);
    line-height: 1.8;
    color: var(--text);
}

/* ================================================================
   Section — s-case
   ================================================================ */

.s-case {
    padding: 72px 12px;
}

@media (min-width: 769px) {
    .s-case {
        padding: 100px 12px;
    }
}

/* カード枠線（c-card構造用 — コメントアウト版HTML向け） */
.s-case .c-card {
    border: 1px solid var(--border);
}

/* タグ群（c-card構造用） */
.s-case__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.s-case__tags span,
.s-case__tags ._tag {
    display: inline-block;
    padding: 3px 12px;
    font-size: clamp(12px, 1.5vw, 13px);
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border-radius: 4px;
}

/* 「詳しく見る」リンクテキスト */
.c-card__more {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.3s ease;
}

.c-card__more::after {
    content: '→';
    display: inline-block;
    transition: transform 0.3s ease;
}

.c-card:hover .c-card__more::after {
    transform: translateX(4px);
}

/* --- s-case__card 構造 --- */

/* グリッド: SP 1列 → PC 3列 */
.s-case__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 641px) {
    .s-case__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 901px) {
    .s-case__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 35px;
    }
}

/* カード本体 */
.s-case__card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.s-case__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

/* 画像エリア */
.s-case__card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.s-case__card-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f3f4f6;
    transition: transform 0.4s ease;
}

.s-case__card:hover .s-case__card-img img {
    transform: scale(1.03);
}

/* タグ群（画像上にオーバーレイ） */
.s-case__card-img .s-case__tags {
    position: absolute;
    left: 12px;
    bottom: 12px;
    margin-bottom: 0;
    z-index: 2;
}

.s-case__card-img .s-case__tags span {
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

/* カード本文 */
.s-case__card-body {
    padding: 20px;
}

/* タイトル */
.s-case__card-title {
    margin: 0 0 16px;
    font-family: var(--font-heading);
    font-size: clamp(17px, 2.2vw, 19px);
    font-weight: 700;
    color: var(--text);
}

/* 課題・提案の構造化エリア */
.s-case__detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.s-case__detail-block {
    padding-left: 14px;
    border-left: 3px solid var(--primary);
}

.s-case__detail-label {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.s-case__detail-text {
    margin: 0;
    font-size: clamp(15px, 1.8vw, 16px);
    line-height: 1.7;
    color: var(--text);
}

/* ================================================================
   Section — s-voice
   ================================================================ */

.s-voice {
    padding: 72px 12px;
}

@media (min-width: 769px) {
    .s-voice {
        padding: 100px 12px;
    }
}

.s-voice__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 769px) {
    .s-voice__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

/* カード */
.s-voice__card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

/* 右下の大きな装飾引用符 */
.s-voice__card::after {
    content: '"';
    position: absolute;
    right: -8px;
    bottom: -20px;
    font-family: serif;
    font-size: 120px;
    font-weight: 700;
    line-height: 1;
    color: rgba(0, 0, 0, 0.03);
    pointer-events: none;
}

.s-voice__card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

/* テキスト（左上に引用符アイコン） */
.s-voice__text {
    position: relative;
    flex: 1;
    padding-top: 32px;
    padding-left: 4px;
    margin-bottom: 16px;
    font-size: clamp(15px, 1.8vw, 16px);
    line-height: 1.8;
    color: var(--text);
}

.s-voice__text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: 0;
    font-family: serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

/* フッター（区切り線付き） */
.s-voice__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.s-voice__tag {
    padding: 3px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--accent-light);
    border-radius: 4px;
}

.s-voice__name {
    font-size: clamp(15px, 1.8vw, 16px);
    font-weight: 700;
    color: var(--text);
}

.s-voice__meta {
    font-size: clamp(14px, 1.5vw, 15px);
    color: var(--text-light);
}

/* ================================================================
   Section — s-faq
   ================================================================ */

.s-faq {
    padding: 72px 12px;
}

@media (min-width: 769px) {
    .s-faq {
        padding: 100px 12px;
    }
}

/* アコーディオン幅制限 */
.s-faq .c-accordion {
    max-width: 900px;
    margin: 0 auto;
}

/* ================================================================
   Section — s-contact
   ================================================================ */

.s-contact {
    padding: 72px 12px;
    background: linear-gradient(180deg, #031A36 0%, #1c304a 100%);
    color: #fff;
}

@media (min-width: 769px) {
    .s-contact {
        padding: 100px 12px;
    }
}

.s-contact .c-section-title__en {
    color: rgba(255, 255, 255, 0.6);
}

.s-contact .c-section-title__ja {
    color: #fff;
}

.s-contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 769px) {
    .s-contact__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }
}

.s-contact__card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.s-contact__card-label {
    font-size: clamp(15px, 1.8vw, 16px);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.s-contact__card-tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Century Gothic", "Arial", sans-serif;
    font-size: clamp(22px, 3vw, 26px);
    font-weight: 700;
    text-decoration: none !important;
    color: #fff !important;
    letter-spacing: 0.05em;
    transition: opacity 0.2s;
}

.s-contact__card-tel svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.s-contact__card-tel:hover {
    opacity: 0.8;
}

/* ボタン（チャット・来店予約共通） */
.s-contact__card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary) !important;
    text-decoration: none !important;
    background: #fff;
    border-radius: var(--btn-radius);
    transition: var(--transition);
}

.s-contact__card-btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.s-contact__card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* アクセントボタン（チャット相談用） */
.s-contact__card-btn--accent {
    background: var(--accent);
    color: #fff !important;
}

.s-contact__card-btn--accent:hover {
    background: color-mix(in srgb, var(--accent), black 20%);
}

/* ボタン（来店用） */
.s-contact__card-btn--reserve {
    background: #DAA929;
    color: #fff !important;
}

.s-contact__card-btn--reserve:hover {
    background: color-mix(in srgb, #DAA929, black 20%);
}

.s-contact__card-note {
    margin-top: 12px;
    font-size: clamp(14px, 1.6vw, 15px);
    color: rgba(255, 255, 255, 0.6);
}

/* ================================================================
   Section — s-ai-assessment
   ================================================================ */

.s-ai-assessment {
    padding: 72px 12px 100px;
}

@media (min-width: 769px) {
    .s-ai-assessment {
        padding: 100px 12px;
    }
}

/* ================================================================
   Section — s-company
   ================================================================ */

.s-company {
    padding: 72px 12px;
}

@media (min-width: 769px) {
    .s-company {
        padding: 100px 12px;
    }
}

.s-company__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 769px) {
    .s-company__inner {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: start;
    }
}

.s-company__img {
    border-radius: var(--radius);
    overflow: hidden;
}

.s-company__img img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background-color: #f3f4f6;
}