@charset "utf-8";

/* ==========================================================================
   国際ファッション文化学科 入学準備サポート
   配色は学科ロゴのピンクとシアンを軸に、現行サイトの明るい雰囲気を残しています。
   ========================================================================== */

:root {
  --pink: #e5007f;
  --pink-dark: #c00069;
  --pink-soft: #ff8ac4;
  --pink-tint: #ffe7f3;
  --pink-wash: #fff4f9;
  /* ピンクの背景に小さな文字を乗せるときに使う、いちばん濃いピンク */
  --pink-deep: #990054;
  --cyan: #00a3c4;
  /* 白い文字を乗せるときに使う、濃いほうの水色 */
  --cyan-deep: #007a94;
  --cyan-tint: #e2f6fb;

  --ink: #2c2136;
  /* 背景がピンクになったぶん、白地のときより少し濃くしています（読みやすさの確保） */
  --ink-70: #514659;
  --ink-45: #8e8697;
  --line: #f0e2ea;

  /*
   * ページ全体の空。学科のプロモーション映像の背景から実際に色を拾い、
   * 白く抜けて見えないよう、下へ行くほど濃くしています。
   * （元の空は #e98c8d → #eaa2b3。文字が乗るので、それより明るく取っています）
   */
  --sky-1: #ffeaf3;
  --sky-2: #fdd7e7;
  --sky-3: #fbc4dc;
  --sky-4: #f7aecd;

  --bg: var(--sky-1);
  --card: #ffffff;

  --shell: 1080px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-sm: 0 2px 10px rgba(96, 24, 66, 0.05);
  --shadow-md: 0 12px 32px -14px rgba(96, 24, 66, 0.22);
  --shadow-lg: 0 26px 60px -24px rgba(96, 24, 66, 0.34);

  --font-jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-en: "Outfit", var(--font-jp);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* display を指定した要素でも hidden 属性を確実に効かせる */
[hidden] {
  display: none !important;
}

/*
 * 空の色はページ全体の高さに広がるよう html に置きます。
 * body に置くと、ブラウザによって画面の高さで色が切り替わってしまうためです。
 */
html {
  min-height: 100svh;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background:
    linear-gradient(
      180deg,
      var(--sky-1) 0%,
      var(--sky-2) 34%,
      var(--sky-3) 68%,
      var(--sky-4) 100%
    )
    no-repeat;
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.35;
  font-weight: 900;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 50%;
  translate: -50% -200%;
  z-index: 100;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: translate 0.2s;
}
.skip-link:focus-visible {
  translate: -50% 0;
}

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --------------------------------------------------------------------------
   共通ボタン
   -------------------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 2.1rem;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.button--primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff;
  box-shadow: 0 14px 26px -14px rgba(229, 0, 127, 0.85);
}
.button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 32px -14px rgba(229, 0, 127, 0.9);
}
.button--primary:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   スクロール時に現れる細いヘッダー
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem clamp(1rem, 4vw, 2.4rem);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  translate: 0 -100%;
  opacity: 0;
  transition:
    translate 0.32s ease,
    opacity 0.32s ease;
}
.topbar.is-visible {
  translate: 0 0;
  opacity: 1;
}
/*
 * ヘッダーのロゴ。
 * 丸いマークと学科名を横に並べます。文字は画像ではないので、
 * 画面の大きさが変わってもくっきり出ます。
 */
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.topbar__brand .brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(96, 24, 66, 0.16);
}
.brand__text {
  display: grid;
  gap: 0.05rem;
  line-height: 1.25;
}
.brand__text b {
  font-family: var(--font-en);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--pink-dark);
}
.brand__text small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink-70);
}

/* 管理画面でロゴ画像を登録した場合は、その1枚を出します */
.topbar__brand > img {
  width: 108px;
  height: auto;
  border-radius: 6px;
}

