/* ===== 全日本習字協会 スタイルシート ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;600;700;900&family=Noto+Sans+JP:wght@300;400;500&display=swap');

:root {
  --sumi: #2B2B2B;
  --washi: #F8F5EF;
  --ai: #1B3A6B;
  --ai-light: #2D5A9E;
  --gold: #C9A84C;
  --gray-light: #E8E4DC;
  --gray-mid: #8B8680;
  --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  background-color: var(--washi);
  color: var(--sumi);
  line-height: 1.8;
}

/* ===== ナビゲーション ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(27, 58, 107, 0.97);
  backdrop-filter: blur(8px);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.navbar-logo img {
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.navbar-logo-text {
  color: var(--white);
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  white-space: nowrap;
}

.navbar-nav a:hover { color: var(--gold); }

.lang-toggle {
  display: flex;
  background: rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.2);
}

.lang-btn {
  padding: 6px 15px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.65);
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: all 0.2s;
  font-family: inherit;
}

.lang-btn.active {
  background: var(--gold);
  color: var(--white);
  font-weight: 600;
}

/* ===== ハンバーガーボタン（スマホ専用） ===== */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.9);
  font-size: 1.7rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.2s;
  margin-left: 8px;
}
.hamburger:hover { color: var(--gold); }

.navbar-nav.open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: rgba(27, 58, 107, 0.98);
  padding: 8px 0;
  gap: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 999;
}

.navbar-nav.open li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 0 28px;
}

.navbar-nav.open li:last-child { border-bottom: none; }

.navbar-nav.open li a {
  display: block;
  padding: 15px 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88) !important;
  white-space: normal;
}

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.82);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  color: #F0D060;
  margin-bottom: 56px;
  text-transform: uppercase;
}

.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 0.55em;
  line-height: 1.3;
  margin-bottom: 56px;
  text-shadow: 0 3px 30px rgba(0,0,0,0.7), 0 1px 0 rgba(0,0,0,0.5);
}

.hero-logo-mark {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 8px 30px rgba(0,0,0,0.4);
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 44px;
  line-height: 2;
}

.hero-cta {
  display: inline-block;
  padding: 15px 44px;
  background: transparent;
  color: #F0D060;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  border: 1px solid #F0D060;
  transition: all 0.3s;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--white);
}

/* ===== セクション共通 ===== */
section { padding: 90px 48px; }

.section-inner { max-width: 1120px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--ai);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--sumi);
  line-height: 1.6;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 22px auto;
}

.section-desc {
  font-size: 0.92rem;
  color: var(--gray-mid);
  letter-spacing: 0.06em;
  line-height: 2.1;
}

/* ===== お知らせ ===== */
.news-section {
  background: var(--ai);
  padding: 48px;
}

.news-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  gap: 44px;
  align-items: flex-start;
}

.news-label {
  flex-shrink: 0;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  padding-top: 6px;
  min-width: 90px;
  border-right: 1px solid rgba(255,255,255,0.2);
  padding-right: 44px;
}

.news-list { flex: 1; list-style: none; }

.news-list li {
  display: flex;
  gap: 24px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  align-items: baseline;
}

.news-list li:last-child { border-bottom: none; }

.news-date {
  flex-shrink: 0;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

/* ===== 準〇段ペア表示 ===== */
.rank-pair-section { background: var(--white); }

.rank-kyu-flow {
  max-width: 700px;
  margin: 0 auto 32px;
  background: #F8F5EF;
  border: 1px solid var(--gray-light);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.rank-kyu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--sumi);
  letter-spacing: 0.04em;
}

.rank-kyu-badge {
  background: var(--ai);
  color: var(--white);
  padding: 4px 10px;
  font-size: 0.72rem;
  border-radius: 2px;
  white-space: nowrap;
}

.rank-kyu-arrow {
  color: var(--gray-mid);
  font-size: 0.9rem;
}

.rank-pair-grid {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--gray-light);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.rank-pair-header {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  background: var(--ai);
  color: var(--white);
  padding: 14px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-align: center;
}

.rank-pair-row {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: center;
  border-bottom: 1px solid var(--gray-light);
  background: var(--white);
  transition: background 0.15s;
  min-height: 52px;
}

.rank-pair-row:hover { background: #F8F5EF; }
.rank-pair-row:last-child { border-bottom: none; }

.rank-pair-row.top-row {
  background: #FBF6EC;
  border-top: 2px solid var(--gold);
}

.rank-pair-cell {
  padding: 12px 20px;
  text-align: center;
}

.rank-pair-jun {
  background: #EEF2F8;
  border-right: 1px solid var(--gray-light);
}

.rank-pair-main {
  background: var(--white);
  border-left: 1px solid var(--gray-light);
}

.rank-pair-row.top-row .rank-pair-main {
  background: #FBF6EC;
}

.rank-pair-label-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--sumi);
  line-height: 1.4;
}

