@charset "UTF-8";
/* ==========================================================
   秘伝のタレ（template-hiden-no-tare.php 専用）
   サイト共通CSSは読み込まないため、ここで最低限のリセットも行う
   ========================================================== */

:root {
  --hnt-yellow: #f8f5ed;
  --hnt-green: #dce9df;
  --hnt-green-line: #cbd8ce;
  --hnt-green-dark: #193d32;
  --hnt-skin: #e1b39b;
  --hnt-charcoal: #4e454a;
  --hnt-sans: "Noto Sans JP", sans-serif;
  --hnt-serif: "Noto Serif JP", serif;
  --hnt-num: "Roboto", sans-serif;
}

.hnt *,
.hnt *::before,
.hnt *::after {
  box-sizing: border-box;
}

/* ヘッダーのアンカーリンクでなめらかにスクロールする */
html:has(> body.hnt) {
  scroll-behavior: smooth;
}

.hnt {
  margin: 0;
  background: #fff;
  color: #000;
  font-family: var(--hnt-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* リセットは :where() で詳細度0にし、各コンポーネントの指定を優先させる */
:where(.hnt) :where(h1, h2, p, ul, figure, address) {
  margin: 0;
  padding: 0;
}

:where(.hnt) :where(ul) {
  list-style: none;
}

:where(.hnt) :where(address) {
  font-style: normal;
}

:where(.hnt) :where(img) {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(.hnt) :where(a) {
  color: inherit;
  text-decoration: none;
}

:where(.hnt) :where(button) {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}

.hnt.is-modal-open {
  overflow: hidden;
}

/* ---------- Header ---------- */
.hnt-header {
  position: relative;
  z-index: 10;
  background: var(--hnt-yellow);
  border-bottom: 1px solid var(--hnt-green);
}

.hnt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1058px;
  height: 110px;
  margin: 0 auto;
  padding: 0 20px;
}

.hnt-header__logo {
  display: flex;
  align-items: center;
  gap: 3px;
}

.hnt-header__logo-text {
  margin-left: 11px;
}

.hnt-header__nav ul {
  display: flex;
  gap: 61px;
}

.hnt-header__nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}

.hnt-header__nav a:hover {
  opacity: 0.6;
}

.hnt-header__toggle {
  display: none;
}

/* ---------- Main visual ---------- */
.hnt-mv {
  /* デザイン幅1512pxを基準に、画面幅に合わせて縮小する（cqw はこの要素の幅基準） */
  --u: min(1px, calc(100cqw / 1512));
  container-type: inline-size;
  overflow: hidden;
  background: var(--hnt-yellow);
}

.hnt-mv__stage {
  position: relative;
  width: calc(var(--u) * 1512);
  height: calc(var(--u) * 610);
  margin: 0 auto;
}

.hnt-mv__stage > img,
.hnt-mv__title > img {
  position: absolute;
}

.hnt-mv__circle--1 { left: calc(var(--u) * 867);  top: calc(var(--u) * 116); width: calc(var(--u) * 320); }
.hnt-mv__circle--2 { left: 0;                       top: calc(var(--u) * 22);  width: calc(var(--u) * 230); }
.hnt-mv__circle--3 { left: calc(var(--u) * 1371); top: calc(var(--u) * 400); width: calc(var(--u) * 140); }
.hnt-mv__circle--4 { left: calc(var(--u) * 1153); top: calc(var(--u) * 26);  width: calc(var(--u) * 160); }
.hnt-mv__circle--5 { left: calc(var(--u) * 284);  top: calc(var(--u) * 451); width: calc(var(--u) * 77); }

.hnt-mv__vertical {
  left: calc(var(--u) * 152.47);
  top: calc(var(--u) * 131.27);
  width: calc(var(--u) * 7.64);
}

.hnt-mv__tare {
  left: calc(var(--u) * 901.28);
  top: calc(var(--u) * 107);
  width: calc(var(--u) * 273.9);
  height: calc(var(--u) * 326);
  object-fit: contain;
}

.hnt-mv__title-en     { left: calc(var(--u) * 535.67); top: calc(var(--u) * 155.29); width: calc(var(--u) * 206.982); }
.hnt-mv__title-otsuma { left: calc(var(--u) * 314.59); top: calc(var(--u) * 213.5);  width: calc(var(--u) * 43.536); }
.hnt-mv__title-main   { left: calc(var(--u) * 380.2);  top: calc(var(--u) * 213.84); width: calc(var(--u) * 547.58); }
.hnt-mv__title-sub    { left: calc(var(--u) * 478.05); top: calc(var(--u) * 374.24); width: calc(var(--u) * 362.048); }

/* タイトル：4つの画像をひとまとまりとして、定位置のまま左から1回でゆっくり現れる
   h1 をステージ全体に重ね、タイトル左端（--hnt-title-x）から右へ切り抜きを広げる */
.hnt-mv__title {
  --hnt-title-x: calc(var(--u) * 314);
  position: absolute;
  inset: 0;
  animation: hnt-reveal 2s cubic-bezier(0.33, 0, 0.2, 1) 0.3s both;
}

@keyframes hnt-reveal {
  from { clip-path: inset(0 calc(100% - var(--hnt-title-x)) 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* ツボ：ときどき左右にコトコトっと小さく揺れる */
.hnt-mv__tare {
  transform-origin: 50% 95%;
  /* タイトルが出そろう頃（約2秒後）に1回目を揺らし、以降5秒おきに揺らす */
  animation: hnt-kotokoto 5s ease-in-out 2s infinite;
}

@keyframes hnt-kotokoto {
  0%, 20%, 100% { transform: rotate(0); }
  4%  { transform: rotate(-3deg); }
  8%  { transform: rotate(2.5deg); }
  12% { transform: rotate(-1.5deg); }
  16% { transform: rotate(0.8deg); }
}

/* ---------- About ---------- */
.hnt-about__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  max-width: 919px;
  margin: 0 auto;
  padding: 78px 20px 70px;
}

.hnt-about__en {
  color: var(--hnt-skin);
  font-family: var(--hnt-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 20px;
}

.hnt-about__title {
  margin-top: 11px;
  color: var(--hnt-charcoal);
  font-family: var(--hnt-serif);
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 52px;
}

.hnt-about__text {
  color: var(--hnt-charcoal);
  font-family: var(--hnt-serif);
  font-size: 18px;
  letter-spacing: 0.05em;
  line-height: 32px;
}

/* ---------- Story cards ---------- */
.hnt-stories {
  padding: 0 20px 62px;
}

.hnt-stories__list {
  display: flex;
  flex-wrap: wrap;
  max-width: 960px;
  margin: 0 auto;
  /* カードを1pxずつ重ねる分、右と下に1pxの余白をとる */
  padding: 0 1px 1px 0;
}

.hnt-card {
  width: 320px;
  /* 隣り合うカードの枠線を重ねて1pxにする */
  margin: 0 -1px -1px 0;
}

.hnt-card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  height: 450px;
  /* Figmaの線は内側描画のため、枠線1px分を左右の余白から差し引いて本文幅260pxに合わせる */
  padding: 34px 29px;
  border: 1px solid var(--hnt-green-line);
  background: #fff;
  color: var(--hnt-charcoal);
}

.hnt-card__link > * {
  flex-shrink: 0;
}

/* カード：画面に入ったら下から1枚ずつ現れる（JS が動くときだけ隠しておく） */
.hnt-js .hnt-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease-out, transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--hnt-delay, 0s);
}

.hnt-js .hnt-card.is-inview {
  opacity: 1;
  transform: none;
}

button.hnt-card__link {
  transition: background-color 0.2s;
}

button.hnt-card__link:hover {
  background: var(--hnt-yellow);
}

.hnt-card__num {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hnt-green);
}