@media (max-width: 560px) {
  .brand__text b {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
  }
  .brand__text small {
    font-size: 0.62rem;
  }
}
.topbar__nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.6rem);
  font-size: 0.9rem;
  font-weight: 700;
}
.topbar__nav a {
  text-decoration: none;
  color: var(--ink-70);
  transition: color 0.18s;
}
.topbar__nav a:hover {
  color: var(--pink);
}
.topbar__chat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.topbar__chat:hover {
  background: var(--pink-dark);
}

/* --------------------------------------------------------------------------
   空（ページ全体の背景で流れる雲・飛行機・UFO）

   画面に貼り付けた1枚の絵として置き、その上を本文がスクロールしていきます。
   3枚の層に分けてあり、手前ほどスクロールに合わせて大きく動きます（app.js）。
   本文の邪魔をしないよう、奥ほど小さく薄くしています。
   -------------------------------------------------------------------------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  /* 空の中身が本文の配置に影響しないようにする */
  contain: layout paint;
}

/*
 * 雲の位置（top）を画面の割合でそのまま指定できるよう、
 * 層は画面と同じ大きさにしておきます。
 */
.sky__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.sky img {
  position: absolute;
  height: auto;
  /* 雲が流れる動きは、それぞれの要素側で指定します */
  will-change: transform;
}

/* ── 雲 ────────────────────────────────────────────
   画面の左外から右外へ、ゆっくり流れ続けます。
   animation-delay を負の値にして、読み込んだ瞬間から
   すでに空に浮かんでいる状態から始めています。        */
.cloud {
  left: 0;
  animation: cloud-drift linear infinite;
}

@keyframes cloud-drift {
  from {
    transform: translateX(-40vw);
  }
  to {
    transform: translateX(115vw);
  }
}

/* 奥の層：小さく・薄く・ゆっくり */
.cloud--c {
  /* スクロールで少し上へ動くぶん、上端に余裕を持たせています */
  top: 14%;
  width: clamp(120px, 16vw, 240px);
  opacity: 0.5;
  animation-duration: 240s;
  animation-delay: -60s;
}
.cloud--f {
  top: 46%;
  width: clamp(130px, 17vw, 250px);
  opacity: 0.44;
  animation-duration: 275s;
  animation-delay: -190s;
}
.cloud--d {
  top: 72%;
  width: clamp(60px, 8vw, 108px);
  opacity: 0.5;
  animation-duration: 210s;
  animation-delay: -120s;
}

/* 中の層 */
.cloud--b {
  top: 24%;
  width: clamp(170px, 22vw, 330px);
  opacity: 0.62;
  animation-duration: 185s;
  animation-delay: -25s;
}
.cloud--e {
  top: 61%;
  width: clamp(150px, 20vw, 290px);
  opacity: 0.58;
  animation-duration: 205s;
  animation-delay: -150s;
}

/* ── 飛行機 ────────────────────────────────────────
   絵の機首が左を向いているので、右から左へ飛ばします。
   ずっと飛んでいると気が散るので、1周のうち3割ほどだけ姿を見せます。 */
.plane {
  /* 姿を見せている間の濃さ。奥を飛ぶ機体は薄くします */
  --plane-opacity: 0.9;
  top: 33%;
  left: 0;
  width: clamp(88px, 12vw, 170px);
  opacity: 0;
  animation: plane-fly 38s linear infinite;
  animation-delay: -8s;
}

/*
 * 1周のうち半分ほどを飛行にあて、残りは画面の外で待たせます。
 * ずっと飛んでいると気が散り、たまにしか来ないと気づいてもらえないので、
 * このくらいの割合にしています。
 */
@keyframes plane-fly {
  0% {
    transform: translate(112vw, -5vh);
    opacity: 0;
  }
  4% {
    opacity: var(--plane-opacity, 0.9);
  }
  40% {
    opacity: var(--plane-opacity, 0.9);
  }
  46% {
    transform: translate(-30vw, 3vh);
    opacity: 0;
  }
  100% {
    transform: translate(-30vw, 3vh);
    opacity: 0;
  }
}

/* 奥のほうを飛ぶ小さな飛行機。左側にも動くものが見えるようにしています */
.plane--far {
  --plane-opacity: 0.5;
  top: 54%;
  width: clamp(46px, 6vw, 84px);
  animation-duration: 68s;
  animation-delay: -34s;
}