.rank-pair-label-en {
  font-size: 0.72rem;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  margin-top: 3px;
}

.rank-pair-arrow-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.1rem;
}

.rank-pair-note {
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-top: 4px;
  font-weight: 600;
}

/* ===== 段位へ矢印 ===== */
.rank-kyu-to-dan {
  width: 100%;
  text-align: center;
  padding: 10px 0 4px;
  color: var(--gold);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ===== 初段→準二段 斜め矢印 ===== */
.rank-dan-to-jun {
  text-align: right;
  padding: 8px 20px;
  font-size: 0.75rem;
  color: var(--ai-light);
  letter-spacing: 0.06em;
  background: #EEF2F8;
  border-bottom: 1px solid var(--gray-light);
}

/* ===== 協会について ===== */
.about-section { background: #F0EDE6; }

.about-section .section-label {
  background: var(--ai);
  color: var(--white) !important;
  padding: 4px 16px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 18px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-text h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ai);
  margin-bottom: 22px;
  line-height: 1.7;
}

.about-text p {
  font-size: 0.9rem;
  line-height: 2.2;
  color: #5a5a5a;
  margin-bottom: 18px;
}

.about-note {
  font-size: 0.82rem;
  color: var(--gray-mid);
  border-left: 3px solid var(--gold);
  padding-left: 14px;
  line-height: 1.9;
  margin-top: 24px;
}

.about-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--gray-light);
  box-shadow: 8px 8px 32px rgba(0,0,0,0.08);
}

/* ===== 数字セクション ===== */
.stats-section {
  background: var(--sumi);
  padding: 80px 48px;
}

.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item .number {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.05em;
  line-height: 1;
}

.stat-item .unit {
  font-size: 1.3rem;
  color: var(--gold);
  font-weight: 300;
}

.stat-item .label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.12em;
  margin-top: 14px;
  line-height: 1.8;
}

/* ===== お手本写真 ===== */
.samples-section { background: #F0EDE6; }

.samples-intro {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-mid);
  margin-bottom: 44px;
  letter-spacing: 0.06em;
  line-height: 2;
}

.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
}

.sample-item { text-align: center; }

.sample-item img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid var(--gray-light);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.sample-item img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.sample-caption {
  font-size: 0.72rem;
  color: var(--gray-mid);
  margin-top: 10px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

/* ===== インテリア作品セクション（美術館スタイル） ===== */
.artwork-section {
  background: #F0EDE6;
  padding: 72px 48px 80px;
  text-align: center;
}

.artwork-frame {
  display: inline-block;
  padding: 22px;
  background: var(--white);
  box-shadow:
    0 0 0 1px var(--gold),
    0 0 0 12px var(--white),
    0 0 0 13px rgba(201,168,76,0.45),
    0 28px 64px rgba(0,0,0,0.14);
}

.artwork-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  display: block;
}

/* ===== フロー図 ===== */
.flow-section { background: var(--washi); }

.flow-diagram {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 18px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  min-width: 130px;
  max-width: 148px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.step-num {
  width: 34px;
  height: 34px;
  background: var(--ai);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.step-icon {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.step-text {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--sumi);
}

.step-sub {
  font-size: 0.68rem;
  color: var(--gold);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--gold);
  font-size: 1.6rem;
  padding: 0 4px;
  flex-shrink: 0;
}

/* ===== 段級位表 ===== */
.ranks-section { background: var(--white); }

.ranks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
  border: 1px solid var(--gray-light);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ranks-table-header {
  background: var(--ai);
  color: var(--white);
  padding: 18px 28px;
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-align: center;
}

.rank-row {
  display: flex;
  align-items: center;
  padding: 13px 28px;
  border-bottom: 1px solid var(--gray-light);
  gap: 16px;
  background: var(--white);
  transition: background 0.15s;
}

.rank-row:hover { background: #F8F5EF; }
.rank-row:last-child { border-bottom: none; }

.rank-row.separator {
  background: #EEF2F8;
  padding: 10px 28px;
  justify-content: center;
}

.rank-row.separator span {
  font-size: 0.75rem;
  color: var(--ai-light);
  letter-spacing: 0.1em;
}

.rank-badge {
  flex-shrink: 0;
  width: 76px;
  height: 30px;
  background: var(--ai);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
}

.rank-badge.gold { background: var(--gold); }
.rank-badge.highest { background: #8B1A1A; }

.rank-name {
  flex: 1;
  font-family: 'Noto Serif JP', serif;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
}

.rank-note {
  font-size: 0.75rem;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  text-align: right;
}

/* ===== IIDA SUIBI JAPAN ===== */
.iisj-section {
  background: var(--ai);
  text-align: center;
  padding: 80px 48px;
}

.iisj-section .section-label { color: rgba(255,255,255,0.6); }
.iisj-section .section-title { color: var(--white); }
.iisj-section .section-divider { background: var(--gold); }

.iisj-desc {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  margin-bottom: 40px;
  letter-spacing: 0.06em;
  line-height: 2.2;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.iisj-link {
  display: inline-block;
  padding: 16px 52px;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  transition: all 0.3s;
}

.iisj-link:hover {
  background: var(--gold);
  color: var(--white);
}

/* ===== フッター ===== */
footer {
  background: #111111;
  color: rgba(255,255,255,0.55);
  padding: 56px 48px 32px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.footer-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--gold); }

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.9;
}

/* ===== ページヘッダー（下位ページ用）===== */
.page-hero {
  background: var(--ai);
  padding: 72px 48px;
  text-align: center;
}

.page-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  color: var(--white);
  margin-bottom: 14px;
}

.page-hero-sub {
  font-size: 0.88rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.65);
}

