/* ==========================================================
   新デザインの共通スタイル（site-new）
   全ページで読み込む。色・書体・ヘッダー・フッター・ボタン・
   メイン写真・流れるウェア写真・スクロールの動きをまとめている。
   ページごとの部分は、top-new.css、shop-new.css などに書く。
   ========================================================== */

:root {
  --mint: #f2fef5;      /* メイン写真の背景と同じ色 */
  --paper: #fbfcf8;     /* ページの地色 */
  --leaf: #e7efe6;      /* 帯の背景（薄いセージ） */
  --sage: #7f9a88;      /* 線や小さな装飾 */
  --blue: #4e739f;      /* ロゴのくすんだ青（ボタン・リンク） */
  --blue-deep: #3d5d84;
  --ink: #2b3a38;       /* 文字 */
  --ink-soft: #46534f;  /* 補足の文字（読みやすいよう濃いめ） */
  --line: #d5ddd3;      /* 罫線 */
  --wall: #f3f0ee;      /* メイン写真の壁の色 */

  /* 書体はゴシック体1種類。手頃な価格帯と、45〜59歳中心のお客様に合わせて、親しみやすく読みやすく */
  --font-gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-gothic);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; padding: 0; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

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

.tn-h2 {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-wrap: balance;
  word-break: auto-phrase;
}

.tn-lead { color: var(--ink-soft); max-width: 34em; }

/* ---------- ボタン ---------- */
.tn-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  padding: 1em 2em;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.tn-btn::after {
  content: "";
  width: 0.45em; height: 0.45em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s;
}
.tn-btn:hover { background: var(--ink); color: #fff; }
.tn-btn:hover::after { transform: translateX(4px) rotate(45deg); }
.tn-btn--fill { background: var(--blue); border-color: var(--blue); color: #fff; }
.tn-btn--fill:hover { background: var(--blue-deep); border-color: var(--blue-deep); }

/* ---------- ヘッダー ---------- */
.tn-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 240, 238, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.tn-header.is-scrolled { background: rgba(251, 252, 248, 0.94); border-bottom-color: var(--line); }
.tn-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
  transition: height 0.3s;
}
.tn-header.is-scrolled .tn-header__inner { height: 60px; }

.tn-brand { text-decoration: none; line-height: 1.2; }
.tn-brand__name {
  display: block;
  font-family: var(--font-gothic);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue);
}
.tn-brand__sub { display: block; font-size: 0.72rem; letter-spacing: 0.14em; color: var(--ink-soft); }

.tn-nav ul { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.tn-nav a { text-decoration: none; font-size: 0.92rem; font-weight: 500; position: relative; padding: 6px 0; }
.tn-nav a:not(.tn-btn)::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s;
}
.tn-nav a:not(.tn-btn):hover::after { transform: scaleX(1); }
.tn-nav .tn-btn { padding: 0.6em 1.4em; font-size: 0.85rem; }
/* 「お知らせ」は、パソコンのヘッダーには出さない（スマホのメニューだけに出す） */
.tn-nav__sp { display: none; }

.tn-menu-btn {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: none; padding: 0;
  cursor: pointer;
  position: relative;
}
.tn-menu-btn span {
  position: absolute; left: 10px; right: 10px;
  height: 1px; background: var(--ink);
  transition: transform 0.3s, top 0.3s, opacity 0.3s;
}
.tn-menu-btn span:nth-child(1) { top: 16px; }
.tn-menu-btn span:nth-child(2) { top: 22px; }
.tn-menu-btn span:nth-child(3) { top: 28px; }
.tn-menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.tn-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tn-menu-btn[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- メイン（ファーストビュー） ---------- */
/* 写真は右寄せで全体を見せる。左側は、壁と同じ色でつなぐ */
.tn-hero {
  position: relative;
  display: flex;
  align-items: center;
  height: min(calc(100vh - 76px), 66.67vw, 820px);
  min-height: 420px;
  background: var(--wall);
  overflow: hidden;
}
.tn-hero__slides {
  position: absolute; top: 0; bottom: 0; right: 0;
  aspect-ratio: 3 / 2;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%);
}
.tn-hero__slide { position: absolute; inset: 0; opacity: 0; animation: tn-slide 21s linear infinite; }
.tn-hero__slide:nth-child(1) { animation-delay: -1.26s; }
.tn-hero__slide:nth-child(2) { animation-delay: 5.74s; }
.tn-hero__slide:nth-child(3) { animation-delay: 12.74s; }
.tn-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
/* 3枚が、ゆっくり拡大しながら入れ替わる */
@keyframes tn-slide {
  0% { opacity: 0; transform: scale(1); }
  6% { opacity: 1; }
  33.3% { opacity: 1; }
  39.3% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.05); }
}
.tn-hero__inner { position: relative; z-index: 1; }
.tn-hero__title {
  font-family: var(--font-gothic);
  font-weight: 700;
  font-size: min(2.4rem, 2.9vw);
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.tn-hero__title span { display: block; white-space: nowrap; }
.tn-hero__lead { margin-top: 22px; max-width: 27em; color: var(--ink-soft); font-size: clamp(0.85rem, 0.6rem + 0.6vw, 1rem); }
.tn-hero__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.tn-btn--paper { background: rgba(255, 255, 255, 0.85); }

/* 読み込み時の動き（ここだけ、順番に現れる） */
.tn-rise { opacity: 0; transform: translateY(22px); animation: tn-rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.tn-rise--1 { animation-delay: 0.15s; }
.tn-rise--2 { animation-delay: 0.35s; }
.tn-rise--3 { animation-delay: 0.55s; }
.tn-rise--4 { animation-delay: 0.75s; }
@keyframes tn-rise { to { opacity: 1; transform: none; } }

/* ---------- ハンガーラック（流れるウェア写真） ---------- */
.tn-rack { padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); overflow: hidden; }
.tn-rack__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; }
.tn-rack__note { font-size: 0.9rem; color: var(--ink-soft); }
.tn-rack__rail { position: relative; margin-top: 40px; padding-top: 34px; }
.tn-rack__rail::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 3px; border-radius: 3px;
  background: linear-gradient(#b9c5bb, #93a497);
}
.tn-rack__track {
  display: flex;
  width: max-content;
  gap: clamp(18px, 2.4vw, 34px);
  animation: tn-rack 80s linear infinite;
}
.tn-rack__rail:hover .tn-rack__track { animation-play-state: paused; }
.tn-rack__item {
  position: relative;
  flex: none;
  width: clamp(150px, 17vw, 210px);
  transform-origin: 50% -34px;
  animation: tn-sway 6s ease-in-out infinite alternate;
}
.tn-rack__item:nth-child(3n) { animation-duration: 7.5s; animation-delay: -2s; }
.tn-rack__item:nth-child(3n + 1) { animation-duration: 5.2s; animation-delay: -1s; }
/* ハンガーのフック */
.tn-rack__item::before {
  content: "";
  position: absolute; left: 50%; top: -34px;
  width: 1px; height: 34px;
  background: #93a497;
}
.tn-rack__item::after {
  content: "";
  position: absolute; left: 50%; top: -40px;
  width: 11px; height: 11px; margin-left: -5px;
  border: 1px solid #93a497; border-bottom-color: transparent;
  border-radius: 50%;
}
.tn-rack__item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; }
@keyframes tn-rack { to { transform: translateX(calc(-50% - clamp(9px, 1.2vw, 17px))); } }
@keyframes tn-sway { from { transform: rotate(-0.9deg); } to { transform: rotate(0.9deg); } }

