/* ─────────────────────────────────────────
       TOKENS
    ───────────────────────────────────────── */
:root {
  --ink: #141914;
  --green: #2d6a47;
  --green2: #3d8a5f;
  --sage: #e8efe9;
  --paper: #f9faf8;
  --line: #d6ddd7;
  --muted: #7a8c7d;
  --white: #ffffff;

  --text-main: #2a2a2a;
  --text-sub: #4a4a4a;

  --f-sans: "Noto Sans JP", sans-serif;
  --f-ser: "Noto Serif JP", serif;

  --gap: clamp(80px, 10vw, 140px);
}

/* ─────────────────────────────────────────
       RESET & BASE
    ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--f-sans);
  background: var(--white);
  color: var(--text-main);
  font-size: 18px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.feat-body,
.bimae-body,
.step-body {
  color: var(--text-sub);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* ─────────────────────────────────────────
       UTILITY
    ───────────────────────────────────────── */
.wrap {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ─────────────────────────────────────────
       HEADER
    ───────────────────────────────────────── */
#hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s;
}
#hdr.top {
  border-color: transparent;
}

.hdr-inner {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ロゴ：書体だけで個性を出す */
.logo {
  font-family: var(--f-ser);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.logo-sub {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  line-height: 1;
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.hdr-nav a {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
.hdr-nav a:hover {
  color: var(--green);
}

.hdr-btn {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white) !important;
  background: var(--green);
  padding: 7px 18px;
  border-radius: 3px;
  transition: background 0.15s;
}
.hdr-btn:hover {
  background: var(--ink);
}

/* ─ hamburger ─ */
.ham {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}
.ham span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.28s ease, opacity 0.2s;
}
.ham.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.ham.active span:nth-child(2) {
  opacity: 0;
}
.ham.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mob-menu {
  display: none;
  position: fixed;
  inset: 56px 0 0;
  background: var(--white);
  z-index: 99;
  flex-direction: column;
  padding: 32px clamp(20px, 5vw, 60px);
  gap: 0;
  border-top: 1px solid var(--line);
}
.mob-menu.open {
  display: flex;
}
.mob-menu a {
  font-size: 16px;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mob-menu .mob-cta {
  margin-top: 24px;
  display: block;
  text-align: center;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

/* ─────────────────────────────────────────
    HERO（side無し版）
    上段：左＝見出し / 右＝サブ
    下段：CTA（線）
───────────────────────────────────────── */
.hero {
  padding-top: 56px;
  min-height: 100svh;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-body {
  min-height: calc(100svh - 56px);
}

.hero-main {
  max-width: 1080px;
  margin-inline: auto;
  padding: clamp(48px, 8vw, 100px) clamp(20px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 44px);
}

/* 上段：2カラム */
.hero-top {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

/* 左（見出し） */
.hero-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--green);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.5s 0.1s ease forwards;
}

.hero-h1 {
  font-family: var(--f-ser);
  font-size: clamp(44px, 4.6vw, 86px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ink);
  margin-top: 18px;

  /* 改行事故防止（右側があるので、伸ばしすぎない） */
  max-width: 12.5em;
  word-break: keep-all;
  line-break: strict;

  opacity: 0;
  animation: riseUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 右（サブ） */
.hero-right {
  padding-top: 6px;
}

.hero-desc {
  font-size: 15px;
  line-height: 2.05;
  color: rgba(20, 25, 20, 0.72);
  opacity: 0;
  animation: fadeIn 0.6s 0.45s ease forwards;
}

/* 下段：線＋CTA */
.hero-bottom {
  border-top: 1px solid var(--line);
  padding-top: clamp(18px, 4vw, 28px);
  display: flex;
  justify-content: flex-start;
  opacity: 0;
  animation: fadeIn 0.6s 0.55s ease forwards;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--ink);
  transform: translateY(-1px);
}

.btn-text {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-text:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ─────────────────────────────────────────
       SECTION 共通
    ───────────────────────────────────────── */
.section {
  padding-block: var(--gap);
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.sec-kicker {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.sec-title {
  font-family: var(--f-ser);
  font-size: clamp(22px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.sec-more {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.sec-more:hover {
  color: var(--green);
}

/* ─────────────────────────────────────────
       FEATURES
    ───────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
}

.feat-item {
  padding: 36px 32px 44px;
  border-right: 1px solid var(--line);
  position: relative;
}

.feat-num {
  font-family: var(--f-ser);
  font-size: 56px;
  font-weight: 700;
  color: var(--sage);
  line-height: 1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.feat-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  color: var(--green);
}

.feat-title {
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.feat-body {
  color: var(--muted);
  line-height: 1.9;
  font-size: 17px;
}

/* ─────────────────────────────────────────
       TEMPLATES
    ───────────────────────────────────────── */
.tpl-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.tpl-item {
  background: var(--white);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.2s;
  cursor: default;
}
.tpl-item:hover {
  background: var(--paper);
}

.tpl-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tpl-label::before {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  background: var(--green);
}

.tpl-name {
  font-family: var(--f-ser);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.tpl-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  flex: 1;
  margin-bottom: 24px;
}

/* ミニサイトプレビュー */
.tpl-preview {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--paper);
}
.tpl-preview-bar {
  height: 22px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 5px;
}
.tpl-preview-bar i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
}
.tpl-preview-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pl {
  height: 5px;
  border-radius: 2px;
  background: #dde5de;
}
.pl.g {
  background: var(--green);
  opacity: 0.4;
}
.pl.bold {
  background: #b8c8ba;
}

.tpl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tag {
  font-size: 11px;
  color: var(--green);
  border: 1px solid #b8d8c4;
  padding: 2px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────
       STEPS
    ───────────────────────────────────────── */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

/* 繋ぐ横線 */
.steps-timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  left: calc(100% / 6);
  right: calc(100% / 6);
  height: 1px;
  background: var(--line);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
}

.step-dot {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-ser);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: var(--white);
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}

.step-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
}

.step-note {
  margin-top: 12px;
  font-size: 11px;
  color: var(--green);
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ─────────────────────────────────────────
       BIMAE
    ───────────────────────────────────────── */
.bimae-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.bimae-text {
  padding-top: 4px;
}

.bimae-lead {
  font-family: var(--f-ser);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 24px;
  letter-spacing: -0.005em;
}

.bimae-body {
  font-size: 14px;
  color: var(--muted);
  line-height: 2;
}
.bimae-body + .bimae-body {
  margin-top: 16px;
}

.bimae-aside {
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.aside-head {
  background: var(--sage);
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green);
  text-transform: uppercase;
}

.aside-list {
  list-style: none;
}

.aside-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.65;
}

.aside-item-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--green);
}

.aside-note {
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.7;
  background: var(--paper);
}

/* ─────────────────────────────────────────
       FOOTER（可読性改善）
    ───────────────────────────────────────── */

footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);   /* ← 0.5 → 0.75 */
  border-top: 1px solid var(--line);
}

.footer-top {
  padding-block: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  font-family: var(--f-ser);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);               /* ← そのまま強め */
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 15px;                   /* ← 少し上げる */
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);  /* ← 0.4 → 0.65 */
  max-width: 420px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;                   /* ← 少し大きく */
  color: rgba(255, 255, 255, 0.8);   /* ← はっきり */
  letter-spacing: 0.04em;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;                   /* ← 少し上げる */
  color: rgba(255, 255, 255, 0.6);   /* ← 0.2 → 0.6 */
}


