@charset "UTF-8";

/* ==========================================================================
   Real Max Co.,Ltd. Official Site - Static HTML Style Sheet (style.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 変数とグローバル設定（Variables & Global Settings）
   -------------------------------------------------------------------------- */
:root {
    --primary-color: #1f296a;     /* テレ東グループのコーポレートカラー：ネイビー */
    --accent-color: #e8465a;      /* テレ東グループのコーポレートカラー：ピンク */
    --text-color: #333333;        /* ダークグレー */
    --text-muted: #666666;        /* サブテキスト用：薄いグレー */
    --text-light: #fff;           /* サブテキスト用：白 */
    --bg-light: #f8f9fa;          /* セクション背景用：ライトグレー */
    --bg-white: #ffffff;          /* 白色 */
    --border-color: #dddddd;      /* 枠線用グレー */
    --font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

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

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.center {
    text-align: center;
}

/* 共通ヘルパー */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* --------------------------------------------------------------------------
   2. ヘッダーナビゲーション（WAI-ARIA連動型・スライドフェードアニメーション対応）
   -------------------------------------------------------------------------- */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.header-logo a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.logo-main {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    letter-spacing: 0.05em;
    line-height: 1.2;
    max-width: 180px;
}

.logo-sub {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-top: 2px;
}

/* PC用メニューレイアウト */
.header-nav {
    display: block;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    padding: 8px 0;
}

/* リンクの下線アニメーション */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform var(--transition-speed) ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--accent-color);
}

/* お問い合わせボタン（ナビゲーション内） */
.nav-link-btn {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 10px 20px !important;
    border-radius: 4px;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.nav-link-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-light) !important;
}

.nav-link-btn::after {
    display: none;
}

/* モバイル用ハンバーガーボタン (通常時は隠す) */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
}

.nav-toggle-bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all var(--transition-speed) ease;
}

/* --------------------------------------------------------------------------
   【モバイルヘッダーレスポンシブ】（768px 以下）
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* モバイルハンバーガーボタンの有効化 */
    .nav-toggle {
        display: block;
    }

    /* モバイル用ナビゲーション：既存の display: none を上書き解除 */
    .header-nav {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        border-top: 1px solid var(--border-color);
        padding: 20px;

        /* 初期状態：隠しておく（透明 ＆ クリック無効 ＆ 10px上部に隠す） */
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        
        /* 滑らかなスライドフェード */
        transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease, transform var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* 横並びを縦並びに */
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f1f1f1;
        color: var(--primary-color);
    }

    .nav-link::after {
        display: none;
    }

    .nav-link-btn {
        text-align: center;
        border-bottom: none;
    }

    /* --- スマートWAI-ARIA（aria-expanded="true"）連動制御 --- */
    .nav-toggle[aria-expanded="true"] ~ .header-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
        opacity: 0;
    }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* --------------------------------------------------------------------------
   3. ファーストビュー（FV）
   -------------------------------------------------------------------------- */
.fv {
    position: relative;
    background-image: url('../images/fv.png');
    background-size: cover;
    background-position: center;
    color: var(--bg-white);
    padding: 240px 0;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 768px) {
    .sp-only { display: block; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; max-width: 280px; }
}

/* --------------------------------------------------------------------------
   4. グリッドシステムとカード（Layout Grids & Cards）
   -------------------------------------------------------------------------- */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.card-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.btn-more {
    display: inline-block;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 15px;
}

