/* ============================================
   Kyotei sites — 共通コンポーネント
   ============================================ */

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  min-height: 100dvh;
  background: #ffdde1;
}

/* 背景（iOS WebViewでbackground-attachment:fixedが効かないため固定レイヤー方式）
   PCでも全画面に広げず、ページ幅（スマホ表示幅）に合わせて敷く */
.bg-layer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--page-max-width);
  z-index: -1;
  background: url("/assets/satan/bg.png") center / cover no-repeat;
  background-color: #fceef1;
}

/* PC表示: スマホBG部を角丸カード化して上下マージンで浮かせる
   （固定レイヤーはiOS対策。PCでは絶対配置に切替＝bg.pngが全ページに正しく敷かれる） */
@media (min-width: 431px) {
  body {
    position: relative;
  }

  .bg-layer {
    position: absolute;
    top: 24px;
    bottom: 24px;
    border-radius: 12px;
  }

  .page {
    padding-top: 24px;
  }
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.page {
  max-width: var(--page-max-width);
  margin: 0 auto;
  padding-bottom: 40px;
}

/* ---------- ページヘッダー ---------- */

.page-header {
  padding: 28px 22px 0;
  text-align: center;
}

.page-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 28px;
  line-height: 50px;
  letter-spacing: 4px;
  color: var(--color-title);
  white-space: nowrap;
}

.page-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.page-subtitle .en {
  font-family: var(--font-script);
  font-size: 32px;
  line-height: 50px;
  letter-spacing: 3px;
  color: var(--color-title-en);
}

.page-subtitle .deco-l {
  width: 25px;
  height: 23px;
}

.page-subtitle .deco-r {
  width: 20px;
  height: 20px;
}

.header-divider {
  width: 316px;
  max-width: 90%;
  height: 6.4px;
  margin: 0 auto;
}

/* ---------- 白カード（金縁） ---------- */

.card {
  background: var(--color-card-bg);
  border: 1.5px solid var(--color-card-border);
  border-radius: var(--radius-card);
  filter: drop-shadow(var(--shadow-card));
}

.card-wrap {
  padding: 6px 16px 0;
}

.card-wrap + .card-wrap {
  padding-top: 12px;
}

/* ---------- 2カラム誘導カード ---------- */

.feature-grid {
  display: flex;
  gap: 12px;
  padding: 25.5px 17.5px 12px;
}

.feature {
  position: relative;
  flex: 1;
  min-width: 0;
  padding-top: 18px;
}

.feature-body {
  background: var(--color-panel);
  border-radius: var(--radius-panel);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 8px 16px;
}

.feature-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 93%;
  max-width: 160px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-ribbon :is(img, svg) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.feature-ribbon span {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2px;
  color: #fff;
  white-space: nowrap;
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;
  text-align: left;
  padding-top: 12px;
  min-height: 85px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 10px clamp(6px, 2vw, 18px);
  min-width: 70%;
  max-width: 100%;
  border-radius: var(--radius-btn);
  background: var(--grad-btn);
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 12px;
  color: #fff;
  white-space: nowrap;
}

/* ---------- ヒント枠 ---------- */

.hint {
  margin: 0 17.5px 23.5px;
  border: 1px solid var(--color-hint-border);
  border-radius: var(--radius-hint);
  padding: 14px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hint :is(img, svg) {
  width: 22.75px;
  height: 20.6px;
  flex-shrink: 0;
}

.hint p {
  font-size: 13px;
  font-weight: 500;
  line-height: 21.25px;
}

/* ---------- セクション見出し（リボン＋渦飾り） ---------- */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 30px 1px 20px;
}

.section-heading .swirl {
  width: 55px;
  height: 8.5px;
  flex-shrink: 0;
}

.section-heading .swirl.flip {
  transform: rotate(180deg);
}

.section-heading .swirl.mirror {
  transform: scaleY(-1);
}

.section-ribbon {
  position: relative;
  width: 140px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-ribbon :is(img, svg) {
  position: absolute;
  top: 0;
  left: -7px;
  width: 154px;
  height: 34px;
  max-width: none;
}

.section-ribbon span {
  position: relative;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 2px;
  color: #fff;
  white-space: nowrap;
}

/* ---------- リンクリスト行 ---------- */

.link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 10px 20px;
}

.link-row {
  background: var(--color-panel);
  border-radius: var(--radius-panel);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 16px;
}

.link-row-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.link-row-title {
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--color-heading);
  white-space: nowrap;
}

.link-row-desc {
  font-size: 13px;
  font-weight: 500;
  padding-top: 3px;
}

.link-row .arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transform: rotate(90deg);
}

/* ---------- 締めメッセージ ---------- */

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 30px 30px;
}

.closing-text {
  font-family: var(--font-serif);
  text-align: left;
}

.closing-text .line1 {
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
  letter-spacing: 0.5px;
  color: var(--color-heading-sub);
  white-space: nowrap;
}

.closing-text .line2 {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  white-space: nowrap;
}

.closing-text .brand {
  font-family: var(--font-brand);
  font-size: 28px;
  line-height: 39px;
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.closing-text .suffix {
  font-weight: 900;
  font-size: 16px;
  line-height: 28.6px;
  color: var(--color-heading-sub);
}

.closing-text .suffix .heart {
  color: var(--color-accent-heart);
}

.closing-boat {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.closing-boat .boat {
  width: 70.7px;
  height: 36px;
}

.closing-boat .wave {
  width: 74.8px;
  height: 6px;
}

/* ---------- 浮遊あしらい ---------- */

.deco-float {
  position: absolute;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 12px;
  transform: translateX(-50%);
  pointer-events: none;
}

.deco-float.gold {
  color: var(--color-gold);
}

.deco-float.pink {
  color: var(--color-deco-heart);
  font-size: 11px;
}
