/* Atelier Sostenuto — トークン・リセット・共通の部品
   文字の大きさ・余白は参考の寸法（PC は 1rem = 画面幅の 0.79%、SP は 2.5vw）にそろえる */

@font-face {
  font-family: "Shippori Mincho";
  src: url("../assets/fonts/shippori-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif JP";
  src: url("../assets/fonts/notoserif-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-300.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  --ink: #222222;        /* 本文（白の上 15.9） */
  --ink-sub: #555555;    /* 補助の文字（白の上 7.5） */
  --line: #707070;       /* 見出しの下の短い線・枠 */
  --rule: #dcdcdc;
  --accent: #7d6340;     /* 差し色の真鍮色（白の上 5.6）。コース名・時間 */
  --dark: #111111;       /* 暗い帯・フッター */
  --white: #ffffff;
  --mist: #eeeeee;       /* 灰色のにじみ */
  --btn: linear-gradient(88deg, #1f1f1f 23%, #4a4a4a 87%, #7a7a7a 103%);

  --f-min: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-en: "Cormorant Garamond", "Noto Serif JP", serif;
}

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

html {
  overflow-x: hidden;
  font-size: clamp(9px, 0.7937vw, 12.7px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (max-width: 1023px) {
  html { font-size: min(2.5vw, 12px); }
}

body {
  margin: 0;
  font-family: var(--f-jp);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 2.4;
  letter-spacing: 0.1em;
  font-feature-settings: "palt";
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
}

h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure { margin: 0; }
h1, h2, h3, h4, h5 { font-weight: 400; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.min { font-family: var(--f-min); }
.en { font-family: var(--f-en); font-weight: 300; letter-spacing: 0.04em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 改行（スマホだけ・PCだけ・幅を限る）。SP は 1023px 以下 */
.sp-br { display: none; }
.tb-br, .md-br { display: none; }
@media (max-width: 1023px) {
  .sp-br { display: inline; }
  .pc-br { display: none; }
  .pc-only { display: none !important; }
}
@media (min-width: 1024px) {
  .sp-only { display: none !important; }
}
@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: 120;
  height: 34px;
  padding: 0 16px;
  background: var(--dark);
  color: var(--white);
  font-size: 13px;
  line-height: 34px;
  letter-spacing: 0.06em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.demo a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* 後ろの灰色のにじみ（窓の光と影のように、画面に留まる） */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ambient span {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.ambient__a {
  top: -18vh;
  right: -12vw;
  width: 44rem;
  height: 34rem;
  background: radial-gradient(closest-side, rgba(40, 40, 40, 0.26), rgba(40, 40, 40, 0));
}
.ambient__b {
  top: 18vh;
  left: -26rem;
  width: 62rem;
  height: 120vh;
  background: radial-gradient(closest-side, rgba(40, 40, 40, 0.15), rgba(40, 40, 40, 0));
}
@media (max-width: 1023px) {
  .ambient__a { width: 34rem; height: 30rem; }
  .ambient__b { top: auto; bottom: -20vh; left: -12rem; width: 32rem; height: 60vh; }
}
main, footer, .demo { position: relative; z-index: 1; }

/* 大きな薄い英字（見出しの後ろ） */
.ghost {
  position: absolute;
  z-index: 0;
  font-family: var(--f-en);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(34, 34, 34, 0.09);
  filter: blur(1.5px);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* 見出し（明朝・字間を広く） */
.ttl {
  position: relative;
  z-index: 1;
  font-family: var(--f-min);
  font-size: 3.2rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2em;
}
@media (max-width: 1023px) {
  .ttl { font-size: 2rem; }
}

/* 黒いボタン（右に区切り線と矢印） */
.btn {
  display: grid;
  grid-template-columns: auto 5rem;
  align-items: center;
  width: 100%;
  min-height: 4.8rem;
  padding: 1rem 0 1rem 2.5rem;
  border-radius: 0.4rem;
  background: var(--btn);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1.6;
  letter-spacing: 0.08em;
  transition: opacity 0.5s;
}
.btn__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-left: 1px solid rgba(255, 255, 255, 0.9);
}
.btn__arrow svg { width: 1.2rem; height: 1.2rem; }
.btn--line { background: none; border: 1px solid var(--white); }
@media (hover: hover) {
  .btn:hover { opacity: 0.7; }
}
@media (max-width: 1023px) {
  .btn { grid-template-columns: auto 4rem; min-height: 5rem; padding: 0 0 0 1.5rem; font-size: 1.2rem; letter-spacing: 0.04em; }
  .btn__arrow { height: calc(100% - 1.2rem); }
  .btn__arrow svg { width: 0.9rem; }
}

/* 下線のリンク（続きを読む） */
.more {
  display: block;
  width: max-content;
  margin-left: auto;
  margin-top: 0.4rem;
  border-bottom: 1px solid var(--ink);
  line-height: 1.8;
  transition: opacity 0.5s;
}
@media (hover: hover) {
  .more:hover { opacity: 0.6; }
}

/* 丸い黒のにじみ（体験の申し込み） */
.blot {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 27rem;
  height: 27rem;
  padding-top: 2rem;
  color: var(--white);
  text-align: center;
  font-family: var(--f-min);
  line-height: 1.5;
  background: url("../assets/img/blot.svg") no-repeat center / contain;
  transition: opacity 0.5s;
}
.blot__sub { font-size: 1.4rem; letter-spacing: 0.12em; }
.blot__main { margin-top: 0.4rem; font-size: 2.2rem; letter-spacing: 0.3em; }
.blot svg { width: 1.6rem; height: 1.6rem; margin-top: 0.8rem; }
@media (hover: hover) {
  .blot:hover { opacity: 0.75; }
}
@media (max-width: 1023px) {
  .blot { width: 13.8rem; height: 13.8rem; padding-top: 0.6rem; }
  .blot__sub { font-size: 0.95rem; letter-spacing: 0.06em; }
  .blot__main { margin-top: 0.1rem; font-size: 1.3rem; letter-spacing: 0.18em; }
  .blot svg { width: 1rem; height: 1rem; margin-top: 0.3rem; }
}

/* 写真（枠いっぱいに切り取る） */
.ph { display: block; overflow: hidden; background: #d9d9d9; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* 現れる動き：上から 2rem 下りながら 1.5 秒で浮かぶ */
.js .js-fade {
  opacity: 0.05;
  transform: translateY(-2rem);
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.js .js-fade.is-visible { opacity: 1; transform: none; }
.js .js-stagger > * {
  opacity: 0;
  transform: translateY(-2rem);
  transition: opacity 1.5s ease, transform 1.5s ease;
}
.js .js-stagger > .is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .js-fade, .js .js-stagger > * { opacity: 1; transform: none; transition: none; }
}