.hnt-card__num-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 24px;
}

.hnt-card__num-value {
  font-family: var(--hnt-num);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 40px;
}

.hnt-card__icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.hnt-card__icon--bg {
  background: var(--hnt-green);
}

.hnt-card__title {
  display: -webkit-box;
  align-self: stretch;
  overflow: hidden;
  min-height: 64px; /* 1行のタイトルでも2行分の高さをとり、カードの高さをそろえる */
  font-family: var(--hnt-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 32px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hnt-card__excerpt {
  display: -webkit-box;
  align-self: stretch;
  overflow: hidden;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 24px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hnt-card__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  align-self: stretch;
  height: 48px;
  margin-top: auto;
  padding: 0 21px 0 4px;
  border-top: 1px solid var(--hnt-charcoal);
  border-bottom: 1px solid var(--hnt-charcoal);
  font-size: 12px;
  letter-spacing: 0.05em;
}

.hnt-stories__more {
  display: grid;
  place-items: center;
  margin-top: 87px;
}

.hnt-stories__more > * {
  grid-area: 1 / 1;
}

.hnt-stories__more p {
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 24px;
}

/* ---------- Footer ---------- */
.hnt-footer {
  background: var(--hnt-green-dark);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.hnt-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  max-width: 1069px;
  margin: 0 auto;
  padding: 79px 20px 0;
}

.hnt-footer__address {
  margin-top: 13px;
  line-height: 14px;
}

.hnt-footer__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 216px;
  height: 47px;
  margin-top: 7px;
  padding: 0 19px;
  border-top: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transition: opacity 0.2s;
}

.hnt-footer__btn:hover {
  opacity: 0.7;
}

.hnt-footer__copy {
  padding: 70px 20px 15px;
  text-align: center;
  line-height: 14px;
}

/* ---------- Modal (お話し) ---------- */
.hnt-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  padding: 93px 20px;
}