/* ── UFO ───────────────────────────────────────────
   その場でふわふわ浮かせます。 */
.ufo {
  top: 20%;
  right: 6%;
  width: clamp(44px, 6vw, 86px);
  opacity: 0.8;
  animation: ufo-hover 7.5s ease-in-out infinite;
}

/* 左側にも1機。右上と釣り合うよう、低い位置に小さく置きます */
.ufo--left {
  top: 63%;
  right: auto;
  left: 7%;
  width: clamp(28px, 3.6vw, 52px);
  opacity: 0.62;
  animation-duration: 9.5s;
  animation-delay: -4s;
}

@keyframes ufo-hover {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

/* 画面が狭いときは、本文にかぶる雲を減らします */
@media (max-width: 720px) {
  .cloud--f,
  .cloud--d,
  /* 小さな画面では、奥の飛行機はほとんど見えないうえに数が増えて騒がしくなります */
  .plane--far {
    display: none;
  }
  .cloud {
    opacity: 0.42;
  }
  .ufo {
    opacity: 0.6;
  }
  .ufo--left {
    opacity: 0.45;
  }
}

/* --------------------------------------------------------------------------
   ヒーロー
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: min(94svh, 780px);
  padding: clamp(4rem, 12vh, 8rem) 1.25rem clamp(5rem, 14vh, 8rem);
  text-align: center;
  overflow: hidden;
  /*
   * 背景画像が届く前に白く光らないよう、元の空に近い色を先に敷いておく。
   * 下端は色で終わらせず透明にして、ページ全体の空をそのまま続かせます。
   * 色で合わせようとすると、わずかな差がそのまま横線になって見えるためです。
   */
  background: linear-gradient(180deg, #ef9aa4 0%, #f4b3c8 52%, rgba(244, 179, 200, 0) 100%);
}

/*
 * 絵そのものを下に向かって少しずつ消していきます。
 * 別の色をかぶせて隠すのではなく、絵の側を透明にしていくので、
 * 下のページの空がそのまま透けて続き、境目ができません。
 */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0.55) 78%, rgba(0, 0, 0, 0) 97%);
  mask-image: linear-gradient(180deg, #000 55%, rgba(0, 0, 0, 0.55) 78%, rgba(0, 0, 0, 0) 97%);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
/*
 * 文字が乗るあたりだけやわらげ、周囲の雲や街並みは見せる。
 * 以前は白を重ねていたため全体が白っぽく見えていたので、
 * かぶせる色を白ではなく淡いピンクにし、量も減らしました。
 * 読みやすさは、文字そのものに付けた影で補っています。
 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      42% 32% at 50% 47%,
      rgba(255, 240, 247, 0.72) 0%,
      rgba(255, 236, 245, 0.38) 44%,
      rgba(255, 236, 245, 0) 76%
    ),
    linear-gradient(180deg, rgba(255, 232, 242, 0.14) 0%, rgba(255, 226, 239, 0.06) 44%, rgba(255, 234, 243, 0) 100%);
}

.hero__inner {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  max-width: 44rem;
}

/*
 * 学科マーク。
 * 以前は動画のタイトル用カード（グレーと黒の四角）をそのまま置いていましたが、
 * 空から浮くうえ、背景の絵の見どころを隠してしまっていました。
 * ミシンのマークだけを丸く抜き、学科名は下に文字で組んでいます。
 */
.hero__badge {
  width: clamp(84px, 13vw, 128px);
  height: auto;
  margin-bottom: clamp(0.9rem, 2.6vh, 1.5rem);
  border-radius: 50%;
  box-shadow: 0 12px 30px -14px rgba(96, 24, 66, 0.6);
}

.hero__wordmark {
  font-family: var(--font-en);
  font-size: clamp(1.05rem, 3.6vw, 1.65rem);
  font-weight: 800;
  /* 字間を空けたぶん右に余白ができるので、その半分だけ戻して中央にそろえます */
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--pink-dark);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.98);
}

