/* ===== 共通スタイル ===== */
:root {
  --primary: #3D7A60;
  --primary-light: #52987A;
  --primary-bg: #EAF4EF;
  --accent: #C4853A;
  --accent-light: #F5E6D3;
  --bg: #FAF8F4;
  --white: #FFFFFF;
  --text: #333333;
  --text-light: #666666;
  --border: #E0D8CC;
}

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

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  /* 日本語の禁則処理：長音符「ー」や句読点が行頭に落ちないように */
  line-break: strict;
  overflow-wrap: break-word;
  word-break: normal;
  /* 最終行に1〜2文字だけ落ちるのを防ぐ（対応ブラウザのみ） */
  text-wrap: pretty;
}

/* 講師名など、途中で改行させたくない塊 */
.nowrap { white-space: nowrap; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; }

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

/* ===== ヘッダー ===== */
header {
  background: var(--primary);
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.logo {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 1.4;
}

.logo span {
  display: block;
  font-size: 0.75rem;
  font-weight: normal;
  opacity: 0.85;
}

nav { display: flex; gap: 4px; flex-wrap: wrap; }

nav a {
  color: var(--white);
  font-size: 0.8rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.2s;
  opacity: 0.9;
}

nav a:hover { background: rgba(255,255,255,0.2); opacity: 1; color: var(--white); }

/* ===== ヒーロー ===== */
.hero {
  background:
    linear-gradient(160deg, rgba(15,10,5,0.52) 0%, rgba(25,15,5,0.68) 100%),
    url('images/hero.png') center/cover no-repeat;
  color: var(--white);
  text-align: center;
  padding: 100px 20px;
}

.hero-sub {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  opacity: 0.85;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: bold;
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero-en {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.9;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
}

.hero-badges > span {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.btn-white:hover { background: var(--primary); color: var(--white); }

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-accent:hover { background: #a86e2e; color: var(--white); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover { background: var(--primary-light); color: var(--white); }

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

section:nth-child(even):not(.cta-section) { background: var(--white); }

.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title-en {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-light);
  margin-bottom: 40px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
}

/* ===== カード ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: var(--white);
  border-radius: 8px;
  padding: 32px 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.card-icon {
  margin-bottom: 12px;
}
.card-icon img { width: 52px; height: 52px; }

.card h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 8px;
}

.card-price {
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--accent);
  margin: 8px 0;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}

.card .btn { width: 100%; text-align: center; display: block; }

/* ===== 場所カード ===== */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.location-card {
  background: var(--primary-bg);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  border: 2px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
}

.location-card:hover {
  border-color: var(--primary);
  background: var(--white);
  transform: translateY(-2px);
}

.location-card .icon { margin-bottom: 8px; }
.location-card .icon img { width: 48px; height: 48px; }
.location-card h3 { font-size: 1rem; font-weight: bold; color: var(--primary); margin-bottom: 4px; }
.location-card p { font-size: 0.8rem; color: var(--text-light); }

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--accent) 0%, #a86e2e 100%);
  color: var(--white);
  text-align: center;
  padding: 64px 20px;
}

.cta-section h2 { font-size: 1.6rem; margin-bottom: 12px; }
.cta-section p { margin-bottom: 28px; opacity: 0.9; }

/* ===== フッター ===== */
footer {
  background: #1a3333;
  color: var(--white);
  text-align: center;
  padding: 32px 20px;
}

footer p { font-size: 0.85rem; opacity: 0.7; }
footer a { color: rgba(255,255,255,0.8); }

/* ===== ページヘッダー ===== */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a4f4f 100%);
  color: var(--white);
  text-align: center;
  padding: 56px 20px;
}

.page-hero h1 { font-size: 2rem; font-weight: bold; margin-bottom: 8px; }
.page-hero p { opacity: 0.85; font-size: 0.95rem; }
.page-hero .breadcrumb { font-size: 0.8rem; opacity: 0.7; margin-bottom: 16px; }
.page-hero .breadcrumb a { color: rgba(255,255,255,0.8); }

