/* ============================================================
   SHOUNJI — style.css
   Design: Washi · Ink · Sky
   Base: 14px / line-height 2.0 / letter-spacing 0.04em
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@400;500;600;700&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Yu Gothic", "游ゴシック", "Yu Gothic Medium", "游ゴシック Medium",
               YuGothic, "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", sans-serif;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink-900);
  font-size: 14px;
  line-height: 2.0;
  letter-spacing: 0.04em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== DESIGN TOKENS ===== */
:root {
  /* New design system */
  --paper:    #fbfaf6;
  --cream:    #f8f6f0;
  --ink-900:  #1f2a33;
  --ink-700:  #3a4853;
  --ink-500:  #5a6a76;
  --ink-300:  #8fa0ac;
  --ink-100:  #c8d5dc;
  --sky-700:  #2d6a8a;
  --sky-500:  #5b8fa7;
  --sky-300:  #8db6cc;
  --sky-100:  #c4dae7;
  --sky-50:   #f4f8fb;
  /* Legacy (other pages) */
  --sky:        #e8f4fd;
  --sky-mid:    #c9e4f5;
  --sky-deep:   #5da8d6;
  --sky-accent: #3b8abf;
  --cloud:      #ffffff;
  --cloud-soft: #f5faff;
  --text:       #1f2a33;
  --text-mid:   #5a6a76;
  --text-light: #8fa0ac;
  --border:     #d0e8f5;
  --white:      #ffffff;
}

/* ===== TYPOGRAPHY UTILITIES ===== */
.mincho,
h1, h2, h3 {
  font-family: "Shippori Mincho", "游明朝", "Yu Mincho", "Hiragino Mincho ProN",
               "ヒラギノ明朝 ProN", serif;
  font-weight: 700;
}
.tate {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251,250,246,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200,213,220,0.35);
  padding: 0 32px;
  transition: background 0.5s, border-color 0.5s;
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: "Shippori Mincho", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: 0.22em;
  transition: color 0.3s;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}
.nav-links a {
  color: var(--ink-500);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--sky-500); }

/* ---- Hamburger ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 8px;
  transition: opacity 0.2s;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink-700);
  transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { width: 24px; }
.nav-toggle span:nth-child(2) { width: 17px; } /* 70% */
.nav-toggle span:nth-child(3) { width: 24px; }

/* ---- Transparent nav (hero) ---- */
header.transparent-nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
header.transparent-nav .nav-logo { color: rgba(255,255,255,0.90); }
header.transparent-nav .nav-links a { color: rgba(255,255,255,0.72); }
header.transparent-nav .nav-links a:hover { color: rgba(255,255,255,1); }
header.transparent-nav .nav-toggle span { background: rgba(255,255,255,0.85); }

/* ---- Mobile nav ---- */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(200,213,220,0.4);
    box-shadow: 0 12px 32px rgba(31,42,51,0.07);
    z-index: 99;
    padding: 4px 0 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a,
  header.transparent-nav .nav-links li a {
    display: block;
    padding: 16px 32px;
    font-size: 0.95rem;
    color: var(--ink-700) !important;
    border-bottom: 1px solid rgba(200,213,220,0.25);
    letter-spacing: 0.1em;
    transition: none;
  }
  .nav-links li a.active,
  header.transparent-nav .nav-links li a.active {
    color: var(--sky-500) !important;
  }
}

