/* ハングル教室 ソルミ — 練習用1ページ
   方向性：クリーム地に深い緑と柿色。明朝の見出しで「大人の教室」感。 */

:root {
  --cream: #FBF7F0;
  --ink: #2B2A28;
  --muted: #6E6A63;
  --green: #1F5E4E;
  --green-dark: #163F35;
  --persimmon: #E2703A;
  --line: #E4DCCF;
  --white: #FFFFFF;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.9;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 32px;
  background: rgba(251,247,240,.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--green); }
.logo span { font-size: .85rem; font-family: var(--sans); font-weight: 500; color: var(--muted); margin-left: 10px; }
.nav { display: flex; gap: 26px; align-items: center; font-size: .95rem; }
.nav a { position: relative; padding: 4px 0; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--persimmon); transition: width .25s;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--persimmon); color: var(--white);
  padding: 8px 18px !important; border-radius: 999px; font-weight: 700;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; padding: 16px 40px; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--persimmon); color: var(--white); box-shadow: 0 6px 18px rgba(226,112,58,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(226,112,58,.4); }

/* ---------- ヒーロー（写真スライド） ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh; display: flex; align-items: center; justify-content: center;
  color: var(--cream); text-align: center; padding: 100px 24px;
  background: var(--green-dark);
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; animation: slidefade 18s infinite;
  will-change: opacity, transform;
}
.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }
.slide:nth-child(3) { animation-delay: 12s; }
@keyframes slidefade {
  0%   { opacity: 0; transform: scale(1); }
  8%   { opacity: 1; }
  33%  { opacity: 1; }
  41%  { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(22,63,53,.55) 0%, rgba(22,63,53,.35) 50%, rgba(22,63,53,.75) 100%);
}
.hero-hangul {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: var(--serif); font-size: clamp(6rem, 22vw, 20rem); font-weight: 700;
  color: rgba(251,247,240,.06); white-space: nowrap; letter-spacing: .05em;
  pointer-events: none; user-select: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-block; font-size: .85rem; letter-spacing: .15em; margin-bottom: 24px;
  padding: 6px 18px; border: 1px solid rgba(251,247,240,.5); border-radius: 999px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.9rem);
  line-height: 1.7; font-weight: 500; letter-spacing: .12em; margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
}
.h1-line { display: block; }
.h1-line:first-child { font-size: .78em; opacity: .92; }
.hero-lead { font-size: 1.05rem; margin-bottom: 36px; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.hero-note { font-size: .85rem; opacity: .8; margin-top: 18px; }
.hero-scroll {
  position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .3em; opacity: .7; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll span {
  width: 1px; height: 40px; background: var(--cream);
  animation: scrollline 2s infinite;
}
@keyframes scrollline { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* 韓国の伝統色（丹青）のライン：ヘッダー下とフッター上 */
.site-header::after, .site-footer::before {
  content: ""; display: block; position: absolute; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #C8432B 0 25%, #2E4A8C 25% 50%, #E9B949 50% 75%, #1F5E4E 75% 100%);
}
.site-header::after { bottom: -4px; }
.site-footer { position: relative; }
.site-footer::before { top: 0; }

/* ---------- セクション共通 ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--white); }
.section-title {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 700;
  color: var(--green); text-align: center; margin-bottom: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.section-title small {
  font-family: var(--sans); font-size: .75rem; letter-spacing: .25em;
  color: var(--persimmon); font-weight: 700;
}
.section-title::after {
  content: ""; width: 40px; height: 3px; background: var(--persimmon); margin-top: 10px;
}

/* ---------- お知らせ ---------- */
.news-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.news-list li {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 18px 8px; border-bottom: 1px solid var(--line);
}
.news-list time { color: var(--muted); font-size: .9rem; min-width: 95px; }
.tag {
  font-size: .75rem; font-weight: 700; color: var(--green);
  border: 1px solid var(--green); padding: 2px 10px; border-radius: 4px;
}

/* ---------- こだわり ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  background: var(--cream); padding: 36px 28px; border-radius: 16px;
  border-top: 4px solid var(--green);
}
.feature-num { font-family: var(--serif); font-size: 2rem; color: var(--persimmon); line-height: 1; margin-bottom: 16px; }
.feature h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--green); }
.feature p { font-size: .95rem; color: var(--muted); }

/* ---------- 教室の様子 ---------- */
.room-lead { text-align: center; color: var(--muted); margin: -24px auto 40px; max-width: 600px; }
.room-grid {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 420px 280px; gap: 16px;
}
.room-item-wide { grid-column: 1 / -1; }
.room-item { position: relative; overflow: hidden; border-radius: 16px; margin: 0; }
.room-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.room-item:hover img { transform: scale(1.05); }
.room-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px;
  font-size: .85rem; color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(22,63,53,.8));
}