/* ===== 教室を開きたい方ページ ===== */
.features-section { background: #F0EDE6; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  padding: 36px 28px;
  border-top: 3px solid var(--ai);
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

.feature-point {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ai);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.feature-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--sumi);
  margin-bottom: 14px;
  line-height: 1.5;
}

.feature-desc {
  font-size: 0.85rem;
  color: #6a6a6a;
  line-height: 2;
}

/* ===== Q&A ===== */
.qa-section { background: var(--white); }

.qa-list { display: flex; flex-direction: column; gap: 28px; }

.qa-item {
  border: 1px solid var(--gray-light);
  overflow: hidden;
}

.qa-question {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 28px;
  background: #F8F5EF;
}

.qa-q-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--ai);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.qa-q-text {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  line-height: 1.8;
  color: var(--sumi);
  font-weight: 500;
  padding-top: 4px;
}

.qa-answer {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 28px;
  background: var(--white);
}

.qa-a-mark {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.qa-a-text {
  font-size: 0.87rem;
  letter-spacing: 0.04em;
  line-height: 2.1;
  color: #5a5a5a;
  padding-top: 4px;
}

/* ===== 師範コース ===== */
.shihan-section { background: #F0EDE6; }

.shihan-grid {
  display: flex;
  flex-direction: column;
  max-width: 700px;
  margin: 0 auto;
  gap: 0;
}

.shihan-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
}

.shihan-card {
  flex: 1;
  padding: 22px 28px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: -1px;
}

.shihan-card.featured {
  border-color: var(--ai);
  background: #EEF2F8;
}

.shihan-card.top {
  border-color: var(--gold);
  background: #FBF6EC;
}

.shihan-badge {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  white-space: nowrap;
}

.shihan-badge.blue { background: var(--ai); color: var(--white); }
.shihan-badge.gold { background: var(--gold); color: var(--white); }

.shihan-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--sumi);
}

.shihan-ability {
  font-size: 0.78rem;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  text-align: right;
  line-height: 1.5;
}

.shihan-ability.blue { color: var(--ai-light); }
.shihan-ability.gold-text { color: #9A7020; font-weight: 500; }

.shihan-arrow-down {
  text-align: center;
  color: var(--gold);
  font-size: 1.4rem;
  padding: 6px 0;
}

.shihan-note {
  max-width: 700px;
  margin: 24px auto 0;
  padding: 16px 20px;
  background: rgba(201, 168, 76, 0.1);
  border-left: 3px solid var(--gold);
  font-size: 0.82rem;
  color: #6a5a30;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

/* ===== お問合せフォーム ===== */
.contact-section { background: var(--washi); }

.contact-form {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--sumi);
  font-weight: 500;
}

.form-label .required {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  background: var(--ai);
  color: var(--white);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--gray-light);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--sumi);
  outline: none;
  transition: border-color 0.2s;
  letter-spacing: 0.04em;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--ai);
}

.form-textarea {
  height: 160px;
  resize: vertical;
  line-height: 1.8;
}

.form-privacy {
  font-size: 0.8rem;
  color: var(--gray-mid);
  letter-spacing: 0.04em;
  line-height: 1.9;
  padding: 16px 20px;
  background: rgba(0,0,0,0.03);
  border: 1px solid var(--gray-light);
}

