@charset "UTF-8";
/*
Theme Name: Imagine Theme
*/

/* --- 変数定義 --- */
:root {
    --main-blue: #00379D;
    --title-blue: #09316E;
    --bg-blue: #D7DDF0;
    --bg-gray: #F9F9F9;
    --name-green: #2B8C2B;
    --name-blue: #0055A4;


    --dark-blue: #1e3a68;

    --text-color: #333333;
    --border-color: #00379D;
    
    /* サイトの最大幅を定義 */
    --top-width: 1500px;
    --inner-width: 1200px;
    --text-width: 900px; /* 文章メインのエリア用（読みやすさ重視） */
}
/*font-family: 'Noto Sans JP';*/
/*font-family: 'Noto Serif JP', serif;*/
/*font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;*/

/* --- リセット & ベース --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#message {
    scroll-margin-top: 20px;
}

body {
    font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'MS Mincho', 'serif';
    color: var(--text-color);
    background-color: var(--bg-blue);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .mw80 img{
        max-width: 80% !important;
        height: auto;
        display: block;
        margin: 0 auto !important;
    }
}

.text-center {
     text-align: center;
}

.mt-40 {
    margin-top: 40px !important;
}

.mt-60 {
    margin-top: 60px !important;
}

.mt-100 {
    margin-top: 100px !important;
}

.nmt-540 {
margin-top: -540px !important;
margin-bottom: 0 !important;
}

.mg-40100{
    margin: 40px 0 100px;
}

.ptb-100 {
    padding: 150px 0;
}

.pt-40 {
    padding-top: 40px;
}

.pt-80 {
    padding-top: 80px;
}

.pt-100 {
    padding-top: 100px;
}

.pr-450 {
    padding-right: 450px;
}

.pb-30 {
    padding-bottom: 30px;
}

.pb-100 {
    padding-bottom: 100px;
}

@media screen and (max-width: 768px) {
    .pb-100 {
        padding-bottom: 0 !important;
    }

    .ptb-100 {
        padding: 50px 0;
    }
}


.bg-blue {
    background-color: var(--main-blue) !important;
}

.bg-gray{
    background-color: var(--bg-gray);
}

.align-center{
    max-width: 800px;
    margin: 0 auto;
}

/* SP専用改行 */
.br-sp {
    display: none;
}

/* PC専用改行 */
.br-pc {
    display: block;
}

@media screen and (max-width: 768px) {
    /* スマホでSP専用改行を表示 */
    .br-sp {
        display: block;
    }
    /* スマホでPC専用改行を非表示 */
    .br-pc {
        display: none;
    }
}

/* --- 共通コンテナ --- */
.section-container {
    max-width: var(--inner-width); /* 1200pxに変更 */
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
}

/* --- ヘッダー --- */
.header {
    background-color: var(--main-blue);
    color: #fff;
    padding: 30px 40px 0;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--inner-width);
    width: 100%;
    margin: 0 auto;
}
.logo img {
     height: 40px; 
    }

.global-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    font-size: 14px;
}
.global-nav a { color: #fff; }

/* --- ヒーロー（スライダー） --- */
.hero-slider.swiper {
    max-width: 1500px;
    width: 100%;
    margin: 0 auto;    /* 中央寄せ */
    overflow: hidden;  /* はみ出し防止 */
    padding: 80px 0;
}

.swiper-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像を枠いっぱいに埋める */
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* 比率を保ちつつエリアを埋める */
}

/* ページネーションの色をIMA-GINブルーに */
.swiper-pagination-bullet-active {
    background: var(--main-blue) !important;
}

.blue-wrapper {
    background-color: var(--main-blue);
    max-width: 100%;
}

/* PC表示ではハンバーガーボタンを非表示 */
.hamburger {
    display: none;
}

@media screen and (max-width: 768px) {
    .hero-slider.swiper {
        padding: 0; 
        /* 100svh の代わりに、JSで作った --vh を使う！ */
        height: calc(var(--vh, 1vh) * 100 - 60px); 
    }

    /* 画像を枠いっぱいに綺麗に敷き詰める */
    .hero-slider .swiper-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }

    /* --- ヘッダー（ハンバーガーメニュー） --- */
    .header {
        padding: 15px 20px;
        position: relative; /* メニューの基準点 */
        z-index: 100;       /* 他の要素より上に */
    }

    .header-inner {
        display: flex !important;
        flex-direction: row !important; /* スマホでもロゴとボタンを強制的に横並びに */
        justify-content: space-between !important; /* 左右にめいっぱい離す */
        align-items: center !important;
        width: 100% !important;
        gap: 0;
    }

    .logo img {
        height: 30px; /* スマホでは少し小さく */
    }

    /* ハンバーガーボタンのスタイル */
    .hamburger {
        display: block;
        position: relative;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 101; /* メニューより上に */
    }

    .hamburger span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: #fff;
        left: 0;
        transition: 0.3s ease-in-out;
    }

    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 0; }

    /* ×印になる時のアニメーション */
    .hamburger.is-active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .hamburger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active span:nth-child(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* ナビゲーション（初期状態は非表示） */
    .global-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(0, 55, 157, 0.95); /* 少し透けたブルー */
        padding: 20px 0;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    /* メニュー開いた時の状態 */
    .global-nav.is-active {
        opacity: 1;
        visibility: visible;
    }

    .global-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0;
    }

    .global-nav a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 10px;
        font-size: 16px;
    }
}