/* ===== 講座詳細 ===== */
.course-detail {
  background: var(--primary-bg);
  border-radius: 8px;
  padding: 32px;
  margin: 0 auto 40px;
  max-width: 800px;
}

.detail-row {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.detail-row:last-child { border-bottom: none; }

.detail-label {
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
  min-width: 80px;
  text-align: center;
}

.detail-value { font-size: 0.95rem; }

/* ===== カリキュラム ===== */
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto 40px;
}

.curriculum-card {
  background: var(--white);
  border-radius: 8px;
  padding: 20px;
  border-left: 4px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.curriculum-card h4 {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 4px;
}

.curriculum-card h3 {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
}

.curriculum-card ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-light);
}

.curriculum-card ul li::before {
  content: "・";
  color: var(--accent);
}

/* ===== 日程 ===== */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.schedule-card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--border);
}

.schedule-card h3 {
  font-size: 1rem;
  font-weight: bold;
  color: var(--white);
  background: var(--primary);
  margin: -24px -24px 16px;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
}

.schedule-date {
  font-size: 0.9rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 8px;
}

.schedule-card ol {
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.schedule-card ol li { margin-bottom: 2px; }

.schedule-card .links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.schedule-card .links a {
  font-size: 0.82rem;
  padding: 6px 12px;
  background: var(--primary-bg);
  border-radius: 4px;
  text-align: center;
  color: var(--primary);
  transition: background 0.2s;
}

.schedule-card .links a:hover { background: var(--primary); color: var(--white); }

/* ===== 講師プロフィール ===== */
.instructor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.instructor-card {
  background: var(--white);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--border);
  display: flex;
  gap: 16px;
}

.instructor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-bg);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 2rem;
}

.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-info h3 {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 2px;
}

.instructor-info .yomi {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.instructor-info .title {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1.5;
}

.instructor-info p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== 会場 ===== */
.venue-box {
  background: var(--white);
  border-radius: 8px;
  padding: 32px;
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.venue-box h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 8px;
}

.venue-box p { font-size: 0.9rem; color: var(--text-light); line-height: 1.8; }

/* ===== コンセプト ===== */
.concept-text {
  max-width: 720px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--text);
}

.concept-text p { margin-bottom: 16px; }