/* ─────────────────────────────────────────
       ANIMATIONS
    ───────────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes riseUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intersection reveal — 控えめに */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js-reveal.in {
  opacity: 1;
  transform: none;
}
.js-reveal.delay-1 {
  transition-delay: 0.1s;
}
.js-reveal.delay-2 {
  transition-delay: 0.2s;
}
.js-reveal.delay-3 {
  transition-delay: 0.3s;
}

/* ─────────────────────────────────────────
       RESPONSIVE
    ───────────────────────────────────────── */
@media (max-width: 900px) {
  /* HERO：右カラムを落として縦積みに */
  .hero-top {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .hero-right {
    padding-top: 0;
    margin-top: 8px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .features-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }
  .feat-item {
    border-right: none;
    border-top: 1px solid var(--line);
  }
  .feat-item:first-child {
    border-top: none;
  }

  .tpl-list {
    grid-template-columns: 1fr;
  }

  .steps-timeline {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .steps-timeline::before {
    display: none;
  }
  .step {
    flex-direction: row;
    text-align: left;
    gap: 20px;
    align-items: flex-start;
  }
  .step-dot {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .bimae-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-links {
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .hdr-nav {
    display: none;
  }
  .ham {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.25;
  }
}

.hero {
  padding-top: 56px;

  /* iOS対策：vh → svh → dvh の順で上書き（対応ブラウザで最適値になる） */
  min-height: calc(100vh - 0px);
  min-height: 100svh;
  min-height: 100dvh;

  background: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-body {
  /* iOS対策：ヘッダー分を差し引いた「見えている高さ」を安定させる */
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  min-height: calc(100dvh - 56px);
}


/* ========================================
   READABILITY MAX（全面可読性改善）
   pタグは全部、濃く・大きく
======================================== */

/* 色をはっきりさせる */
:root{
  --text-main: #1f2621;
  --text-sub:  #262f29;   /* かなり濃く */
  --muted:     #3e4b42;   /* もう薄くしない */
}

/* 全pタグ */
p{
  font-size: 19px;
  line-height: 1.9;
  color: var(--text-sub);
}

/* 例外的に小さくされていた箇所を解除 */
.hero-desc,
.feat-body,
.tpl-desc,
.step-body,
.bimae-body{
  font-size: 19px;
  line-height: 1.9;
  color: var(--text-sub);
}

/* 小さい注記だけは少し抑える（でも読める） */
.step-note,
.aside-note{
  font-size: 15px;
  color: var(--muted);
}

/* モバイルでもしっかり */
@media (max-width:768px){

  body{
    font-size: 18px;
  }

  p{
    font-size: 18px;
  }

}

