*{box-sizing:border-box;}
  html{scroll-behavior:smooth;}
  @media (prefers-reduced-motion: reduce){
    html{scroll-behavior:auto;}
    *{animation-duration:0.001ms !important; transition-duration:0.001ms !important;}
  }

  body{
    margin:0;
    background:var(--wp--preset--color--cream);
    color:var(--wp--preset--color--ink);
    font-family:var(--wp--preset--font-family--body);
    font-size:17px;
    line-height:1.85;
    -webkit-font-smoothing:antialiased;
  }

  h1,h2,h3,.brand{
    font-family:var(--wp--preset--font-family--heading);
    color:var(--wp--preset--color--ink);
    margin:0;
  }

  a{color:inherit;}
  img,svg{display:block;max-width:100%;}
  .wrap{max-width:1080px;margin:0 auto;padding:0 28px;}

  :focus-visible{outline:3px solid var(--wp--preset--color--yuzu);outline-offset:3px;}

  /* ---------- Motion ---------- */
  header{transition:box-shadow .25s ease;}
  header.is-scrolled{box-shadow:0 8px 24px rgba(35,55,56,0.10);}

  .reveal{transition:opacity .7s ease, transform .7s ease;}
  .js .reveal{opacity:0;transform:translateY(24px);}
  .reveal.is-visible{opacity:1;transform:translateY(0);}

  .stagger > *{transition:opacity .6s ease, transform .6s ease;}
  .js .stagger > *{opacity:0;transform:translateY(22px);}
  .stagger.is-visible > *{opacity:1;transform:translateY(0);}
  .stagger > *:nth-child(1){transition-delay:0s;}
  .stagger > *:nth-child(2){transition-delay:.09s;}
  .stagger > *:nth-child(3){transition-delay:.18s;}
  .stagger > *:nth-child(4){transition-delay:.27s;}
  .stagger > *:nth-child(5){transition-delay:.36s;}
  .stagger > *:nth-child(6){transition-delay:.45s;}

  .js .hero-animate{opacity:0;transform:translateY(18px);animation:heroIn .7s ease forwards;}
  .hero-animate.d1{animation-delay:.05s;}
  .hero-animate.d2{animation-delay:.16s;}
  .hero-animate.d3{animation-delay:.27s;}
  .hero-animate.d4{animation-delay:.38s;}
  .hero-animate.d5{animation-delay:.49s;}
  @keyframes heroIn{to{opacity:1;transform:translateY(0);}}

  .hero-sun{transform-box:fill-box;transform-origin:center;animation:floatY 4.5s ease-in-out infinite;}
  .hero-pulse{transform-box:fill-box;transform-origin:center;animation:pulseScale 2.6s ease-in-out infinite;}
  @keyframes floatY{0%,100%{transform:translateY(0);}50%{transform:translateY(-9px);}}
  @keyframes pulseScale{0%,100%{transform:scale(1);}50%{transform:scale(1.06);}}

  @media (prefers-reduced-motion: reduce){
    .reveal, .stagger > *, .hero-animate{opacity:1 !important;transform:none !important;animation:none !important;}
    .hero-sun, .hero-pulse{animation:none !important;}
  }

  /* ---------- Dynamic Query Loop patterns (case-study / faq / news) ---------- */
  .is-style-hamada-voices .wp-block-post-template,
  .is-style-hamada-faq .wp-block-post-template,
  .is-style-hamada-news .wp-block-post-template{
    list-style:none;margin:0;padding:0;display:contents;
  }
  .empty-note{
    color:var(--wp--preset--color--ink-soft);font-size:0.95rem;
    padding:8px 0 32px;
  }
  .is-style-hamada-news .wp-block-query-pagination{
    display:flex;gap:12px;justify-content:center;margin-top:8px;padding-bottom:32px;
  }

  /* ---------- Header ---------- */
  header{
    position:sticky;top:0;z-index:50;
    background:rgba(250,245,234,0.92);
    backdrop-filter:blur(6px);
    border-bottom:1px solid var(--wp--preset--color--sand);
  }
  .nav{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 28px;max-width:1080px;margin:0 auto;
  }
  .brand{
    display:flex;align-items:baseline;gap:10px;
    font-weight:700;font-size:1.3rem;letter-spacing:.02em;
    text-decoration:none;
  }
  .brand span.sub{
    font-family:var(--wp--preset--font-family--body);
    font-size:0.72rem;color:var(--wp--preset--color--ink-soft);font-weight:500;
  }
  nav.links{display:flex;gap:30px;list-style:none;margin:0;padding:0;font-size:0.95rem;font-weight:600;}
  nav.links a{position:relative;text-decoration:none;padding:6px 2px;display:inline-block;}
  nav.links a::after{
    content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;
    background:var(--wp--preset--color--yuzu);transform:scaleX(0);transform-origin:left;
    transition:transform .25s ease;
  }
  nav.links a:hover::after{transform:scaleX(1);}
  .nav-cta{
    background:var(--wp--preset--color--river);color:var(--wp--preset--color--ink);padding:11px 22px;border-radius:999px;
    font-weight:700;font-size:0.92rem;text-decoration:none;white-space:nowrap;
    box-shadow:0 3px 0 var(--wp--preset--color--river-deep);
  }
  .nav-cta:hover{background:var(--wp--preset--color--river-deep);color:#fff;}
  .menu-btn{display:none;background:none;border:none;cursor:pointer;padding:8px;}
  .menu-btn span{display:block;width:24px;height:2px;background:var(--wp--preset--color--ink);margin:5px 0;}

  @media (max-width:820px){
    nav.links{
      position:fixed;inset:64px 0 auto 0;background:var(--wp--preset--color--cream);
      flex-direction:column;gap:0;padding:8px 28px 20px;
      border-bottom:1px solid var(--wp--preset--color--sand);
      transform:translateY(-8px);opacity:0;pointer-events:none;
      transition:opacity .18s ease, transform .18s ease;
    }
    nav.links.open{opacity:1;transform:translateY(0);pointer-events:auto;}
    nav.links a{display:block;padding:13px 0;border-bottom:1px solid var(--wp--preset--color--sand);}
    .menu-btn{display:block;}
    .nav-cta.desktop-only{display:none;}
  }

  /* ---------- Hero ---------- */
  .hero{
    padding:64px 0 40px;
    overflow:hidden;
  }
  .hero .wrap{
    display:grid;grid-template-columns:1.05fr 0.95fr;gap:48px;align-items:center;
  }
  .eyebrow-note{
    display:inline-flex;align-items:center;gap:8px;
    background:var(--wp--preset--color--river-pale);color:var(--wp--preset--color--river-deep);
    padding:8px 16px;border-radius:999px;font-size:0.85rem;font-weight:700;
    margin-bottom:22px;
  }
  .eyebrow-note::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--wp--preset--color--yuzu);flex:none;}
  .hero h1{
    font-size:clamp(2.1rem,4.4vw,3.2rem);
    font-weight:900;line-height:1.5;letter-spacing:.01em;
  }
  .hero h1 em{
    font-style:normal;color:var(--wp--preset--color--river-deep);
    background:linear-gradient(180deg,transparent 62%, var(--wp--preset--color--river-pale) 62%);
  }
  .hero p.lead{
    margin-top:22px;font-size:1.08rem;color:var(--wp--preset--color--ink-soft);max-width:46ch;
  }
  .hero-actions{display:flex;gap:14px;margin-top:34px;flex-wrap:wrap;}
  .btn{
    display:inline-flex;align-items:center;gap:8px;
    padding:15px 28px;border-radius:999px;font-weight:700;font-size:1rem;
    text-decoration:none;border:2px solid transparent;transition:transform .15s ease, background .15s ease;
  }
  .btn:hover{transform:translateY(-2px);}
  .btn-primary{background:var(--wp--preset--color--yuzu);color:var(--wp--preset--color--ink);box-shadow:0 4px 0 var(--wp--preset--color--yuzu-deep);}
  .btn-primary:hover{background:var(--wp--preset--color--yuzu-deep);color:#fff;}
  .btn-ghost{border-color:var(--wp--preset--color--ink);color:var(--wp--preset--color--ink);}
  .btn-ghost:hover{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--cream);}

  .hero-fact-row{
    display:flex;gap:26px;margin-top:38px;padding-top:28px;border-top:1px solid var(--wp--preset--color--sand);flex-wrap:wrap;
  }
  .hero-fact b{display:block;font-family:"Zen Maru Gothic";font-size:1.5rem;color:var(--wp--preset--color--river-deep);}
  .hero-fact span{font-size:0.85rem;color:var(--wp--preset--color--ink-soft);}

  .hero-art{position:relative;}

  /* ---------- Sections generic ---------- */
  section{padding:78px 0;}
  .section-head{max-width:60ch;margin-bottom:44px;}
  .section-head .kicker{color:var(--wp--preset--color--river-deep);font-weight:700;font-size:0.95rem;margin-bottom:10px;display:block;}
  .section-head h2{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:700;line-height:1.5;}
  .section-head p{margin-top:14px;color:var(--wp--preset--color--ink-soft);}

  .band-river{background:var(--wp--preset--color--river);}
  .band-river .section-head{
    background:var(--wp--preset--color--cream);border-radius:var(--wp--custom--radius--lg);border:1px solid var(--wp--preset--color--sand);
    padding:28px 32px;display:inline-block;
  }

  /* Reasons */
  .reasons{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
  .reason-card{
    background:#fff;border:1px solid var(--wp--preset--color--sand);border-radius:var(--wp--custom--radius--lg);
    padding:32px 28px;
  }
  .reason-card .icon{width:52px;height:52px;margin-bottom:20px;}
  .reason-card h3{font-size:1.15rem;font-weight:700;margin-bottom:10px;}
  .reason-card p{color:var(--wp--preset--color--ink-soft);font-size:0.96rem;margin:0;}

  /* Lessons */
  .lesson-groups{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
  .lesson-card{
    background:var(--wp--preset--color--cream-deep);border-radius:var(--wp--custom--radius--lg);padding:30px 26px;
    border:1px solid var(--wp--preset--color--sand);
  }
  .lesson-card.highlight{background:var(--wp--preset--color--ink);color:var(--wp--preset--color--cream);border-color:var(--wp--preset--color--ink);}
  .lesson-card.highlight h3{color:var(--wp--preset--color--cream);}
  .lesson-card.highlight .tag{background:var(--wp--preset--color--yuzu);color:var(--wp--preset--color--ink);}
  .lesson-card h3{font-size:1.2rem;margin-bottom:6px;}
  .lesson-card .tag{
    display:inline-block;background:var(--wp--preset--color--river-pale);color:var(--wp--preset--color--river-deep);
    font-size:0.78rem;font-weight:700;padding:4px 12px;border-radius:999px;margin-bottom:16px;
  }
  .lesson-card ul{margin:0;padding:0;list-style:none;}
  .lesson-card li{
    padding:9px 0;border-top:1px solid rgba(0,0,0,0.08);font-size:0.94rem;
  }
  .lesson-card.highlight li{border-top:1px solid rgba(255,255,255,0.16);}
  .lesson-card li:first-child{border-top:none;}

  /* BtoB */
  .biz-intro{
    background:var(--wp--preset--color--ink);color:var(--wp--preset--color--cream);border-radius:var(--wp--custom--radius--lg);
    padding:34px 36px;margin-bottom:40px;
  }
  .biz-intro h3{color:var(--wp--preset--color--cream);font-size:1.15rem;margin-bottom:16px;}
  .pain-list{
    list-style:none;margin:0;padding:0;
    display:grid;grid-template-columns:1fr 1fr;gap:0 32px;
  }
  .pain-list li{
    padding:10px 0;border-top:1px solid rgba(255,255,255,0.14);
    font-size:0.94rem;padding-left:24px;position:relative;color:#D7DFDF;
  }
  .pain-list li:nth-child(-n+2){border-top:none;}
  .pain-list li::before{content:"?";position:absolute;left:0;top:9px;color:var(--wp--preset--color--yuzu);font-weight:700;font-family:"Zen Maru Gothic";}

  .plan-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px;margin-bottom:40px;}
  .plan-card{
    background:#fff;border:1px solid var(--wp--preset--color--sand);border-radius:var(--wp--custom--radius--lg);
    padding:30px 28px;display:flex;flex-direction:column;
  }
  .plan-card.featured{border:2px solid var(--wp--preset--color--river);position:relative;}
  .plan-card.featured::before{
    content:"最も選ばれています";position:absolute;top:-13px;left:28px;
    background:var(--wp--preset--color--river);color:#fff;font-size:0.72rem;font-weight:700;
    padding:5px 14px;border-radius:999px;
  }
  .plan-card .plan-name{font-size:1.12rem;font-weight:700;margin-bottom:6px;}
  .plan-card .plan-desc{color:var(--wp--preset--color--ink-soft);font-size:0.88rem;margin:0 0 18px;}
  .plan-card .plan-price{
    font-family:"Zen Maru Gothic";font-weight:900;font-size:1.7rem;color:var(--wp--preset--color--river-deep);
    display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;
  }
  .plan-card .plan-price small{font-size:0.8rem;font-weight:700;color:var(--wp--preset--color--ink-soft);}
  .plan-card .plan-meta{font-size:0.82rem;color:var(--wp--preset--color--ink-soft);margin-top:6px;}
  .plan-card hr{border:none;border-top:1px solid var(--wp--preset--color--sand);margin:20px 0;}
  .plan-card ul{list-style:none;margin:0;padding:0;flex:1;}
  .plan-card li{
    padding:7px 0 7px 20px;font-size:0.9rem;position:relative;color:var(--wp--preset--color--ink);
  }
  .plan-card li::before{content:"";position:absolute;left:0;top:15px;width:6px;height:6px;border-radius:50%;background:var(--wp--preset--color--yuzu);}

  .program-timeline{
    display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-bottom:40px;
  }
  .program-step{
    background:var(--wp--preset--color--cream-deep);border:1px solid var(--wp--preset--color--sand);border-radius:var(--wp--custom--radius--lg);
    padding:26px 24px;
  }
  .program-step .num{
    font-family:"Zen Maru Gothic";font-weight:900;color:var(--wp--preset--color--river-deep);
    font-size:0.85rem;letter-spacing:.04em;margin-bottom:4px;display:block;
  }
  .program-step h4{font-size:1.05rem;font-weight:700;margin:0 0 10px;}
  .program-step p{color:var(--wp--preset--color--ink-soft);font-size:0.88rem;margin:0;}

  .target-tags{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:8px;}
  .target-tags span{
    background:var(--wp--preset--color--river-pale);color:var(--wp--preset--color--river-deep);font-size:0.85rem;font-weight:600;
    padding:8px 16px;border-radius:999px;
  }

  /* Devices / repair */
  .device-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
  .device-card{
    background:#fff;border:1px solid var(--wp--preset--color--sand);border-radius:var(--wp--custom--radius--lg);
    padding:30px 26px;
  }
  .device-card .icon{width:48px;height:48px;margin-bottom:18px;}
  .device-card h3{font-size:1.1rem;font-weight:700;margin-bottom:8px;}
  .device-card p{color:var(--wp--preset--color--ink-soft);font-size:0.93rem;margin:0;}
  .device-card .tag{
    display:inline-block;margin-top:14px;font-size:0.78rem;font-weight:700;
    color:var(--wp--preset--color--river-deep);background:var(--wp--preset--color--river-pale);padding:4px 12px;border-radius:999px;
  }

  /* Pricing */
  .price-wrap{
    display:grid;grid-template-columns:1.1fr 0.9fr;gap:40px;align-items:center;
  }
  .price-card{
    background:#fff;border:2px solid var(--wp--preset--color--ink);border-radius:var(--wp--custom--radius--lg);
    padding:38px 34px;
  }
  .price-card .amount{
    font-family:"Zen Maru Gothic";font-weight:900;font-size:3rem;color:var(--wp--preset--color--river-deep);
    display:flex;align-items:baseline;gap:8px;
  }
  .price-card .amount small{font-size:1.1rem;font-weight:700;color:var(--wp--preset--color--ink-soft);}
  .price-card .note{margin-top:6px;color:var(--wp--preset--color--ink-soft);font-size:0.92rem;}
  .price-card hr{border:none;border-top:1px solid var(--wp--preset--color--sand);margin:26px 0;}
  .price-list{list-style:none;margin:0;padding:0;}
  .price-list li{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px dashed var(--wp--preset--color--sand);font-size:0.96rem;}
  .price-list li:first-child{border-top:none;}
  .price-list b{color:var(--wp--preset--color--ink);font-weight:700;white-space:nowrap;}

  .area-note{
    background:var(--wp--preset--color--river-pale);border-radius:var(--wp--custom--radius--lg);padding:30px 28px;
  }
  .area-note h3{font-size:1.1rem;margin-bottom:14px;color:var(--wp--preset--color--river-deep);}
  .area-list{list-style:none;margin:0 0 18px;padding:0;}
  .area-list li{display:flex;justify-content:space-between;padding:10px 0;border-top:1px solid rgba(31,147,172,0.2);font-size:0.95rem;}
  .area-list li:first-child{border-top:none;}
  .area-list b{color:var(--wp--preset--color--river-deep);}

  /* Instructor */
  .instructor{display:grid;grid-template-columns:0.7fr 1.3fr;gap:44px;align-items:center;}
  .instructor-photo{
    aspect-ratio:1/1;border-radius:var(--wp--custom--radius--lg);
    background:var(--wp--preset--color--sand);position:relative;overflow:hidden;
  }
  .instructor-name{font-size:1.4rem;font-weight:700;margin-bottom:4px;}
  .instructor-role{color:var(--wp--preset--color--river-deep);font-weight:700;font-size:0.9rem;margin-bottom:18px;}
  .instructor blockquote{
    margin:0;padding-left:22px;border-left:3px solid var(--wp--preset--color--yuzu);
    color:var(--wp--preset--color--ink-soft);font-size:1.02rem;
  }

  /* Voices */
  .voices{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
  .voice-card{background:#fff;border-radius:var(--wp--custom--radius--lg);padding:28px 26px;border:1px solid var(--wp--preset--color--sand);}
  .voice-card p.quote{font-size:0.98rem;color:var(--wp--preset--color--ink);margin:0 0 18px;}
  .voice-card .who{font-size:0.85rem;color:var(--wp--preset--color--ink-soft);font-weight:600;}

  /* CTA band */
  .cta-band{
    background:var(--wp--preset--color--ink);color:var(--wp--preset--color--cream);border-radius:var(--wp--custom--radius--lg);
    padding:52px 44px;display:grid;grid-template-columns:1.3fr 1fr;gap:30px;align-items:center;
  }
  .cta-band h2{color:var(--wp--preset--color--cream);font-size:clamp(1.5rem,3vw,2rem);}
  .cta-band p{color:#C9D3D3;margin-top:12px;}
  .cta-contact{display:flex;flex-direction:column;gap:14px;}
  .cta-contact a.phone{
    font-family:"Zen Maru Gothic";font-size:1.7rem;font-weight:700;color:var(--wp--preset--color--cream);text-decoration:none;
  }
  .cta-contact .label{font-size:0.8rem;color:#9FB0B0;font-weight:600;}

  footer{padding:44px 0 36px;border-top:1px solid var(--wp--preset--color--sand);}
  .footer-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;}
  footer .brand{font-size:1.05rem;}
  footer p{color:var(--wp--preset--color--ink-soft);font-size:0.85rem;margin:0;}

  @media (max-width:900px){
    .hero .wrap{grid-template-columns:1fr;}
    .hero-art{order:-1;max-width:340px;margin:0 auto;}
    .reasons, .lesson-groups, .voices, .device-cards{grid-template-columns:1fr;}
    .price-wrap, .instructor, .cta-band{grid-template-columns:1fr;}
    .pain-list, .plan-grid, .program-timeline{grid-template-columns:1fr;}
    .pain-list li:nth-child(-n+2){border-top:1px solid rgba(255,255,255,0.14);}
    .pain-list li:first-child{border-top:none;}
    .instructor-photo{max-width:220px;}
  }
