@charset "UTF-8";
/*
Theme Name: grandcha-ai
Author: grandcha-ai
Description: グランチャは、学生がご自宅(ご希望の場所)まで訪問する、シニアのためのスマホ・PC家庭教師です。
Version: 1.0
*/
:root {
    --primary-color: #14a27d; /* 親しみやすいブルー */
    --secondary-color: #F5A623; /* 温かみのあるオレンジ */
    --text-color: #333;
    --bg-light-color: #f4f4f4;
    --border-color: #ddd;
    --font-family: 'Zen Maru Gothic', 'Montserrat', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.8;
    color: var(--text-color);
    margin: 0;
    font-size: 16px;
}

/* ★ 共通のスマホ用余白管理 */
.mobile-padding {
    padding-left: 20px;
    padding-right: 20px;
}

/* デフォルトのcontainerはPC用 */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* スマホ・タブレット用のcontainerクラス */
@media (max-width: 768px) {
    .container {
        padding: 0 20px; /* 左右20pxで統一 */
    }
    
    /* 特別な調整が必要な要素のみ個別指定 */
    .campaign-banner-section {
        padding-left: 10px;
        padding-right: 10px;
    }
}

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

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

a:hover {
    text-decoration: underline;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    font-weight: 700;
}

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

.text-center {
    text-align: center;
}
.entry-title {
    text-align: center;
    padding-top: 20px;
}

/* ボタン */
/* ⑦共通ボタン */
.btn {
    display: inline-block;
    padding: 10px 28px; /* 横の余白を調整 */
    font-size: 1.0rem;     /* フォントサイズを少し小さく */
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 0px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap; /* ← この行を追加して、テキストの折り返しを禁止 */
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: #fff;
    color: var(--secondary-color);
    text-decoration: none;
}

.btn-secondary {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
}

/* ① ヘッダー */
.header {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    padding: 10px 0;
}

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

.logo {
    display: flex; 
    align-items: center; 
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
}
.logo:hover { text-decoration: none; }

.logo svg {
    width: 100px; /* SVGの幅を指定 */
    height: auto;
    margin-right: 10px;
    flex-shrink: 0; /* SVGが縮まないように設定 */
}
/* ロゴ2行表示スタイル */
.logo-text-container {
    display: flex;
    flex-direction: column; /* テキストを縦（2行）に並べる */
    line-height: 1.2;
}

