/* ==========================================================================
   //  style.css目次
   // ======================================================================= */
/* --- 01. 基本の設定 
/* --- 02. ヘッダーの設定 
/* --- 03. ヒーローセクションの設定 
/* --- 05. お悩みの設定 
/* --- 06. 4つの理由の設定 
/* --- 07. ご家族の声の設定 
/* --- 08. 無料体験申し込みの設定 
/* --- 09. フッターの設定 
/* --- 10. その他の設定（メディアクエリ除く） 
/* --- 11. メディアクエリの設定 
  
/* ==========================================================================
   01.基本の設定
   ========================================================================== */
/* ----- カスタムプロパティの設定 ----- */
:root {
    --main-color: #6a9c7c; /* 森の緑 */
    --accent-color: #ff914d; /* オレンジ */
    --light-bg: #f9f9f9;
    --text-color: #333;
    --font-heading: 'M PLUS Rounded 1c', sans-serif; /* Google Fonts */
    --font-body: 'メイリオ', 'Meiryo', sans-serif;
}

/* ----- 基本スタイルとリセット ----- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ----- その他の基本設定 ----- */
body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: var(--font-heading);
    text-align: center;
}

/* ==========================================================================
   02.ヘッダーの設定
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 40px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

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

/* ========================================
   ロゴの設定
   ======================================== */
.site-logo .logo-img {
    height: 60px;
    width: auto;
    vertical-align: middle;
    transition: height 0.3s ease;
}

/* ========================================
   ナビゲーションの設定
   ======================================== */

.site-nav {
    transition: transform 0.4s ease-in-out;
}
.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}
.nav-item a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}
.nav-item a:hover {
    color: var(--accent-color);
}

/* =========================
   トグルメニュー設定（JSと連動するスマホのみの設定）
   ========================= */

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}
/* トグルメニューの線の設定 */
.hamburger, .hamburger::before, .hamburger::after {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--main-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
}

/* ×印に変化するアニメーション設定 */
.hamburger::before {
     transform: translateY(-8px); 
    }

.hamburger::after { 
    transform: translateY(8px); 
}

/* ×印に変化するアニメーション */
.menu-toggle[aria-expanded="true"] .hamburger { 
    transform: rotate(45deg); 
    background-color: #333; /* ★閉じるボタンの色を濃くする */
}
.menu-toggle[aria-expanded="true"] .hamburger::before { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger::after { 
    transform: rotate(90deg) translateX(-1px); 
    background-color: #333; /* ★閉じるボタンの色を濃くする */
}

/* ==========================================================================
   03.ヒーローセクションの設定
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: white;
}

/* --- 画像部分の設定　--- */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* ----- テキスト部分の設定　----- */

.hero-content-wrapper {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}

/* --- キャッチコピー　--- */
.main-heading {
    font-size: 2.8rem;
    margin: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    animation: fadeInScale 1s ease-out forwards;
}

/* ---サブコピー　--- */
.sub-copy {
    font-size: 1.2rem;
    margin-top: 10px;
}

/* ==========================================================================
   04.main(お悩み〜無料体験)共通設定
   ========================================================================== */

.section {
    padding: 80px 20px;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: center; /* 中央寄せ */
    font-size: 2.2rem;
    padding: 0  0 1.2rem 0; 
    color: #333; /* テキストの色 */
    position: relative; /* 疑似要素のために必要 */
    margin: 3rem auto; /* 中央寄せ */
    max-width: 900px; /* 見出しの最大幅を設定 */
}

.section-heading .material-icons {
    font-size: 3rem; /* アイコンを少し大きく */
    color: var(--main-color); /* ブランドカラーに合わせる */
    margin-right: 10px; /* アイコンとテキストの間隔 */
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* 下線が少し短い */
    height: 3px; /* 下線の太さ */
    background-color: var(--main-color); /* 下線の色 */
    border-radius: 2px;
}

.container{
    max-width: 1200px;
    margin: 0 auto;
}
/* ----- 無料体験誘導の設定　----- */

/*---アニメーション設定--- */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*---ボタン設定--- */
.cta-box {
  text-align: center;
  margin-top: 50px;
  padding: 30px 20px;
  border-radius: 10px;
}

.cta-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
}