@media (max-width: 768px) {
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --------------------------------------------------------------------------
   5. お知らせリスト（Information List）
   -------------------------------------------------------------------------- */
.info-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.info-item {
    border-top: 1px solid var(--bg-light);
    border-bottom: 1px solid var(--bg-light);
    padding: 20px 12px;
    display: flex;
    align-items: flex-start;
}

.info-item:nth-child(odd) {
    background-color: var(--bg-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-date {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-muted);
    min-width: 120px;
    padding-top: 3px;
}

.info-desc {
    flex-grow: 1;
    font-size: 15px;
    line-height: 1.7;
}


/* --------------------------------------------------------------------------
   6. 会社概要テーブル（Profile Table Styling）
   -------------------------------------------------------------------------- */
.profile-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.profile-table tr {
    border-bottom: 1px solid var(--border-color);
}

.profile-table tr:last-child {
    border-bottom: none;
}

.profile-table th {
    padding: 18px 20px;
    background-color: var(--bg-light);
    width: 240px; /* PCでのラベルの横幅 */
    text-align: left;
    font-weight: bold;
    color: var(--primary-color);
    vertical-align: top;
}

.profile-table td {
    padding: 18px 20px;
    color: var(--text-color);
    vertical-align: top;
    line-height: 1.8;
}

/* モバイル表示でのテーブル最適化 */
@media (max-width: 768px) {
    .profile-table,
    .profile-table tbody,
    .profile-table tr,
    .profile-table th,
    .profile-table td {
        display: block; /* すべてブロック要素にして縦積みにする */
        width: 100% !important;
    }

    .profile-table tr {
        border-bottom: 1px solid var(--border-color);
        padding: 12px 0;
    }

    .profile-table tr:last-child {
        border-bottom: none;
    }

    .profile-table th {
        background-color: transparent; /* 背景のグレーを消してスッキリ */
        padding: 5px 20px 2px; /* 余白をスマートに調整 */
        font-size: 14px;
        color: var(--primary-color);
    }

    .profile-table td {
        padding: 0 20px 5px;
        font-size: 15px;
        color: var(--text-color);
    }
}


/* --------------------------------------------------------------------------
   7. 会社沿革：タイムライン
   -------------------------------------------------------------------------- */
.timeline-container {
    position: relative;
    padding-left: 30px;
    margin: 40px auto;
    border-left: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

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

/* タイムラインの丸ポインター */
.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px; /* 線の太さと余白に合わせて調整 */
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid var(--bg-white);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-year {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.timeline-content {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline-container {
        padding-left: 25px;
        margin: 30px auto;
    }
    .timeline-item::before {
        left: -32px;
        top: 5px;
        width: 10px;
        height: 10px;
    }
    .timeline-year {
        font-size: 16px;
    }
    .timeline-content {
        font-size: 14px;
    }
}



/* --------------------------------------------------------------------------
   8. GoogleMap レスポンシブ
   -------------------------------------------------------------------------- */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 400px; /* PCでの最適な高さ */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 20px;
}

.map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .map-wrapper {
        height: 250px; /* スマホで見やすい高さに縮小 */
    }
}


/* --------------------------------------------------------------------------
   9. ゴルフ事業
   -------------------------------------------------------------------------- */
.business-page {
    width: 100%;
    max-width: 1000px; /* 現行サイトの幅1000px制限に準拠 */
    margin: 0 auto;
    padding: 40px 0;
    color: var(--text-color);
}

/* メインバナー */
.business-banner {
    text-align: center;
    margin-bottom: 50px;
}

.business-banner .banner-lead {
    display: none; /* 現行サイトでは画像のみをバナーとして表示しているため非表示 */
}

.business-banner .banner-img {
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 4px;
}

/* 共通セクション */
.business-section {
    margin-bottom: 60px;
}

.business-section .block {
    background-color: var(--bg-white);
    padding: 20px 0;
}

.business-section .main-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ec_one（上部タイトル / 下部左右2カラム：左テキスト・右画像） */
#ec_one .title-img-wrapper {
    text-align: center;
    margin-bottom: 30px;
}

#ec_one .section-title-img {
    max-width: 100%;
    height: auto;
}

#ec_one .content-wrapper {
    display: flex;
    flex-direction: row-reverse; /* PCでは画像を右側に配置 */
    align-items: center;
    gap: 40px;
}

#ec_one .block-img {
    flex: 0 0 400px; /* PCでの画像幅（最大400px）を確保 */
}

#ec_one .block-text {
    flex: 1;
}

#ec_one .lead-text {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.8;
    margin-bottom: 20px;
}

#ec_one .desc-text,
#ec_three .desc-text {
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 1em;
}

/* ec_two（縦書きマルチレイアウト：右からタイトル、縦書き文、バイヤー写真） */
#ec_two .vertical-layout {
    display: flex;
    flex-direction: row-reverse; /* 右から左へ向かう流れるような和風レイアウトを再現 */
    justify-content: flex-start;
    align-items: flex-start;
    gap: 40px;
    height: 520px; /* 縦書き用の高さを固定 */
}

#ec_two .block-title {
    flex: 0 0 auto;
}

#ec_two .title-img-vertical {
    height: 420px; /* 見出し画像の高さを縦書きに合わせて制限 */
    width: auto;
}

#ec_two .vertical-text {
    flex: 1;
    writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    text-orientation: mixed;
    height: 540px;
    font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
    font-size: 15px;
    line-height: 2.3;
    letter-spacing: 0.08em;
    padding: 10px 0;
}

#ec_two .vertical-text p {
    margin: 0;
    padding: 0;
}

#ec_two .block-img {
    flex: 0 0 350px;
    align-self: center; /* 画像は高さの中央に配置 */
}

