/* =========================================================
   Flow to Stock — Stylesheet
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --color-flow: #2a9df4;      /* フロー＝水・ブルー */
  --color-flow-dark: #1b6fb0;
  --color-stock: #1f9d6b;     /* ストック＝安定・グリーン */
  --color-stock-dark: #157a52;
  --color-ink: #1c2733;
  --color-text: #3c4a59;
  --color-muted: #6b7785;
  --color-line: #e3e9ef;
  --color-bg: #ffffff;
  --color-bg-tint: #f4f8fb;
  --color-accent: #f5a623;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(28, 39, 51, 0.08);
  --shadow-sm: 0 4px 14px rgba(28, 39, 51, 0.06);

  --container: 1120px;
  --header-h: 72px;

  --font-jp: "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Montserrat", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.4; color: var(--color-ink); }
p { margin: 0; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding: 88px 0; }
.section--tint { background: var(--color-bg-tint); }
.sp-only { display: none; }
.pc-only { display: inline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(120deg, var(--color-flow), var(--color-stock));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}
.btn--ghost:hover { border-color: var(--color-flow); color: var(--color-flow); }
.btn--light {
  background: #fff;
  color: var(--color-ink);
  box-shadow: var(--shadow);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(120deg, var(--color-flow), var(--color-stock));
  padding: 6px 10px;
  border-radius: 10px;
  letter-spacing: .5px;
}
.logo__arrow { opacity: .85; }
.logo__text { font-weight: 700; color: var(--color-ink); font-size: 1.05rem; }

.nav__list { display: flex; align-items: center; gap: 26px; }
.nav__link {
  font-size: .92rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color .2s ease;
}
.nav__link:hover { color: var(--color-flow); }
.nav__link--btn {
  background: var(--color-ink);
  color: #fff;
  padding: 9px 18px;
  border-radius: 999px;
}
.nav__link--btn:hover { color: #fff; opacity: .88; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  transition: transform .3s ease, opacity .3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(42,157,244,.12), transparent),
    radial-gradient(900px 500px at -10% 110%, rgba(31,157,107,.12), transparent),
    var(--color-bg);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 48px;
  padding: 92px 24px;
}
.hero__lead {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-flow);
  font-size: .85rem;
  margin-bottom: 16px;
}
.hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; letter-spacing: .5px; }
.hero__title-accent {
  background: linear-gradient(120deg, var(--color-flow), var(--color-stock));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__desc { margin: 24px 0 32px; color: var(--color-text); font-size: 1.02rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero visual cards */
.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.flowcard {
  flex: 1;
  max-width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: var(--shadow);
}
.flowcard--flow { background: linear-gradient(160deg, var(--color-flow), var(--color-flow-dark)); }
.flowcard--stock { background: linear-gradient(160deg, var(--color-stock), var(--color-stock-dark)); }
.flowcard__label { font-family: var(--font-en); font-size: .7rem; letter-spacing: 2px; opacity: .85; }
.flowcard__title { font-size: 1.7rem; font-weight: 900; }
.flowcard__sub { font-size: .85rem; opacity: .92; }
.flowcard__arrow { font-size: 1.8rem; color: var(--color-muted); font-weight: 700; }

/* ---------- Section head ---------- */
.section__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section__en {
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-flow);
  font-size: .8rem;
  margin-bottom: 12px;
}
.section__title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 900; }
.section__title--left { text-align: left; }
.section__desc { margin-top: 20px; color: var(--color-text); }
.section__desc--left { text-align: left; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 28px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}
.card__icon--flow { background: rgba(42,157,244,.12); }
.card__icon--stock { background: rgba(31,157,107,.12); }
.card__title { font-size: 1.25rem; margin-bottom: 12px; }
.card__text { color: var(--color-text); }