.section.is-visible .cta-text {
  animation: fadeInSlideUp 0.8s ease-out 0.5s forwards;
}

.marker {
    display: inline; /* インライン要素のまま */
    /* マーカーのスタイルを追加 */
    background-image: linear-gradient(
      to right, 
      rgba(255, 255, 102, 0.5), /* 黄色のマーカー色 */
      rgba(255, 255, 102, 0.5)
    );
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.8s ease-out 0.5s; /* アニメーション遅延を設定 */
}

/* 親要素にis-visibleクラスが付与されたらアニメーションを実行 */
.section.is-visible .marker {
  background-size: 100% 100%;
}

.cta-button {
  display: inline-block;
  background-color: #ff9900;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  padding: 15px 50px;
  border-radius: 50px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  opacity: 0; /* 初期状態を非表示に */
  transform: translateY(20px);
}

.section.is-visible .cta-button {
  animation: fadeInSlideUp 0.8s ease-out 0.8s forwards;
}

.cta-button:hover {
  background-color: #F0917D;
  transform: translateY(-2px);
}

/* ==========================================================================
   05.お悩みの設定
   ========================================================================== */
.problems-bg{
    background-color: #f7f3e9; /* 薄いベージュ */
}

.problem-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    /* カードの数が奇数でも中央に配置するための調整 */
    justify-content: center;
    align-items: center;
}
.problem-item {
    background-color: var(--light-bg);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.problem-item:hover {
    transform: translateY(-10px);
}
/*--- 画像の設定 --- */
.problem-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.problem-img3 {
  object-position: 50% 35%; /* X軸50%、Y軸35%の位置を表示 */
}

.problem-img4 {
  object-position: 50% 40%; /* X軸50%、Y軸20%の位置を表示 */
}

/*--- テキストの設定 --- */
.problem-content {
    padding: 20px;
    font-weight:bold;
}

 /* ==========================================================================
   06.4つの理由の設定
   ========================================================================== */
 .reason-bg {
    background-color: #e9f7f3; /* 淡いグリーン */
}
 
.reason-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    /* カードの数が奇数でも中央に配置するための調整 */
    justify-content: center;
    align-items: center;
}
.reason-item {
    background-color: var(--light-bg);
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.reason-item:hover {
    transform: translateY(-10px);
}
.reason-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.reason-content {
    padding: 20px;
}
.reason-title {
    color: var(--main-color);
    margin-top: 0;
}

 /* ==========================================================================
   07.ご家族の声の設定
   ========================================================================== */  
.testimonial-bg {
    background-color: #f9f7f9; /* ごく薄いパープル */
}

.testimonial-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    display: flex; /* Flexboxを有効にして子要素を横並びにする */
    align-items: center; /* 垂直方向の中央揃え */
    gap: 30px; /* 画像とテキストの間に余白を入れる */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 30px;
}

.testimonial-img-wrapper {
    flex-shrink: 0; /* 画像が縮まないようにする */
    width: 250px; /* 画像の固定幅 */
    height: 250px; /* 画像の高さを固定 */
    border-radius: 50%; /* 画像を丸くする */
    overflow: hidden; /* 丸い枠内に画像を収める */
}

.testimonial-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* 適切に調整 */
}

.testimonial-content {
    flex-grow: 1; /* テキストが残りのスペースを埋める */
}

.testimonial-item h3 {
    margin-top: 0;
    font-size: 1.2rem;
}

.testimonial-item p {
    font-size: 1rem;
    font-weight:bold;
    line-height: 1.6;
}

 /* ==========================================================================
   08.無料体験申し込みの設定
   ========================================================================== */   
.contact-bg {
    background-color: #fbf8f0; /* ごく薄いクリーム色 */
}

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

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--text-color);
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-body);
}
.form-group textarea {
    resize: vertical;
}
.required {
    color: red;
    font-size: 0.8rem;
    margin-left: 5px;
}
.contact-method-group {
    display: flex;          /* Flexboxコンテナにする */
    align-items: center;    /* 垂直方向の中央揃え */
    gap: 20px;              /* 要素間の隙間を空ける */
    flex-wrap: wrap;        /* 画面幅が狭い場合に折り返す */
}

