:root {
  --primary: #002b5c;
  --accent: #d4af37;
  --bg: #f5f7fa;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background: var(--bg);
  line-height: 1.7;
}

.red {
  color: red;
}


/* ===== ヘッダー ===== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: white;
  border-bottom: 4px solid var(--accent);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  margin-left: 20px;
}

.logo img {
  height: 50px;
}

.nav {
  display: flex;
}

.nav a {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 18px;
  font-size: 12px;
  color: white;
  text-decoration: none;
  border-left: 1px solid rgba(255,255,255,.3);
}

.nav a:first-child {
  border-left: none;
}

.nav a:hover {
  background: rgba(255,255,255,.15);
}

.nav a.active {
  background: rgba(255,255,255,.18);
  font-weight: bold;
}


/* ===== レイアウト ===== */

.wrapper {
  max-width: 1100px;
  margin: 20px auto;
  display: flex;
  gap: 20px;
}

.main {
  flex: 1;
}

/* ===== サイドバー ===== */

.side-column {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 15px;

  position: sticky;
  top: 92px;
  align-self: flex-start;
}

.sidebar {
  position: static;
  width: 100%;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  top: 92px;
  height: fit-content;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  border-bottom: 1px solid #eee;
}

.sidebar li:last-child {
  border-bottom: none;
}

.sidebar a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: background .2s;
}

.sidebar a:hover {
  background: #f0f4f8;
}

.sidebar-banner {
  width: 100%;
}

.sidebar-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

/* ===== メインビジュアル ===== */

.hero {
  position: relative;
  max-width: 1100px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,.05);
}

.hero img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50px;
  transform: translateY(-50%);

  background: rgba(0, 43, 92, 0.75);
  padding: 20px 30px;
  border-left: 6px solid #d4af37;
  border-radius: 0 8px 8px 0;
  color: #fff;
}

.hero-text h1 {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.hero-text p {
  margin: 0;
  margin-left: 1em;
  font-size: 16px;
}


/* ===== スマホ・タブレット ===== */

@media (max-width: 900px) {

  /* レイアウト */

  .wrapper {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    gap: 15px;
    margin: 10px 0;
    padding: 0 10px;
  }

  /* ヘッダー */

  .header-inner {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .logo {
    margin: 0 0 10px 0;
    justify-content: center;
  }

  .logo img {
    height: auto;
    max-width: 220px;
  }

  /* メニュー（2段表示） */

  .nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    gap: 1px;
    background: rgba(255,255,255,.2);
  }

  .nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    padding: 8px 4px;

    font-size: 11px;
    text-align: center;
    line-height: 1.3;

    border-left: none;
    background: var(--primary);
  }

  .nav a:hover {
    background: rgba(255,255,255,.15);
  }

  /* ヒーロー */

  .hero {
    width: calc(100% - 20px);
    max-width: 100%;
    margin: 10px;
  }

  .hero img {
    width: 100%;
    height: 140px;
    object-fit: cover;
  }

/* ヒーローテキスト */

.hero-text {
  left: 10px;
  right: 10px;
  padding: 8px 12px;
}

.hero-text h1 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-text p {
  margin-left: 0;
  font-size: 11px;
  line-height: 1.4;
}


  /* サイドバー */

  .side-column {
    width: 100%;
    position: static;
    top: auto;
  }

  .sidebar {
    width: 100%;
    position: static;
    top: auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  /* バナー */

  .sidebar-banner {
    width: 100%;
  }

  .sidebar-banner img {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
  }

  /* メイン */

  .main {
    width: 100%;
  }

  .card {
    padding: 18px;
  }

  /* お知らせ */

  .date {
    font-size: 14px;
  }

  .news-item {
    padding: 14px 0;
  }

  /* 見出し */

  h2 {
    font-size: 18px;
    margin-top: 20px;
  }

  h3 {
    font-size: 16px;
  }

  h4 {
    font-size: 14px;
  }

  /* テーブル */

  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* フッター */

  .footer {
    padding: 15px;
    font-size: 12px;
    line-height: 1.6;
  }
}


/* ===== お知らせ ===== */

.news-item {
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

.date {
  display: inline-block;
  font-weight: 700 !important;
  font-size: 16px;
  color: #000000;
  background: #fff;
  padding: 4px 0;
  border-radius: 4px;
  margin-bottom: 8px;
}

.news-item p {
  margin: 0;
  line-height: 1.8;
}


/* ===== カード ===== */

.card {
  background: #fff;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,.05);
  scroll-margin-top: 80px;
}

.card h3 {
  margin: 0 0 10px;
}

.card h4 {
  margin: 15px 0 8px;
}

.card p {
  margin-bottom: 10px;
}

.card ul,
.card ol {
  padding-left: 1.5em;
  margin: 8px 0;
  line-height: 1.8;
}

.card li {
  margin-bottom: 6px;
}

/* ===== 見出し ===== */

h2 {
  margin-top: 20px;
  padding-left: 10px;
  border-left: 6px solid #003366;
}

/* ===== リンク ===== */

a {
  color: #0066cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== 注意ボックス ===== */

.notice {
  margin: 15px 0;
  padding: 12px;
  background: #ffecec;
  border-left: 4px solid red;
}


/* ===== テーブル ===== */

table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  text-align: center;
  border: 1px solid #ccc;
}

th {
  background: #003366;
  color: #fff;
}

th:first-child,
td:first-child {
  width: 120px;
  font-weight: bold;
}

td:first-child {
  background: #e6eef6;
  color: #002b5c;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

tr:hover {
  background: #f1f1f1;
}

.price-base {
  color: red;
  font-weight: bold;
}

/* ===== FAQ ===== */

.faq-item {
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

.faq-item summary {
  position: relative;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: bold;
  color: #002b5c;
  background: #f7f9fc;
  border-left: 4px solid #002b5c;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 20px;
  font-weight: bold;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 15px 20px;
}

.faq-answer ul {
  padding-left: 20px;
}

/* ===== フッター ===== */

.footer {
  width: 100%;
  margin-top: 40px;
  padding: 20px;
  text-align: center;
  background: var(--primary);
  color: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

