/* ===== 書体（使う文字だけの woff2。作り直しは要件定義.md を参照）
   和文は細めの角ゴシック Zen Kaku Gothic New（300・500・700）、英字は細身で端正な Jost（400）。
   落ち着いた信頼感に合わせ、参考の幅広の英字（Krona One）は使わない ===== */
@font-face { font-family: "Minase Sans"; src: url("../assets/fonts/zen-kaku-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Minase Sans"; src: url("../assets/fonts/zen-kaku-500.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Minase Sans"; src: url("../assets/fonts/zen-kaku-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Minase En"; src: url("../assets/fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ===== 配色（白い地・濃い灰の文字・落ち着いた青緑の差し色1色・淡い面のフッター） ===== */
:root {
  --ink: #333333;           /* 本文（白の上で 12.6） */
  --ink-sub: #666666;       /* 補助の文字（白の上で 5.7） */
  --accent: #00796f;        /* 差し色：見出しの印・矢印・丸い札（白の上で 5.3） */
  --tag: #e6f2f0;           /* ボタンの上の小さな札（差し色を薄くした面） */
  --cream: #f1f6f3;         /* フッターの地 */
  --line: rgba(51, 51, 51, 0.1);
  --img-bg: rgba(0, 121, 111, 0.1);
  --shadow: 0 0 24px 0 rgba(0, 0, 0, 0.1);
  --band: 28px;

  --ff: "Minase Sans", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --en: "Minase En", "Minase Sans", sans-serif;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

/* 参考と同じく、文字や寸法を html の文字の大きさ（rem）で決める。
   スマホは画面幅に比例（375px で 1rem=100px）、PC も画面幅に比例（1366px 以上で 1rem=100px） */
html { font-size: 62.5%; color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (max-width: 767px) { html { font-size: 26.6666667vw; scroll-padding-top: 0.6rem; } }
@media (min-width: 768px) { html { font-size: 7.3206442vw; } }
/* タブレット（768〜1023px）：左の列をやめてスマホと同じ上のロゴとメニューにし、本文を画面幅いっぱいに使う */
@media (min-width: 768px) and (max-width: 1023px) { html { font-size: 10.4166667vw; } }
@media (min-width: 1366px) { html { font-size: 100px; } }

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  font-family: var(--ff);
  font-size: max(13px, min(0.16rem, 18px));
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.7;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
@media (max-width: 767px) { body { font-size: min(0.15rem, 17px); letter-spacing: 0; } }
h1, h2, h3, h4, p, ul, dl, dd, figure, table { margin: 0; padding: 0; font-weight: inherit; font-size: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; }
.en { font-family: var(--en); font-weight: 400; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nw { display: inline-block; }

/* 幅を限る改行（bropt.mjs で決める） */
.sp-br, .tb-br, .md-br { display: none; }
@media (max-width: 767px) { .sp-br { display: inline; } .pc-br { display: none; } .pc { display: none !important; } }
@media (min-width: 768px) { .sp { display: none !important; } }
/* ヘッダーだけはタブレットもスマホの形 */
.hd-sp { display: none; }
@media (max-width: 1023px) { .hd-sp { display: block; } }
@media (min-width: 768px) and (max-width: 1023px) { .tb-br { display: inline; } }
@media (min-width: 1024px) and (max-width: 1279px) { .md-br { display: inline; } }

/* ===== サンプルの帯 ===== */
.demo {
  position: relative;
  z-index: 9300;
  height: var(--band);
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  line-height: var(--band);
  text-align: center;
  letter-spacing: 0.06em;
}
.demo a { text-decoration: underline; text-underline-offset: 3px; }

/* ===== 全体の枠：白い地の下だけ丸め、フッターの上に重ねる ===== */
.wrapper {
  background: #fff;
  border-radius: 0 0 50px 50px;
  margin-bottom: -50px;
  box-shadow: var(--shadow);
}
@media (max-width: 767px) { .wrapper { border-radius: 0 0 30px 30px; } }

/* 本文の段（PC は中央に置く） */
.content { max-width: 11.2rem; margin: 0 auto; padding: 0 0.8rem; }
@media (max-width: 767px) { .content { margin-left: 0; padding: 0 0.25rem; } }
@media (min-width: 768px) and (max-width: 1023px) { .content { margin-left: 0; padding: 0 0.5rem; } .content.full { padding: 0; } }
.content.full { max-width: none; margin-left: 0; margin-right: 0; padding: 0; }

/* 見出し：和文の見出しの下に、小さな英字 */
.ttl-en {
  display: flex;
  flex-direction: column;
  width: fit-content;
  font-family: var(--en);
  font-size: max(11px, min(0.14rem, 15px));
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.24em;
  color: var(--accent);
  text-transform: uppercase;
}
.ttl-en span {
  margin-bottom: 0.1rem;
  color: var(--ink);
  font-family: var(--ff);
  font-size: max(24px, min(0.36rem, 38px));
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.1em;
  text-transform: none;
}
.ttl-en.c { margin: 0 auto; align-items: center; text-align: center; }
@media (max-width: 767px) {
  .ttl-en { font-size: min(0.12rem, 13px); }
  .ttl-en span { font-size: min(0.26rem, 28px); }
}

/* ===== ボタン（白い角丸＋影＋左の小さな三角。押すと少し沈む） ===== */
.btn {
  position: relative;
  display: flex;
  align-items: center;
  width: fit-content;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 500;
  transition: box-shadow 0.3s var(--ease), translate 0.3s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 50%;
  translate: 0 -50%;
  width: 8px;
  height: 14px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.btn a {
  display: block;
  padding: 0.07rem 0.2rem 0.07rem 0.34rem;
  font-size: max(13px, min(0.16rem, 18px));
  font-weight: 500;
  line-height: 1.7;
}
.btn:hover { box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.16); translate: 0 5px; }
.btn.large::before { left: 0.44rem; }
.btn.large a { padding: 0.12rem 0.4rem 0.12rem 0.61rem; text-align: center; font-size: max(14px, min(0.18rem, 20px)); }
.btn .tag-y {
  position: absolute;
  top: -0.1rem;
  right: 0.12rem;
  padding: 0 0.08rem;
  border-radius: 4px;
  background: var(--tag);
  color: var(--accent);
  font-size: max(10px, min(0.11rem, 13px));
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.05em;
  pointer-events: none;
}
.btn.transparent { border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; box-shadow: 0 0 24px 0 rgba(0, 0, 0, 0.4); }
.btn.transparent::before { background: #fff; }
.btn.transparent a { color: #fff; }
@media (max-width: 767px) {
  .btn::before { width: 7px; height: 12px; }
  .btn a { font-size: min(0.14rem, 16px); }
  .btn.large a { padding-block: 0.08rem; }
  .btn .tag-y { font-size: min(0.1rem, 12px); }
}

/* 白い角丸の箱（押せる箱は少し沈む） */
.box {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
a.box { display: block; transition: box-shadow 0.3s var(--ease), translate 0.3s var(--ease); }
a.box:hover { box-shadow: 0 0 1px 0 rgba(0, 0, 0, 0.16); translate: 0 5px; }

/* ===== 写真の出方：淡い面の上に、左から少しずれながら現れる（参考と同じ 1.3 秒） ===== */
.ie { position: relative; overflow: hidden; width: fit-content; background: var(--img-bg); }
/* 白い背景の写真が地に溶けないよう、ごく淡い髪の毛ほどの縁を内側に引く */
.ie::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(51, 51, 51, 0.08); pointer-events: none; }
.ie img { width: 100%; height: 100%; object-fit: cover; }
.r10 { border-radius: 10px; }
.r5 { border-radius: 5px; }
.js .ie > img { opacity: 0; }
.js .ie.is-in > img { animation: ie-in 1.3s var(--ease) 0.5s both; opacity: 1; }
@keyframes ie-in {
  0% { translate: -50px 0; clip-path: inset(0 100% 0 0); }
  100% { translate: 0 0; clip-path: inset(-1% 0 -1% -1%); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .ie > img { opacity: 1; animation: none; }
  .btn, a.box { transition: none; }
}
