/* =========================================================
   株式会社葉組 公式ウェブサイト 共通スタイル
   - 計画書 v6 / mock_top_v3 準拠
   ========================================================= */

:root {
  --green: #1FC529;            /* 旧サイト・計画書共通アクセント */
  --green-deep: #20D02C;
  --green-dark: #002C19;       /* 旧サイトのパネル深緑(cover_contents) */
  --green-base: #3A644C;       /* 旧サイト body 背景フォールバック */
  --accent: #FFD93D;           /* 差し色:イエロー(仮、要確定) */
  --ink: #FFFFFF;              /* 文字色 = 白(旧サイト準拠) */
  --ink-soft: #C7D9CF;         /* 薄文字 = 緑味のある明灰 */
  --line: rgba(255,255,255,0.12); /* 罫線 = 半透明白 */
  --bg: #3A644C;               /* ベース = 旧サイト fallback 緑 */
  --bg-soft: rgba(0, 44, 25, 0.78); /* パネル背景 = 深緑半透明 */
  --maxw: 1200px;
  --pad-x: clamp(20px, 5vw, 60px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "M PLUS U", "Hiragino Kaku Gothic ProN", sans-serif;
  color: var(--ink);
  background-color: var(--green-base);
  background-image: url('/assets/img/bg.png');
  background-attachment: fixed;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(0, 44, 25, 0.65);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.02em; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; color: #fff;
  font-family: "DM Serif Display", serif; font-size: 14px;
}
.brand-name { font-size: 15px; }
.brand-logo { display: block; height: 28px; width: auto; }
nav.global ul { display: flex; gap: clamp(14px, 2.5vw, 28px); list-style: none; }
nav.global a {
  font-size: 13px; font-weight: 700; color: var(--ink);
  padding: 6px 0; position: relative;
}
nav.global a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--green); transition: width .25s ease;
}
nav.global a:hover::after { width: 100%; }
nav.global .note-pill,
.note-pill {
  background: #fff; color: #0F7B1D; padding: 8px 24px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}
nav.global .note-pill:hover,
.note-pill:hover { background: var(--green); color: #fff; }
.note-pill::after { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(16px, 3vw, 36px) 0 clamp(20px, 3vw, 40px);
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding-left: var(--pad-x);
  /* 右側の鉢(50% / max 600px)と最小限干渉するよう右余白 */
  padding-right: clamp(var(--pad-x), 45vw, 540px);
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.18em; font-weight: 700;
  color: var(--ink-soft); margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--ink-soft);
}
.hero h1 {
  font-size: clamp(34px, 5.6vw, 74px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.hero h1 .dot { color: var(--green); }
.hero h1 .kinda {
  display: inline-block;
  transform: rotate(-2deg);
  background: var(--accent);
  color: #0a0a0a;
  padding: 0 .15em;
  margin: 0 .05em;
}
.hero .hero-title-img {
  display: block;
  width: 90%;
  max-width: 480px;
  height: auto;
  margin-top: clamp(20px, 3vw, 40px);
}
.hero-tagline {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.04em;
  margin: 20px 0 10px;
  line-height: 1.6;
}
.hero-sub {
  max-width: 640px;
  font-size: clamp(14px, 1.6vw, 17px);
  color: var(--ink-soft);
  line-height: 1.9;
}
.hero-meta {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--ink-soft);
}
.hero-meta span {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
}
/* ---------- Hero art: マスコット鉢の重ねレイヤー ---------- */
.hero-art {
  position: absolute;
  top: -150px;
  right: max(0px, calc((100% - var(--maxw)) / 2));
  width: 50%;
  max-width: 600px;
  height: 720px;
  z-index: 1;
}
.hero-art .img-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  aspect-ratio: 397 / 800;
  max-height: 800px;
}
.hero-art .layer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  max-height: 800px;
  /* width 自動 ── 画像のアスペクト比(397:800)で決まる */
  display: block;
}

/* hand: mascot_hagu の右側に配置(% で固定、ブラウザ幅に追従) */
.hero-art .layer.hand {
  top: 89.17%;
  left: auto;
  right: 8.95%;
  width: 18.8%;
  height: auto;
  max-height: none;
  transform: translateY(-50%);
  z-index: 10;
}

