/* 農家のミハルAI サービスLP */
:root{
  --green:#1F4D3A; --yg:#B9DA52; --ink:#1C2420; --sub:#4E5A54; --bg:#F7F8F3;
  --navy:#0F1B2A; --lamp:#F3B861; --line:#DDE2D6; --pale:#EAF0E2; --night-sub:#C9D3DE; --night-note:#A9B6C4;
  --head:'Zen Kaku Gothic New','Noto Sans JP',sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:'Noto Sans JP',sans-serif;font-size:17px;line-height:2;overflow-wrap:anywhere}
img{max-width:100%;height:auto;display:block}
h1,h2,h3,p,figure,blockquote,ol,ul{margin:0}
ol,ul{padding:0;list-style:none}
a{color:var(--green)}
a:focus-visible,.btn:focus-visible{outline:3px solid var(--lamp);outline-offset:3px}
[id]{scroll-margin-top:88px}
.inner{max-width:1120px;margin:0 auto;display:flex;flex-direction:column;gap:40px}
.section{padding:80px 24px}
.section--white{background:#fff}
.section--night{background:var(--navy);color:#fff}
.section--green{background:var(--green);color:#fff}
h1,h2,h3{word-break:auto-phrase;text-wrap:balance}
.ib{display:inline-block}
.stack{display:flex;flex-direction:column;gap:20px}
.label{font-size:14px;font-weight:700;letter-spacing:.12em;color:var(--green);line-height:1.6}
.section--night .label{color:var(--lamp)}
.h2{font-family:var(--head);font-size:clamp(24px,4vw,42px);line-height:1.35;font-weight:900}
.lead{color:var(--sub);max-width:680px}
.lead--wide{max-width:860px}
.section--night .lead{color:var(--night-sub)}
.note{font-size:13px;line-height:1.8;color:var(--sub);max-width:860px}
.section--night .note{color:var(--night-note)}
.sublabel{font-size:15px;font-weight:700;color:var(--green);line-height:1.6}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 32px;border-radius:999px;background:var(--green);color:#fff;border:2px solid var(--green);font-size:17px;font-weight:700;text-decoration:none;line-height:1.4;transition:background .2s,color .2s}
.btn:hover{background:#16382A;border-color:#16382A}
.btn--ghost{background:transparent;color:var(--green)}
.btn--ghost:hover{background:var(--pale);border-color:var(--green)}
.btn--light{background:var(--yg);border-color:var(--yg);color:var(--ink)}
.btn--light:hover{background:#CBE574;border-color:#CBE574}
.btn--small{min-height:44px;padding:0 22px;font-size:15px}
.btn-row{display:flex;flex-wrap:wrap;gap:12px}

/* header */
.header{position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:1px solid var(--line);padding:12px 24px}
.header__inner{max-width:1120px;margin:0 auto;display:flex;flex-wrap:wrap;gap:8px 32px;align-items:center;justify-content:space-between}
.brand{font-family:var(--head);font-size:20px;font-weight:900;color:var(--green);text-decoration:none;line-height:1.4}
.nav{display:flex;flex-wrap:wrap;gap:4px 28px;align-items:center}
.nav a:not(.btn){font-size:15px;font-weight:700;color:var(--ink);text-decoration:none;padding:10px 0;line-height:1.4}
.nav a:not(.btn):hover{color:var(--green)}

/* hero */
.hero{padding:64px 24px 80px}
.hero__top{display:flex;flex-wrap:wrap;gap:32px 56px;align-items:flex-end}
.hero__title{flex:1.5 1 560px;min-width:0;display:flex;flex-direction:column;gap:24px;align-items:flex-start}
.badge{padding:8px 16px;border-radius:999px;background:var(--green);color:#fff;font-size:14px;font-weight:700;line-height:1.6}
.hero h1{font-family:var(--head);font-size:clamp(30px,4.4vw,54px);line-height:1.3;font-weight:900}
.hero__side{flex:1 1 380px;min-width:0;display:flex;flex-direction:column;gap:20px}
.hero__catch{font-family:var(--head);font-size:clamp(20px,2.4vw,26px);font-weight:700;color:var(--green);line-height:1.6}
.hero__text{font-size:16px;color:var(--sub)}
.photo{display:flex;flex-direction:column;gap:10px}
.photo img{width:100%;object-fit:cover;border-radius:16px}
.photo figcaption{font-size:13px;line-height:1.7;color:var(--sub)}
.section--night .photo figcaption{color:var(--night-note)}
.photo--hero img{aspect-ratio:2/1;object-position:70% center;border-radius:20px}
.photo--wide img{aspect-ratio:21/9}
.photo--43 img{aspect-ratio:4/3}
.photo--45 img{aspect-ratio:4/5}

/* grids and cards */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.grid--4{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.grid--2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;display:flex;flex-direction:column;gap:10px}
.section--white .card{background:var(--bg)}
.card__tag{font-family:var(--head);font-size:15px;font-weight:900;color:var(--green);line-height:1.4}
.card__title{font-family:var(--head);font-size:20px;font-weight:700;line-height:1.5}
.card__text{font-size:16px;line-height:1.9;color:var(--sub)}

/* selection */
.split{display:flex;flex-wrap:wrap;gap:32px 56px;align-items:flex-start}
.split>*{flex:1 1 400px;min-width:0}
.split .h2{font-size:clamp(25px,3.2vw,36px)}
.panel{background:var(--pale);border-radius:16px;padding:30px;display:flex;flex-direction:column;gap:18px}
.panel dt{font-size:13px;font-weight:700;color:var(--green);line-height:1.6}
.panel dd{margin:0 0 4px;font-size:16px;font-weight:700;line-height:1.7}
.panel dd.big{font-family:var(--head);font-size:20px;line-height:1.6}
.panel dl{margin:0;display:flex;flex-direction:column;gap:6px}
.panel__meta{font-size:14px;color:var(--sub);line-height:1.8}
.textlink{font-size:15px;font-weight:700;padding:6px 0;align-self:flex-start}

/* stats */
.stats{display:flex;flex-wrap:wrap;gap:32px}
.stat{flex:1 1 200px;display:flex;flex-direction:column;gap:8px}
.stat__num{font-family:var(--head);font-weight:900;color:var(--lamp);line-height:1.1;font-size:22px}
.stat__num b{font-size:52px;font-weight:900;margin-right:4px}
.stat__cap{font-size:15px;line-height:1.7;color:var(--night-sub)}

/* story */
.chapters{display:flex;flex-direction:column;gap:72px}
.chapter{display:flex;flex-wrap:wrap;gap:48px;align-items:center}
.chapter--rev{flex-direction:row-reverse}
.chapter__body{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;gap:20px;align-items:flex-start}
.chapter__side{flex:1 1 380px;min-width:0}
.chapter__no{font-family:var(--head);font-size:15px;font-weight:900;color:var(--green);letter-spacing:.1em;line-height:1.4}
.chapter h3{font-family:var(--head);font-size:clamp(23px,3vw,32px);line-height:1.45;font-weight:900}
.chapter p.text{color:var(--sub)}
.quote{display:flex;flex-direction:column;gap:12px}
.quote blockquote{font-family:var(--head);font-size:clamp(18px,2.2vw,23px);line-height:1.8;font-weight:700;color:var(--green)}
.quote figcaption{font-size:14px;color:var(--sub);line-height:1.6}
.record{background:#fff;border:1px solid var(--line);border-radius:16px;padding:30px;display:flex;flex-direction:column;gap:24px}
.record__head{font-size:14px;font-weight:700;color:var(--green);line-height:1.6}
.record__num{font-family:var(--head);font-weight:900;font-size:20px;line-height:1.2}
.record__num b{font-size:42px;font-weight:900}
.record__cap{font-size:15px;color:var(--sub);line-height:1.7;margin-top:6px}
.log{width:100%;border-collapse:collapse;font-size:15px;line-height:1.6}
.log caption{text-align:left;font-size:14px;font-weight:700;padding-bottom:10px}
.log td{padding:12px 8px 12px 0;border-top:1px solid var(--line);vertical-align:top}
.log td:first-child{color:var(--sub);white-space:nowrap}
.log td:last-child{font-weight:700;white-space:nowrap;padding-right:0}
.ok{color:var(--green)} .miss{color:#9A5B00} .ng{color:#A33A2B}
.timeline{background:var(--pale);border-radius:16px;padding:30px;display:flex;flex-direction:column;gap:18px}
.timeline li{display:flex;gap:16px}
.timeline time,.timeline .when{flex:0 0 104px;font-size:14px;font-weight:700;color:var(--green);line-height:1.9}
.timeline span.what{flex:1 1 0;font-size:16px;line-height:1.7}

/* one night */
.nightflow{display:flex;flex-wrap:wrap;gap:56px;align-items:flex-start}
.steps{flex:1 1 480px;min-width:0;display:flex;flex-direction:column;gap:28px}
.steps li{display:flex;gap:20px;align-items:flex-start}
.steps .when{flex:0 0 96px;font-family:var(--head);font-size:17px;font-weight:900;color:var(--lamp);line-height:1.8}
.steps .what{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:6px}
.steps .what b{font-family:var(--head);font-size:20px;font-weight:700;line-height:1.5}
.steps .what span{font-size:16px;line-height:1.9;color:var(--night-sub)}
.notify{flex:0 1 320px;min-width:0;background:#fff;color:var(--ink);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
.notify__head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--sub);line-height:1.6}
.notify__head b{font-size:13px;color:var(--green)}
.notify__title{font-size:15px;font-weight:700;line-height:1.6}
.notify img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px}
.notify__text{font-size:13px;color:var(--sub);line-height:1.7}
.notify__btns{display:flex;gap:8px}
.notify__btns span{flex:1 1 0;text-align:center;padding:10px 0;border-radius:8px;font-size:14px;font-weight:700;line-height:1.4;background:var(--pale)}
.notify__btns span:first-child{background:var(--green);color:#fff}
.signs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px}
.sign{border:1px solid #33455A;border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:8px}
.sign b{font-family:var(--head);font-size:22px;font-weight:900;line-height:1.4}
.sign span{font-size:15px;line-height:1.8;color:var(--night-sub)}

/* impact */
.change{background:#fff;border:1px solid var(--line);border-radius:16px;padding:26px;display:flex;flex-direction:column;gap:14px}
.change h3{font-family:var(--head);font-size:20px;font-weight:700;line-height:1.5}
.change dl{margin:0;display:flex;flex-direction:column;gap:14px}
.change dt{font-size:13px;font-weight:700;color:var(--sub);line-height:1.6}
.change dd{margin:0;font-size:17px;line-height:1.6}
.change .goal{padding-top:14px;border-top:1px solid var(--line)}
.change .goal dt{color:var(--green)}
.change .goal dd{font-family:var(--head);font-size:20px;font-weight:900;color:var(--green);line-height:1.5}
.cost{font-size:15px;line-height:1.9;color:var(--sub);max-width:860px}

/* faq */
.faq{border-top:1px solid var(--line)}
.faq__item{padding:24px 0;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:10px}
.faq__item h3{font-family:var(--head);font-size:20px;font-weight:700;line-height:1.5}
.faq__item p{font-size:16px;line-height:1.9;color:var(--sub);max-width:820px}

/* contact and footer */
.contact{max-width:820px;margin:0 auto;display:flex;flex-direction:column;gap:28px;align-items:center;text-align:center}
.contact p{color:#E3EDE6}
.contact .small{font-size:14px}
.contact .small a{color:#fff}
.contact__form{width:100%;max-width:640px;background:#fff;border-radius:14px;padding:8px;overflow:hidden}
.contact__form iframe{display:block;border:0!important;border-radius:8px}
.footer{background:var(--ink);padding:56px 24px 96px}
.footer__inner{max-width:1120px;margin:0 auto;display:flex;flex-wrap:wrap;gap:32px 64px;justify-content:space-between}
.footer__brand{flex:1 1 320px;display:flex;flex-direction:column;gap:10px}
.footer__brand b{font-family:var(--head);font-size:20px;font-weight:900;color:#fff;line-height:1.4}
.footer__brand p{font-size:14px;line-height:1.9;color:#C5CEC8}
.footer__links{flex:1 1 320px;display:flex;flex-direction:column;gap:4px}
.footer__links a{font-size:15px;padding:8px 0;color:#D5E9A8;line-height:1.6}
.footer__links a:hover{color:#fff}

/* phone: fixed contact bar */
.cta-bar{display:none}
@media (max-width:720px){
  body{font-size:16px}
  .section{padding:56px 20px}
  .hero{padding:40px 20px 56px}
  .header{padding:10px 20px}
  .nav a:not(.btn){display:none}
  .photo--hero img{aspect-ratio:4/3;object-position:78% center}
  .photo--wide img{aspect-ratio:16/9}
  .chapters{gap:56px}
  .chapter{gap:28px}
  .steps .when{flex-basis:76px;font-size:15px}
  .nightflow{gap:32px}
  .notify{flex:1 1 100%;max-width:360px}
  .btn-row .btn{flex:1 1 100%}
  .cta-bar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:30;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:rgba(247,248,243,.96);border-top:1px solid var(--line)}
  .cta-bar .btn{width:100%;min-height:52px}
  .footer{padding-bottom:120px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn{transition:none}}