.hero__dept {
  margin-top: 0.35rem;
  font-size: clamp(0.8rem, 2.2vw, 0.96rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #453751;
  text-shadow:
    0 1px 8px rgba(255, 255, 255, 0.98),
    0 0 16px rgba(255, 255, 255, 0.9);
}

.hero__title {
  margin-top: clamp(0.9rem, 3vh, 1.6rem);
  font-size: clamp(2.5rem, 8.4vw, 4.6rem);
  letter-spacing: 0.02em;
  color: #241a2e;
  text-shadow:
    0 2px 10px rgba(255, 255, 255, 0.95),
    0 0 28px rgba(255, 255, 255, 0.85);
}

.hero__lead {
  margin-top: 0.9rem;
  font-size: clamp(0.98rem, 2.4vw, 1.12rem);
  font-weight: 700;
  color: #453751;
  text-shadow:
    0 1px 8px rgba(255, 255, 255, 0.98),
    0 0 18px rgba(255, 255, 255, 0.9);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(1.6rem, 5vh, 2.6rem);
  padding: 0.9rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 30px -16px rgba(229, 0, 127, 0.95);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.hero__cta:hover {
  transform: translateY(-2px);
}
/* スマホでは背景の「KOKUSAI FASHION」の文字にボタンがかかるため、その下まで下げる */
@media (max-width: 720px) {
  .hero__cta {
    margin-top: clamp(2.2rem, 6.8vh, 3.8rem);
  }
}
.hero__cta .icon {
  animation: nudge 1.9s ease-in-out infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

/*
 * ヒーローの空を横切る飛行機。
 * 背景の空は本文より奥にあり、最初に目に入る範囲ではヒーローの絵に
 * 隠れてしまうため、ここにも1機飛ばして必ず目に入るようにしています。
 * 文字より奥、背景の絵より手前に置きます。
 */
.hero__plane {
  position: absolute;
  z-index: -1;
  /*
   * ロゴより上の、空いている帯を通します。
   * 画面の高さが低いとロゴも上がってくるので、
   * 割合ではなく上端からの距離で決めています。
   */
  top: clamp(0.75rem, 3vh, 2.5rem);
  left: 0;
  width: clamp(96px, 13vw, 200px);
  height: auto;
  opacity: 0;
  pointer-events: none;
  animation: plane-fly 27s linear infinite;
  animation-delay: -3s;
}

/* --------------------------------------------------------------------------
   セクション見出し
   -------------------------------------------------------------------------- */
.section-head {
  text-align: center;
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.section-head__label {
  font-family: var(--font-en);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  /* ピンクの空に乗る小さな文字なので、いちばん濃いピンクを使う */
  color: var(--pink-deep);
}
.section-head__title {
  position: relative;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  padding-bottom: 0.7rem;
}
.section-head__title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  translate: -50% 0;
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--pink-soft));
}
.section-head__lead {
  color: var(--ink-70);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(3rem, 8vw, 5rem);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 34rem;
  margin-inline: auto;
}
.search__icon {
  position: absolute;
  left: 1.15rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--ink-45);
  pointer-events: none;
}
.search__input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 3rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.search__input::placeholder {
  color: var(--ink-45);
  font-weight: 500;
}
.search__input:focus {
  outline: none;
  border-color: var(--pink-soft);
  box-shadow: 0 0 0 5px rgba(255, 138, 196, 0.18);
}
.search__input::-webkit-search-cancel-button {
  display: none;
}
.search__clear {
  position: absolute;
  right: 0.6rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--pink-tint);
  color: var(--pink-dark);
}
.search__clear:hover {
  background: var(--pink-soft);
  color: #fff;
}
.search__status {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-70);
}
.search__status b {
  color: var(--pink);
}

.categories {
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  margin-top: clamp(1.8rem, 5vw, 2.8rem);
}