.form-submit {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--ai);
  color: var(--white);
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover { background: var(--ai-light); }

/* ===== 飯田習字教室リンク ===== */
.iida-section {
  background: #F0EDE6;
  padding: 70px 48px;
  text-align: center;
}

.iida-note {
  font-size: 0.88rem;
  color: var(--gray-mid);
  letter-spacing: 0.06em;
  line-height: 2.1;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.iida-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.iida-link {
  display: inline-block;
  padding: 14px 36px;
  border: 1px solid var(--ai);
  color: var(--ai);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  transition: all 0.3s;
}

.iida-link:hover {
  background: var(--ai);
  color: var(--white);
}

/* ===== en非表示（デフォルト） ===== */
[data-en] { display: none !important; }
body.en [data-ja] { display: none !important; }
body.en [data-en] { display: revert !important; }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .navbar { padding: 0 24px; }
  .navbar-nav { display: none; }
  .hamburger { display: block; }
  section { padding: 64px 24px; }
  .news-section { padding: 40px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-image img { height: 280px; }

  /* 数字3つを縦1列に */
  .stats-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .stat-item .number { font-size: clamp(3rem, 12vw, 4.5rem); }

  /* フロー図を縦に */
  .flow-diagram { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
  .flow-step { min-width: 200px; max-width: 88vw; }

  /* 段級位フローを縦折り */
  .rank-kyu-flow { flex-direction: column; align-items: center; gap: 6px; }
  .rank-kyu-arrow { transform: rotate(90deg); }

  /* お知らせを縦に */
  .news-inner { flex-direction: column; gap: 16px; padding: 0; }
  .news-label { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 12px; padding-right: 0; }

  /* 段位ペア表の余白調整 */
  .rank-pair-cell { padding: 10px 12px; }
  .rank-pair-header { padding: 12px; font-size: 0.72rem; }
  .rank-row { padding: 11px 16px; }

  /* その他 */
  .page-hero { padding: 56px 24px; }
  .iisj-section { padding: 64px 24px; }
  .iida-section { padding: 56px 24px; }
  .features-grid { grid-template-columns: 1fr; }
}

/* スマホ縦持ち（600px以下） */
@media (max-width: 600px) {
  /* ヒーロー：中央配置を維持しつつコンテンツが切れないよう調整 */
  .hero { height: auto; min-height: 60vh; padding: 60px 24px 40px; }
  .hero-logo-mark { width: 80px; height: 80px; margin-bottom: 14px; }
  .hero-tagline { margin-bottom: 28px; }
  .hero-title { font-size: clamp(1.8rem, 8vw, 2.8rem); letter-spacing: 0.1em; margin-bottom: 32px; }
  .hero-subtitle { font-size: 0.73rem; letter-spacing: 0.08em; margin-bottom: 24px; line-height: 1.7; }

  /* CTAボタンの横幅調整 */
  .hero-cta { padding: 13px 24px; letter-spacing: 0.1em; }

  /* ページタイトル「教室を開きたい方へ」を1行に収める */
  .page-hero-title { font-size: 1.4rem; letter-spacing: 0.12em; }

  /* セクションタイトルを1行に収める */
  .section-title { font-size: 1.15rem; letter-spacing: 0.05em; }

  /* 説明文の文字詰まり調整 */
  .section-desc { font-size: 0.82rem; line-height: 1.9; }

  /* 師範カード：横並びから縦並びに変換 */
  .shihan-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 20px;
  }
  .shihan-ability { text-align: left; }
  .shihan-name { font-size: 0.88rem; }

  /* 師範コース 前提条件ブロックの余白調整 */
  .shihan-prereq { padding: 14px 18px !important; }

  /* フッターのロゴ文字を1行に収める */
  .footer-logo { font-size: 0.82rem; letter-spacing: 0.1em; }
}

/* 極小スマホ（480px以下）追加調整 */
@media (max-width: 480px) {
  .hero-title { letter-spacing: 0.3em; }
  .section-title { letter-spacing: 0.08em; font-size: 1.3rem; }
  .navbar-logo-text { font-size: 0.85rem; }
  .rank-pair-label-jp { font-size: 0.82rem; }
  .rank-pair-label-en { font-size: 0.63rem; }
  .rank-badge { width: 64px; font-size: 0.7rem; }
  .shihan-badge { font-size: 0.72rem; padding: 5px 10px; }
}

/* 極小スマホ（380px以下）：ロゴテキストを非表示にして窮屈を解消 */
@media (max-width: 380px) {
  .navbar { padding: 0 14px; }
  .navbar-logo-text { display: none !important; }
}