.logo-main-text {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-sub-text {
    font-size: 0.8rem;
    font-weight: 400;
    color: #555;
    letter-spacing: 4.0px; /* 「グランチャ」の幅と合わせる */
}
.header-right {
    display: none;
}

@media (min-width: 900px) {
    .header-right {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
}

.header-contact {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.tel-button {
    font-weight: 700;
    margin-right: 20px;
    font-size: 1.8rem;
}

.contact-button {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
}
.contact-button:hover {
    background-color: #e69500;
    text-decoration: none;
}

.header-nav {
    background-color: #fff;
}

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

.header-nav li a {
    display: block;
    padding: 5px 15px;
    color: var(--text-color);
    font-weight: 700;
}
.header-nav li a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* モバイルメニュー */
.mobile-menu-button {
    display: block; /* スマホで表示 */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

@media (min-width: 900px) {
    .mobile-menu-button {
        display: none;
    }
}

.mobile-menu-button span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    background-color: #fff;
    position: fixed;
    top: 85px; 
    left: 0;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-nav li a {
    display: block;
    padding: 15px 20px;
    text-align: center;
    color: var(--text-color);
    font-weight: 700;
}
.mobile-nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* ② ファーストビュー */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('images/main.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 80px 0; /* スマホでのデフォルトの余白 */
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-features {
    margin-bottom: 40px;
}

.hero-features span {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    padding: 8px 15px;
    margin: 5px;
    border-radius: 20px;
    font-weight: 700;
}

/* グランチャとは ＆ 中間画像 */
/* ★★★ グランチャとは ＆ 中間画像 ★★★ */

/* 「グランチャとは」セクションのスタイル */
.intro {
    background: repeating-linear-gradient(
      45deg,
      #14a27d,
      #14a27d 15px,
      #14a57f 15px,
      #14a57f 30px
    );
    color: white;
}
.intro-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.6;
}
.intro-text {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* 2つのセクションの中間に画像を配置するためのコンテナ */
.floating-image-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    height: 0;
}

/* 画像の共通スタイル */
.intro-image-left,
.intro-image-right {
    position: absolute;
    width: 200px;
    height: auto;
    top: 0;
    transform: translateY(-50%);
    animation: floatAnimation 3s ease-in-out infinite;
}

/* 画像の左右個別スタイル */
.intro-image-left {
    left: 5%;
    animation-delay: 0s;
}
.intro-image-right {
    right: 5%;
    animation-delay: 0.5s;
}
.intro-image-left img,
.intro-image-right img {
    width: 100%;
    height: auto;
}

/* 上下に浮遊するアニメーションの定義 */
@keyframes floatAnimation {
    0% { transform: translateY(-50%); }
    50% { transform: translateY(-60%); }
    100% { transform: translateY(-50%); }
}

/* ===================================
   レスポンシブ対応（ここを修正）
=================================== */
@media (max-width: 1200px) {
    /* 少し画面が狭いPCでの調整 */
    .intro-image-left,
    .intro-image-right {
        width: 150px; /* 少し画像を小さくする */
    }
}

@media (max-width: 900px) {
    /* 左の画像のみ非表示にする */
    .intro-image-left {
        width: 120px; /* さらに小さく */
        top: 20px;
    }
    /* 右の画像は表示したまま、位置とサイズを調整 */
    .intro-image-right {
        right: 20px; /* 右からの位置を調整 */
        top: 10px;
        width: 100px; /* サイズを調整 */
    }
}

@media (max-width: 480px) {
    /* さらに画面が小さいスマホ用-iphone12pro系-の調整 */
    .intro-image-left {
        width: 110px; /* さらに小さく */
        top: 20px;
    }
    .intro-image-right {
        width: 100px; /* さらに小さく */
        top: 25px;
    }
}

/* ③ お悩みへの共感 */
.problem-list {
    list-style: none;
    padding-left: 0; /* 左の余白をリセット */
    max-width: 800px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    padding: 20px; /* 背景色の内側に余白を追加 */
    border-radius: 10px; /* 角を丸くする */
}

.problem-list li {
    background-image: url('images/icon_check.png');
    background-repeat: no-repeat;
    background-position: left 30px center; 
    background-size: 1em 1em;
    padding-left: 3.0em;
    text-align: left;
    margin-bottom: 15px;
}

/* スマホ表示の調整 */
@media (max-width: 768px) {
    .problem-list li {
        /* スマホではアイコンを一行目の上部に合わせる */
        background-position: left 0.3em; 
        padding-left: 2em;
    }
}
.solution-lead {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* =================================================
★★★ 「こんなお悩みありませんか？」セクションの背景画像
================================================== */
.problems {
    position: relative; /* 背景画像の位置の基準とするため */
    background-image: url(images/grandcha.svg); /* grandcha.svgのパスを確認してください */
    background-repeat: no-repeat;
    
    /* PC表示での設定 */
    background-position: left 20px bottom 0; /* 左下から少し離れた位置に配置 */
    background-size: 70%; /* PCでの画像サイズ */
}

/* スマートフォンでの表示調整 */
@media (max-width: 768px) {
    .problems {
        /* スマホ表示での設定 */
        background-position: left 0 bottom 80px; /* 下部中央から少し離れた位置に配置 */
        background-size: 100%; /* 画面の横幅に対して70%のサイズに */
    }
}

/* ④ 選ばれる理由 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item .feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* =================================================
   パートナーシップセクション
================================================== */
.partnership-section {
    background-color: #e6e6e6; 
    padding: 80px 0;
}

.partnership-grid {
    display: grid;
    /* PCでは3つのカラムを均等に配置 */
    grid-template-columns: repeat(3, 1fr);
}

.partnership-item {
    position: relative; /* 背景の数字を配置する基準点にする */
    padding: 40px;
    /* 最後の要素以外の右側に縦線を引く */
    border-right: 1px solid #000;
    text-align: left; /* テキストを左揃えに戻す */
}

/* 3番目の（最後の）要素の右線は不要なので消す */
.partnership-item:last-child {
    border-right: none;
}

.item-number {
    position: absolute;
    top: 40px; /* 位置を調整 */
    left: 20px; /* 位置を調整 */
    font-size: 8rem; /* 数字の大きさ */
    font-weight: 700;
    color: rgba(20, 162, 125, 0.08); /* 少し薄く調整 */
    line-height: 1;
    z-index: 1; /* コンテンツの背景に配置 */
    transform: none; /* 中央揃えの指定を解除 */
}

.item-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 60px; /* 数字と重ならないように余白を設定 */
    margin-bottom: 20px;
    position: relative;
    z-index: 2; /* 数字より手前に表示 */
    min-height: 3em; /* タイトルの高さを揃える */
}

.item-divider {
    border: 0;
    border-top: 1px dotted rgba(0, 0, 0, 0.5); /* 点線 */
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    text-align: left; /* 左揃え */
    margin-left: 0;
}

.item-description {
    font-size: 0.95rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.item-description p {
    margin-top: 0;
}

/* ===================================
   レスポンシブ対応
=================================== */
@media (max-width: 768px) {
    .partnership-grid {
        grid-template-columns: 1fr;
    }
    .partnership-item {
        border-right: none;
        border-bottom: 1px solid #cccccc;
    }
    .partnership-item:last-child {
        border-bottom: none;
    }
    .item-title {
        min-height: auto; /* スマホでは高さ揃えを解除 */
    }
}

/* =================================================
   複数セクションにまたがる背景画像（背景色の上に表示）
================================================== */
.background-wrapper {
    position: relative; /* 重ね順の基準点にする */
    overflow: hidden;   /* はみ出した部分で横スクロールバーが出るのを防ぐ */
}

/* ::beforeという疑似的な要素を「背景画像」として使用 */
.background-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: -700px;
    background-image: url('images/logo_nt.svg');
    background-size: 45%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: 1; 
}
/* スマホ表示で背景画像を左に寄せる */
@media (max-width: 768px) {
    .background-wrapper::before {
        background-position: 10% center; /* 1つ目の数値を小さくすると、より左に移動します */
    }
}


/* ⑤ 講座紹介 */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-bottom: 50px;
}

.course-card {
    border: 1px solid var(--border-color);
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.course-card img {
    display: block;
}

.course-card h3 {
    font-size: 1.3rem;
    padding: 20px 20px 10px;
    margin: 0;
}

.course-card p {
    padding: 0 20px 20px;
    margin: 0;
}

/*お試し*/
/* =================================================
★★★ お試しキャンペーンバナー（追加提案）
================================================== */
.campaign-banner-section {
    padding: 60px 10px 0; /* 上に60px、左右に10pxの余白 */
    text-align: center;
}
.campaign-banner-section img {
    max-width: 100%;
    height: auto;
    transition: opacity 0.3s;
}
.campaign-banner-section a:hover img {
    opacity: 0.85;
}

/* =================================================
★★★ バナー下の注意書き（追加提案）- 一元管理版
================================================== */
.notes-container {
    max-width: 800px;
    margin: 10px auto 0;
    text-align: left;
}
.notes-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.7;
}
.plan-notes-container {
    margin: 10px auto 0;
    text-align: left;
}
.plan-notes-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    color: #555;
    line-height: 1.7;
}

/* PCでのみ左に20pxの余白を追加 */
@media (min-width: 769px) {
    .notes-container ul {
        padding-left: 20px;
    }
}

/* ⑥料金プラン（5カラム対応版） */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: stretch;
}
.pricing-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card.recommended {
    border: 3px solid var(--primary-color);
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.pricing-header {
    padding: 15px 10px;
    border-bottom: 1px solid var(--border-color);
}
.pricing-header h3 {
    margin: 0;
    font-size: 1.2rem;
}
.recommend-badge {
    position: absolute;
    top: -15px; left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}
.pricing-body {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.pricing-description {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 5px; /* ← この値を小さくして、価格との間隔を狭めました */
    min-height: 3.5em;
}
.price-highlight {
    font-size: 2em;
    color: var(--text-color);
    margin: 0 0.05em;
}
.price {
    font-size: 2.0rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0 0 10px;
    line-height: 1.2;
}
.price-list li {
    background-image: url('images/icon_check.png');
    background-repeat: no-repeat;
    background-position: left 0px center;
    background-size: 1em 1em;
    padding-left: 1.3em;
    text-align: left;
    margin-bottom: 15px;
}
.price .unit {
    font-size: 0.9rem;
}
.pricing-save {
    font-size: 0.85rem;
    margin-top: -5px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}
.pricing-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    text-align: left;
    font-size: 0.85rem;
}
.pricing-body ul li {
    margin-bottom: 8px;
}
.pricing-body .btn {
    margin-top: auto;
    padding: 8px 4px;
    font-size: 0.80rem; /* ← ボタンの文字が改行されないように調整 */
}

/* ⑦ ご利用の流れ */
/*
.steps-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.step-item {
    flex: 1;
    padding: 0 20px;
    max-width: 400px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    transform: rotate(90deg);
}
*/
/* ご利用の流れ (新スタイル) */
.steps-container {
    display: flex;
    flex-direction: column; /* スマホでは縦並びが基本 */
    gap: 50px; /* ステップ間の余白 */
    align-items: center;
    text-align: center;
}

.step-item {
    background-color: transparent;
    padding: 0;
    box-shadow: none;
    border-top: none;
    max-width: 320px;
    width: 100%;
}

.step-icon-wrapper {
    position: relative;
    width: 130px; /* アイコン円のサイズ */
    height: 130px;
    margin: 0 auto 20px auto;
}

.step-number {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    border: 5px solid var(--bg-light-color); /* 背景色で縁取りして浮かせる */
    z-index: 2; /* アイコンより手前に表示 */
}

.step-icon {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.step-icon svg {
    width: 50%;
    height: 50%;
    fill: var(--primary-color); /* アイコンの色をテーマカラーに */
}

.step-item h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.step-arrow {
    display: none; /* 古い矢印は非表示に */
}


/* PC用のスタイル (769px以上) */
@media (min-width: 769px) {
    .steps-container {
        flex-direction: row; /* 横並びに変更 */
        align-items: flex-start; /* 上揃え */
        justify-content: space-between;
        position: relative; /* 接続線のための基準 */
        padding-top: 20px; /* 数字がはみ出る分の余白 */
    }

    .step-item {
        flex: 1; /* 横幅を均等に */
        padding: 0 15px;
    }

    /* ステップ間の接続線（点線） */
    .steps-container::before {
        content: '';
        position: absolute;
        top: 85px; /* アイコン円の中心の高さ */
        left: 15%; /* 線の開始位置 */
        right: 15%;/* 線の終了位置 */
        height: 2px;
        background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
        background-size: 12px 2px; /* 点線の間隔 */
        z-index: 0;
    }
}

/* ⑧ スタッフ紹介 */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 50px;
}

.staff-member {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.staff-image {
    margin-bottom: 15px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-light-color);
}

.staff-member h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0 0 10px;
}

.staff-tag {
    display: inline-block;
    background-color: var(--bg-light-color);
    color: #555;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.staff-message {
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

/* ⑨ お客様の声 */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.testimonial-card img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-content h3 {
    margin: 0 0 5px;
}

.testimonial-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 15px;
}

/*⑩ ギフトセクション　*/
.gift-section {
    background-color: #FFF9E5;
}

.gift-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.gift-content {
    flex: 1;
}

.gift-content h2 {
    margin-bottom: 20px;
}

.gift-content p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.gift-image {
    flex: 0 0 auto;
    max-width: 400px;
    width: 100%;
    border-radius: 8px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .gift-container {
        flex-direction: column;
    }
    
    .gift-image {
        max-width: 100%;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}



/* ★ Q&Aセクション */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

button.faq-question {
    width: 100%;
    background-color: transparent;
    border: none;
    text-align: left;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 25px 20px 25px 45px;
    cursor: pointer;
    position: relative;
    color: var(--text-color); /* 文字色を指定 */
    -webkit-appearance: none;  /* iOS/Safariのデフォルト装飾を解除 */
    appearance: none;
}

/* + / - アイコン (元のコードから流用) */
.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    position: relative; /* Aアイコン配置の基準 */
}

.faq-answer p {
    padding: 10px 10px 25px 45px; /* アイコン用の左余白を追加 */
    margin: 0;
    line-height: 1.8;
}

/* QとAのアイコンをここで作成 */
.faq-question::before,
.faq-answer::before {
    position: absolute;
    left: 0;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* Qアイコンのスタイル */
.faq-question::before {
    content: 'Q';
    background-color: var(--primary-color); /* テーマカラーの緑 */
    top: 50%;
    transform: translateY(-50%);
}

/* Aアイコンのスタイル */
.faq-answer::before {
    content: 'A';
    background-color: var(--secondary-color); /* テーマカラーのオレンジ */
    top: 10px; /* 回答テキストの上部に配置 */
}

/* ⑪ 対応エリア・お知らせ */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.area-map {
    margin-top: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}
.info-news ul {
    list-style: none;
    padding: 0;
}
.info-news li {
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}
.info-news li:first-child {
    padding-top: 0;
}
.info-news time {
    margin-right: 15px;
    color: #555;
}

/* =================================================
   グランチャのその他サービス
================================================== */
.life-support-service {
    text-align: center;
}

.section-subtitle {
    max-width: 700px;
    margin: -40px auto 60px;
    color: #555;
    font-size: 1rem;
}

.service-card-grid {
    display: grid;
    /* デスクトップでは4つのカードを横一列に表示 */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: left;
}

.service-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.service-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover img {
    transform: scale(1.05);
}

.card-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #fff;
}

/* アイコンの色 */
.icon-shopping { background-color: #A4CABC; } /* 青 */
.icon-chores { background-color: #EAB364; } /* 緑 */
.icon-outing { background-color: #B2473E; } /* 紫 */
.icon-talk { background-color: #ACBD78; } /* ピンク */


.card-content {
    padding: 24px;
}

.card-content h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.card-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px 24px;
}

.card-link {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding-right: 18px;
}

.card-link::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateY(-50%) translateX(4px);
}

.card-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e0e0e0;
}

.section-cta {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* スマホでボタンが改行されるように */
}
/* サービスカードのレスポンシブ対応 */

/* タブレット表示 (横幅が992px以下の場合に2列表示) */
@media (max-width: 992px) {
    .service-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ表示 (横幅が768px以下の場合に1列表示) */
@media (max-width: 768px) {
    .service-card-grid {
        grid-template-columns: 1fr;
    }
}

/* ⑫ お問い合わせ */
.contact-box {
    max-width: 700px;
    margin: 40px auto 0;
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.contact-form-info {
    margin-top: 10px;
    font-size: 0.9rem;
}
.contact-tel {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1;
}

.contact-hours {
    margin-top: 5px;
}


/* =================================================
 ⑪ エリア・会社情報 (背景画像追加)
================================================== */
.info-area {
    background-image: url(images/map.svg); /* 画像のパスを正しく指定してください */
    background-repeat: no-repeat;
    background-position: right 41%; /* 右端・垂直中央に配置 */
    background-size: 70%; /* 画像のサイズを調整 */
}
/* スマホ表示の際の背景画像調整 */
@media (max-width: 768px) {
    .info-area {
        background-position: right 42%; /* 画像を中央下に配置 */
        background-size: 70%;          /* エリアを覆うように画像を拡大（画像は切れます） */
    }
}

/* ★ レスポンシブ対応強化 */
@media (min-width: 769px) {
    .hero {
        padding: 120px 0;
    }
    .hero-content h1 { font-size: 3rem; }
    .hero-content p { font-size: 1.5rem; }
    .problem-list { font-size: 1.2rem; }
    .steps-container {
        flex-direction: row;
        align-items: flex-start;
    }
    .step-arrow { transform: rotate(0deg); margin-top: 50px; }
    .testimonial-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
    .gift-container {
        flex-direction: row;
    }
    .gift-content { text-align: left; }
    .info-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 899px) { /* 900px未満で適用 */
    .header-right {
        display: none;
    }
    .logo {
        font-size: 1.5rem;
    }
    .logo img {
        width: 50px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .section-padding { padding: 60px 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 40px; }
    .contact-tel { font-size: 2rem; }

    /*スマホ改行*/
    .sp_lingebrake {
        white-space: nowrap;
    }
    /*画像位置*/
    .hero {
        background-position: -300px -120px;
    }
}

/*コンタクト*/
#my-contact-form-wrapper {
  font-family: var(--font-family);
  background-color: var(--bg-light-color);
  padding: 20px;
  margin: 40px 0
}
#my-contact-form {
  max-width: 720px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .05)
}
.mcf-form-group {
  margin-bottom: 25px
}
.mcf-form-group label {
  display: block;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 8px;
  font-size: 16px
}
.mcf-form-group label.is-required::after {
  content: '必須';
  background-color: var(--primary-color);
  color: #fff;
  font-size: 12px;
  font-weight: normal;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  display: inline-block;
  vertical-align: middle
}
.mcf-form-group input[type="text"], .mcf-form-group input[type="email"], .mcf-form-group input[type="tel"], .mcf-form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color .3s, box-shadow .3s;
  box-sizing: border-box
}
.mcf-form-group input:focus, .mcf-form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 8px rgba(20, 162, 125, .2)
}
#mcf-zip-wrapper {
  display: flex;
  align-items: center;
  gap: 10px
}
#mcf-zip-wrapper input {
  width: 180px;
  flex-shrink: 0
}
#mcf-zip-wrapper button {
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color .3s
}
#mcf-zip-wrapper button:hover {
  background-color: #e0930f
}
.mcf-radio-group label {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  cursor: pointer
}
.mcf-radio-group input[type="radio"] {
  margin-right: 8px
}
.mcf-agree-group {
  text-align: center;
  margin-top: 30px
}
.mcf-agree-group label {
  font-weight: normal;
  font-size: 14px
}
.mcf-agree-group input[type="checkbox"] {
  margin-right: 8px;
  vertical-align: middle
}
#my-contact-form input[type="submit"] {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 40px auto 0;
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color .3s, transform .3s
}
#my-contact-form input[type="submit"]:hover {
  background-color: #108a69;
  transform: translateY(-2px)
}
#my-contact-form input[type="submit"]:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none
}
.mcf-success-message {
  border: 1px solid var(--primary-color);
  background-color: #e8f5f1;
  color: #0f5132;
  padding: 15px;
  border-radius: 5px;
  text-align: center
}
.mcf-error-message {
  border: 1px solid #d9534f;
  background-color: #f2dede;
  color: #a94442;
  padding: 15px;
  border-radius: 5px;
  text-align: center
}
@media (max-width:768px) {
  #my-contact-form {
    padding: 20px
  }
  #mcf-zip-wrapper {
    flex-direction: column;
    align-items: flex-start
  }
  #mcf-zip-wrapper input {
    width: 100%
  }
}
.mcf-agree-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  margin-right: 8px
}
.mcf-agree-group input[type="checkbox"]:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color)
}
.mcf-agree-group input[type="checkbox"]:checked::after {
  content: '';
  display: block;
  width: 6px;
  height: 12px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  position: absolute;
  top: 2px;
  left: 7px
}
.mcf-grid-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px
}
@media (max-width:480px) {
  .mcf-grid-group {
    grid-template-columns: 1fr
  }
}
.mcf-intro-text {
  text-align: center;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-color);
}