/* ec_three（左テキスト・右画像レイアウト） */
#ec_three .horizontal-layout {
    display: flex;
    align-items: center;
    gap: 40px;
}

#ec_three .block-box {
    flex: 0 0 640px;
}

#ec_three .block-title {
    margin-bottom: 20px;
}

#ec_three .section-title-img {
    max-width: 100%;
    height: auto;
}

#ec_three .block-img {
    flex: 0 0 400px;
}

/* 下部バナーリンク */
.business-footer-action {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}

.business-footer-action .footer-banner-img {
    max-width: 100%;
    height: auto;
    transition: transform var(--transition-speed) ease;
}

.business-footer-action .footer-banner-img:hover {
    transform: translateY(-3px);
}

/* レスポンシブ（スマホ/タブレット向けサイズ調整） */
@media screen and (max-width: 1024px) {
    #ec_one .block-img,
    #ec_three .block-img {
        flex: 0 0 320px;
    }
}

@media screen and (max-width: 768px) {
    .business-page {
        padding: 20px 15px;
    }

    /* ec_one：1カラム化 */
    #ec_one .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    #ec_one .block-img {
        flex: none;
        width: 100%;
    }

    /* ec_two：縦書きをスマホに最適な「横書き」へ自動フォールバック */
    #ec_two .vertical-layout {
        flex-direction: column;
        height: auto;
        gap: 25px;
    }
    #ec_two .title-img-vertical {
        height: auto;
        max-width: 100%; /* 横並び時の見出しとして自動拡大 */
    }
    #ec_two .vertical-text {
        writing-mode: horizontal-tb; /* スマホでは通常の横書きに変更 */
        height: auto;
        padding: 0;
        font-family: var(--font-family); /* 共通ゴシックフォントへ戻す */
        font-size: 15px;
        line-height: 1.8;
    }
    #ec_two .block-img {
        flex: none;
        width: 100%;
    }

    /* ec_three：1カラム化 */
    #ec_three .horizontal-layout {
        flex-direction: column;
        gap: 25px;
    }
    #ec_three .block-img {
        flex: none;
        width: 100%;
    }
}


/* --------------------------------------------------------------------------
   10. 受賞履歴：`pages/prizehistory.html` 専用レイアウト（絵文字・アイコンなし）
   -------------------------------------------------------------------------- */
.award-intro {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
    line-height: 1.8;
    color: var(--text-muted);
}

.award-category-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.award-grid {
    gap: 30px;
    margin-bottom: 60px;
}

/* 左側：経産省など（ゴールド） */
.award-card-left {
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    background-color: var(--bg-light);
}

/* 右側：ニュービジネスなど（プライマリ） */
.award-card-right {
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    background-color: var(--bg-light);
}

/* 下部：各ECモール（中央配置） */
.award-card-center {
    text-align: center;
    padding: 40px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

.award-badge {
    font-weight: bold;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 15px;
}

.badge-accent {
    background-color: var(--accent-color);
    color: var(--text-light);
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.award-card-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.award-reason-label {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-muted);
    margin: 10px auto;
}

.award-reason-text {
    font-size: 15px;
    line-height: 1.8;
}

.award-mall-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.award-main-prize {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.award-mall-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-align: left;
}

.award-metrics-box {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    text-align: left;
}

.award-metrics-list {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 2;
}

.award-metrics-list .metrics-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding: 6px 0;
}

.award-metrics-list .metrics-item:first-child {
    padding-top: 0;
}

.award-metrics-list .metrics-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.award-metrics-list .metrics-count {
    font-weight: bold;
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .award-intro {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .award-category-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .award-grid {
        grid-template-columns: 1fr; /* スマホ時は1列に */
        gap: 20px;
        margin-bottom: 40px;
    }
    .award-card-left,
    .award-card-right,
    .award-card-center {
        padding: 20px 15px;
    }
    .award-card-title {
        font-size: 16px;
    }
    .award-mall-title {
        font-size: 18px;
    }
}


/* ==========================================================================
   11. プライバシーポリシー
   ========================================================================== */
#privacy-section {
    max-width: 900px; /* 規約文章を読みやすくするための、少しタイトな幅制限 */
    margin: 0 auto;
}

/* 導入文章 */
.privacy-intro {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 40px;
    padding: 0 10px;
}

/* 規約カードコンテナ */
.privacy-content-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 各項目のカードデザイン */
.privacy-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 24px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: transform var(--transition-speed) ease;
}

/* 各項目小見出し（左にアクセントカラーの縦線） */
.privacy-sub-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color); /* ピンク/赤のアクセント線 */
    padding-left: 12px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* 各項目の本文 */