/* ===== SECTION COMMON (shared) ===== */
[id] { scroll-margin-top: 72px; }
section { padding: 100px 32px; }
.section-inner { max-width: 720px; margin: 0 auto; }
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--sky-500);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* New section inner */
.si { max-width: 1040px; margin: 0 auto; }
.si--narrow { max-width: 620px; }
.sec-en {
  font-size: 0.68rem;
  letter-spacing: 0.5em;
  color: var(--sky-500);
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 {
  font-size: 1.9rem;
  line-height: 1.8;
  margin-bottom: 32px;
  letter-spacing: 0.08em;
  color: var(--ink-900);
}
p {
  font-size: 14px;
  line-height: 2.0;
  letter-spacing: 0.04em;
  margin-bottom: 1.4em;
  color: var(--ink-700);
}
hr.divider { border: none; border-top: 1px solid var(--ink-100); }

/* ===== PHOTO FRAME (legacy) ===== */
.photo-frame {
  border-radius: 14px;
  overflow: hidden;
  background: var(--sky-50);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder-text {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  line-height: 2;
  letter-spacing: 0.1em;
}

/* ===== BUTTONS (legacy) ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  border: none;
}
.btn-primary { background: var(--sky-500); color: white; }
.btn-primary:hover { background: var(--sky-700); }
.btn-outline {
  background: transparent;
  color: var(--sky-500);
  border: 1px solid var(--sky-500);
}
.btn-outline:hover { background: var(--sky-50); }


/* ============================================================
   HERO
   ============================================================ */
.s-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
/* 和紙色へのグラデーション */
.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.03)  0%,
    rgba(0,0,0,0.10)  40%,
    rgba(251,250,246,0.55) 78%,
    rgba(251,250,246,0.96) 92%,
    var(--paper) 100%
  );
}
/* 右上：縦書き小見出し */
.hero-tate {
  position: absolute;
  top: 38%;
  right: 52px;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.7rem;
  letter-spacing: 0.6em;
  color: #3a4853;
  font-family: "Yu Gothic", sans-serif;
  font-weight: 500;
  opacity: 0.9;
}
/* 左下：メインコピー */
.hero-copy {
  position: absolute;
  bottom: 10vh;
  left: 56px;
  right: 120px;
}
.hero-copy-text {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.6;
  color: white;
  letter-spacing: 0.07em;
  font-weight: 600;
  text-shadow: 0 2px 28px rgba(0,0,0,0.12);
}
.hero-copy-rule {
  width: clamp(36px, 4vw, 56px);
  height: 1px;
  background: rgba(255,255,255,0.50);
  margin: 20px 0 13px;
}
.hero-copy-sub {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.60);
  font-family: "Yu Gothic", sans-serif;
  font-weight: 400;
}
/* 中央下：スクロールインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.42);
  animation: scrollPulse 2.4s ease-in-out infinite;
  transform-origin: top;
}
.hero-scroll-text {
  font-size: 0.58rem;
  letter-spacing: 0.38em;
  color: rgba(255,255,255,0.48);
  font-family: "Yu Gothic", sans-serif;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50%       { opacity: 1;   transform: scaleY(1);   }
}
@media (max-width: 600px) {
  .hero-copy  { bottom: 9vh; left: 28px; right: 56px; }
  .hero-tate  { right: 18px; top: 34%; font-size: 0.62rem; }
}


/* ============================================================
   ABOUT (homepage)
   ============================================================ */
.s-about {
  background: var(--paper);
  padding: 120px 32px 100px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
  margin-top: 40px;
}
.about-quote-block {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 2.1;
  letter-spacing: 0.07em;
  color: var(--ink-900);
  font-weight: 600;
}
.about-body-col p {
  font-size: 14px;
  line-height: 2.3;
  color: var(--ink-700);
  letter-spacing: 0.04em;
  margin-bottom: 1.5em;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .s-about { padding: 80px 24px 72px; }
}


/* ============================================================
   NAV CARDS (4-card)
   ============================================================ */
.s-nav {
  background: var(--paper);
  padding: 0 32px 100px;
}
.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--ink-100);
  gap: 1px;
  border: 1px solid var(--ink-100);
}
.nav-card {
  background: var(--cream);
  padding: 40px 36px 36px;
  display: block;
  transition: background 0.2s;
  text-decoration: none;
}
.nav-card:hover { background: var(--sky-50); }
.nav-card-num {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  color: var(--sky-500);
  margin-bottom: 18px;
  font-family: "Yu Gothic", sans-serif;
  font-weight: 400;
}
.nav-card-title {
  font-family: "Shippori Mincho", serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--ink-900);
  margin-bottom: 6px;
  font-weight: 600;
}
.nav-card-en {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--ink-300);
  font-family: "Yu Gothic", sans-serif;
}
@media (max-width: 560px) {
  .nav-cards-grid { grid-template-columns: 1fr; }
  .nav-card { padding: 28px 24px; }
  .s-nav { padding-left: 20px; padding-right: 20px; }
}


/* ============================================================
   OMIKUJI — Today's Word（雲が晴れる）
   ============================================================ */