.contact-options {
    display: flex; /* Flexboxコンテナに設定 */
    align-items: center; /* 垂直方向の中央揃え */
    gap: 5px; /* 子要素間の間隔を調整 */
}

.contact-options input[type="radio"] {
    flex-shrink: 0; /* ラジオボタンが縮まないようにする */
    width: auto; /* ★追加: 幅を自動調整する */
}

.contact-method-group label {
    display: inline-flex;
    align-items: center;
    font-weight: normal;
    flex-shrink: 0; /* テキストが縮まないようにする */
    margin-bottom: 0;
}
/* ----- プライバシーポリシー同意について ----- */

.privacy-policy-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}
.privacy-policy-group input {
    width: auto;
    margin-right: 10px;
}
.privacy-policy-group label {
    font-size: 0.9rem;
    display: inline;
}

.contact-submit-button {
  text-align: center;
}

.sample-notice {
  font-size: 0.9rem;
  color: #d32f2f; /* 目立つ赤色 */
  font-weight: bold;
  margin-bottom: 10px;
}

.cta-button {
    font-size: 1.2rem;
    margin: 0 auto;
    border: none;
}
/* ========================================
   プライバシーポリシー設定（モーダルウィンドウ部分）
   ======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}
.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 700px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
}
.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close-button:hover {
    color: #333;
}
.modal-body h3 {
    text-align: center;
    color: var(--main-color);
    margin-top: 0;
}

 /* ==========================================================================
   09.フッターの設定
   ========================================================================== */  
.site-footer {
    padding: 20px;
    background-color: var(--main-color);
    color: white;
    text-align: center;
}
.copyright {
    display: block;
}

/* ==========================================================================
   10.その他の設定（メディアクエリ除く）
   ========================================================================== */
/* ========================================
   アニメーション設定
   ======================================== */

   @keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   改行設定（PCではOFF、スマホではON）
   ======================================== */
br.sp {
    display:none;
}

/* ==========================================================================
   11.メディアクエリ設定
   ========================================================================== */
/* ========================================
   タブレット用の設定
   ======================================== */

   @media (max-width: 1024px) {
    .main-heading {
        font-size: 2.4rem;
    }
    .sub-copy {
        font-size: 1.1rem;
    }
}

/* ========================================
   スマホ用の設定
   ======================================== */

@media (max-width: 768px) {
    .site-header {
        padding: 15px 20px;
    }
    .site-logo .logo-img {
        height: 40px;
    }
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 60%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.95);
        transform: translateX(100%);
        padding-top: 80px;
    }
    .site-nav.is-open {
        transform: translateX(0);
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }
/* --- 改行設定（ON）--- */    
    br.sp {
    display:inline;
    }
 /* ----- ヒーローセクション（スマホ表示用） ----- */
    .hero-content-wrapper {
        bottom: 10%;
    }

 /* --- キャッチコピー（スマホ表示用）　--- */
    .main-heading {
        font-size: 1.5rem;
    }

 /* --- サブコピー（スマホ表示用）　--- */
    .sub-copy {
        font-size: 1rem;
    }
 
/* --- 各セクション見出し設定--- */        
h2.section-heading {
      font-size: 1.3rem; /* スマホ画面に合わせたサイズ */
      padding: 1.2rem 0; /* 上下のパディングを調整 */
    }

 /* --- 無料体験申し込み（スマホ表示用） --- */
.cta-button {
        font-size: 1rem;
    }
    
 .cta-text {
      font-size: 1.25rem; /* 少し小さめのサイズ */
    }

    /* ----- お悩み（スマホ表示用） ----- */
    .problem-container {
    grid-template-columns: 1fr;
  }
    .problem-item {
        grid-column: span 2;
    }
    /* ----- 4つの理由（スマホ表示用） ----- */
    
    .reason-container {
    grid-template-columns: 1fr;
  }
    .reason-item {
        grid-column: span 2;
    }

    h3.reason-title{
        font-size: 1.1rem; /* スマホ画面に合わせたサイズ */
    }

    /* ----- ご家族の声（スマホ表示用） ----- */
.testimonial-item {
        flex-direction: column;
        align-items: center;
    }
 
    .testimonial-cite {
        text-align: center;
    }        
}