/* ---------- フッター ---------- */
.tn-footer { background: var(--ink); color: #dfe7e2; padding-block: 64px 28px; font-size: 0.9rem; }
.tn-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 0.7fr)); gap: 40px; }
.tn-footer__brand { font-family: var(--font-gothic); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.08em; color: #fff; line-height: 1.2; }
.tn-footer__addr { margin-top: 16px; line-height: 2; color: #b7c4be; }
.tn-footer__addr a { color: #fff; }
.tn-footer__title { font-size: 0.8rem; color: #9fb0a8; margin-bottom: 12px; }
.tn-footer__links li + li { margin-top: 8px; }
.tn-footer__links a { text-decoration: none; }
.tn-footer__links a:hover { text-decoration: underline; }
.tn-footer .tn-btn { margin-top: 22px; border-color: #dfe7e2; color: #fff; }
.tn-footer .tn-btn:hover { background: #fff; color: var(--ink); }
.tn-footer__copy { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.75rem; color: #9fb0a8; }

/* ---------- スクロールで現れる（見出しと写真だけ） ---------- */
.tn-reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
.tn-reveal.is-in { opacity: 1; transform: none; }

/* ---------- メニューの折りたたみ（項目が6つあるので、少し広い画面から） ---------- */
@media (max-width: 1040px) {
  .tn-menu-btn { display: block; }
  .tn-nav__sp { display: list-item; }
  .tn-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
  }
  .tn-nav.is-open { grid-template-rows: 1fr; }
  .tn-nav ul { overflow: hidden; flex-direction: column; align-items: stretch; gap: 0; padding-inline: var(--gutter); }
  .tn-nav li { border-top: 1px solid var(--line); }
  .tn-nav a:not(.tn-btn) { display: block; padding: 16px 0; font-size: 1rem; }
  .tn-nav a:not(.tn-btn)::after { display: none; }
  .tn-nav li:last-child { padding-block: 18px 22px; }
  .tn-nav .tn-btn { justify-content: center; width: 100%; padding: 0.9em 1.4em; font-size: 0.95rem; }
}

/* ---------- スマホ・タブレット ---------- */
@media (max-width: 860px) {

  .tn-footer__grid { grid-template-columns: 1fr 1fr; }
  .tn-footer__grid > :first-child { grid-column: 1 / -1; }
}

/* スマホ：縦長の写真の上に見出し、写真の下に説明とボタン */
@media (max-width: 640px) {
  .tn-hero { display: block; height: auto; min-height: 0; background: var(--paper); }
  .tn-hero__slides { position: relative; width: 100%; aspect-ratio: 2 / 3; -webkit-mask-image: none; mask-image: none; }
  .tn-hero__inner { position: static; }
  .tn-hero__head { z-index: 1; position: absolute; top: 22px; left: var(--gutter); right: var(--gutter); }
  .tn-hero__title { font-size: 4.9vw; }
  .tn-hero__body { padding-block: 26px 12px; }
  .tn-hero__lead { margin-top: 0; font-size: 0.95rem; }
  .tn-hero__actions .tn-btn { width: 100%; justify-content: space-between; }
}

/* ---------- 動きを減らす設定の人には、動きを止める ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tn-rise, .tn-reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .tn-rack__track, .tn-rack__item { animation: none; }
  .tn-hero__slide { animation: none; }
  .tn-hero__slide:nth-child(1) { opacity: 1; }
  .tn-rack__rail { overflow-x: auto; }
}