/* --- ニュース --- */
.section-title {
    font-size: 40px;
    color: var(--main-blue);
    margin-bottom: 50px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.news-list {
    border-top: 1px solid var(--border-color);
}
/* =================================================== */
/* アメブロ 新着記事 (IMA-GIN's News)
/* =================================================== */
.ameblo-news-wrap {
    width: 100%;
    max-width: var(--inner-width);
    margin: 0 auto;
}

.ameblo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ameblo-list li {
    border-bottom: 1px solid var(--border-color);
}

.ameblo-list a {
    display: flex;
    align-items: center;
    padding: 25px 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.ameblo-list a:hover {
    background-color: rgba(0, 55, 157, 0.03); 
}

.ameblo-date {
    font-family: 'Times New Roman', serif;
    font-size: 16px;
    color: var(--main-blue);
    width: 120px;
    flex-shrink: 0;
    letter-spacing: 0.1em;
}

.ameblo-category {
    background-color: var(--main-blue);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    margin-right: 20px;
    flex-shrink: 0;
    white-space: nowrap;
}

.ameblo-title {
    font-size: 16px;
    color: var(--text-color);
    flex: 1;
    line-height: 1.6;
    font-weight: bold;
}


.ameblo-more {
    text-align: right; /* 右寄せにする */
    margin-top: 20px;
    padding-right: 15px;
}

.ameblo-more a {
    color: var(--main-blue); /* イマージンブルー */
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.ameblo-more a:hover {
    opacity: 0.7;
    text-decoration: underline; /* マウスを乗せたら下線を出す */
}

@media screen and (max-width: 768px) {
    .ameblo-more {
        text-align: center;
        padding-right: 0;
        margin-top: 25px;
    }
}


/* --- ボタン --- */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.btn:hover { opacity: 0.8; }
.btn-oval {
    background-color: var(--main-blue);
    color: #fff;
    border-radius: 50px;
    padding: 15px 50px;
}
.btn-title { font-size: 20px; font-weight: bold; }
.btn-sub { font-size: 10px; opacity: 0.8; }
.btn-large { font-size: 20px; padding: 20px 60px; }


.btn-image-link img {
    width: 100%;
    max-width: 600px;
    height: auto;
}

@media screen and (max-width: 768px) {
    .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
}

/* --- 見出し装飾（《 》付き） --- */
.section-title-deco {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    letter-spacing: 0.4em;
    color: var(--main-blue);
    font-family: 'Noto Serif JP', serif;
}

@media screen and (max-width: 768px) {
    .section-title-deco {
        font-size: 20px;
    }
}

/* --- YouTube埋め込み --- */
.youtube-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #ccc; /* ロード前のプレースホルダー */
}
.youtube-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- 価格表 --- */
.price-cards {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.card {
    flex: 1;
}

/* 価格カードのホバー設定 */
.price-cards .card a {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.price-cards .card a:hover {
    transform: translateY(-5px); /* 少し上に浮き上がる */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* 画像リンク共通（HISTORYボタン等と共通） */
.btn-image-link {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.btn-image-link:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* カード内の画像設定 */
.card img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- 店舗紹介バナー --- */
.store-intro-banner {
    max-width: 400px;
    margin: 0 auto;
}

.store-intro-banner img {
    width: 100%;
    height: auto;
    display: block;
}

.store-intro-banner h2 { font-size: 32px; letter-spacing: 0.2em; }
.store-intro-banner p { font-family: 'Brush Script MT', cursive; font-size: 24px; opacity: 0.8; }


/* --- 店舗一覧 --- */
.store-card {
    background-color: #fff;
    margin-bottom: 40px;
}
.store-name {
    background-color: var(--dark-blue);
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 22px;
    letter-spacing: 0.3em;
}
.store-content {
    display: flex;
    padding-top: 30px;
    gap: 30px;
    background-color: var(--bg-blue);
    align-items: flex-end;
}
.store-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
/* --- 店舗詳細セクション --- */
.img-main {
    grid-column: 1 / 3;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.img-sub {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.store-info {
    flex: 1;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 50px;
    font-size: 14px;
}

.info-table th, 
.info-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    padding-left: 10px;
}

.info-table th {
    width: 30%;
    font-weight: bold;
    color: #555;
}

.map-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #eee;
}

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

@media screen and (max-width: 768px) {
    .store-intro-banner {
        max-width: 250px;
        margin: 0 auto;
    }

    /* --- 店舗紹介バナー --- */
    .store-intro-banner h2 {
        font-size: 24px;
    }
    .store-intro-banner p {
        font-size: 20px;
    }

    /* --- 店舗一覧 --- */
    .store-content {
        flex-direction: column; /* 画像エリアと店舗情報エリアを縦並びに */
        padding: 20px 15px;
        gap: 20px;
    }
    .store-name {
        font-size: 18px;
    }
    .info-table th {
        width: 80px; /* スマホでは見出し幅を少し縮小 */
    }

    .store-info {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* 中身を中央に寄せる */
    }

    .info-table {
        width: 90%; /* スマホ画面の90%幅にする（余白確保） */
        margin: 0 auto 30px; /* 左右autoでテーブル自体を中央寄せ */
    }

    .info-table th, 
    .info-table td {
        /* スマホでの文字の詰まりを解消 */
        padding: 15px 5px; 
        font-size: 13px; /* 少し文字を小さくして折り返しを防ぐ */
    }
}

/* --- 電話番号リンクのスタイル --- */
.info-table .tel-link {
    text-decoration: none;
    font-weight: bold;        /* 少し太字にして目立たせる（お好みで） */
    transition: opacity 0.3s ease;
    color: var(--main-blue);
}

.info-table .tel-link:hover {
    opacity: 0.7; /* フワッと少し薄くする */
}

@media screen and (max-width: 768px) {
    .info-table .tel-link {
        display: block;
        padding: 5px 0;
        text-align: left;
    }
}

/* --- フッター --- */
.footer {
    background-color: var(--main-blue);
    color: #fff;
    padding: 50px 20px 20px;

}

/* フッター全体のコンテナ */
.footer-inner {
    max-width: var(--inner-width);
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

.footer-top {
    width: 100%;
    margin-bottom: 30px;
}

.footer-company-name {
    font-size: 24px;
    font-family: 'Noto Serif JP', serif;
    position: relative;
    padding-bottom: 15px;
    display: block;
    width: 100%;
    padding-left: 100px;
    letter-spacing: 0.1em;
}

.footer-company-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 100px;
}

.footer-stores {
    list-style: none;
    font-size: 14px;
    line-height: 2;
    flex: 1;
}

.footer-stores li {
    margin-bottom: 15px;
    letter-spacing: 0.2em;
}

.footer-stores li:last-child {
    margin-bottom: 0;
}

.footer-stores span {
    display: inline-block;
    width: 260px;
}

.footer-contact {
    margin-left: 40px; /* リストとの間隔 */
}

.footer-stores a[href^="tel:"] {
    color: inherit;
    text-decoration: none;
}

/* お問合せボタン */
.btn-white {
    background-color: #fff;
    color: var(--main-blue);
    padding: 5px 45px 5px 65px;
    font-weight: bold;
    display: inline-block; /* aタグの場合に必要 */
    text-decoration: none;
    transition: background-color 0.3s ease;
    letter-spacing: 0.1em;
    margin-top: 55px;
}

.btn-white:hover {
    background-color: #f0f0f0;
}

.copyright {
    text-align: center;
    font-size: 12px;
    /*border-top: 1px solid rgba(255, 255, 255, 0.2);*/
    padding-top: 20px;
}

@media screen and (max-width: 768px) {

    /* --- 全体・共通 --- */
    .section-container {
        padding: 40px 15px; /* スマホでは余白を少し狭く */
    }

    /* --- ヘッダー --- */
    .header {
        padding: 15px;
    }
    .header-inner {
        flex-direction: column; /* ロゴとメニューを縦並びに */
        gap: 15px;
    }
    .global-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    /* --- ヒーロー（スライダー） --- */
    .hero-slider {
        height: 350px; /* スマホでは高さを抑える */
    }
    .hero-text h2 {
        font-size: 32px;
    }
    .hero-text p {
        font-size: 16px;
    }

    /* --- ニュース --- */
    .ameblo-list a {
        flex-direction: column; /* 縦並びに変更 */
        align-items: flex-start;
        padding: 20px 10px;
        gap: 10px;
    }
    
    .ameblo-list a::before {
        content: "";
        display: block;
    }
    
    .ameblo-date {
        width: auto;
        font-size: 14px;
        display: inline-block; /* 横並びにするため */
        margin-right: 15px;
    }

    .ameblo-category {
        display: inline-block; /* 横並びにするため */
        margin-right: 0;
        margin-bottom: 5px; /* タイトルとの間に少し隙間を */
    }
    
    .ameblo-title {
        font-size: 15px;
        width: 100%;
    }

    /* --- 価格表 --- */
    .price-cards {
        flex-direction: column; /* 3つのカードを縦に並べる */
        gap: 30px;
    }

    .card {
        flex: 1;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        max-width: 70%;
        margin: 0 auto;
    }

    /* --- フッター --- */
    .footer {
        padding: 40px 20px 20px;
    }

    .footer-company-name {
        padding-left: 0 !important;
        text-align: center;
    }

    .footer-main {
        padding: 0 !important;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        text-align: center;
    }

    .footer-stores {
        padding-left: 0;
        width: 100%;
    }

    .footer-stores li span {
        display: block;
        width: 100%;
        margin-bottom: 5px;
    }

    .footer-stores li {
        margin-bottom: 20px;
    }

    .footer-contact {
        width: 100%;
        margin-left: 0 !important;
        text-align: center;
    }

    .btn-white {
        display: inline-block;
        width: 100%;
        max-width: 300px;
        margin-top: 20px !important;
        padding: 15px 0 !important;
    }
    
}

/* =========================================
   History ページ専用スタイル
========================================= */

.page-history {
    background-color: var(--bg-blue);
}
.history-hero {
    background-color: var(--main-blue);
    padding: 80px 0;
    text-align: center;
}
.hero-images-top img {
    width: 100%;
    max-width: var(--top-width);
    margin: 0 auto;
    display: block;
}
.hero-title-box {
    color: #fff;
    padding: 30px 0;
}
.hero-title-box h1 {
    font-size: 36px;
    letter-spacing: 0.1em;
    font-family: 'Times New Roman', serif; /* カリグラフィーの代用 */
}
.hero-title-box p {
    font-size: 16px;
    margin-top: 10px;
}

/* --- ヒストリーコンテンツ共通 --- */
.history-content-wrapper {
    max-width: var(--inner-width); /* 文字が読みやすいよう 900px をキープ */
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
}
.history-section {
    margin-bottom: 80px;
}
.year-heading-img {
    text-align: center;
}

.year-heading-img img {
    width: auto;
    height: 120px; /* デザインに合わせて調整 */
    margin: 0 auto;
}


/* スマホ表示の調整 */
@media screen and (max-width: 768px) {

    .history-hero {
        padding: 0;
        height: calc(var(--vh, 1vh) * 100 - 60px); 
    }

    .hero-images-top,
    .hero-images-top picture {
        display: block;
        width: 100%;
        height: 100%; /* 親の高さ（画面の高さ）に合わせる */
    }

    .hero-images-top img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 比率を保ちつつ、隙間ができないように画像を切り抜いて敷き詰める */
    }
    .year-heading-img img {
        height: 80px; /* スマホでは少し小さく */
    }
}

.topic-number {
    display: block;
    font-size: 2.4rem;
    font-weight: bold;
    color: var(--main-blue);
    margin-bottom: 15px;
    padding-left: 5px;
}

/* --- 左右配置のレイアウト (Flexbox) --- */
.history-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
/* PCのみ左右反転させるクラス（左:画像、右:テキストにする場合） */
.reverse-pc {
    flex-direction: row-reverse;
}

/* テキストエリア */
.text-col {
    flex: 1;
    background-color: var(--bg-gray);
}
.topic {
    margin-bottom: 30px;
}
.topic-title {
    background-color: var(--main-blue);
    color: #fff;
    display: inline-block;
    padding: 5px 15px 5px 30px;
    font-size: 22px;
    margin-bottom: 5px;
    line-height: 1.0;
}

.topic-subtitle {
    font-size: 18px;
    color: var(--main-blue);
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--main-blue);
    padding-bottom: 5px;
}
.topic p,
.no05inner p {
    font-size: 15px;
    line-height: 2.2;
    padding: 20px 30px 20px 30px;
    letter-spacing: 0.05em;
    text-align: justify;
    text-indent: 1rem;
}

/* 画像エリア */
.img-col {
    flex: 1;
}
.img-col figure {
    max-width: 80%; /* ★ここの数値（例：70%、80%、350pxなど）で大きさを調整 */
    margin: 0 auto 50px auto; /* ★中央寄せにしつつ、下の余白（50px）はキープ */
}
.img-col figcaption {
    font-size: 14px;
    margin-top: 8px;
    color: #555;
    background: transparent;
}

@media screen and (max-width: 768px) {
    .img-col figure {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .topic-number {
        font-size: 24px;
    }

    .topic-title {
        font-size: 18px;
    }
}

/* --- イベント写真（縦積み） --- */
.event-photos {
    text-align: center;
    margin-top: 60px;
}
.event-title {
    font-size: 22px;
    color: var(--main-blue);
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--border-color);
    display: inline-block;
}
.mt-20 { margin-top: 20px; }

/* --- History 05 白ボックス --- */
.history-box-white {
    background: #fff;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.box-title {
    background-color: var(--main-blue);
    color: #fff;
    display: inline-block;
    padding: 5px 20px;
    font-size: 20px;
    margin-bottom: 5px;
}
.box-subtitle {
    font-size: 20px;
    color: var(--main-blue);
    font-weight: bold;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--main-blue);
    padding-bottom: 10px;
}

.no05wrap{
    max-width: 1000px;
    margin: 0 auto;
}


.no05inner{
    max-width: 560px;
    margin: 0 auto;
}

/* --- 沿革（タイムライン） --- */
.company-timeline {
    background-color: var(--main-blue);
    color: #fff;
    padding: 60px 20px;
}
.timeline-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
    letter-spacing: 0.2em;
}
.timeline-title span {
    font-family: 'Times New Roman', serif;
    font-size: 32px;
    font-style: italic;
}
.timeline-inner {
    max-width: 800px;
    margin: 40px auto 0;
}

.timeline-row dt {
    width: 250px;
    padding: 15px 30px 15px 0;
    text-align: left;
    position: relative;
    font-size: 14px;
}
/* 縦線と丸ポチ */
.timeline-row dt::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 20px;
    width: 8px;
    height: 8px;
    background-color: #F1E474;
    border-radius: 50%;
    z-index: 2;
}

/* =========================================
   沿革（タイムライン）の線の修正
========================================= */

.timeline-row dd {
    border-left: none;
    flex: 1;
    padding: 15px 0 30px 30px;
    font-size: 14px;
}

.timeline-row {
    display: flex;
    position: relative;
}

.timeline-row::before {
    content: '';
    position: absolute;
    left: 250px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
}


.timeline-row:first-child::before {
    top: 24px;
}


/* =========================================
   スマホ表示時の線の調整
========================================= */
@media screen and (max-width: 768px) {
    .timeline-row::before {
        left: 0;
    }
    
    .timeline-row:first-child::before {
        top: 19px;
    }
    .timeline-row:last-child::before {
        height: 19px;
    }

    .timeline-row {
        flex-direction: column; /* 日付と内容を縦積みに */
    }
    .timeline-row dt {
        width: 100%;
        text-align: left;
        padding: 10px 0 5px 20px;
    }
    .timeline-row dt::after {
        left: -4px; /* 丸ポチを左端へ移動 */
        top: 15px;
    }
    .timeline-row dd {
        padding: 0 0 30px 20px;
    }
}

/* --- ギャラリー共通設定 --- */
.history-gallery {
    display: flex;
    justify-content: space-between; /* 画像同士を均等に配置 */
    gap: 20px; /* 画像間の隙間 */
}

.history-gallery figure {
    flex: 1; /* 3枚を同じ幅にする */
    margin: 0;
}

.history-gallery img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 画像の比率が違っても綺麗に収める */
    aspect-ratio: 4 / 3; /* 必要に応じて比率を固定（例: 4:3） */
}