/* ---------- コース ---------- */
.course-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.course {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; padding: 40px 28px 32px; text-align: center;
}
.course-featured { border: 2px solid var(--persimmon); transform: translateY(-8px); }
.course-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--persimmon); color: var(--white); font-size: .8rem; font-weight: 700;
  padding: 4px 16px; border-radius: 999px; white-space: nowrap;
}
.course h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--green); }
.course-for { font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.course-price { margin-bottom: 22px; }
.course-price strong { font-size: 2.2rem; color: var(--ink); font-family: var(--serif); }
.course ul { text-align: left; border-top: 1px solid var(--line); padding-top: 18px; }
.course li { font-size: .95rem; padding: 4px 0 4px 22px; position: relative; }
.course li::before { content: "✓"; position: absolute; left: 0; color: var(--persimmon); font-weight: 700; }
.course-note { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 32px; }

/* ---------- 講師 ---------- */
.teacher {
  display: flex; gap: 40px; align-items: center; max-width: 860px; margin: 0 auto;
  background: var(--cream); border-radius: 20px; padding: 40px;
}
.teacher-photo {
  flex: 0 0 180px; height: 180px; border-radius: 50%;
  background: var(--green); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 4rem;
}
.teacher-body h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--green); }
.teacher-body h3 span { font-size: 1rem; color: var(--muted); font-family: var(--sans); margin-left: 10px; }
.teacher-role { font-size: .85rem; color: var(--persimmon); font-weight: 700; margin: 6px 0 14px; }
.teacher-body p:last-child { font-size: .95rem; }

/* ---------- 体験申込 ---------- */
.section-contact { background: var(--green-dark); color: var(--cream); }
.section-contact .section-title { color: var(--cream); }
.contact-lead { text-align: center; margin-bottom: 40px; opacity: .9; }
.contact-form { max-width: 560px; margin: 0 auto; text-align: center; }
.form-row { text-align: left; margin-bottom: 22px; }
.form-row label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid transparent;
  background: var(--white); color: var(--ink); font-size: 1rem; font-family: inherit;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--persimmon); box-shadow: 0 0 0 3px rgba(226,112,58,.3);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-consent { display: block; font-size: .85rem; text-align: left; margin: 4px 0 22px; }
.form-consent input { margin-right: 6px; }

/* ---------- ありがとうページ ---------- */
.thanks { max-width: 640px; margin: 0 auto; padding: 110px 24px 120px; text-align: center; }
.thanks-hangul { font-family: var(--serif); font-size: 2.4rem; color: var(--persimmon); letter-spacing: .1em; margin-bottom: 10px; }
.thanks h1 { font-family: var(--serif); font-size: 1.7rem; color: var(--green); margin-bottom: 28px; }
.thanks p { margin-bottom: 18px; }
.thanks-note { font-size: .85rem; color: var(--muted); margin-bottom: 36px !important; }

.form-note { font-size: .8rem; opacity: .7; margin-top: 14px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #C9C3B8; padding: 56px 0 24px; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-logo { font-family: var(--serif); font-size: 1.2rem; color: var(--cream); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover { color: var(--persimmon); }
.photo-credit { text-align: center; font-size: .75rem; margin-top: 40px; opacity: .55; }
.copyright { text-align: center; font-size: .8rem; margin-top: 8px; opacity: .6; }

/* ---------- スマホ ---------- */
@media (max-width: 760px) {
  .site-header { padding: 12px 16px; }
  .logo span { display: none; }
  .nav { gap: 14px; font-size: .85rem; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 86vh; padding: 80px 20px 90px; }
  .section { padding: 60px 0; }
  .feature-grid, .course-grid { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: 1fr; grid-template-rows: 220px 220px 220px; }
  .course-featured { transform: none; }
  .teacher { flex-direction: column; text-align: center; padding: 28px 20px; }
  .teacher-photo { flex-basis: 140px; width: 140px; height: 140px; }
  .news-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (max-width: 760px) {
  .hero-lead br { display: none; }
  .hero h1 { font-size: 1.5rem; letter-spacing: -.02em; }
}