.category {
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.category[hidden] {
  display: none;
}

.category__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem clamp(1.1rem, 3vw, 1.9rem);
  background: linear-gradient(120deg, var(--pink-wash) 0%, var(--cyan-tint) 100%);
  border-bottom: 1px solid var(--line);
}
.category__icon {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  flex: none;
  border-radius: 14px;
  background: #fff;
  color: var(--pink);
  box-shadow: var(--shadow-sm);
}
.category__icon .icon {
  width: 1.5rem;
  height: 1.5rem;
}
.category__titles {
  flex: 1 1 auto;
  min-width: 0;
}
.category__name {
  font-size: clamp(1.08rem, 2.6vw, 1.3rem);
}
.category__desc {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink-70);
}
.category__count {
  flex: none;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-70);
  box-shadow: var(--shadow-sm);
}
.category__count b {
  color: var(--pink);
  font-size: 0.95rem;
}

.faq-list {
  padding: 0.4rem clamp(0.6rem, 2vw, 1.1rem) 0.8rem;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-item[hidden] {
  display: none;
}

.faq-item__heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.faq-item__q {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 1.1rem 0.7rem;
  border: 0;
  background: none;
  text-align: left;
  border-radius: var(--radius-sm);
  transition: background-color 0.18s;
}
.faq-item__q:hover {
  background: var(--pink-wash);
}

.faq-item__badge {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  flex: none;
  margin-top: 0.1rem;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}
.faq-item__badge--a {
  background: var(--cyan-deep);
}

.faq-item__text {
  flex: 1 1 auto;
  font-size: clamp(0.95rem, 2.4vw, 1.02rem);
  font-weight: 700;
  line-height: 1.7;
}

.faq-item__chevron {
  flex: none;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.35rem;
  color: var(--pink);
  transition: rotate 0.28s ease;
}
.faq-item__q[aria-expanded="true"] .faq-item__chevron {
  rotate: 180deg;
}
.faq-item__q[aria-expanded="true"] {
  background: var(--pink-wash);
}

/* 開いている質問は、答えの部分までまとめて色を敷く */
.faq-item:has(.faq-item__q[aria-expanded="true"]) {
  background: var(--pink-wash);
  border-radius: var(--radius-sm);
}

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
}
.faq-item__answer[hidden] {
  display: none;
}
.faq-item__answer.is-open {
  grid-template-rows: 1fr;
}
.faq-item__answer-inner {
  display: flex;
  gap: 0.85rem;
  min-height: 0;
  overflow: hidden;
  padding-inline: 0.7rem;
}
.faq-item__answer.is-open .faq-item__answer-inner {
  padding-bottom: 1.3rem;
}
.faq-item__body {
  flex: 1 1 auto;
  white-space: pre-wrap;
  font-size: 0.96rem;
  line-height: 1.95;
  color: var(--ink-70);
}