/* =================================================
   ⑬ フッター：詳細度を極限まで高めた最終設定
   ================================================== */
/* =================================================
   ⑬ フッター最終デザイン（ロゴ横並び版）
   ================================================== */
.site-footer {
    background-color: #fff;
    padding: 80px 0 60px;
    border-top: 1px solid #eee;
}

/* 左右を端と端に振り分け */
.site-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* 右側メニューを住所の下線に合わせる */
}

/* --- 左側：ロゴ＋店名＋住所 --- */
.site-footer .footer-left {
    flex: 0 1 auto;
    text-align: left;
}

/* ロゴとブランド名の横並び設定 */
.site-footer .footer-logo-brand {
    display: flex;
    align-items: center; /* 上下中央揃え */
    margin-bottom: 10px;
}

.site-footer .footer-logo {
    width: 130px; /* ロゴのサイズ */
    margin-right: 25px; /* ロゴと店名の間隔 */
    display: block;
}

.site-footer .footer-logo svg,
.site-footer .footer-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* 店名とタグライン */
.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
}

.site-footer .brand-name {
    display: block;
    font-size: 32px; /* 画像に合わせて大きく */
    font-weight: 700;
    line-height: 1.1;
    color: #333;
}

.site-footer .brand-tagline {
    display: block;
    font-size: 15px; /* purpose of life */
    color: #888;
    letter-spacing: 0.28em;
}

/* 住所 */
.site-footer .footer-address {
    font-style: normal;
    font-size: 16px;
    color: #333;
}

/* --- 右側：ナビゲーション --- */
.site-footer .footer-nav {
    flex: 0 1 auto;
    text-align: right;
}

.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-menu li {
    margin-bottom: 12px;
}

.site-footer .footer-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* 下部：コピーライト */
.site-footer .footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid #f4f4f4;
}

.site-footer .copyright {
    font-size: 12px;
    color: #aaa;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .site-footer .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-footer .footer-logo-brand {
        align-items: flex-start; /* スマホではロゴ横の文字を上寄せに */
    }

    .site-footer .footer-nav {
        margin-top: 40px;
        text-align: left;
    }
}