.hnt-modal[hidden] {
  display: none;
}

.hnt-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(25, 61, 50, 0.75);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.hnt-modal__panel {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 101px;
  background: #fff;
  outline: none;
}

.hnt-modal__head {
  position: relative;
  min-height: 280px;
  padding: 74px 81px 40px 216px;
  background: var(--hnt-yellow);
}

.hnt-modal__icon {
  position: absolute;
  left: 60px;
  top: 82px;
  width: 120px;
}

.hnt-modal__num {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hnt-skin);
}

.hnt-modal__num-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 24px;
}

.hnt-modal__num-value {
  font-family: var(--hnt-num);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 40px;
}

.hnt-modal__title {
  margin-top: 6px;
  font-family: var(--hnt-serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 40px;
}

.hnt-modal__close {
  position: absolute;
  right: 30px;
  top: 20px;
  width: 45px;
  transition: opacity 0.2s;
}

.hnt-modal__close:hover {
  opacity: 0.7;
}

.hnt-modal__body {
  padding: 51px 78px 0 82px;
  font-family: var(--hnt-serif);
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 24px;
}

.hnt-modal__cols {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-top: 14px;
}

.hnt-modal__body--image-only .hnt-modal__cols {
  justify-content: flex-end;
  margin-top: 16px;
}

.hnt-modal__text {
  flex-shrink: 0;
  width: 338px;
}

.hnt-modal__figure {
  flex-shrink: 0;
  width: calc(var(--w) * 1px);
  aspect-ratio: var(--w) / var(--h);
  background: #d9d9d9;
}

.hnt-modal__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================
   タブレット
   ========================================================== */
@media (max-width: 1000px) {
  .hnt-stories__list {
    max-width: 640px;
  }
}

/* ==========================================================
   スマートフォン
   ========================================================== */
@media (max-width: 767px) {
  /* Header */
  .hnt-header__inner {
    height: 64px;
  }

  .hnt-header__logo img {
    width: 28px;
  }

  .hnt-header__logo .hnt-header__logo-text {
    width: 170px;
    margin-left: 6px;
  }

  .hnt-header__toggle {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
  }

  .hnt-header__toggle span {
    position: absolute;
    left: 4px;
    width: 24px;
    height: 1px;
    background: #000;
    transition: transform 0.2s, top 0.2s;
  }

  .hnt-header__toggle span:nth-child(1) { top: 12px; }
  .hnt-header__toggle span:nth-child(2) { top: 20px; }

  .hnt-header__toggle[aria-expanded="true"] span:nth-child(1) { top: 16px; transform: rotate(45deg); }
  .hnt-header__toggle[aria-expanded="true"] span:nth-child(2) { top: 16px; transform: rotate(-45deg); }

  .hnt-header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    background: var(--hnt-yellow);
    border-bottom: 1px solid var(--hnt-green);
  }

  .hnt-header__nav.is-open {
    display: block;
  }

  .hnt-header__nav ul {
    flex-direction: column;
    gap: 0;
  }

  .hnt-header__nav a {
    display: block;
    padding: 16px 20px;
    border-top: 1px solid var(--hnt-green);
  }

  /* Main visual: 縦積みのレイアウトに組み替える */
  .hnt-mv {
    --u: calc(100cqw / 390);
  }

  .hnt-mv__stage {
    width: 100%;
    height: calc(var(--u) * 520);
  }

  .hnt-mv__circle--1 { left: calc(var(--u) * 115); top: calc(var(--u) * 250); width: calc(var(--u) * 240); }
  .hnt-mv__circle--2 { left: calc(var(--u) * -60); top: calc(var(--u) * 20);  width: calc(var(--u) * 140); }
  .hnt-mv__circle--3 { left: calc(var(--u) * 320); top: calc(var(--u) * 430); width: calc(var(--u) * 100); }
  .hnt-mv__circle--4 { left: calc(var(--u) * 300); top: calc(var(--u) * 10);  width: calc(var(--u) * 110); }
  .hnt-mv__circle--5 { left: calc(var(--u) * 40);  top: calc(var(--u) * 400); width: calc(var(--u) * 50); }

  .hnt-mv__vertical {
    left: calc(var(--u) * 18);
    top: calc(var(--u) * 150);
    width: calc(var(--u) * 5.5);
  }

  .hnt-mv__tare {
    left: calc(var(--u) * 125);
    top: calc(var(--u) * 240);
    width: calc(var(--u) * 220);
    height: calc(var(--u) * 262);
  }

  .hnt-mv__title {
    --hnt-title-x: calc(var(--u) * 40);
  }

  .hnt-mv__title-en     { left: calc(var(--u) * 122); top: calc(var(--u) * 52);  width: calc(var(--u) * 146); }
  .hnt-mv__title-otsuma { left: calc(var(--u) * 40);  top: calc(var(--u) * 90);  width: calc(var(--u) * 28); }
  .hnt-mv__title-main   { left: calc(var(--u) * 80);  top: calc(var(--u) * 90);  width: calc(var(--u) * 290); }
  .hnt-mv__title-sub    { left: calc(var(--u) * 75);  top: calc(var(--u) * 180); width: calc(var(--u) * 240); }

  /* About */
  .hnt-about__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 56px 20px 40px;
  }

  .hnt-about__title {
    font-size: 28px;
    line-height: 40px;
  }

  .hnt-about__text {
    font-size: 15px;
    line-height: 28px;
  }

  /* Cards */
  .hnt-stories__list {
    flex-direction: column;
    max-width: 400px;
  }

  .hnt-card {
    width: 100%;
  }

  .hnt-card__link {
    height: auto;
    min-height: 420px;
  }

  .hnt-stories__more {
    margin-top: 56px;
  }

  /* Footer */
  .hnt-footer__inner {
    flex-direction: column;
    gap: 28px;
    padding-top: 48px;
  }

  .hnt-footer__copy {
    padding-top: 40px;
  }

  /* Modal */
  .hnt-modal {
    padding: 20px 12px;
  }

  .hnt-modal__panel {
    padding-bottom: 40px;
  }

  .hnt-modal__head {
    min-height: 0;
    padding: 30px 64px 28px 24px;
  }

  .hnt-modal__icon {
    position: static;
    width: 80px;
    margin-bottom: 12px;
  }

  .hnt-modal__num-value {
    font-size: 32px;
    line-height: 32px;
  }

  .hnt-modal__title {
    font-size: 20px;
    line-height: 32px;
  }

  .hnt-modal__title br {
    display: none;
  }

  .hnt-modal__close {
    right: 14px;
    top: 14px;
    width: 38px;
  }

  .hnt-modal__body {
    padding: 28px 24px 0;
    font-size: 15px;
    line-height: 26px;
  }

  .hnt-modal__cols,
  .hnt-modal__body--image-only .hnt-modal__cols {
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }

  .hnt-modal__text {
    width: auto;
  }

  .hnt-modal__figure {
    max-width: 100%;
  }
}

/* 動きを減らす設定の環境ではアニメーションしない */
@media (prefers-reduced-motion: reduce) {
  html:has(> body.hnt) {
    scroll-behavior: auto;
  }

  .hnt-mv__title,
  .hnt-mv__tare {
    animation: none;
  }

  .hnt-js .hnt-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