/* ===== コンセプトセクション 背景イラスト ===== */
section.concept-section-bg {
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='700' height='400' viewBox='0 0 700 400'%3E %3Cg opacity='0.07' fill='%233D7A60'%3E %3Cellipse cx='80' cy='185' rx='52' ry='16'/%3E %3Cpath d='M28,185 Q28,238 80,250 Q132,238 132,185 Z'/%3E %3Cellipse cx='80' cy='253' rx='23' ry='7'/%3E %3C/g%3E %3Cg opacity='0.06' stroke='%233D7A60' stroke-width='2.5' stroke-linecap='round' fill='none'%3E %3Cpath d='M63,171 Q60,155 64,139 Q68,123 65,107'/%3E %3Cpath d='M80,167 Q77,151 81,135 Q85,119 82,103'/%3E %3Cpath d='M97,171 Q94,155 98,139 Q102,123 99,107'/%3E %3C/g%3E %3Cg opacity='0.055' fill='%233D7A60'%3E %3Cellipse cx='598' cy='70' rx='11' ry='30' transform='rotate(-22 598 70)'/%3E %3Cellipse cx='628' cy='85' rx='9' ry='24' transform='rotate(14 628 85)'/%3E %3Cellipse cx='570' cy='85' rx='10' ry='27' transform='rotate(-50 570 85)'/%3E %3Cellipse cx='613' cy='108' rx='8' ry='20' transform='rotate(35 613 108)'/%3E %3C/g%3E %3Cline x1='598' y1='42' x2='598' y2='100' opacity='0.05' stroke='%233D7A60' stroke-width='2' stroke-linecap='round'/%3E %3Cg opacity='0.06' stroke='%233D7A60' stroke-width='5' stroke-linecap='round'%3E %3Cline x1='25' y1='320' x2='108' y2='390'/%3E %3Cline x1='52' y1='314' x2='135' y2='384'/%3E %3C/g%3E %3Cg opacity='0.05' fill='%233D7A60'%3E %3Ccircle cx='260' cy='55' r='14'/%3E %3Ccircle cx='292' cy='36' r='10'/%3E %3Ccircle cx='230' cy='42' r='8'/%3E %3Ccircle cx='270' cy='22' r='6'/%3E %3C/g%3E %3Cg opacity='0.055' fill='%233D7A60'%3E %3Cellipse cx='615' cy='315' rx='40' ry='13'/%3E %3Cpath d='M575,315 Q575,358 615,367 Q655,358 655,315 Z'/%3E %3Cellipse cx='615' cy='370' rx='18' ry='6'/%3E %3C/g%3E %3Cg opacity='0.045' fill='%233D7A60'%3E %3Ccircle cx='390' cy='345' r='11'/%3E %3Ccircle cx='418' cy='362' r='8'/%3E %3Ccircle cx='366' cy='360' r='7'/%3E %3C/g%3E %3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* ===== お申込み ===== */
.contact-box {
  background: var(--white);
  border-radius: 8px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid var(--border);
  text-align: center;
}

.contact-box h3 {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-box .btn { margin: 8px auto; display: block; max-width: 320px; padding: 16px; }

/* ===== お知らせバナー ===== */
.notice-banner {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 0 auto 24px;
  max-width: 800px;
  font-size: 0.9rem;
}

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
  .hero { padding: 56px 20px; }
  .hero h1 { font-size: 1.7rem; }
  .section-title { font-size: 1.3rem; }
  .page-hero { padding: 40px 20px; }
  .page-hero h1 { font-size: 1.5rem; }
  nav { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr 1fr; }
  .instructor-grid { grid-template-columns: 1fr; }
  .instructor-card { flex-direction: column; align-items: flex-start; }
  .curriculum-grid { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: 1fr; }
  .course-detail { padding: 20px; }
  .detail-row { flex-direction: column; gap: 6px; }
  .detail-label { width: fit-content; }
  section { padding: 40px 16px; }
  .concept-text { font-size: 0.9rem; }
  .contact-box { padding: 24px 16px; }
  .venue-box { padding: 24px 16px; }
  .cta-section h2 { font-size: 1.2rem; }
}

@media (max-width: 400px) {
  .location-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.5rem; }
}

/* ===== ナビ区切り線 ===== */
.divider {
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ===== ウェーブ区切り ===== */
.wave-divider {
  margin-top: -2px;
  background: linear-gradient(135deg, var(--primary) 0%, #1a4f4f 100%);
  line-height: 0;
}

.wave-divider svg { display: block; width: 100%; height: 40px; }

/* ===== Aboutセクション ===== */
.about-section { background: var(--white); padding: 64px 20px; }

.about-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 16px;
  padding: 40px 48px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(42,107,107,0.06);
}

.about-tagline {
  font-size: 1rem;
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 28px !important;
  letter-spacing: 0.05em;
}

.about-box p {
  font-size: 0.97rem;
  line-height: 2;
  margin-bottom: 16px;
  color: var(--text);
}

.about-footer {
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem !important;
  color: var(--text-light) !important;
}

/* ===== 選ばれる理由 ===== */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.reason-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.reason-icon {
  margin-bottom: 16px;
}
.reason-icon img { width: 56px; height: 56px; }

.reason-card h3 {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.reason-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.9;
}

@media (max-width: 768px) {
  .reason-grid { grid-template-columns: 1fr; }
}

/* ===== カレンダー ===== */
.calendar-wrapper {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  max-width: 860px;
  margin: 0 auto;
}

.calendar-wrapper iframe {
  display: block;
  width: 100%;
  border: none;
}