.no-result {
  margin-top: 2rem;
  padding: 2.2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  text-align: center;
  font-weight: 700;
  color: var(--ink-70);
}
.no-result[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   AIチャットへの導線
   -------------------------------------------------------------------------- */
.chat-cta {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}
.chat-cta__card {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 2.8rem) 1.5rem;
  border: 2px solid var(--pink-tint);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, #fff 0%, var(--pink-wash) 100%);
  box-shadow: var(--shadow-md);
  text-align: center;
}
.chat-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--pink-dark);
}
.chat-cta__title {
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
}
.chat-cta__notice {
  font-size: 0.83rem;
  color: var(--ink-70);
}
.chat-cta .button {
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   お問い合わせ
   -------------------------------------------------------------------------- */
/*
 * 以前はここだけ別の色を敷いていましたが、
 * 背景全体が空になったので、そのまま空を見せます。
 */
.contact {
  padding: clamp(3.5rem, 9vw, 5.5rem) 0 clamp(4.5rem, 11vw, 7rem);
}
.contact .section-head__lead {
  color: var(--ink-70);
}

.contact__mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  background: #fff;
  color: var(--pink-dark);
  font-family: var(--font-en);
  font-size: clamp(0.9rem, 2.6vw, 1.05rem);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.contact__mail:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
/* ボタン化したので、リンクではなくボタンの見た目の初期値を打ち消す */
.contact__mail {
  border: 0;
  cursor: pointer;
}
/* コピー直後の合図。文字を「コピーしました」に差し替えて緑っぽく光らせる */
.contact__mail.is-copied {
  background: #e8f9ef;
  color: #157347;
}
.contact__mail-hint {
  margin-top: 0.55rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-soft, #8a7a92);
}

.contact__sns-label {
  margin-top: clamp(2.4rem, 6vw, 3.4rem);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.contact__sns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1rem;
}
.sns {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition:
    transform 0.18s,
    filter 0.18s;
}
.sns:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.sns--instagram {
  background: linear-gradient(120deg, #c94b1f 0%, #cf2a67 48%, #7b2fb0 100%);
}
.sns--youtube {
  background: #e02b20;
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.footer {
  padding: clamp(2.6rem, 6vw, 3.6rem) 0;
  background: #241a2e;
  color: #fff;
  text-align: center;
}
.footer .shell {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}
.footer__logo {
  width: 104px;
  border-radius: 8px;
  opacity: 0.95;
}
/* 丸いマーク。白い円なので、濃い色のフッターでもそのまま置けます */
.footer__mark {
  width: 62px;
  height: 62px;
  border-radius: 50%;
}
.footer__name {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  font-weight: 700;
}
/* 組織名は単位の途中で折り返さない（スマホでの泣き別れ防止） */
.footer__name span {
  display: inline-block;
  white-space: nowrap;
}
.footer__note {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.12em;
}

/* --------------------------------------------------------------------------
   AIチャット
   -------------------------------------------------------------------------- */
.chat-fab {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.8rem);
  bottom: clamp(0.9rem, 3vw, 1.8rem);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem 0.5rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.chat-fab:hover {
  transform: translateY(-3px);
}
.chat-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.85);
}
/*
 * 丸いアイコン。元画像は切り抜かず、管理画面で決めた位置を当てはめて見せます。
 */
.avatar-mask {
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: var(--pink-tint);
  flex: none;
}
.avatar-mask > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--crop-x, 50%) var(--crop-y, 50%);
  transform: scale(var(--crop-zoom, 1));
  transform-origin: var(--crop-x, 50%) var(--crop-y, 50%);
}

.chat-fab__avatar {
  width: 3rem;
  height: 3rem;
}
.chat-fab__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pink-dark);
}

.chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(36, 26, 46, 0.5);
  backdrop-filter: blur(2px);
  animation: fade-in 0.2s ease;
}
.chat-backdrop[hidden] {
  display: none;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.chat-panel {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.8rem);
  bottom: clamp(0.9rem, 3vw, 1.8rem);
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 1.8rem));
  max-height: min(660px, calc(100svh - 2.4rem));
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: panel-in 0.26s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.chat-panel[hidden] {
  display: none;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
}

.chat-panel__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(120deg, var(--pink-wash) 0%, var(--cyan-tint) 100%);
  border-bottom: 1px solid var(--line);
}
.chat-panel__avatar {
  width: 2.75rem;
  height: 2.75rem;
  box-shadow: var(--shadow-sm);
}
.chat-panel__titles {
  flex: 1 1 auto;
  min-width: 0;
}
.chat-panel__name {
  font-family: var(--font-en);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.3;
}
.chat-panel__role {
  font-size: 0.72rem;
  color: var(--ink-70);
  line-height: 1.4;
}
.chat-panel__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-70);
}
.chat-panel__close:hover {
  background: #fff;
  color: var(--pink);
}