.privacy-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
    padding-left: 16px; /* 縦線の位置とインデントを揃えて美しく */
}

.contact-info-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
}

.contact-info-text strong {
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .privacy-intro {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .privacy-card {
        padding: 20px;
    }
    
    .privacy-sub-title {
        font-size: 16px;
    }
    
    .privacy-text {
        font-size: 13px;
        padding-left: 0; /* スマホでは横幅を広く取るため左パディングをカット */
        margin-top: 10px;
    }
    
    .privacy-contact-info {
        padding: 20px;
    }
}


/* --------------------------------------------------------------------------
   12. フッター
   -------------------------------------------------------------------------- */
.site-footer {
    background-color: var(--bg-light);
    color: var(--text-color);
    padding: 0;
    font-size: 14px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 40px;
}

.footer-info {
    flex: 1;
    min-width: 280px;
}

.footer-logo {
    color: var(--text-color);
    font-size: 20px;
    font-weight: bold;
    max-width: 280px;
    margin-bottom: 15px;
}

.footer-address {
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-tel {
    font-size: 15px;
    color: var(--text-color);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    flex: 2;
    min-width: 300px;
    justify-content: flex-end;
}

.footer-link-group {
    min-width: 160px;
}

.footer-link-group h3 {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 8px;
}

.footer-link-group h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
}

.footer-link-group ul {
    list-style: none;
}

.footer-link-group li {
    margin-bottom: 10px;
}

.footer-link-group a {
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

.footer-link-group a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    background-color: var(--primary-color);
    margin: 0 auto;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: var(--text-light);
    font-size: 12px;
    margin: 0 auto;
}

@media (max-width: 1024px) {
    .footer-links {
        justify-content: flex-start;
    }
}


/* ==========================================================================
   13. モダンレスポンシブ縦書き（e-commerce.html #ec_two 専用）
   ========================================================================== */

/* 1. PC用の基本横並びレイアウト（右から：見出し -> テキスト -> 画像） */
#ec_two .block {
    display: flex;
    flex-direction: row-reverse; /* 右から左へ向けて並べる */
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
}

#ec_two .block::after {
    display: none; /* Flexbox移行のため、古いclearfixは不要化 */
}

#ec_two .half_block {
    float: none; /* floatを解除して安全にFlexbox制御へ */
    padding: 0;
}

#ec_two .block_title {
    flex: 0 0 auto;
}

#ec_two .block_img {
    flex: 0 0 350px;
}

#ec_two .block_text {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 2. 縦書き表示の心臓部（モダンWeb標準プロパティ） */
.modern-tate-wrapper {
    writing-mode: vertical-rl; /* 縦書き、改行は右から左へ */
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    text-orientation: mixed;
    
    height: 510px; /* 縦書きエリアの表示高さを確定 */
    font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS Mincho", serif; /* 縦書きを美しく引き締める明朝体 */
    font-size: 15px;
    line-height: 2.3; /* 行間をゆったりとって可読性をアップ */
    letter-spacing: 0.08em;
}

.tate-paragraph {
    margin: 0;
    padding: 0;
    height: 100%;
}

/* --------------------------------------------------------------------------
   【レスポンシブ】スマートフォン表示（768px 以下）でのスマート縦書き制御
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
    #ec_two .block {
        flex-direction: column; /* 上から順に「見出し -> 縦書き文 -> 画像」に縦積み */
        gap: 25px;
        align-items: center;
        width: 100%;
        padding: 20px 10px;
    }

    #ec_two .block_title {
        width: 100%;
        text-align: center;
    }
    
    #ec_two .block_title img {
        max-width: 180px; /* スマホ用にタイトル画像を適切なサイズに縮小 */
        height: auto;
    }

    #ec_two .block_img {
        flex: none;
        width: 100%;
        max-width: 350px; /* スマホ画面に収まるよう画像をリサイズ */
    }

    /* スマホ特有の縦書き崩れ・画面突き抜けを防止するスマートコンテナ */
    #ec_two .block_text {
        width: 100%;
        overflow-x: auto; /* ★はみ出た長い文章を指で左右にスワイプして読めるようにする */
        -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロールを滑らかに */
        padding: 20px;
        display: flex;
        justify-content: flex-start; /* 左へのスワイプが滑らかに始まるように起点調整 */
    }

    .modern-tate-wrapper {
        height: 480px; /* スマホ画面の高さに合わせて、表示枠をコンパクトに自動縮小 */
        font-size: 14px; /* 文字サイズをスマホ最適化 */
        line-height: 2.0;
        margin: 0 auto;
    }
}