/* --- レスポンシブ対応（スマホ） --- */
@media screen and (max-width: 768px) {
    .history-gallery {
        flex-direction: column; /* 縦並びに変更 */
        gap: 15px;
    }
    
    .history-gallery figure {
        width: 100%;
    }
}

/* =========================================
   レスポンシブ対応（スマホ向け）
========================================= */
@media screen and (max-width: 768px) {
    .year-heading {
        font-size: 60px;
    }
    
    /* 横並びを縦並びに解除 */
    .history-flex,
    .history-flex.reverse-pc {
        flex-direction: column;
        gap: 20px;
    }
    
    /* スマホ時はテキストが上、画像が下になるように調整済 */
    
    .history-box-white {
        padding: 20px;
    }
}

/* --- 浮かび上がるアニメーションの設定 --- */

/* 隠れている時の状態：より深く、より透明に */
.fade-in-up {
    opacity: 0;
    transform: translateY(80px); /* 50pxより少し深く下げると浮遊感アップ */
    transition: 
        opacity 2.0s cubic-bezier(0.22, 1, 0.36, 1), /* 時間を長く(2秒) */
        transform 2.0s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* 表示された時の状態 */
.fade-in-up.is-active {
    opacity: 1;
    transform: translateY(0);
}

/* 画像だけ少し遅れて出したい場合などの微調整用 */
.img-col.fade-in-up {
    transition-delay: 0.5s;
}



/* --- ギャラリー写真の順番表示（ディレイ） --- */

/* 1枚目：少しだけ遅らせてスタート */
.history-gallery figure:nth-child(1).fade-in-up {
    transition-delay: 0.1s;
}

/* 2枚目：1枚目のさらに後に出る */
.history-gallery figure:nth-child(2).fade-in-up {
    transition-delay: 0.4s;
}

/* 3枚目：一番最後に出る */
.history-gallery figure:nth-child(3).fade-in-up {
    transition-delay: 0.7s;
}

/* スマホでは縦並びになるので、早めにパパパッと出したい場合の微調整（任意） */
@media screen and (max-width: 768px) {
    .history-gallery figure:nth-child(1).fade-in-up { transition-delay: 0.1s; }
    .history-gallery figure:nth-child(2).fade-in-up { transition-delay: 0.2s; }
    .history-gallery figure:nth-child(3).fade-in-up { transition-delay: 0.3s; }
}

/*message*/

/* =========================================
   メッセージ・インタビュー・対談ページ専用スタイル
========================================= */

/* --- 1. ページ全体の共通設定 --- */
.message-page-wrapper {
    width: 100%;
}

.page-section {
    margin-bottom: 100px;
}

.section-title-img-wrap {
    background-color: var(--main-blue);
    max-width: 100%;
    padding: 0 0 600px;
}

.section-title-img {
    margin: 0 auto;   
    max-width: 900px;
}

.section-title-img img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.p-wrap {
    padding: 25px 20px;
}

.content-inner {
    max-width: var(--inner-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* キャプション共通 */
.caption {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
}
.caption-center {
    font-size: 13px;
    color: #555;
    margin-top: 10px;
    text-align: center;
}

/* --- 2. レイアウトモジュール（共通で使える箱） --- */
.flex-layout {
    display: flex;
    gap: 50px;
    align-items: start;
}

.m-flex-text {
    flex: 1;
    text-align: justify;
    background-color: var(--bg-gray);
    max-width: 560px;
}

.m-flex-text p {
    font-size: 15px;
    line-height: 2.2;
    padding: 20px 30px;
    letter-spacing: 0.05em;
    text-align: justify;
    text-indent: 1rem;
}

.absolute-img {
    width: 100%;
    flex: 0 0 500px;
}

/* 通常の左右レイアウト (Flexbox) */
.flex-split-layout {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}
.flex-img {
    flex: 0 0 45%;
}
.flex-text {
    flex: 1;
    text-align: justify;
}
.flex-text p {
    margin-bottom: 20px;
    text-indent: 1em;
}

/* --- 3. セクション固有スタイル --- */

/* 社長メッセージ固有 */
.message-center-text {
    display: block;
    text-align: left;
    max-width: 100%; 
    margin: 60px auto;
    background-color: var(--bg-gray) !important;
    padding: 30px 40px !important;
    box-sizing: border-box;
}

.message-center-text p {
    font-size: 15px;
    line-height: 2.2 !important;
    margin: 0 !important;
    text-indent: 1rem !important;
    padding: 0 !important;
}

/* 道具ギャラリー */
.tools-gallery {
    display: block; 
    width: 100%;
}
.tools-pc-only {
    display: block;
    padding: 30px;
}
.tools-sp-only {
    display: none;
}
.caption-85 {
    max-width: 85%;
    margin: 0 auto;
}

/* 社員インタビュー固有 */
.interview-wrap {
    position: relative; /* ★画像の基準点 */
    max-width: 1000px;  /* 白い箱を最大1000pxに */
    margin: 0 auto;     /* 画面の中央に配置 */
    padding: 0;
}

.interview-inner {
    max-width: 600px;   /* テキスト幅を制限 */
    padding: 60px;      /* 上下左右にゆったりとした余白 */
}

.interview-inner p,
.interview-inner-p-wrap p {
    font-size: 15px;
    line-height: 2.2;
    letter-spacing: 0.05em;
    text-align: justify;
    text-indent: 1rem;
    margin-bottom: 20px;
}

.interview-inner-p-wrap {
    padding: 20px 0 50px;
}

.interview-profile {
    margin: 30px 0;
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.interview-profile .role {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-blue);
    display: inline-block;
    line-height: 1.8 !important;
}

.interview-profile .name {
    font-size: 32px;
    font-weight: bold;
    color: var(--main-blue);
    letter-spacing: 0.2em;
    margin: 10px;
}

.history-section + .history-section {
    margin-top: 150px;
}

/* 先輩 × 後輩 対談固有 */
.dialogue-intro {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 50px 0;
}
.dialogue-intro .person {
    text-align: center;
}
.dialogue-intro .role {
    display: block;
    font-size: 18px;
    color: var(--main-blue);
    font-weight: bold;
    margin-bottom: 10px;
}
.dialogue-intro .name {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--main-blue);
    letter-spacing: 0.2em;
}
.dialogue-intro .cross-mark {
    font-size: 40px;
    color: #ccc;
    font-weight: lighter;
}

.dialogue-lead {
    text-align: justify;
    max-width: 600px;
    margin: 0 auto;
    color: var(--main-blue);
    font-weight: 700;
    letter-spacing: 0.05rem;
}

.dialogue-theme {
    background-color: var(--main-blue);
    color: #fff;
    display: inline-block;
    padding: 5px 30px;
    font-size: 22px;
    margin-bottom: 20px;
}

.dialogue-qa p {
    padding-left: 3em; 
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    text-indent: 1rem;
    text-align: justify;
    letter-spacing: 0.05em;
}

.name-ooyama {
    color: var(--name-green);
    font-weight: bold;
    margin-right: 5px;
}

.name-itou {
    color: var(--name-blue);
    font-weight: bold;
    margin-right: 5px;
}

.dialogue-footer-img img {
    width: 100%;
    height: auto;
}


/* --- 4. PC用 (769px以上) --- */
@media screen and (min-width: 769px) {
    .interview-inner {
        padding-right: 40px !important; 
    }

    .interview-side-img-main,
    .interview-side-img-main2 {
        position: absolute;
        width: 450px !important;
        right: -100px;
        margin: 0;
        z-index: 5;
    }
    .interview-side-img-main { top: 200px; }
    .interview-side-img-main2 { top: 100px; }

    .interview-side-img-sub,
    .interview-side-img-sub2 {
        position: absolute;
        bottom: 70px;
        right: 100px;
        width: 250px;
        margin: 0;
        z-index: 5;
    }

    .kikkake {
        padding-right: 450px;
        margin: 100px 0;
    }
    .dialogue-text-area {
        position: relative;
    }
    .dialogue-img-area {
        position: absolute;
        top: -100px;
        right: -50px;
        width: 450px;
        z-index: 5;
        margin: 0;
    }
}


/* --- 5. スマホ用レイアウト調整 (768px以下) --- */
@media screen and (max-width: 768px) {
    /* 共通モジュール・配置変更 */
    .flex-layout,
    .flex-split-layout {
        flex-direction: column;
        gap: 30px;
    }
    .fd-cr {
        flex-direction: column-reverse;
    }

    /* 社長メッセージ */
    .message-center-text {
        padding: 40px 20px !important;
        margin: 40px auto !important;
    }
    .message-center-text p {
        font-size: 16px !important;
    }

    .m-flex-text p {
        padding: 0;
    }

    .absolute-img {
        flex: none !important;
        width: 100% !important;   /* 横幅いっぱいに広げる */
        max-width: 300px;         /* スマホで大きすぎないよう適度に制限 */
        margin: 0 auto 20px;      /* 中央寄せにして下に余白を作る */
    }

    /* 道具ギャラリー切り替え */
    .tools-pc-only { display: none; }
    .tools-sp-only {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .tools-sp-only img {
        width: 100%;
        height: auto;
    }

    .tools-sp-only-img1 {
        width: 50% !important;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    /* 社員インタビュー */
    .interview-inner {
        max-width: 100%;
        padding: 30px 20px; 
    }
    .interview-profile {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .interview-profile .role {
        font-size: 12px;
    }
    
    .interview-profile .name {
        font-size: 20px;
    }

    .interview-side-img-main,
    .interview-side-img-sub,
    .interview-side-img-main2,
    .interview-side-img-sub2 {
        position: static; /* 絶対配置を解除 */
        width: 250px !important;
        margin: 30px auto;
    }
    .history-section + .history-section {
        margin-top: 60px;
    }

    /* 対談セクション */
    .dialogue-intro {
        display: block;
        align-items: center;
        text-align: center;
        padding: 50px 0;
        gap: 20px;
        padding: 30px 20px;
    }
    .dialogue-intro .name {
        font-size: 20px;
    }

    .dialogue-lead {
        text-align: justify;
        max-width: 600px;
        margin: 0 auto;
        color: var(--main-blue);
        font-weight: 700;
        letter-spacing: 0.05rem;
        line-height: 1.8;
        padding: 30px 20px;
    }


    .dialogue-content-wrap {
        flex-direction: column;
    }
    .kikkake {
        padding-right: 0;
        margin: 40px 0;
    }
    .dialogue-text-area {
        padding-right: 0; 
    }
    .dialogue-img-area {
        position: static; /* 絶対配置を解除 */
        width: 100%;
        max-width: 250px;
        margin: 0 auto 40px;
    }

    .dialogue-qa p {
        padding: 10px 20px; 
        margin: 0;
    }

    .dialogue-footer-img {
        padding: 0 10px 80px;

    }

    /* 円形画像共通 */
    .img-circle {
        max-width: 250px;
        margin: 0 auto;
    }
}

/*contact*/
/* =========================================
   お問い合わせページ (Contact)
========================================= */

.page-contact {
    background-color: #F0F2F5; /* 全体のライトグレー背景 */
}

/* --- ヒーローエリア（青背景） --- */
.contact-hero {
    background-color: var(--main-blue);
    color: #fff;
    text-align: center;
    padding: 80px 20px 60px;
}
.contact-heading-img {
    text-align: center;
}

.contact-heading-img img {
    max-width: 500px;
    height: auto; 
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .contact-heading-img img {
        max-width: 200px;
        height: auto;
        margin: 0 auto;
    }
}

/* --- コンテンツエリア --- */
.contact-content-wrapper {
    padding: 60px 20px 100px;
}
.contact-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* --- リード文 --- */
.contact-intro {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 50px;
}
.contact-intro ul {
    list-style: none;
    margin-top: 20px;
}
.contact-intro li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 5px;
}
.contact-intro li::before {
    content: "・";
    position: absolute;
    left: 0;
}
.link-blue {
    color: var(--main-blue);
    text-decoration: underline;
}

/* --- フォームレイアウト (CF7) --- */
.form-container {
    background: transparent;
}
.cf-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 30px;
}
.cf-row:last-child {
    border-bottom: none;
}

/* ラベル側（左） */
.cf-label {
    width: 250px;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    padding-top: 10px;
}
.badge-req {
    background-color: #FFF100; /* 黄色いバッジ */
    color: #333;
    font-size: 12px;
    padding: 2px 10px;
    margin-right: 15px;
    font-weight: normal;
}

/* 入力側（右） */
.cf-input {
    flex: 1;
}
.cf-input input[type="text"],
.cf-input input[type="tel"],
.cf-input input[type="email"],
.cf-input textarea {
    width: 100%;
    max-width: 500px; /* 入力欄の最大幅 */
    padding: 12px;
    border: none;
    background-color: #fff;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}
.cf-input textarea {
    resize: vertical;
}

/* 氏名の横並び調整 */
.flex-name {
    display: flex;
    gap: 20px;
}
.flex-name label {
    display: flex;
    align-items: center;
    gap: 10px;
}
.flex-name input {
    width: 150px !important;
}

/* 注意書きテキスト */
.cf-note {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
    line-height: 1.6;
}

/* ラジオボタン・チェックボックスの調整 */
.cf-input.cf-radio-vertical .wpcf7-list-item {
    display: block; /* 縦並びにする */
    margin-bottom: 10px;
}
.wpcf7-list-item {
    margin-left: 0;
}

/* 送信ボタン */
.cf-submit-wrap {
    text-align: center;
    margin-top: 50px;
}
.cf-submit-wrap input[type="submit"] {
    background-color: var(--dark-blue);
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 18px;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: opacity 0.3s;
}
.cf-submit-wrap input[type="submit"]:hover {
    opacity: 0.8;
}

/* --- スマホ用調整 --- */
@media screen and (max-width: 768px) {
    .contact-title { font-size: 28px; }
    .contact-subtitle { font-size: 24px; }
    
    .cf-row {
        flex-direction: column; /* スマホでは縦並びに */
        padding-bottom: 20px;
    }
    .cf-label {
        width: 100%;
        margin-bottom: 15px;
    }
    .cf-input input[type="text"],
    .cf-input input[type="tel"],
    .cf-input input[type="email"],
    .cf-input textarea {
        max-width: 100%;
    }
    .flex-name {
        flex-direction: column;
        gap: 15px;
    }
    .flex-name input {
        width: 100% !important;
    }
}

/* =================================================== */
/* CF7 お問い合わせフォーム (画像デザイン合わせ)
/* =================================================== */

/* --- フォーム全体 --- */
.page-contact .form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    /* 背景色を画像の薄いグレーに合わせる場合はこちらを追加 */
    /* background-color: #f0f4f8; */ 
}

/* --- 入力欄とラベル (PC表示) --- */
.wpcf7-form .form-row {
    display: flex;
    align-items: flex-start; /* 複数行の時に上揃えにする */
    margin: 1.5rem 0;
}

.form-label {
    width: 280px; /* 画像に合わせて少し広めに */
    margin-right: 20px;
    font-weight: bold;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

/* 必須マーク（画像に合わせた黄色ベースのデザイン） */
.form-label.required::before {
    content: "必須";
    font-size: 0.8em;
    color: #333; /* 文字は黒系 */
    background-color: #ffeb3b; /* 背景は黄色 */
    padding: 4px 10px;
    margin-right: 15px; /* ラベルテキストの左側に配置 */
    font-weight: normal;
}

.form-row .wpcf7-form-control-wrap,
.form-row .input-wrapper {
    flex: 1;
    min-width: 0;
}

/* 入力フィールドの基本スタイル */
.input-text,
.input-textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: none; /* 枠線を消す */
    background-color: #fff; /* 背景を白に */
    font-size: 1rem;
    box-sizing: border-box;
}

/* 氏名の入力欄（姓名を分ける場合はHTMLの修正が必要ですが、今回は1行なのでフル幅に） */
.input-text {
    max-width: 100%;
}

/* テキストエリアの高さ */
.input-textarea {
    min-height: 150px;
    resize: vertical;
}

/* --- 注釈テキスト --- */
.form-note {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
}

/* --- ラジオボタン・チェックボックス --- */
.wpcf7-list-item {
    display: block; /* 縦並びにする */
    margin: 0 0 10px 0;
}
.wpcf7-list-item input[type="radio"],
.wpcf7-list-item input[type="checkbox"] {
    margin-right: 10px;
}

/* --- バリデーション・エラー表示 --- */
.error-message {
    display: block;
    color: #d9534f;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 0.5rem;
}
.input-text.is-error {
    border: 1px solid #d9534f !important;
    background-color: #fff8f8;
}

/* hCaptcha用（もし使う場合） */
.wpcf7-form-control-wrap {
    display: flex;
    flex-direction: column;
    margin: 0;
}

/* ==========================================================================
   確認画面表示 (JSで切り替え)
   ========================================================================== */

.form-input-area[aria-hidden="true"] {
    display: none;
}

.confirmation-view {
    display: none;
    background-color: #fff;
    padding: 2rem;
    margin-bottom: 2rem;
}

.confirmation-view[aria-hidden="false"] {
    display: block;
}

.confirmation-view ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.confirmation-view li {
    display: flex;
    padding: 1.5rem 0;
    border-bottom: 1px dashed #ccc;
}

.confirmation-view .conf-label {
    flex-shrink: 0;
    width: 280px;
    margin-right: 20px;
    font-weight: bold;
}

.confirmation-view .conf-value {
    flex: 1;
    min-width: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ==========================================================================
   ボタン
   ========================================================================== */

.js-btn-wrap {
    display: grid;
    place-items: center;
    margin-top: 2rem;
}

.js-btn-wrap > * {
    grid-area: 1 / 1;
}

.js-btn-wrap > [aria-hidden="true"] {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.js-btn-wrap button,
.js-btn-wrap input[type="submit"] {
    display: block;
    padding: 1rem 4rem;
    font-size: 1.1rem;
    color: #fff;
    border: none;
    cursor: pointer;
    letter-spacing: 0.1em;
    transition: background-color 0.3s;
}

/* 送信内容確認ボタン（画像に合わせた紺色） */
.js-confirm-btn {
    background-color: var(--title-blue, #09316E);
}

.js-confirm-btn:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

/* 修正する・送信するボタンのエリア */
.js-secondstep {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.js-secondstep button,
.js-secondstep input[type="submit"] {
    flex: 1;
    max-width: 240px;
    margin-top: 0;
}

.js-return-btn {
    background-color: #6c757d;
}

.wpcf7-form input[type="submit"] {
    background-color: var(--main-blue, #00379D);
}

/* ==========================================================================
   レスポンシブ (スマホ表示)
   ========================================================================== */

@media (max-width: 768px) {
    .wpcf7-form .form-row,
    .confirmation-view li {
        flex-direction: column;
        align-items: stretch;
    }

    .form-label,
    .confirmation-view .conf-label {
        width: 100%;
        margin: 0 0 0.8rem 0;
    }

    .form-label.required::before {
        margin-right: 10px;
    }

    .js-secondstep {
        flex-direction: column;
        align-items: center;
    }

    .js-secondstep button,
    .js-secondstep input[type="submit"] {
        width: 100%;
        max-width: none;
    }
}

/* =================================================== */
/* サンクスページ (送信完了画面)
/* =================================================== */

.page-thanks .thanks-content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem 8rem;
    text-align: center;
}

.thanks-heading {
    font-size: 2rem;
    color: var(--title-blue, #09316E);
    margin-bottom: 2.5rem;
    line-height: 1.5;
    font-family: 'Noto Serif JP', serif; /* 明朝体で上品に */
}

.thanks-text {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 4rem;
    color: #333;
}

.thanks-text p {
    margin-bottom: 1.5rem;
}

.thanks-btn-wrap {
    margin-top: 2rem;
}

.btn-return-top {
    display: inline-block;
    background-color: var(--main-blue, #00379D);
    color: #fff;
    padding: 1rem 4rem;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
}

.btn-return-top:hover {
    opacity: 0.8;
    color: #fff;
}

/* スマホ用調整 */
@media (max-width: 768px) {
    .page-thanks .thanks-content-wrapper {
        padding: 4rem 1rem 5rem;
    }

    .thanks-heading {
        font-size: 1.5rem;
    }

    .thanks-text {
        font-size: 1rem;
        text-align: left; /* スマホでは読みやすく左揃えに */
    }

    .thanks-text br {
        display: none; /* スマホでは自然に改行させるためbrを消す */
    }

    .btn-return-top {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 1rem 2rem;
    }
}

/* =================================================== */
/* ページトップへ戻るボタン
/* =================================================== */

.page-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--main-blue);
    color: #fff;
    border: none;
    border-radius: 50%; /* 完全な丸にする */
    cursor: pointer;
    z-index: 99; /* 他の要素より手前に表示 */
    opacity: 0; /* 初期状態は透明で見えない */
    visibility: hidden; /* クリックもできない状態 */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 55, 157, 0.3); /* イマージンブルーの影 */
}

/* 上向き矢印のデザイン（画像不要！） */
.page-top-btn::before {
    content: '';
    position: absolute;
    top: 55%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* パソコンでマウスを乗せた時の動き（フワッと浮く） */
.page-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 55, 157, 0.5);
}

/* JSで付与される表示用のクラス */
.page-top-btn.is-show {
    opacity: 1;
    visibility: visible;
}

/* スマホ用の微調整（少し小さく、端に寄せる） */
@media screen and (max-width: 768px) {
    .page-top-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .page-top-btn::before {
        width: 12px;
        height: 12px;
    }
}

/* --- History 05 最後のメッセージ（青いアンダーライン） --- */
.box-message {
    text-align: center;
    margin-top: 60px; /* 上の文章との余白 */
    padding: 0 20px;
}

.box-message p {
    display: inline;
    font-size: 26px; /* 文字の大きさ */
    color: var(--main-blue); /* 文字色をイマージンブルーに */
    font-weight: bold; /* 太字 */
    line-height: 2.2; /* 行間（線と文字が重ならないように広めにとる） */
    border-bottom: 2px solid var(--main-blue); /* ★ここが青いアンダーライン */
    padding-bottom: 5px; /* 文字と下線の間のすき間 */
}

/* --- スマホ用の調整 --- */
@media screen and (max-width: 768px) {
    .box-message {
        margin-top: 40px;
    }
    .box-message p {
        font-size: 20px; /* スマホでは少し小さくして読みやすく */
    }
}

/* --- History 05 最後のメッセージ専用：スロー・ズーム演出 --- */
.box-message .fade-in-up {
    /* 下から上ではなく、少し縮小（奥に配置）しておく */
    transform: scale(0.9) !important;
    opacity: 0;
    
    /* 4秒かけてゆっくり手前に迫ってくる */
    transition: opacity 3s ease-out, transform 4s ease-out !important;
}

/* スクロールして画面に入ったときの状態 */
.box-message .fade-in-up.is-active {
    opacity: 1;
    transform: scale(1) !important;
}