.chat-notice {
  flex: none;
  margin: 0.75rem 1rem 0;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  background: #fffaea;
  border: 1px solid #f6e6b8;
  font-size: 0.74rem;
  line-height: 1.7;
  color: #7a6320;
  /* 長い注意書きでもチャット欄を圧迫しないよう、高さの上限を決める */
  max-height: 40%;
  overflow-y: auto;
}
.chat-notice__title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.chat-notice__title::-webkit-details-marker {
  display: none;
}
/* 開閉を示す小さな三角 */
.chat-notice__title::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: rotate 0.2s ease;
}
.chat-notice[open] .chat-notice__title::before {
  rotate: 90deg;
}
.chat-notice__title:hover {
  color: #5f4d18;
}
.chat-notice ul {
  margin-top: 0.3rem;
}
.chat-notice li {
  padding-left: 0.9rem;
  position: relative;
}
.chat-notice li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.chat-log {
  flex: 1 1 auto;
  /* 注意書きが開いていても、やりとりが読める高さを確保する */
  min-height: 15rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-msg {
  display: flex;
  gap: 0.55rem;
  max-width: 92%;
  animation: msg-in 0.22s ease;
}
.chat-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-msg__avatar {
  width: 1.9rem;
  height: 1.9rem;
}
.chat-msg__bubble {
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre-wrap;
}
.chat-msg--bot .chat-msg__bubble {
  background: var(--pink-wash);
  border-bottom-left-radius: 5px;
}
.chat-msg--user .chat-msg__bubble {
  background: var(--pink);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.chat-msg--error .chat-msg__bubble {
  background: #fdecec;
  color: #a32020;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.chat-typing {
  display: inline-flex;
  gap: 0.28rem;
  padding: 0.9rem 1rem;
}
.chat-typing span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--pink-soft);
  animation: bounce 1.1s infinite;
}
.chat-typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat-typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-form__input {
  flex: 1 1 auto;
  max-height: 7rem;
  padding: 0.7rem 0.95rem;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
  resize: none;
  transition: border-color 0.18s;
}
.chat-form__input:focus {
  outline: none;
  border-color: var(--pink-soft);
}
.chat-form__send {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  transition:
    background-color 0.18s,
    transform 0.18s;
}
.chat-form__send:hover:not(:disabled) {
  background: var(--pink-dark);
  transform: scale(1.05);
}
.chat-form__send:disabled {
  background: var(--ink-45);
  cursor: not-allowed;
}

.chat-panel__limit {
  padding: 0 1rem 0.85rem;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--ink-45);
  text-align: center;
}

/* --------------------------------------------------------------------------
   404 / エラー
   -------------------------------------------------------------------------- */
.notfound {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  min-height: 78svh;
  padding: 2rem;
  text-align: center;
}
.notfound__code {
  font-family: var(--font-en);
  font-size: 4rem;
  font-weight: 800;
  color: var(--pink-soft);
  line-height: 1;
}
.notfound__title {
  font-size: 1.4rem;
}

/* --------------------------------------------------------------------------
   画面が狭いとき
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  body {
    font-size: 15px;
  }
  .shell {
    width: min(100% - 1.6rem, var(--shell));
  }
  .topbar__nav a {
    display: none;
  }
  .category__head {
    gap: 0.75rem;
  }
  .category__count {
    display: none;
  }
  .faq-item__q {
    padding-inline: 0.3rem;
  }
  .faq-item__answer-inner {
    padding-inline: 0.3rem;
  }
  .chat-fab__label {
    display: none;
  }
  .chat-fab {
    padding: 0.45rem;
  }
  .chat-panel {
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 92svh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  /* 画面が小さいときは、注意書きより先にやりとりの高さを優先する */
  .chat-log {
    min-height: 8rem;
  }
  .chat-notice {
    max-height: 32%;
  }
}

/* 動きを減らす設定にしている利用者への配慮 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  /*
   * 空の雲は動きで位置を決めているため、上の指定でそのまま止めると
   * 画面の外に出たまま固まってしまいます。
   * 動かさない代わりに、絵として成り立つ位置へ置き直します。
   */
  .cloud,
  .plane,
  .ufo,
  .hero__plane {
    animation: none !important;
    transform: none !important;
  }
  .hero__plane {
    left: 58%;
    opacity: 0.9;
  }
  .cloud--c {
    left: 4%;
  }
  .cloud--b {
    left: 9%;
  }
  .cloud--d {
    left: 34%;
  }
  .cloud--e {
    left: 56%;
  }
  .cloud--f {
    left: 66%;
  }
  .plane {
    left: 62%;
    opacity: 0.85;
  }
  .plane--far {
    left: 16%;
    opacity: 0.5;
  }
}