/* ---------- Declaration ---------- */
.declaration {
  background: var(--green-dark);   /* #002C19 */
  padding: clamp(32px, 5vw, 64px) var(--pad-x);
  text-align: center;
}
.declaration p {
  font-size: clamp(16px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.45;
}
.declaration p .tilted {
  color: var(--accent);
}
.declaration .declaration-row {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  text-align: left;
}
.declaration .declaration-ani-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
.declaration .declaration-ani {
  width: 58px;
  height: 54px;
  display: block;
}

/* ---------- Section common ---------- */
section.block {
  padding: clamp(70px, 11vw, 130px) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head {
  display: flex; flex-wrap: wrap;
  align-items: end; justify-content: space-between;
  gap: 20px; margin-bottom: clamp(40px, 6vw, 70px);
}
.section-tag {
  font-family: "DM Serif Display", serif;
  color: var(--green);
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: 0.04em;
}
.section-head h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900; line-height: 1.3;
  margin-top: 6px;
}
.section-head p {
  color: var(--ink-soft); max-width: 460px; font-size: 14px; line-height: 1.9;
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
}
.product-card {
  background: var(--green-dark);
  border-radius: 18px;
  padding: clamp(20px, 2.6vw, 32px);
  display: flex; flex-direction: column;
  min-height: 320px;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, border-color .35s ease;
  border: 2px solid rgba(255,255,255,0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: var(--ink);
}
.product-card:hover {
  transform: translateY(-6px);
  background: #00351f;
  border-color: var(--green);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.product-card::before {
  content: ""; position: absolute; inset: auto -20% -40% auto;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--green); opacity: 0.10;
  transition: transform .5s ease;
}
.product-card:hover::before { transform: translate(-30%, -30%) scale(1.6); }
.product-num {
  font-family: "DM Serif Display", serif;
  font-size: 14px; color: var(--ink-soft);
  margin-bottom: 12px;
}
.product-card h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}
.product-card .tag {
  font-size: 13px; color: var(--ink-soft); line-height: 1.7;
  margin-bottom: auto;
}
.product-card .more {
  margin-top: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700;
  color: var(--green);
}
.product-card .more::after {
  content: "→"; transition: transform .25s ease;
}
.product-card:hover .more::after { transform: translateX(6px); }
.product-card.dive2 .product-num { color: var(--green); }
.product-card.craft .product-num { color: var(--accent); }
.product-card.craft::before { background: var(--accent); opacity: 0.10; }
.product-card.bokuhana .product-num { color: #6FE57A; }

/* ---------- Clients ---------- */
.clients {
  background: var(--green-dark);
  color: var(--ink);
  padding: clamp(70px, 11vw, 130px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.clients .section-head h2 { color: var(--ink); }
.clients .section-tag { color: var(--accent); }
.clients .section-head p { color: var(--ink-soft); }
.marquee {
  max-width: var(--maxw);
  margin: clamp(30px, 5vw, 50px) auto 0;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-item { color: var(--ink); }
.marquee-item.dim { color: #555; }
.marquee-track {
  display: flex; gap: 40px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.clients-stats {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 60px);
  margin-top: clamp(50px, 7vw, 80px);
  max-width: var(--maxw);
  padding: 0 var(--pad-x);
  margin-left: auto; margin-right: auto;
}
.stat strong {
  display: block;
  font-family: "DM Serif Display", serif;
  font-size: clamp(32px, 5vw, 56px);
  color: var(--green);
  line-height: 1;
}
.stat span {
  font-size: 12px; color: var(--ink-soft); letter-spacing: 0.1em;
}

/* ---------- Note section ---------- */
.note {
  background: transparent;
}
.note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(14px, 2vw, 24px);
}
.note-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(20px, 2.4vw, 28px);
  transition: all .3s ease;
  background: var(--green-dark);
  display: flex; flex-direction: column;
  min-height: 200px;
  color: var(--ink);
}
.note-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
}
.note-date {
  font-size: 11px; color: var(--ink-soft); letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.note-card h3 {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 700; line-height: 1.5;
  margin-bottom: auto;
}
.note-card .read {
  margin-top: 18px;
  font-size: 12px; color: var(--ink-soft);
}
.note-cta {
  margin-top: clamp(40px, 6vw, 60px);
  text-align: center;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; color: #0a0a0a;
  padding: 16px 32px; border-radius: 999px;
  font-size: 14px; font-weight: 700;
  transition: all .3s ease;
}
.btn-primary:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.btn-primary::after { content: "↗"; }

/* ---------- About excerpt (Top page) ---------- */
.about-excerpt {
  background: transparent;
  padding: clamp(70px, 11vw, 130px) var(--pad-x);
}
.about-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px);
  align-items: center;
}
.about-inner h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; line-height: 1.3;
  margin-bottom: 20px;
}
.about-inner p { color: var(--ink-soft); margin-bottom: 18px; }
.about-data {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 24px;
  font-size: 13px; line-height: 1.7;
  padding: 28px; background: var(--green-dark); border-radius: 14px;
  border: 1px solid var(--line);
}
.about-data dt { color: var(--ink-soft); font-weight: 700; }
.about-data dd { color: var(--ink); }
.about-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; margin-top: 10px;
  border-bottom: 2px solid var(--green);
  padding-bottom: 4px;
}
.about-cta::after { content: "→"; transition: transform .25s ease; }
.about-cta:hover::after { transform: translateX(6px); }