.s-word {
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky-50) 100%);
  padding: 100px 32px 120px;
  text-align: center;
}
.word-lead {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  letter-spacing: 0.08em;
  color: var(--ink-700);
  margin-bottom: 52px;
  font-weight: 500;
}
/* ことばカード（シンプル表示） */
.word-reveal-card {
  display: none;
  opacity: 0;
  max-width: 300px;
  margin: 0 auto 36px;
  padding: 44px 32px;
  background: var(--sky-50);
  border-radius: 14px;
  box-shadow: 0 10px 44px rgba(91,143,167,0.11), 0 1px 3px rgba(91,143,167,0.07);
  text-align: center;
  transition: opacity 0.7s ease;
}
.card-label {
  font-size: 0.6rem;
  letter-spacing: 0.52em;
  color: var(--sky-500);
  margin-bottom: 22px;
  font-family: "Yu Gothic", sans-serif;
  font-weight: 400;
  display: block;
}
.card-word {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.05rem, 3vw, 1.2rem);
  line-height: 2.4;
  letter-spacing: 0.06em;
  color: var(--ink-900);
  font-weight: 600;
  white-space: pre-wrap;
  margin-bottom: 24px;
}
.card-rule {
  width: 28px;
  height: 1px;
  background: var(--ink-100);
  margin: 0 auto 14px;
}
.word-author {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-300);
  font-family: "Yu Gothic", sans-serif;
}
.word-author::before,
.word-author::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

/* パーティクル */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  pointer-events: none;
  z-index: 5;
  animation: particleFloat 1.4s ease-out forwards;
}
@keyframes particleFloat {
  0%   { opacity: 0.9; transform: translateY(0)     scale(1);   }
  100% { opacity: 0;   transform: translateY(-72px) scale(0.2); }
}

/* CTAボタン（idle） */
.btn-draw {
  display: inline-block;
  padding: 14px 48px;
  background: var(--ink-900);
  color: rgba(255,255,255,0.88);
  border: none;
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.25s, opacity 0.25s;
}
.btn-draw:hover { background: var(--ink-700); }

/* アクションボタン（open） */
.card-actions {
  display: none;
  justify-content: center;
  max-width: 300px;
  margin: 8px auto 0;
}
.card-actions.visible { display: flex; }
.ca-again {
  background: transparent;
  border: 1px solid #1f2a33;
  color: #1f2a33;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  font-family: inherit;
  cursor: pointer;
  padding: 10px 40px;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.ca-again:hover {
  background: #1f2a33;
  color: white;
}

/* 解説パネル */
.commentary {
  display: none;
  max-width: 300px;
  margin: 12px auto 0;
  padding: 22px 24px;
  background: white;
  border: 1px solid var(--ink-100);
  text-align: left;
}
.commentary.visible { display: block; }
.commentary p {
  font-size: 13px;
  line-height: 2.2;
  color: var(--ink-700);
  letter-spacing: 0.04em;
  margin: 0;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cloud-l, .cloud-r { transition: none; }
  .particle { animation: none; opacity: 0; }
  .hero-scroll-line { animation: none; }
}


/* ============================================================
   SAWACHAN (homepage priest section)
   ============================================================ */
.s-priest {
  background: var(--cream);
  padding: 100px 32px;
}
.priest-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 72px;
  align-items: start;
  margin-top: 40px;
}
.priest-photo {
  aspect-ratio: 3 / 4;
  background: var(--sky-50);
  border: 1px solid var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.priest-photo img { width: 100%; height: 100%; object-fit: cover; }
.priest-photo-placeholder {
  font-size: 0.72rem;
  color: var(--ink-300);
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 2.2;
}
.priest-name {
  font-family: "Shippori Mincho", serif;
  font-size: 1.7rem;
  letter-spacing: 0.1em;
  color: var(--ink-900);
  font-weight: 600;
  margin-bottom: 4px;
}
.priest-kana {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--ink-300);
  margin-bottom: 32px;
}
.priest-bio p {
  font-size: 14px;
  line-height: 2.3;
  color: var(--ink-700);
  letter-spacing: 0.04em;
  margin-bottom: 1.2em;
}
.note-link-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--sky-500);
  border-bottom: 1px solid var(--sky-300);
  padding-bottom: 2px;
  margin-top: 6px;
  transition: color 0.2s;
}
.note-link-new:hover { color: var(--sky-700); }
@media (max-width: 768px) {
  .priest-grid { grid-template-columns: 1fr; gap: 28px; }
  .priest-photo { aspect-ratio: 4/3; }
  .s-priest { padding: 72px 24px; }
}


