/* ZEZEHIHI 個別指導塾 - 共通スタイル */
/* 元サイトのデザインを忠実に再現 */

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

html {
  font-size: 16px;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Meiryo", sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
}

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

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

/* ===== ヘッダー ===== */
header {
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 1rem;
}

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

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo img.logo-text {
  height: 50px;
  width: auto;
}

.header-logo img.logo-icon {
  height: 50px;
  width: auto;
}

/* ===== ナビゲーション ===== */
nav {
  font-size: 0.85rem;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

nav ul li {
  display: flex;
  align-items: center;
}

nav ul li + li::before {
  content: "｜";
  color: #666;
  padding: 0 0.2rem;
}

nav ul li a {
  color: #333;
  padding: 0.2rem 0.3rem;
  transition: color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #6abf00;
}

/* ===== メインコンテンツ ===== */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== ヒーロー画像 ===== */
.hero {
  margin: 0 -1rem;
  position: relative;
}

.hero img {
  width: 100%;
  display: block;
}

.hero-caption {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.7;
}

/* ===== セクションタイトル ===== */
.section-title {
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  text-align: center;
  padding: 0.5rem 0;
  margin: 1.5rem 0 1rem;
}

.section-title .ja {
  font-size: 0.9rem;
  font-weight: bold;
}

.section-title .en {
  font-size: 0.75rem;
  color: #666;
}

/* ===== Instagram バナー ===== */
.instagram-banner {
  text-align: center;
  margin: 1.5rem 0;
}

.instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 2px solid #e1306c;
  border-radius: 4px;
  padding: 0.6rem 1.5rem;
  color: #e1306c;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.instagram-btn:hover {
  background: #e1306c;
  color: #fff;
}

.instagram-btn svg {
  flex-shrink: 0;
}

/* ===== 教育理念セクション ===== */
.philosophy {
  text-align: center;
  padding: 1.5rem 0;
}

.philosophy h2 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.philosophy h3 {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.philosophy p {
  font-size: 0.875rem;
  line-height: 2;
  color: #333;
}

/* ===== 特長セクション ===== */
.feature-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.feature-block .text {
  flex: 1 1 300px;
}

.feature-block .text h3 {
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-decoration: underline;
}

.feature-block .text p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: #333;
}

.feature-block .image {
  flex: 0 0 auto;
}

/* ===== 代表セクション ===== */
.rep-block {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.rep-block .text {
  flex: 1 1 300px;
}

.rep-block .text h3 {
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.3em;
  margin-bottom: 0.3rem;
}

.rep-block .text .title {
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.rep-block .text .career-title {
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.rep-block .text table {
  font-size: 0.8rem;
  border-collapse: collapse;
}

.rep-block .text table td {
  padding: 0.1rem 0.8rem 0.1rem 0;
  vertical-align: top;
}

/* ===== 沿革 ===== */
.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.history-table td {
  padding: 0.5rem 0.8rem;
  vertical-align: top;
  line-height: 1.7;
}

.history-table td:first-child {
  white-space: nowrap;
  color: #333;
}

.history-table td:nth-child(2) {
  white-space: nowrap;
  color: #333;
}

/* ===== コースページ ===== */
.page-hero {
  margin: 0 -1rem;
  position: relative;
}

.page-hero img {
  width: 100%;
  display: block;
}

.page-hero-caption {
  position: absolute;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
}

.page-hero-caption .ja {
  font-size: 1.3rem;
  font-weight: bold;
  color: #000;
}

.page-hero-caption .en {
  font-size: 0.85rem;
  color: #555;
}

.course-intro {
  text-align: center;
  padding: 1.5rem 0;
}

.course-intro h2 {
  font-size: 1.3rem;
  font-weight: bold;
  color: #6abf00;
  margin-bottom: 0.8rem;
}

.course-intro p {
  font-size: 0.875rem;
  line-height: 2;
  color: #333;
}

.plans-grid {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.plan-card {
  flex: 1 1 200px;
  text-align: center;
}

.plan-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin-bottom: 0.5rem;
}

.plan-card h3 {
  font-size: 0.9rem;
  font-weight: bold;
  color: #6abf00;
  margin-bottom: 0.4rem;
}

.plan-card p {
  font-size: 0.8rem;
  line-height: 1.7;
  color: #333;
  text-align: left;
}

/* ===== 校舎ページ ===== */
.campus-block {
  margin-bottom: 2rem;
}

.campus-info {
  display: flex;
  gap: 1.5rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.campus-info img {
  width: 240px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.campus-table {
  flex: 1 1 200px;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.campus-table td {
  padding: 0.4rem 1rem 0.4rem 0;
  vertical-align: top;
  line-height: 1.8;
}

.campus-table td:first-child {
  font-weight: bold;
  white-space: nowrap;
}

.campus-map {
  margin-top: 0.5rem;
  border: 1px solid #ccc;
  display: block;
  width: 100%;
  height: 200px;
}

/* ===== 合格実績ページ ===== */
.results-section {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 2;
}

.results-section h3 {
  font-weight: bold;
  margin-bottom: 0.4rem;
}

.results-section p {
  padding-left: 1rem;
  color: #333;
}

/* ===== お問い合わせページ ===== */
.contact-btn-wrap {
  text-align: center;
  padding: 2rem 0 1rem;
}

.contact-btn {
  display: inline-block;
  background: #000080;
  color: #fff;
  padding: 0.75rem 2rem;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 2px;
}

.contact-btn:hover {
  background: #0000aa;
}

.contact-form-wrap {
  margin: 0.5rem 0 2rem;
}

.contact-form-wrap iframe {
  border: none;
  display: block;
  width: 100%;
  height: 1800px;
}

/* ===== お問い合わせバナー（フッター上） ===== */
.contact-banner {
  margin: 2rem -1rem 0;
}

.contact-banner img {
  width: 100%;
  display: block;
}

/* ===== フッター ===== */
footer {
  border-top: 1px solid #ccc;
  padding: 1rem;
  text-align: center;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.footer-inner img.logo-text {
  height: 30px;
  width: auto;
}

.footer-inner img.logo-icon {
  height: 30px;
  width: auto;
}

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    gap: 0;
  }

  .hero-caption {
    font-size: 0.85rem;
    left: 1rem;
    padding: 0.4rem 0.7rem;
  }

  .feature-block,
  .rep-block {
    flex-direction: column;
  }

  .feature-block .image,
  .rep-block .image {
    align-self: center;
  }

  .plans-grid {
    flex-direction: column;
  }

  .campus-info {
    flex-direction: column;
  }

  .campus-info img {
    width: 100%;
  }

  .page-hero-caption .ja {
    font-size: 1rem;
  }
}