/* ---------- About page (full) ---------- */
.about-page {
  padding: clamp(60px, 10vw, 120px) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.about-page .page-head {
  margin-bottom: clamp(50px, 7vw, 80px);
}
.about-page .page-head .section-tag {
  display: block;
  margin-bottom: 8px;
}
.about-page .page-head h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900; line-height: 1.25;
  letter-spacing: -0.01em;
}
.about-page section {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  column-gap: clamp(40px, 6vw, 100px);
  margin-bottom: clamp(60px, 8vw, 100px);
  align-items: start;
}
.about-page section > .sub-head {
  grid-column: 1 / 2;
  margin: 0;
}
.about-page section > :not(.sub-head) {
  grid-column: 2 / -1;
}
.about-page .philosophy {
  max-width: none;
}
.about-page .philosophy p {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--ink);
  line-height: 1.9;
  margin-bottom: 1.4em;
}
.about-page .philosophy p:last-child { margin-bottom: 0; }
.about-page h2.sub-head {
  font-family: "DM Serif Display", serif;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.about-page h2.sub-head + .ja-head {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 900; line-height: 1.4;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.about-page .founder {
  max-width: none;
}
.about-page .founder-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.about-page .founder-tagline {
  margin: 0;
}
.about-page .founder-portrait {
  width: clamp(160px, 22vw, 240px);
  height: auto;
  display: block;
}
.about-page .founder-tagline p {
  font-size: clamp(24px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--green);
  margin: 0;
}
.about-page .founder-name {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 900;
  line-height: 1.3;
  margin: 0 0 6px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.about-page .founder-name-en {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.about-page .founder-role {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
  margin: 0 0 clamp(20px, 3vw, 32px);
}
.about-page .founder-bio p {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--ink);
  line-height: 1.9;
  margin-bottom: 1.4em;
}
.about-page .founder-bio p:last-of-type { margin-bottom: 0; }
.about-page .founder-links {
  list-style: none;
  padding: 0;
  margin: clamp(24px, 4vw, 36px) 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
}
.about-page .founder-links a {
  color: var(--green);
  transition: opacity .2s ease;
}
.about-page .founder-links a:hover { opacity: 0.6; }
.corporate-data {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: clamp(60px, 8vw, 100px);
}
.corporate-data th,
.corporate-data td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.corporate-data th {
  width: 30%;
  color: var(--green);
  font-weight: 700;
  white-space: nowrap;
}
.corporate-data td { color: var(--ink); }
.access-map {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: clamp(40px, 6vw, 60px);
  border: 1px solid var(--line);
}
.access-map iframe {
  width: 100%; height: 100%; border: 0;
}
.about-page section.about-note-cta {
  display: block;
  text-align: center;
  padding: clamp(40px, 6vw, 60px) 0;
  border-top: 1px solid var(--line);
}
.about-note-cta p {
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 14px;
}
.about-back {
  text-align: center;
  padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 80px);
}
.about-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  padding: 12px 4px;
  transition: color .25s ease, transform .25s ease;
}
.about-back-link::after { display: none; }
.about-back-link:hover {
  color: var(--green);
}
.about-back-link:hover .about-back-arrow {
  transform: translateX(-4px);
}
.about-back-arrow {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform .25s ease;
}

/* ---------- Footer ---------- */
footer {
  background: var(--green-dark); color: var(--ink-soft);
  padding: clamp(40px, 6vw, 70px) 0 30px;
  font-size: 13px;
  border-top: 1px solid var(--line);
}
.foot-inner {
  max-width: var(--maxw);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex; flex-wrap: wrap; gap: 30px;
  justify-content: space-between; align-items: end;
}
footer .brand-name { color: var(--ink); }
.foot-meta { font-size: 11px; letter-spacing: 0.1em; color: #666; }
.foot-address { margin-bottom: 8px; color: var(--ink); }
.foot-tel { color: var(--ink-soft); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .note-grid { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  /* 鉢オブジェ:テキストの下に中央配置(縦並びにシフト) */
  .hero { min-height: 0; }
  .hero-inner { padding-right: 0; }
  .hero-art {
    /* 絶対配置を解除して通常フローに */
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    transform: none;
    /* 中央配置、ブラウザ幅に応じて滑らかに縮小 */
    width: clamp(280px, 55vw, 460px);
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;      /* 旧 right_main = 600×800 = 3:4 */
    max-height: none;
    margin: clamp(40px, 6vw, 80px) auto 0;
    opacity: 1;
  }
  nav.global ul { display: none; }
  nav.global .note-pill { display: inline-block; }
  nav.global ul li:last-child { display: list-item; }
  nav.global ul { display: flex; gap: 12px; }
  nav.global ul li:not(:last-child) { display: none; }
  .corporate-data th { width: 35%; }
  .about-page section {
    grid-template-columns: 1fr;
    row-gap: 16px;
  }
  .about-page section > .sub-head,
  .about-page section > :not(.sub-head) {
    grid-column: 1 / -1;
  }
  .about-page .founder-top {
    grid-template-columns: 1fr;
    row-gap: 20px;
    justify-items: start;
  }
  .about-page .founder-portrait {
    width: 200px;
  }
}
@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .note-grid { grid-template-columns: 1fr; }
  .hero-art {
    width: clamp(220px, 75vw, 360px);
    margin-top: clamp(30px, 5vw, 50px);
  }
  .hero-meta span { font-size: 11px; padding: 5px 10px; }
  .corporate-data { font-size: 13px; }
  .corporate-data th,
  .corporate-data td { padding: 14px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