/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--ink-900);
  color: var(--ink-100);
  text-align: center;
  padding: 64px 32px 48px;
  font-size: 0.78rem;
  line-height: 2.4;
  letter-spacing: 0.08em;
}
.footer-logo {
  font-family: "Shippori Mincho", serif;
  font-size: 1.1rem;
  color: var(--paper);
  letter-spacing: 0.22em;
  margin-bottom: 8px;
  font-weight: 600;
}
.footer-tagline {
  color: var(--ink-300);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-bottom: 32px;
}
.footer-links a {
  color: var(--ink-100);
  font-size: 0.76rem;
  opacity: 0.6;
  transition: opacity 0.2s;
  letter-spacing: 0.08em;
}
.footer-links a:hover { opacity: 1; }
.footer-copy {
  font-size: 0.66rem;
  color: var(--ink-300);
  opacity: 0.45;
}
/* Legacy footer support */
.footer-title {
  font-family: "Shippori Mincho", serif;
  font-size: 1.1rem;
  color: var(--paper);
  letter-spacing: 0.22em;
  margin-bottom: 8px;
}
footer a { color: var(--ink-100); }
footer a:hover { opacity: 1; }


/* ============================================================
   EVENTS (events.html)
   ============================================================ */
#events { background: var(--sky); }
.events-single { max-width: 800px; margin: 0 auto; }
.event-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 28px;
}
.event-table {
  width: 420px;
  margin: 0 auto;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 1.0rem;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(93,168,214,0.1);
}
.event-table th {
  text-align: left;
  padding: 14px 20px;
  color: var(--sky-accent);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  background: var(--sky-mid);
  font-family: "Yu Gothic", YuGothic, sans-serif;
  font-weight: 500;
  white-space: nowrap;
}
.event-table td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}
.event-table tr:last-child td { border-bottom: none; }
.event-row { cursor: pointer; transition: background 0.2s ease; }
.event-row:hover { background: var(--sky); }
.event-name-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.accordion-icon {
  font-size: 1.1rem;
  color: var(--sky-accent);
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.2s;
}
.event-row:hover .accordion-icon { color: var(--sky-deep); }
.event-detail > td {
  padding: 0 !important;
  border-bottom: 1px solid var(--border);
  white-space: normal;
}
.event-detail-inner {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.event-detail-text {
  padding: 16px 20px 20px;
  margin: 0;
  font-size: 0.92rem;
  color: #555;
  line-height: 2.0;
  background: #fafcff;
}
.event-tag {
  display: inline-block;
  background: var(--sky-deep);
  color: white;
  font-size: 0.66rem;
  padding: 2px 8px;
  border-radius: 100px;
  margin-left: 6px;
  vertical-align: middle;
}
.event-annotation {
  font-size: 0.92rem;
  color: #444;
  font-weight: 400;
  margin-top: 24px;
  line-height: 2.2;
  letter-spacing: 0.05em;
  word-break: keep-all;
}
@media (max-width: 480px) {
  .event-table { font-size: 0.92rem; min-width: 320px; }
  .event-table th, .event-table td { padding: 12px 14px; }
}


/* ============================================================
   KAIMYO (kaimyo.html)
   ============================================================ */
#kaimyo { background: var(--white); }
.kaimyo-layout {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}
.kaimyo-content { flex: 0 0 58%; max-width: 58%; }
.kaimyo-content p { max-width: 34em; }
.kaimyo-photo { flex: 1; margin-top: 8px; }
.kaimyo-photo .photo-frame {
  width: 100%;
  height: 140px;
  aspect-ratio: unset;
  background: transparent !important;
  border: 1px dashed #ccc !important;
}
@media (max-width: 680px) {
  .kaimyo-layout { flex-direction: column; gap: 32px; }
  .kaimyo-content { flex: none; max-width: 100%; }
  .kaimyo-photo { width: 100%; }
  .kaimyo-photo .photo-frame { height: 120px; }
}
.kaimyo-price {
  font-size: 1.35rem;
  color: var(--ink-900);
  font-weight: 500;
  margin: 20px 0 6px;
  letter-spacing: 0.05em;
}
.kaimyo-steps { margin: 28px 0; }
.kaimyo-step {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  align-items: flex-start;
}
.step-num {
  min-width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--sky-mid);
  color: var(--sky-accent);
  font-size: 0.85rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-text { padding-top: 4px; font-size: 0.9rem; }
.contact-form {
  margin-top: 32px;
  background: var(--cloud-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.contact-form h3 {
  font-size: 1rem;
  color: var(--sky-accent);
  margin-bottom: 20px;
  font-weight: normal;
  letter-spacing: 0.05em;
}


/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.form-group .required { color: var(--sky-accent); margin-left: 4px; font-size: 0.75rem; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--sky-deep); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-submit {
  display: block;
  width: 100%;
  max-width: 280px;
  padding: 14px 20px;
  background: var(--sky-accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.form-submit:hover { background: #2d78ab; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 12px; }
.legal-note {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-top: 16px;
  line-height: 2;
}
.legal-note a {
  color: #888;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ===== ACCORDION ===== */
.legal-accordion {
  margin-top: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.accordion-item {
  border-top: 1px solid #e0d9d0;
}
.accordion-item:last-child {
  border-bottom: 1px solid #e0d9d0;
}
.accordion-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 14px 0;
  font-size: 0.85rem;
  color: #888;
  cursor: pointer;
  letter-spacing: 0.05em;
  font-family: inherit;
}
.accordion-toggle:hover { color: #444; }
.accordion-content {
  display: none;
  padding: 0 0 20px 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 2.0;
}
.accordion-content.open { display: block; }
.accordion-content p { margin-bottom: 8px; }

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  padding: 40px 20px;
  overflow-y: auto;
}
.modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.modal-box {
  background: white;
  max-width: 640px;
  width: 100%;
  border-radius: 4px;
  position: relative;
  margin: auto;
}
.modal-header {
  position: sticky;
  top: 0;
  background: white;
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px 8px;
  border-radius: 4px 4px 0 0;
  z-index: 1;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 4px 8px;
}
.modal-close:hover { color: #333; }
.modal-content {
  padding: 0 40px 40px;
  max-height: calc(80vh - 56px);
  overflow-y: auto;
}
.modal-content h2 {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  color: var(--text);
}
.modal-content p {
  font-size: 0.9rem;
  line-height: 2.2;
  color: var(--text);
  margin-bottom: 16px;
}
.modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 2;
}
.modal-table th,
.modal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  text-align: left;
}
.modal-table th {
  width: 160px;
  color: var(--text-mid);
  font-weight: 500;
  white-space: nowrap;
  background: var(--cloud-soft);
}
.modal-table td { color: var(--text); }
@media (max-width: 600px) {
  .modal-content { padding: 0 24px 32px; }
  .modal-table th,
  .modal-table td { display: block; width: 100%; }
  .modal-table th { padding-bottom: 2px; border-bottom: none; }
  .modal-table td { padding-top: 2px; }
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}


/* ============================================================
   SODAN (sodan.html)
   ============================================================ */
#sodan { background: var(--cloud-soft); }
.sodan-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-top: 28px;
  box-shadow: 0 2px 12px rgba(93,168,214,0.08);
}
.sodan-methods { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.sodan-btn-form {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--sky);
  color: var(--sky-accent);
  border: 1.5px solid var(--sky-deep);
  transition: background 0.2s;
}
.sodan-btn-form:hover { background: var(--sky-mid); }
.sodan-btn-line {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #06c755;
  color: white;
  transition: background 0.2s;
}
.sodan-btn-line:hover { background: #04a844; }


/* ============================================================
   OPENCHAT (openchat.html)
   ============================================================ */
#openchat {
  background: linear-gradient(160deg, var(--sky-mid) 0%, var(--sky) 100%);
  text-align: center;
}
#openchat .section-inner { text-align: center; }
.chat-icon { font-size: 3rem; margin-bottom: 16px; }
.line-btn {
  display: inline-block;
  background: #06c755;
  color: white;
  padding: 16px 40px;
  border-radius: 8px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-top: 28px;
  transition: background 0.2s;
}
.line-btn:hover { background: #04a844; }


/* ============================================================
   OFUSE (ofuse.html)
   ============================================================ */
#ofuse { background: var(--white); text-align: center; }
#ofuse .section-inner { text-align: center; }
.coin-emoji { font-size: 2.5rem; margin-bottom: 12px; }
.paypay-box {
  display: inline-block;
  margin-top: 32px;
  padding: 32px 44px;
  background: var(--cloud-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.paypay-label { font-size: 0.85rem; color: var(--text-light); letter-spacing: 0.06em; }


/* ============================================================
   ABOUT (about.html)
   ============================================================ */
#about { background: var(--white); }
#about .section-inner { max-width: 960px !important; }
.about-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}
.about-text { flex: 1; }
.about-photo {
  flex: 0 0 380px;
  position: sticky;
  top: 100px;
}
.about-photo img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  display: block;
}
.about-quote {
  border-left: 3px solid var(--sky-deep);
  padding-left: 20px;
  margin: 28px 0;
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 2;
}
@media (max-width: 768px) {
  .about-layout { flex-direction: column-reverse; gap: 32px; }
  .about-photo { flex: none; width: 100%; position: static; }
  .about-photo img { height: 280px; }
}
#sawachan { background: var(--cloud-soft); }
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  margin-top: 32px;
  box-shadow: 0 4px 20px rgba(93,168,214,0.07);
}
.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.profile-photo {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--sky);
  border: 2px solid var(--sky-mid);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
  overflow: hidden;
}
.profile-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-name { font-size: 1.2rem; color: var(--text); margin-bottom: 4px; }
.profile-title { font-size: 0.82rem; color: var(--text-light); letter-spacing: 0.05em; }
.career-timeline {
  font-size: 0.85rem;
  color: var(--text-mid);
  background: var(--sky);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  line-height: 2;
}
.note-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--sky-accent);
  border-bottom: 1px dashed var(--sky-accent);
  padding-bottom: 2px;
}


/* ============================================================
   APPLY PAGE
   ============================================================ */
#apply { background: var(--sky); min-height: calc(100vh - 64px); padding-top: 120px; }
.apply-intro p { color: var(--ink-900); font-size: 0.95rem; line-height: 2.4; }
.apply-form-wrap {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(93,168,214,0.07);
}
.apply-form-wrap h3 {
  font-size: 1rem;
  color: var(--ink-900);
  margin-bottom: 28px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.apply-note {
  font-size: 0.82rem;
  color: var(--ink-900);
  margin-top: 20px;
  line-height: 2;
  padding: 14px 18px;
  background: var(--cloud-soft);
  border-radius: 8px;
  border-left: 3px solid var(--sky-mid);
}
.ceremony-display {
  background: var(--sky);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--ink-900);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.reception-status {
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 32px;
  text-align: center;
  border: 2px solid var(--sky-accent);
  background: white;
}
.reception-status.open { border-color: #22c55e; background: #f0fdf4; }
.reception-status.closed { border-color: var(--border); background: var(--cloud-soft); }
.status-badge { display: inline-block; font-size: 0.88rem; font-weight: 700; letter-spacing: 0.1em; margin-bottom: 12px; }
.status-badge.open { color: #16a34a; }
.status-badge.closed { color: #888; }
.status-ceremony { font-size: 1.5rem; font-weight: 700; color: var(--ink-900); letter-spacing: 0.06em; margin-bottom: 8px; line-height: 1.6; }
.status-deadline { font-size: 0.92rem; color: #555; letter-spacing: 0.06em; }
.status-next { font-size: 0.95rem; color: #555; line-height: 2.2; }
#apply h2, #apply h3, #apply label { color: var(--ink-900); }
@media (max-width: 540px) {
  .apply-form-wrap { padding: 24px 20px; }
  .reception-status { padding: 24px 20px; }
  .status-ceremony { font-size: 1.2rem; }
}


/* ============================================================
   MOBILE COMMON
   ============================================================ */
@media (max-width: 480px) {
  section { padding: 60px 20px; }
  .s-about, .s-word, .s-priest { padding-left: 20px; padding-right: 20px; }
  .s-nav { padding-left: 20px; padding-right: 20px; padding-bottom: 72px; }
  h2 { font-size: 1.5rem; }
  .profile-card { padding: 24px; }
  .contact-form { padding: 24px 20px; }
}
