   :root {
      --sky:   #64B5F6;  /* 空色ブルー */
      --leaf:  #81C784;  /* 若草グリーン */
      --soil:  #A1887F;  /* 土ブラウン */
      --cream: #FFF8E1;  /* やわらかクリーム */
      --green: var(--leaf);
      --brown: var(--soil);
      --orange: #FFB74D;
    }

    body {
      margin: 0;
      font-family: "Yu Gothic", sans-serif;
      background: var(--cream);
      color: #333;
      line-height: 1.6;
    }

    /* ヒーローヘッダー */
    .hero {
      background: url('../img/main.png') center/cover no-repeat;
      color: white;
      text-align: center;
      padding: 6rem 1rem;
      height: 400px;
      position: relative; /* FABの基準 */
    }
    .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to bottom,
        rgba(100,181,246,0.0) 95%,
        rgba(255,248,225,1.0) 100%
      );
    }
    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 800px;
      margin: 0 auto;
    }
    .hero h1 { font-size: 4rem; margin: 0; }
    .hero p  { font-size: 2rem; margin-top: 1rem; }
    p {font-size: 1.1rem; font-weight : bold;}
    li  {font-size: 1.1rem; font-weight : bold; color : #777777;}

    /* ヒーロー右上：円形お問合せボタン（クエリ方式） */
    .contact-fab {
      position: absolute;
      top: 16px; right: 16px;
      width: clamp(56px, 9vw, 120px);
      height: clamp(56px, 9vw, 120px);
      border-radius: 50%;
      background: radial-gradient(circle at 30% 30%, var(--sky), #4aa5ee);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      text-decoration: none;
      box-shadow: 0 8px 18px rgba(0,0,0,0.22);
      border: 2px solid rgba(255,255,255,0.8);
      z-index: 2;
      transform: translateZ(0);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }
    .contact-fab:hover { transform: scale(1.06); box-shadow: 0 10px 22px rgba(0,0,0,0.28); }
    .contact-fab .fab-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.1; padding: 6px; user-select: none; }
    .contact-fab .icon  { font-size: clamp(16px, 3.2vw, 28px); }
    .contact-fab .label { font-size: clamp(10px, 1.8vw, 14px); font-weight: 700; letter-spacing: 0.04em; text-shadow: 0 1px 2px rgba(0,0,0,0.25); white-space: nowrap; }

    /* 円形カード */
    .circle-cards {
      display: flex; justify-content: center; gap: 2rem; margin: 3rem 1rem; flex-wrap: wrap;
    }
    .circle-card {
      width: 160px; height: 160px; background: var(--leaf); border-radius: 50%;
      display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
      color: white; font-weight: bold; text-align: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      text-decoration: none; overflow: hidden; position: relative;
      transition: transform 0.2s ease, background 0.3s;
    }
    .circle-card img {
      position: absolute; top: 0; left: 0; width: 100%; height: 50%;
      object-fit: cover; border-top-left-radius: 50%; border-top-right-radius: 50%;
    }
    .circle-card .text { position: relative; z-index: 1; padding: 0.3rem; margin-bottom: 0.8rem; }
    .circle-card .title { font-size: 1rem; margin: 0.2rem 0 0; }
    .circle-card .desc  { font-size: 0.8rem; font-weight: normal; }
    .circle-card:hover  { transform: scale(1.05); background: var(--sky); }

    /* 詳細カード（共通） */
    .detail-card {
      max-width: 900px; margin: 3rem auto; background: #fff; border-radius: 10px;
      box-shadow: 0 6px 12px rgba(0,0,0,0.15); border: 1px solid rgba(0,0,0,0.08);
      padding: 2rem; transition: background 0.6s; position: relative; overflow: hidden;
      z-index: 1; /* 装飾より前面 */
    }
    .detail-card h2 { color: #5D4037; font-weight: bold; margin-top: 0; }
    .detail-card::before {
      content: ""; display: block; height: 6px; background: var(--soil);
      position: absolute; top: 0; left: 0; right: 0; border-radius: 10px 10px 0 0;
    }

    /* ーーー 事例カード用：本文＋写真 ーーー */
    .card-body{
      display: grid;
      grid-template-columns: 1fr auto; /* 左：本文 / 右：写真列 */
      gap: 1.4rem;
      align-items: start;
      grid-template-columns: minmax(0,1fr) auto; /* 左カラムを縮められるように */
    }
    .card-text{
      min-width: 0;
      overflow-wrap: anywhere;  /* 長い単語・URLでの横溢れ防止 */
    }
    .card-media{
      display: flex;
      flex-direction: column;         /* 右端で縦並び */
      align-items: flex-end;          /* 右端に寄せる */
      gap: 12px;
    }
    .circle-photo{
      width: 128px;
      height: 128px;
      border-radius: 50%;
      object-fit: cover;
      display: block;
      box-shadow: 0 4px 10px rgba(0,0,0,.12);
    }

    /* モバイル時：写真はカード上部・中央に配置し、2列→1列に落ちる */
    @media (max-width: 768px){
      .card-body{
        grid-template-columns: 1fr;   /* 1カラム化 */
      }
      .card-media{
        order: -1;                    /* 先頭（上部）へ移動 */
        align-items: center;
        display: grid;                /* グリッドで横2列 */
        grid-template-columns: repeat(2, minmax(100px, 1fr));
        gap: 12px 16px;
        justify-items: center;
        margin-bottom: .5rem;
      }
      .circle-photo{
        width: 100%;
        max-width: 180px;             /* 過度に大きくならないように */
        aspect-ratio: 1/1;
        height: auto;                 /* aspect-ratioで正方形に */
      }
      .hero h1 { font-size: 3rem; margin: 0; }
      .hero p  { font-size: 1.5rem; margin-top: 1rem; }
    }
    @media (max-width: 480px){
      .card-media{
        grid-template-columns: 1fr;   /* さらに狭い時は1列 */
      }
      .hero h1 { font-size: 1.5rem; margin: 0; }
      .hero p  { font-size: 1.2rem; margin-top: 1rem; }
    }

    .highlight { background: #FFE0B2 !important; }

    /* =========================
       ★ 装飾モチーフ（独立レイヤー）
       ========================= */
    .motif-top { position: relative; height: 0; overflow: visible; z-index: 0; }
    .motif-top-layer { position: absolute; inset: -160px 0 -40px 0; pointer-events: none; z-index: 0; }
    .motif { position: absolute; border-radius: 50%; opacity: 0.28; }
    .motif-top .motif { background: var(--leaf); }
    .motif-top .g1 { width: clamp(170px,36vw,400px); height: clamp(170px,36vw,400px); left: 10%;  top: 100px;  transform: translateX(-40%); }
    .motif-top .g2 { width: clamp(170px,36vw,400px); height: clamp(170px,36vw,400px); right:15%; top: 400px;  transform: translateX(40%); }
    .motif-top .g3 { width: clamp(150px,30vw,340px); height: clamp(150px,30vw,340px); left:10%;  top: 700px; }
    .motif-top .g4 { width: clamp(150px,30vw,340px); height: clamp(150px,30vw,340px); right:10%; top: 1000px; }
    .motif-top .g5 { width: clamp(150px,30vw,340px); height: clamp(150px,30vw,340px); left:10%;  top: 1300px; }

    .motif-footer { position: relative; height: 0; overflow: visible; z-index: 0; }
    .motif-footer-layer { position: absolute; inset: -20px 0 -160px 0; pointer-events: none; z-index: 0; }
    .motif-footer .motif { background: var(--soil); }
    .motif-footer .b1 { width: clamp(220px,55vw,520px); height: clamp(220px,55vw,520px); left: 10%;  bottom: -200px; }
    .motif-footer .b2 { width: clamp(150px,30vw,340px); height: clamp(150px,30vw,340px);  right: 15%; bottom: 100px;  transform: translateX(40%); }
    .motif-footer .bC { width: clamp(150px,30vw,340px); height: clamp(150px,30vw,340px); left: 10%;  bottom: 400px;  transform: translateX(-40%); }

    footer {
      background: var(--soil);
      color: white;
      text-align: center;
      padding: 1.5rem;
      margin-top: 2rem;
      position: relative;
      z-index: 1; /* フッターは前面（円と重なっても上に） */
    }
    footer nav { margin-top: 0.5rem; }
    footer nav a {
      color: var(--cream);
      margin: 0 0.5rem;
      text-decoration: none;
      font-weight: bold;
      transition: color 0.3s;
    }
    footer nav a:hover { color: var(--sky); }

    /* 上に戻るボタン */
    #backToTop {
      position: fixed;
      bottom: 20px; right: 20px;
      width: 50px; height: 50px;
      background: var(--sky); /* 初期は空色 */
      color: white;
      border-radius: 50%;
      display: flex; justify-content: center; align-items: center;
      font-size: 24px;
      cursor: pointer;
      box-shadow: 0 4px 8px rgba(0,0,0,0.3);
      opacity: 0.8;
      transition: opacity 0.3s, transform 0.3s, background 0.3s;
      z-index: 1000;
      user-select: none;
    }
    #backToTop:hover { opacity: 1; transform: scale(1.1); background: #4aa5ee; }

    /* ▼ スクロール後は緑に変化 */
    #backToTop.scrolled { background: var(--leaf); }
    #backToTop.scrolled:hover { background: #66b773; }

    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

    /* 📱 スマホ調整：ヒーロー低め＋モチーフ領域を少し縮小・薄く */
    @media (max-width: 768px) {
      .hero { height: 300px; padding: 4rem 1rem; background-position: center top; }
      .motif-top-layer    { inset: -120px 0 -30px 0; }
      .motif-footer-layer { inset: -10px  0 -120px 0; }
      .motif { opacity: 0.26; }
  #backToTop {
    left: auto;        /* 画面幅の50% */
    right: 5%;      /* 右端指定を解除 */
    transform: translateX(-50%); /* 自身の幅の半分だけ左に戻す */
  }
    }
    @media (max-width: 480px) {
      .hero { height: 240px; padding: 3rem 1rem; background-position: center top; }
      .motif-top-layer    { inset: -90px 0 -20px 0; }
      .motif-footer-layer { inset: -8px  0 -90px 0; }
      .motif { opacity: 0.24; }
    }