/* ---------- Split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}
.split--reverse .split__media { order: 2; }
.placeholder {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
}
.placeholder--fx { background: linear-gradient(160deg, var(--color-flow), var(--color-flow-dark)); }
.placeholder--re { background: linear-gradient(160deg, var(--color-stock), var(--color-stock-dark)); }

.checklist { margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding-left: 32px;
  color: var(--color-text);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-stock);
  color: #fff;
  font-size: .8rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 560px;
}
.table th, .table td {
  padding: 18px 20px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
}
.table thead th {
  background: var(--color-ink);
  color: #fff;
  font-weight: 700;
}
.table thead th:nth-child(2) { background: var(--color-flow-dark); }
.table thead th:nth-child(3) { background: var(--color-stock-dark); }
.table tbody th {
  background: var(--color-bg-tint);
  font-weight: 700;
  color: var(--color-ink);
  text-align: left;
}
.table tbody tr:last-child th,
.table tbody tr:last-child td { border-bottom: none; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step__num {
  font-family: var(--font-en);
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--color-flow), var(--color-stock));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 10px;
}
.step__title { font-size: 1.2rem; margin-bottom: 10px; }
.step__text { color: var(--color-text); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(120deg, var(--color-flow), var(--color-stock));
  color: #fff;
}
.cta__inner { text-align: center; padding: 80px 24px; }
.cta__title { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 900; color: #fff; }
.cta__desc { margin: 18px 0 32px; opacity: .95; }

/* ---------- Contact form ---------- */
.form {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  text-align: left;
  color: var(--color-text);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form__field { margin-bottom: 20px; }
.form__row .form__field { margin-bottom: 0; }
.form__row { margin-bottom: 20px; }
.form__label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-ink);
  margin-bottom: 8px;
}
.form__req, .form__opt {
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}
.form__req { background: rgba(245,166,35,.16); color: #b9760a; }
.form__opt { background: var(--color-bg-tint); color: var(--color-muted); }
.form__input {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-ink);
  background: var(--color-bg-tint);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form__input::placeholder { color: var(--color-muted); opacity: .7; }
.form__input:focus {
  outline: none;
  border-color: var(--color-flow);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42,157,244,.15);
}
.form__textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.form__select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath fill='none' stroke='%236b7785' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form__input.is-invalid {
  border-color: #e05656;
  background: #fff6f6;
  box-shadow: 0 0 0 3px rgba(224,86,86,.12);
}
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--color-text);
  margin-bottom: 24px;
  cursor: pointer;
}
.form__check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--color-flow); }
.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__actions { text-align: center; }
.form__submit { width: 100%; max-width: 340px; }
.form__submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form__status {
  margin-top: 18px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  min-height: 1.2em;
}
.form__status.is-success { color: var(--color-stock-dark); }
.form__status.is-error { color: #c0392b; }
.form__notice {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: .82rem;
  line-height: 1.7;
  opacity: .9;
  text-align: left;
}
.form__link { color: inherit; text-decoration: underline; }
.form__notes {
  max-width: 620px;
  margin: 24px auto 0;
  padding-left: 1.1em;
  text-align: left;
  font-size: .8rem;
  line-height: 1.8;
  opacity: .85;
}
.form__notes li { list-style: disc; }

/* ---------- Footer ---------- */
.footer { background: var(--color-ink); color: #c5cfd9; padding: 48px 0; }
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand .logo__text { color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.footer__nav a:hover { color: #fff; }
.footer__copy { font-size: .82rem; color: #8a96a3; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding: 64px 24px; }
  .hero__visual { max-width: 460px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .sp-only { display: inline; }

  /* Nav -> drawer */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform .3s ease;
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
  .nav__link {
    display: block;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-line);
    font-size: 1rem;
  }
  .nav__link--btn {
    background: transparent;
    color: var(--color-flow);
    border-radius: 0;
  }
  .hamburger { display: flex; }

  .cards--2 { grid-template-columns: 1fr; }
  .pc-only { display: none; }

  /* Form: stack two-column rows */
  .form { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__row .form__field { margin-bottom: 20px; }
  .form__submit { max-width: 100%; }
}

@media (max-width: 420px) {
  .container { padding-inline: 18px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .flowcard__title { font-size: 1.4rem; }

  .cta__inner { padding: 60px 18px; }
  .form { padding: 24px 18px; }
}
