/*
Theme Name: TANKI Forest
Theme URI: https://example.com/
Author: OpenAI
Description: 株式会社炭輝（TANKI）向けのオリジナルWordPressスターターテーマ
Version: 1.3.0
Text Domain: tanki
*/

:root{
  --forest:#163a2b;
  --forest-2:#285641;
  --charcoal:#222523;
  --cream:#f4f1e8;
  --paper:#fbfaf6;
  --muted:#6d746f;
  --line:#d9ddd8;
  --white:#fff;
  --max:1200px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif;
  color:var(--charcoal);
  background:var(--paper);
  line-height:1.8;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
.container{width:min(calc(100% - 40px),var(--max));margin:auto}
.eyebrow{font-size:.78rem;letter-spacing:.18em;font-weight:700;color:var(--forest-2);text-transform:uppercase}
.section{padding:100px 0}
.section-title{font-size:clamp(2rem,4vw,4.6rem);line-height:1.08;margin:.35em 0 .45em;letter-spacing:-.03em}
.lead{font-size:clamp(1rem,1.6vw,1.25rem);max-width:760px;color:#4f5652}
.btn{
  display:inline-flex;align-items:center;gap:.6rem;padding:14px 22px;
  border-radius:999px;background:var(--forest);color:#fff;font-weight:700;
  transition:.25s ease;border:1px solid var(--forest)
}
.btn:hover{transform:translateY(-2px);background:var(--forest-2)}
.btn-outline{background:transparent;color:var(--forest);border-color:var(--forest)}
.btn-light{background:#fff;color:var(--forest);border-color:#fff}
.grid{display:grid;gap:28px}

/* Header */
.site-header{
  position:fixed;inset:0 0 auto 0;z-index:1000;
  background:rgba(19,48,36,.82);backdrop-filter:blur(12px);
  color:#fff;border-bottom:1px solid rgba(255,255,255,.12)
}
.header-inner{height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{font-size:1.5rem;font-weight:800;letter-spacing:.12em}
.brand small{display:block;font-size:.6rem;letter-spacing:.22em;opacity:.75}
.nav{display:flex;align-items:center;gap:24px;font-size:.9rem}
.nav a{opacity:.92}
.nav a:hover{opacity:1}
.menu-toggle{display:none;background:none;border:0;color:#fff;font-size:1.5rem}

/* Hero */
.hero{
  min-height:100svh;display:flex;align-items:flex-end;position:relative;color:#fff;
  background:
    linear-gradient(180deg,rgba(11,28,20,.18),rgba(11,28,20,.72)),
    url('assets/hero-kutsuki.jpg') center/cover no-repeat;
}
.hero-inner{padding:180px 0 100px}
.hero h1{font-size:clamp(3.3rem,8vw,7.8rem);line-height:.98;margin:0 0 28px;letter-spacing:-.05em;max-width:980px}
.hero p{font-size:clamp(1rem,2vw,1.35rem);max-width:700px;margin:0 0 36px;color:rgba(255,255,255,.92)}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}

/* Vision */
.vision{background:var(--cream)}
.vision-grid{grid-template-columns:1.1fr .9fr;align-items:start}
.quote{font-size:clamp(1.8rem,2.5vw,3rem);line-height:1.5;margin:0;color:var(--forest);overflow-wrap:normal;word-break:keep-all}
.vision-copy{padding-top:16px}

/* Cycle */
.cycle-wrap{display:grid;grid-template-columns:.9fr 1.1fr;gap:64px;align-items:center}
.cycle{
  aspect-ratio:1;border-radius:50%;border:1px solid var(--line);
  display:grid;place-items:center;position:relative;background:#fff
}
.cycle-center{text-align:center}
.cycle-center strong{display:block;font-size:1.4rem;color:var(--forest)}
.cycle-item{
  position:absolute;
  background:var(--forest);
  color:#fff;
  width:112px;
  height:112px;
  border-radius:50%;
  display:grid;
  place-items:center;
  text-align:center;
  padding:12px;
  font-size: 1.1rem;
  line-height:1.5;
  font-weight:700;
}
.c1{top:-22px;left:50%;transform:translateX(-50%)}
.c2{right:-18px;top:26%}
.c3{right:10%;bottom:-8px}
.c4{left:10%;bottom:-8px}
.c5{left:-18px;top:26%}
/* Forest Circulation Arrows */
.cycle {
  position: relative;
}

.cycle::before {
  content: none;
}

.cycle::after {
  content: none;
}

.cycle-item {
  z-index: 2;
}

/* 時計回りの矢印 */
.cycle-item::after {
  position: absolute;
  color: #24734f;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

/* 1 → 2 */
.c1::after {
  content: "↘";
  top: 135%;
  left: 135%;
}

/* 2 → 3 */
.c2::after {
  content: "↙";
  top: 245%;
  right: 55%;
}

/* 3 → 4 */
.c3::after {
  content: "←";
  top: 55%;
  right: 145%;
}

/* 4 → 5 */
.c4::after {
  content: "↖";
  bottom: 135%;
  right: 135%;
}

/* 5 → 1 */
.c5::after {
  content: "↗";
  bottom: 90%;
  left: 135%;
}
/* Cards */
.cards{grid-template-columns:repeat(4,1fr);margin-top:42px}
.card{background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden}
.card-media{aspect-ratio:4/3;background:linear-gradient(135deg,#6e8a75,#c8d3c9)}
.card-body{padding:24px}
.card h3{margin:.2em 0 .4em;font-size:1.35rem}
.card p{color:var(--muted);font-size:.95rem}

/* Kutsuki */
.kutsuki{
  color:#fff;position:relative;background:
  linear-gradient(90deg,rgba(15,36,27,.88),rgba(15,36,27,.3)),
  url('assets/kutsuki.jpg') center/cover no-repeat;
}
.kutsuki .lead{color:rgba(255,255,255,.88)}

/* Steps */
.steps{grid-template-columns:repeat(3,1fr);margin-top:40px}
.step{padding:28px;border-top:1px solid var(--line)}
.step-num{font-size:.8rem;letter-spacing:.16em;color:var(--forest-2);font-weight:700}
.step h3{font-size:1.4rem;margin:.4em 0}

/* Project */
.project{background:var(--forest);color:#fff}
.project .lead{color:rgba(255,255,255,.84)}
.project-grid{grid-template-columns:1.1fr .9fr;align-items:center}
.project-panel{
  min-height:420px;border-radius:24px;background:
  linear-gradient(135deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.14);display:grid;place-items:center;padding:40px;text-align:center
}

/* News */
.news-list{margin-top:34px;border-top:1px solid var(--line)}
.news-item{display:grid;grid-template-columns:140px 140px 1fr;gap:24px;padding:20px 0;border-bottom:1px solid var(--line)}
.news-cat{font-size:.8rem;color:var(--forest-2);font-weight:700}

/* Contact */
.contact-box{
  background:var(--cream);border-radius:28px;padding:56px;
  display:flex;justify-content:space-between;gap:36px;align-items:center
}

/* Footer */
.site-footer{background:#10251b;color:#fff;padding:54px 0 28px}
.footer-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:40px}
.footer-nav{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 24px}
.copyright{margin-top:36px;padding-top:22px;border-top:1px solid rgba(255,255,255,.12);font-size:.8rem;opacity:.7}

/* Responsive */
@media (max-width: 980px){
  .nav{display:none}
  .menu-toggle{display:block}
  .vision-grid,.cycle-wrap,.project-grid,.footer-grid{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:repeat(2,1fr)}
  .cycle{width:min(580px,90vw);margin:auto}
}
@media (max-width: 640px){
  .container{width:min(calc(100% - 28px),var(--max))}
  .section{padding:72px 0}
  .header-inner{height:68px}
  .hero-inner{padding:150px 0 64px}
  .hero h1{font-size:clamp(2.9rem,15vw,5rem)}
  .cards,.steps{grid-template-columns:1fr}
  .cycle{border-radius:28px;aspect-ratio:auto;padding:24px;display:flex;flex-direction:column;gap:14px}
  .cycle-item{position:static;transform:none;width:100%;height:auto;border-radius:14px;padding:16px}
  .news-item{grid-template-columns:1fr;gap:6px}
  .contact-box{padding:34px 24px;display:block}
  .contact-box .btn{margin-top:18px}
}

.card-media.forestry{background:url('assets/forestry.jpg') center/cover no-repeat}
.card-media.kiln{background:url('assets/kiln.jpg') center/cover no-repeat}
.card-media.charcoal{background:url('assets/charcoal.jpg') center/cover no-repeat}
.card-media.experience{background:url('assets/experience.jpg') center/cover no-repeat}
.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 72% 30%,transparent 0 30%,rgba(7,25,17,.12) 70%);pointer-events:none}
.hero-inner{position:relative;z-index:2}

/* v2 lower pages */
.subhero{padding:180px 0 90px;background:linear-gradient(135deg,#153a2b,#244d3a);color:#fff}
.subhero h1{font-size:clamp(2.8rem,6vw,6.5rem);line-height:1.05;margin:.2em 0}
.subhero p{font-size:1.15rem;opacity:.86}
.subhero-kutsuki{background:linear-gradient(90deg,rgba(14,39,28,.82),rgba(14,39,28,.24)),url('assets/kutsuki.jpg') center/cover no-repeat}
.subhero-project{background:linear-gradient(90deg,rgba(14,39,28,.86),rgba(14,39,28,.30)),url('assets/hero-kutsuki.jpg') center/cover no-repeat}
.narrow{max-width:900px}
.prose{font-size:1.05rem}
.company-table{display:grid;grid-template-columns:180px 1fr;border-top:1px solid var(--line);margin-top:38px}
.company-table dt,.company-table dd{margin:0;padding:20px 8px;border-bottom:1px solid var(--line)}
.company-table dt{font-weight:700;color:var(--forest)}
.tanki-form{margin-top:44px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:22px}
.tanki-form label{display:block;font-weight:700;margin-bottom:20px}
.tanki-form label span{font-size:.72rem;color:#8b3a2d;margin-left:.4em}
.tanki-form input,.tanki-form select,.tanki-form textarea{
  width:100%;margin-top:8px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;
  background:#fff;font:inherit;color:inherit
}
.form-success{padding:16px 18px;border-radius:10px;background:#edf6ef;color:#245634}
.form-error{padding:16px 18px;border-radius:10px;background:#fff0ed;color:#843426}
.product-grid{grid-template-columns:repeat(3,1fr)}
.product-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.product-thumb img{aspect-ratio:4/3;object-fit:cover;width:100%}
.product-info{padding:22px}
.product-info h2{font-size:1.3rem;margin:0 0 .5em}
.product-info p{color:var(--muted)}
.product-info span{color:var(--forest);font-weight:700}
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
.product-detail img{border-radius:20px}
.custom-logo{max-height:48px;width:auto}
.brand .custom-logo-link{display:block}
@media(max-width:780px){
  .company-table{grid-template-columns:1fr}
  .company-table dt{padding-bottom:5px}
  .company-table dd{padding-top:4px}
  .form-grid,.product-grid,.product-detail{grid-template-columns:1fr}
}

/* v3 polish */
.site-header{transition:background .25s ease,box-shadow .25s ease}
.site-header.scrolled{background:rgba(13,39,27,.96);box-shadow:0 8px 30px rgba(0,0,0,.12)}
.menu-toggle{width:42px;height:42px;position:relative}
.menu-toggle span{display:block;width:24px;height:2px;background:#fff;margin:5px auto;transition:.25s}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.reveal{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s ease}
.reveal.is-visible{opacity:1;transform:none}
.footer-actions{display:flex;gap:22px;flex-wrap:wrap;margin-top:28px;font-size:.78rem;letter-spacing:.12em}
.footer-actions a{opacity:.78}.footer-actions a:hover{opacity:1}
.card,.product-card{transition:transform .25s ease,box-shadow .25s ease}
.card:hover,.product-card:hover{transform:translateY(-5px);box-shadow:0 18px 44px rgba(24,56,41,.10)}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,19,12,.55),rgba(4,19,12,.08) 58%,rgba(4,19,12,.06));z-index:1}
.hero .eyebrow{letter-spacing:.22em}
.hero h1{font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;font-weight:600}
.section-title,.quote,.subhero h1{font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;font-weight:600}
.btn{letter-spacing:.04em}
@media(max-width:980px){
  .nav{
    position:fixed;top:68px;left:0;right:0;bottom:0;
    display:flex;flex-direction:column;align-items:flex-start;gap:0;
    background:rgba(12,35,25,.985);padding:34px 28px;
    transform:translateX(100%);transition:transform .28s ease;overflow:auto
  }
  .nav.is-open{transform:translateX(0)}
  .nav a{width:100%;padding:16px 0;border-bottom:1px solid rgba(255,255,255,.12);font-size:1rem}
  .nav .btn{margin-top:16px;width:auto;border-bottom:0}
  body.menu-open{overflow:hidden}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important}
  .reveal{opacity:1;transform:none;transition:none}
}

/* v4 official TANKI logo */
.brand{display:flex;align-items:center;min-width:145px}
.official-logo{display:block;width:158px;height:auto;max-height:60px;object-fit:contain;object-position:left center}
.footer-brand{padding-top:6px}
.footer-logo{display:block;width:205px;height:auto;max-width:58vw;margin-bottom:28px}
@media(max-width:640px){
  .official-logo{width:132px;max-height:50px}
  .footer-logo{width:172px}
}

/* =========================================
   v5 Brand System — TANKI official identity
   ========================================= */
:root{
  --forest:#18392c;
  --forest-2:#254e3b;
  --forest-deep:#0f291f;
  --charcoal:#191b1a;
  --ink:#232624;
  --cream:#f5f1e8;
  --paper:#fbfaf6;
  --sand:#d9d0bf;
  --line:#ddd7cb;
  --muted:#6f746f;
  --white:#ffffff;
  --radius:18px;
  --shadow:0 18px 60px rgba(20,38,29,.10);
}

html{scroll-behavior:smooth}
body{
  background:var(--paper);
  color:var(--ink);
  letter-spacing:.01em;
}

.container{max-width:1240px}
.section{padding:110px 0}
.section-title{
  font-size:clamp(2.15rem,4.5vw,4.7rem);
  line-height:1.18;
  letter-spacing:.01em;
  margin:.18em 0 .42em;
}
.eyebrow{
  color:var(--forest-2);
  font-size:.74rem;
  font-weight:700;
  letter-spacing:.22em;
}
.lead{
  font-size:clamp(1.04rem,1.6vw,1.25rem);
  line-height:2;
  color:#444a46;
}

.site-header{
  height:78px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.site-header.scrolled{background:rgba(12,31,23,.97)}
.site-header .container{max-width:1320px}
.nav{gap:26px}
.nav a{
  font-size:.73rem;
  letter-spacing:.12em;
  opacity:.94;
}
.nav a:not(.btn):hover{opacity:.62}

.hero{
  min-height:92vh;
  display:flex;
  align-items:flex-end;
  padding:160px 0 90px;
}
.hero:before{
  background:
    linear-gradient(90deg,rgba(6,17,12,.72) 0%,rgba(6,17,12,.42) 38%,rgba(6,17,12,.09) 72%),
    linear-gradient(0deg,rgba(6,17,12,.35),transparent 45%);
}
.hero-inner{max-width:900px}
.hero h1{
  font-size:clamp(3.2rem,7.4vw,7.8rem);
  line-height:.98;
  max-width:900px;
  text-shadow:0 4px 24px rgba(0,0,0,.2);
}
.hero p{
  max-width:650px;
  font-size:1.05rem;
  line-height:1.95;
}
.hero-actions{gap:14px;margin-top:34px}

.btn{
  border-radius:999px;
  padding:15px 24px;
  font-size:.82rem;
  font-weight:700;
  transition:.22s ease;
  box-shadow:none;
}
.btn:hover{transform:translateY(-2px)}
.btn-light{
  background:var(--cream);
  color:var(--forest-deep);
}
.btn-light:hover{background:#fff}
.btn:not(.btn-light){
  background:var(--forest);
  color:#fff;
}
.btn:not(.btn-light):hover{background:var(--forest-2)}

.vision{background:var(--cream)}
.cards,.product-grid{gap:22px}
.card,.product-card{
  border-radius:var(--radius);
  border:1px solid rgba(35,38,36,.08);
  overflow:hidden;
  box-shadow:none;
  background:#fff;
}
.card:hover,.product-card:hover{box-shadow:var(--shadow)}
.card-media{min-height:250px}
.card-body,.product-info{padding:26px}
.card h3,.product-card h2{
  font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;
  font-weight:600;
}

.cycle{
  background:#fff;
  box-shadow:var(--shadow);
  border:1px solid rgba(35,38,36,.06);
}
.cycle-center{
  background:var(--forest-deep);
  color:#fff;
  border:6px solid var(--paper);
  box-shadow:0 8px 28px rgba(15,41,31,.18);
}
.cycle-item{
  background:var(--paper);
  border:1px solid var(--line);
  color:var(--forest-deep);
  font-weight:700;
}

.kutsuki{
  background:
   linear-gradient(90deg,rgba(11,30,22,.72),rgba(11,30,22,.14)),
   url('assets/kutsuki.jpg') center/cover no-repeat;
  color:#fff;
}
.kutsuki .eyebrow,.kutsuki p{color:#fff}

.project{
  background:var(--forest-deep);
  color:#fff;
}
.project .eyebrow{color:#cdd8d0}
.project-panel{
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.02));
}

.news-item{
  border-bottom:1px solid var(--line);
  padding:20px 0;
}
.news-item a:hover{color:var(--forest)}

.contact-cta{
  background:var(--charcoal);
  color:#fff;
  border-radius:28px;
  padding:64px;
}
.contact-cta .eyebrow{color:#c9d5ce}

.site-footer{
  background:#0d1511;
  color:rgba(255,255,255,.82);
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:70px;
}
.footer-logo{filter:none}
.site-footer a{color:rgba(255,255,255,.82)}
.site-footer a:hover{color:#fff}
.copyright{
  margin-top:42px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.1);
  opacity:.55;
}

.subhero{
  min-height:440px;
  display:flex;
  align-items:flex-end;
  padding-bottom:72px;
}
.subhero h1{max-width:900px}
.company-table dt{color:var(--forest-deep)}
.tanki-form input,.tanki-form select,.tanki-form textarea{
  border-radius:12px;
  border-color:#d8d2c6;
  background:#fff;
}
.tanki-form input:focus,.tanki-form select:focus,.tanki-form textarea:focus{
  outline:2px solid rgba(24,57,44,.18);
  border-color:var(--forest);
}

.official-logo{width:174px;max-height:62px}
.footer-logo{width:220px}

@media(max-width:980px){
  .section{padding:82px 0}
  .hero{min-height:84vh;padding:140px 0 70px}
  .contact-cta{padding:42px 30px}
}
@media(max-width:640px){
  .site-header{height:68px}
  .hero{min-height:82vh;padding:120px 0 56px}
  .hero h1{font-size:clamp(3rem,16vw,5rem)}
  .hero p{font-size:.96rem}
  .section{padding:68px 0}
  .section-title{font-size:clamp(2.1rem,10vw,3.3rem)}
  .official-logo{width:142px}
  .card-media{min-height:220px}
  .contact-cta{border-radius:20px;padding:34px 22px}
}

/* v6 real Kutsuki hero */
.hero{background-image:url('assets/hero-kutsuki.jpg');background-position:center center;background-size:cover}
@media(max-width:640px){
  .hero{background-image:url('assets/hero-kutsuki-mobile.jpg');background-position:center center}
}

/* v9 official product photography */
.card-media.charcoal-product{
  background:url('assets/charcoal-product.jpg') center/cover no-repeat;
}

/* v10 bamboo charcoal product */
.card-media.bamboo-charcoal{
  background:url('assets/bamboo-charcoal.jpg') center/cover no-repeat;
}

/* v11 biochar */
.card-media.biochar-product{
  background:url('assets/biochar-product.jpg') center/cover no-repeat;
}
.biochar-feature{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:38px;
  align-items:center;
  margin-top:42px;
}
.biochar-feature img{
  width:100%;
  border-radius:18px;
  display:block;
}
.biochar-feature .feature-copy{
  padding:10px 0;
}
@media(max-width:780px){
  .biochar-feature{grid-template-columns:1fr}
}

/* v12: desktop hero, logo alignment, dedicated product photography */
.site-header{height:88px;min-height:88px}
.site-header .header-inner{height:100%;min-height:88px;align-items:center}
.site-header .brand{height:100%;display:flex;align-items:center;flex-shrink:0;overflow:visible}
.site-header .official-logo,.site-header .custom-logo{display:block;width:auto;max-width:178px;max-height:65px;height:auto;object-fit:contain}
.hero .hero-inner{max-width:1100px;width:100%}
.hero h1{font-size:clamp(3.2rem,6.1vw,6.3rem);max-width:1100px;letter-spacing:-.055em;line-height:1.12;overflow-wrap:normal;word-break:keep-all}
.card-media.charcoal-product{background-image:url('assets/charcoal-product.jpg')!important;background-position:center!important;background-size:cover!important}
.card-media.bamboo-charcoal{background-image:url('assets/bamboo-charcoal.jpg')!important;background-position:center!important;background-size:cover!important}
.card-media.biochar-product{background-image:url('assets/biochar-product.jpg')!important;background-position:center!important;background-size:cover!important}
@media(max-width:980px){.site-header,.site-header .header-inner{height:76px;min-height:76px}.hero h1{font-size:clamp(3rem,7vw,5.2rem)}}
@media(max-width:640px){.site-header,.site-header .header-inner{height:70px;min-height:70px}.site-header .official-logo,.site-header .custom-logo{max-width:140px;max-height:52px}.hero .hero-inner{max-width:100%}.hero h1{font-size:clamp(2.55rem,10.8vw,4rem);line-height:1.18;letter-spacing:-.06em}}

/* v13: clearer typography and stable two-line desktop hero */
@media(min-width:981px){
 .hero .hero-inner{max-width:1200px}
 .hero h1{font-size:clamp(3.25rem,5.4vw,5.8rem);max-width:none;letter-spacing:-.045em;line-height:1.2}
 .hero h1 .hero-line{display:block;white-space:nowrap}
}
@media(max-width:980px){.hero h1 .hero-line{display:block}}
@media(max-width:640px){.hero h1 .hero-line{white-space:normal}.hero h1{font-size:clamp(2.35rem,9.7vw,3.9rem)}}
.vision-copy p,.lead,.card-body p{line-height:1.9}
.vision-copy{font-size:clamp(1rem,1.12vw,1.1rem)}
.card-body h3{line-height:1.55}
.card-media{background-repeat:no-repeat}
@media(min-width:981px){.section-title{line-height:1.35}.quote{line-height:1.38}}

/* v14: accessible, stable content without scroll-fade */
.reveal,.reveal.is-visible{opacity:1!important;transform:none!important;transition:none!important}
/* Legible forest circulation diagram */
.cycle{border:2px solid #cad7cc;background:#fff;box-shadow:0 14px 42px rgba(15,41,31,.09)}
.cycle-center{background:#173b2b!important;color:#fff!important;border:4px solid #fff;box-shadow:0 7px 22px rgba(15,41,31,.18);border-radius:50%;width:42%;aspect-ratio:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:12px}
.cycle-center strong{color:#fff!important;font-size:clamp(.95rem,1.65vw,1.4rem);line-height:1.3}
.cycle-center span{color:#fff!important;font-size:.82rem;margin-top:7px}
.cycle-item{background:#194a35!important;color:#fff!important;border:2px solid #fff!important;box-shadow:0 5px 16px rgba(15,41,31,.16);font-size:.9rem}
.cycle-wrap .section-title{font-size:clamp(2rem,3.25vw,3.6rem);line-height:1.45;overflow-wrap:anywhere}
.section-title,.quote{word-break:normal;overflow-wrap:break-word}
@media(min-width:981px){.cycle-wrap{grid-template-columns:1fr 1.1fr;gap:72px}.cycle-wrap .section-title{font-size:clamp(2.15rem,3.1vw,3.35rem)}}
@media(max-width:640px){
 .section-title,.quote{font-size:clamp(1.85rem,8vw,2.75rem);line-height:1.5}
 .cycle{width:100%;max-width:420px;aspect-ratio:auto;border-radius:22px;display:flex;flex-direction:column;gap:10px;padding:22px}
 .cycle-center{width:100%;aspect-ratio:auto;min-height:108px;border-radius:16px}
 .cycle-center strong{font-size:1.1rem}
 .cycle-item{position:static;width:100%;height:auto;min-height:50px;border-radius:12px;transform:none!important;padding:10px}
 .cycle-wrap{gap:30px}
 .hero h1{overflow-wrap:anywhere}
}

/* v15: footer clarity, CTA and mobile refinements */
.footer-brand{padding-top:0}
.footer-logo{margin-bottom:16px}
.footer-grid{grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);align-items:start}
.footer-tagline{font-size:1rem;line-height:1.8;margin:0}
.footer-nav{gap:12px 28px}
.footer-actions{margin-top:28px}
.contact-box>.btn{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:170px;min-height:52px;background:#173b2b;color:#fff;box-shadow:0 6px 18px rgba(23,59,43,.15)}
.contact-box>.btn:hover{background:#285640;color:#fff}
.news-empty{padding:22px 0;color:#52645a;border-bottom:1px solid var(--line)}
.project .section-title{font-size:clamp(2.25rem,4.2vw,4.3rem);line-height:1.35}
@media(max-width:980px){.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){
 .footer-grid{grid-template-columns:1fr;gap:26px}
 .footer-nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
 .footer-logo{width:170px}
 .contact-box>.btn{width:100%;margin-top:22px}
 .project .section-title{font-size:clamp(1.9rem,8vw,2.9rem)}
 .project-panel{min-height:260px;padding:26px}
 .news-item{gap:6px}
}

/* v16: mobile layout and typography stabilization */
@media(max-width:640px){
 html,body{max-width:100%;overflow-x:clip}
 .container{width:calc(100% - 40px);max-width:100%;margin-inline:auto}
 .hero{min-height:680px;min-height:85svh;padding:0;background-position:center center}
 .hero .hero-inner{box-sizing:border-box;width:calc(100% - 40px);max-width:100%;margin-inline:auto;padding:116px 0 70px}
 .hero h1{font-size:clamp(1.85rem,8.3vw,2.75rem);line-height:1.35;letter-spacing:-.045em;max-width:100%;overflow-wrap:normal;word-break:normal}
 .hero h1 .hero-line{display:block;white-space:normal;overflow-wrap:normal;word-break:normal}
 .hero p{max-width:100%;font-size:.9rem;line-height:1.95}
 .hero-actions{display:flex;flex-wrap:wrap;gap:12px}
 .hero-actions .btn{max-width:100%;white-space:normal;text-align:center}
 .section{padding-block:70px}
 .vision-grid{gap:20px}
 .vision .quote{font-size:clamp(1.55rem,6.5vw,2.2rem);line-height:1.55;letter-spacing:-.035em;overflow-wrap:normal;word-break:normal}
 .section-title,.cycle-wrap .section-title{font-size:clamp(1.7rem,7vw,2.4rem);line-height:1.48;letter-spacing:-.035em;overflow-wrap:normal;word-break:normal}
 .cycle-wrap{grid-template-columns:minmax(0,1fr);gap:28px}
 .cycle{box-sizing:border-box;width:100%;max-width:100%;margin-inline:auto;padding:18px;gap:9px}
 .cycle-center{box-sizing:border-box;min-height:96px;padding:14px}
 .cycle-item{box-sizing:border-box;min-height:48px;font-size:.88rem}
 .lead,.vision-copy p{font-size:.95rem;line-height:1.9}
 .cards{gap:16px}
 .card-body{padding:18px}
 .biochar-feature{grid-template-columns:minmax(0,1fr);gap:20px}
 .project-grid{grid-template-columns:minmax(0,1fr)}
 .contact-box{display:block;padding:26px 22px}
 .contact-box>.btn{margin-top:20px}
 .footer-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:360px){
 .hero h1{font-size:clamp(1.65rem,8.1vw,2rem)}
 .hero .hero-inner{width:calc(100% - 32px)}
 .container{width:calc(100% - 32px)}
}
/* TANKI 森林循環図：矢印の強調 */
@media (min-width: 981px) {
  .cycle .cycle-item::after {
    color: #8BAA23 !important;
    font-size: 54px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-shadow: 1px 1px 0 #688414;
  }
}
/* TANKI 森林循環図：曲線矢印の配置調整 */
.cycle {
  position: relative;
}

.cycle-arrows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.cycle-center {
  position: relative;
  z-index: 2;
}

/* 以前の直線矢印を非表示 */
.cycle .cycle-item::after {
  content: none !important;
}
/* 朽木ページ：スマートフォンの左右余白調整 */
@media (max-width: 767px) {

  body.page-id-36 .container {
    width: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
  }

}