/* ミナラクネのホームページ */
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/zen-kaku-500.woff2") format("woff2");
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/zen-kaku-700.woff2") format("woff2");
}

:root {
  --forest: #123f30;      /* いちばん上の地の色 */
  --forest-2: #0d3125;    /* その中の、一段しずんだ面 */
  --green: #1f6f54;       /* ブランドの緑 */
  --yamabuki: #f2b84b;    /* 山吹色（発送日のしるし） */
  --ink: #1e2a26;
  --ink-2: #54625c;
  --mist: #eef5f1;        /* うすい緑の面 */
  --line: #d5e0da;
  --paper: #fff;

  --head: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;  /* 見出し・メニュー・大きな日付 */
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt";
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, fieldset { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; }
p, li, summary { text-wrap: pretty; line-break: strict; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: var(--green); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yamabuki); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }

/* ---------- いちばん上 ---------- */
.hero {
  background: var(--forest);
  color: #fff;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.topbar__logo { display: block; line-height: 0; margin-left: -6px; }
.topbar__nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-family: var(--head); font-weight: 500; font-size: 15px; }
.topbar__nav a { color: #fff; text-decoration: none; padding: 6px 0; white-space: nowrap; }
.topbar__nav a:hover { text-decoration: underline; }

.hero__intro { padding-top: clamp(28px, 5vw, 64px); }
.hero h1 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(21px, 6vw, 46px);
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-indent: -0.5em; /* はじめのカギかっこを、左のそろえの外に出す */
}
.hero__lead { margin-top: 20px; max-width: 40em; color: #d9e8e1; font-size: clamp(15px, 1.5vw, 17px); }
.hero__status { margin-top: 22px; }

.soon {
  display: inline-block;
  font-family: var(--head); font-weight: 700; font-size: 14px; line-height: 1.4;
  color: var(--ink); background: var(--yamabuki);
  padding: 8px 16px; border-radius: 999px;
}
.soon--plain { display: block; background: none; padding: 0; color: var(--ink-2); font-weight: 500; }

/* 見本：大きな日付 */
.demo { margin-top: clamp(40px, 6vw, 72px); }
.demo__title { font-family: var(--head); font-weight: 500; font-size: clamp(16px, 1.8vw, 20px); color: #d9e8e1; }
.demo__headline {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.28em;
  font-family: var(--head); font-weight: 700; line-height: 1.15;
  margin-top: 4px;
}
.demo__date {
  font-size: clamp(50px, 11.5vw, 136px);
  color: var(--yamabuki);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.demo__tail { font-size: clamp(22px, 3.6vw, 44px); }
.demo__sub { margin-top: 10px; font-size: clamp(15px, 1.6vw, 18px); color: #fff; min-height: 1.85em; }

/* 見本：日にちの帯 */
.ribbon {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  margin-top: clamp(24px, 3.4vw, 40px);
}
.ribbon__day {
  display: grid; justify-items: center; align-content: start; gap: 2px;
  padding: 10px 2px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--head);
  line-height: 1.3;
  min-height: 98px;
}
.ribbon__dow { font-size: 12px; font-weight: 500; color: #cfe1d9; }
.ribbon__num { font-size: clamp(17px, 2vw, 24px); font-weight: 700; font-variant-numeric: tabular-nums; }
.ribbon__tag { font-size: 12px; font-weight: 700; min-height: 1.3em; white-space: nowrap; }
.ribbon__day.is-closed {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.22);
  color: #9fbdb0;
}
.ribbon__day.is-closed .ribbon__dow { color: #9fbdb0; }
.ribbon__day.is-closed .ribbon__tag { font-weight: 500; }
.ribbon__day.is-counted .ribbon__tag { color: #cfe1d9; font-weight: 500; }
.ribbon__day.is-accept { background: #fff; color: var(--forest); }
.ribbon__day.is-accept .ribbon__dow { color: var(--green); }
.ribbon__day.is-ship { background: var(--yamabuki); color: var(--ink); }
.ribbon__day.is-ship .ribbon__dow { color: #5b4311; }
.ribbon__day.is-today .ribbon__dow { font-weight: 700; }

/* 見本：設定 */
.controls {
  margin-top: 28px;
  background: var(--forest-2);
  border-radius: 20px;
  padding: 20px clamp(16px, 2.4vw, 28px) 22px;
}
.controls__title { font-family: var(--head); font-weight: 700; font-size: 15px; }
.controls__row { display: flex; flex-wrap: wrap; gap: 18px clamp(20px, 3vw, 40px); margin-top: 14px; align-items: flex-start; }
.ctl { display: grid; gap: 6px; }
.ctl__label { font-size: 13px; color: #cfe1d9; line-height: 1.4; }
.ctl__select {
  font: inherit; font-family: var(--head); font-weight: 700; font-size: 16px;
  color: #fff; background-color: rgba(255, 255, 255, 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
  border: 0; border-radius: 12px; height: 44px; padding: 0 36px 0 14px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.ctl__select option { color: var(--ink); background: #fff; }
.stepper { display: inline-flex; align-items: center; height: 44px; background: rgba(255, 255, 255, 0.1); border-radius: 12px; }
.stepper__btn {
  font: inherit; font-size: 18px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
}
.stepper__btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.stepper__btn:disabled { opacity: 0.35; cursor: default; }
.stepper__value { font-family: var(--head); font-weight: 700; min-width: 5.2em; text-align: center; }

.days { display: inline-flex; gap: 6px; }
.day { position: relative; cursor: pointer; }
.day input, .preset input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.day span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  font-family: var(--head); font-weight: 700;
  background: rgba(255, 255, 255, 0.1); color: #fff;
}
.day input:checked + span {
  background: transparent; color: #9fbdb0;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3);
  text-decoration: line-through; text-decoration-thickness: 1.5px;
}
.day input:focus-visible + span, .preset input:focus-visible + span { outline: 3px solid var(--yamabuki); outline-offset: 3px; }

.ctl--checks { gap: 4px; padding-top: 22px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; line-height: 1.5; min-height: 28px; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--yamabuki); flex: none; }
.demo__note { margin-top: 14px; font-size: 13px; color: #b9d0c6; }

/* ---------- 本文の区切り ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--tint { background: var(--mist); }
.section__title {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(25px, 3.2vw, 36px); line-height: 1.4; letter-spacing: 0.01em;
}
.section__lead { margin-top: 14px; max-width: 38em; color: var(--ink-2); }

/* ---------- お店での見え方 ---------- */
.presets { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.presets legend { float: left; margin-right: 12px; font-family: var(--head); font-weight: 700; font-size: 15px; line-height: 44px; }
.preset { position: relative; }
.preset span {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; background: var(--mist); font-family: var(--head); font-weight: 500; font-size: 15px;
}
.preset input:checked + span { background: var(--ink); color: #fff; font-weight: 700; }
.preset__dot { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.preset__dot--natural { background: #1f7a4d; }
.preset__dot--simple { background: #111; }
.preset__dot--soft { background: #c2557a; }
.preset__dot--wa { background: #2b4b7e; }
.preset__dot--pop { background: #e8590c; }

.look { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: stretch; }
.surface { border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; background: #fff; }
.surface__name {
  font-family: var(--head); font-weight: 500; font-size: 13px; color: var(--ink-2);
  padding: 10px 20px; border-bottom: 1.5px solid var(--line); background: #f8fbf9;
}
.surface__body { padding: clamp(20px, 3vw, 32px); flex: 1; }
.product { display: grid; gap: 20px; align-content: start; }
.product__art { background: #f3f6f4; border-radius: 12px; display: grid; place-items: center; padding: 14px; }
.product__art svg { width: min(100%, 220px); display: block; }
.product__info { display: grid; gap: 12px; }
.product__name { font-size: 20px; font-weight: 700; line-height: 1.4; }
.product__price { font-size: 17px; line-height: 1.4; }
.product__button {
  display: block; text-align: center; background: var(--ink); color: #fff; border-radius: 8px;
  padding: 12px; font-size: 15px; font-weight: 700; line-height: 1.5; user-select: none;
}
.surface .mnrk-cal__months { min-height: 0; }
.surface .mnrk-cal__heading { font-weight: 700; }
.look__note { margin-top: 20px; color: var(--ink-2); font-size: 15px; max-width: 40em; }

/* ---------- できることと料金 ---------- */
.plan {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 20px clamp(24px, 5vw, 72px);
  padding-block: 36px; border-top: 2px solid var(--ink);
}
.section__lead + .plan { margin-top: 44px; }
.plan__name { font-family: var(--head); font-weight: 700; font-size: 22px; line-height: 1.4; }
.plan__price { font-family: var(--head); font-weight: 500; font-size: 16px; line-height: 1.3; margin-top: 6px; }
.plan__price b { font-size: 40px; font-weight: 700; letter-spacing: -0.01em; margin-inline: 0.06em; font-variant-numeric: tabular-nums; }
.plan__yearly { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.plan__about { margin-top: 12px; font-size: 15px; color: var(--ink-2); max-width: 20em; line-height: 1.75; }
.plan__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px clamp(20px, 3vw, 44px); }
.plan__list li { font-size: 15px; line-height: 1.75; color: var(--ink-2); }
.plan__list b { display: block; font-family: var(--head); font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.5; margin-bottom: 2px; }
.plans__note { border-top: 2px solid var(--ink); padding-top: 22px; font-size: 14px; color: var(--ink-2); max-width: none; }

/* ---------- はじめかた ---------- */
.steps { counter-reset: step; margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; }
.steps li::before {
  content: counter(step);
  font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1;
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 16px; background: var(--green); color: #fff; margin-bottom: 6px;
}
.steps b { font-family: var(--head); font-size: 19px; line-height: 1.5; }
.steps span { color: var(--ink-2); font-size: 15px; line-height: 1.8; }

/* ---------- よくある質問 ---------- */
.faq { margin-top: 32px; border-top: 1.5px solid var(--line); }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.6;
  padding: 18px 44px 18px 0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -8px;
  border-right: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(45deg); transition: transform 0.15s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 44px 20px 0; color: var(--ink-2); max-width: 40em; }

/* ---------- ミナラクネについて・お問い合わせ ---------- */
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(32px, 6vw, 88px); }
.about p { margin-top: 14px; color: var(--ink-2); max-width: 34em; }
.apps { margin-top: 28px; border-top: 1.5px solid var(--line); }
.apps__item { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1.5px solid var(--line); line-height: 1.5; }
.apps__item img { border-radius: 13px; flex: none; }
.apps__item b { font-family: var(--head); font-size: 16px; display: block; }
.mail { font-family: var(--head); font-weight: 700; font-size: clamp(18px, 2.2vw, 22px); word-break: break-all; }

/* ---------- いちばん下 ---------- */
.footer { background: var(--forest); color: #fff; padding-block: 36px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer__inner img { margin-left: -5px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; margin-left: auto; }
.footer__nav a { color: #fff; }
.footer__copy { font-size: 13px; color: #b9d0c6; }

/* ---------- プライバシーポリシーなど、読む文書 ---------- */
.plainbar { background: var(--forest); }
.doc { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.doc__title { font-family: var(--head); font-weight: 700; font-size: clamp(27px, 3.6vw, 38px); line-height: 1.4; }
.doc__meta { margin-top: 10px; color: var(--ink-2); font-size: 14px; }
.doc__jump { margin-top: 6px; font-size: 14px; }
.doc h2 { font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1.5; margin-top: 48px; padding-top: 20px; border-top: 1.5px solid var(--line); }
.doc h3 { font-family: var(--head); font-weight: 700; font-size: 17px; line-height: 1.6; margin-top: 26px; }
.doc p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 1.4em; margin-top: 10px; }
.doc li { margin-top: 6px; }
.doc li::marker { color: var(--green); }
.doc table { border-collapse: collapse; width: 100%; margin-top: 14px; font-size: 15px; line-height: 1.7; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-family: var(--head); font-weight: 700; }
.doc .kv th { white-space: nowrap; width: 9em; }
.doc .stack th[scope="row"] { width: 34%; }
.doc .stack td { width: 33%; }
.doc thead th { border-bottom: 2px solid var(--ink); }
.doc .table-scroll { overflow-x: auto; }
.doc__part { margin-top: 72px; padding-top: 8px; border-top: 4px solid var(--green); }
.doc__part > h2:first-child { border-top: 0; margin-top: 24px; padding-top: 0; font-size: clamp(24px, 3vw, 30px); }
.doc [lang="en"] { font-feature-settings: normal; line-height: 1.75; }

/* ---------- せまい画面 ---------- */
@media (max-width: 900px) {
  .look, .plan, .about { grid-template-columns: minmax(0, 1fr); }
  .plan__about { max-width: 34em; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: 52px minmax(0, 1fr); column-gap: 16px; }
  .steps li::before { grid-row: span 2; margin-bottom: 0; }
  .steps li > * { grid-column: 2; }
}
@media (max-width: 760px) {
  .doc .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc .stack tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .doc .stack th[scope="row"], .doc .stack td { display: block; width: auto; padding: 0; border: 0; }
  .doc .stack td { margin-top: 8px; }
  .doc .stack td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
  .doc .kv th { width: 6.5em; }
  .topbar__nav a:nth-child(1), .topbar__nav a:nth-child(3) { display: none; }
  .ribbon { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
  .ribbon__day { min-height: 84px; border-radius: 10px; padding: 8px 0 6px; }
  .ribbon__dow, .ribbon__tag { font-size: 11px; }
  .ctl--checks { padding-top: 0; }
  .ctl--days { width: 100%; }
  .days { gap: 4px; }
  .day span { width: min(44px, calc((100vw - 2 * var(--gutter) - 2 * 16px - 24px) / 7)); }
  .plan__list { grid-template-columns: minmax(0, 1fr); }
  .presets legend { float: none; width: 100%; line-height: 1.6; margin-bottom: 4px; }
}
@media (max-width: 420px) {
  .topbar__logo img { width: 132px; height: 40px; }
  .topbar__nav { font-size: 14px; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
