/* =========================================================
   コレカラ進路.JP 夏のオーキャン特集 LP
   ========================================================= */

:root {
  --blue: #29ABE2;
  --blue-dark: #1E88C7;
  --blue-pale: #EAF7FF;
  --pink: #FF6FA5;
  --pink-pale: #FFEEF4;
  --yellow: #FFC93C;
  --yellow-pale: #FFF8E1;
  --green: #4CAF7D;
  --green-pale: #E8F7EF;
  --purple: #A177E0;
  --purple-pale: #F3ECFD;
  --orange: #FF8A3D;
  --orange-pale: #FFF1E6;

  --text-main: #333333;
  --text-sub: #767676;
  --bg-page: #F1F4F8;
  --bg-card: #FFFFFF;
  --border-soft: #E5E9EF;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 14px rgba(30, 40, 60, 0.07);

  --frame-width: 430px;   /* SP側フレーム幅の基準 */
  --sidebar-width: 340px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-page);
  color: var(--text-main);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- ページ全体レイアウト ---------- */

.page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* デスクトップのみ表示するサイドナビ */
.sidebar {
  display: none;
}

.frame {
  width: 100%;
  max-width: var(--frame-width);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

@media (min-width: 900px) {
  .sidebar {
    display: block;
    width: var(--sidebar-width);
    position: sticky;
    top: 40px;
    flex-shrink: 0;
  }
}

/* SP：余白なしでMVがみちみちになるようにする。背景は水色に */
@media (max-width: 899px) {
  body {
    background: var(--blue-pale);
  }

  .page {
    padding: 0;
    gap: 0;
  }

  .frame {
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--blue-pale);
  }
}

/* ---------- サイドナビ（PC） ---------- */

.sidebar-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.sidebar-header {
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 16px 20px;
}

.sidebar-list {
  padding: 8px 8px;
}

.sidebar-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  color: var(--blue-dark);
  transition: background 0.15s ease;
}

.sidebar-list li a:hover,
.sidebar-list li a:focus-visible {
  background: var(--blue-pale);
  outline: none;
}

.sidebar-list .icon { font-size: 16px; }

.sidebar-cta {
  display: block;
  margin: 4px 16px 20px;
  padding: 14px 16px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #3EC1FF 0%, var(--blue) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  box-shadow: 0 3px 0 var(--blue-dark);
}
.sidebar-cta:active { transform: translateY(2px); box-shadow: none; }

/* ---------- MV ---------- */

.mv {
  position: relative;
  background: linear-gradient(180deg, #EAF6FF 0%, #FDEFF7 60%, #FFE9CF 100%);
}

.mv > img {
  width: 100%;
  height: auto;
}

.mv-logo-link {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: block;
}

.mv-logo {
  width: 180px;
  height: auto;
  display: block;
}

.mv-placeholder {
  width: 100%;
  aspect-ratio: 750 / 900;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 10px, #e4e9f0 10px, #e4e9f0 20px);
  color: var(--text-sub);
  font-size: 13px;
  text-align: center;
  padding: 24px;
  line-height: 1.6;
}

/* ---------- カテゴリタグ（MV下） ---------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}

.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 12px 6px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--tile-color, var(--blue));
  background: var(--tile-bg, var(--blue-pale));
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  white-space: pre-line;
  text-align: center;
}

.category-tile .icon { font-size: 20px; }

.category-tile.color-blue   { --tile-color: var(--blue);   --tile-bg: var(--blue-pale); }
.category-tile.color-pink   { --tile-color: var(--pink);   --tile-bg: var(--pink-pale); }
.category-tile.color-yellow { --tile-color: var(--yellow); --tile-bg: var(--yellow-pale); }
.category-tile.color-green  { --tile-color: var(--green);  --tile-bg: var(--green-pale); }
.category-tile.color-purple { --tile-color: var(--purple); --tile-bg: var(--purple-pale); }
.category-tile.color-orange { --tile-color: var(--orange); --tile-bg: var(--orange-pale); }

/* ---------- ① 動機づけセクション（画像） ---------- */

.motivation-section {
  padding: 8px 16px 20px;
}

.motivation-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
}

/* ---------- ② FAQセクション ---------- */

.faq-section {
  padding: 8px 16px 28px;
}

.faq-header {
  text-align: center;
  margin-bottom: 16px;
}

.faq-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text-main);
}

.faq-sub {
  font-size: 12px;
  color: var(--text-sub);
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--blue);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-q-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.faq-q-text {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.faq-toggle {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-sub);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  display: flex;
  gap: 10px;
  padding: 12px 14px 14px;
  background: var(--blue-pale);
  border-top: 1px dashed #BFE4F7;
}

.faq-a-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 50%;
  flex-shrink: 0;
}

.faq-a-text {
  flex: 1;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-main);
}

.faq-a-text strong {
  color: var(--blue-dark);
}

/* ---------- エリア絞り込み ---------- */

.area-filter-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 16px;
}

.area-filter-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  flex-shrink: 0;
}

.area-filter-select {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329ABE2' stroke-width='3'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px;
  padding-right: 36px;
}

.area-filter-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-pale);
}

/* ---------- カテゴリセクション見出し ---------- */

.category-section {
  padding: 8px 16px 28px;
  scroll-margin-top: 16px;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 4px 14px;
  color: var(--text-main);
}

.category-heading .icon { font-size: 18px; }

/* ---------- イベントカード ---------- */

.event-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  background: #fff;
}

.event-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
}

/* 日付とサムネイルを縦並びにして絶対被らせないレイアウト */
.event-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.event-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  width: 100%;
}

.event-date .date-main {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.event-date .date-main .dow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

/* 曜日ごとの背景色：平日=グレー／土曜=水色／日曜=ピンク */
.event-date .date-main .dow.dow-weekday  { background: #9AA5B1; }
.event-date .date-main .dow.dow-saturday { background: var(--blue); }
.event-date .date-main .dow.dow-sunday   { background: var(--pink); }

.event-date .time {
  font-size: 12.5px;
  color: var(--blue-dark);
  font-weight: 700;
  white-space: nowrap;
}

.event-thumb {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 1px dashed #c9d2de;
  background: #f7f9fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-sub);
  text-align: center;
  overflow: hidden;
  white-space: pre-line;
}

.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* アスペクト比を壊さず高さを最大活用 */
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  color: var(--text-main);
  margin-bottom: 10px;
}

.event-meta .row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.event-meta .row .icon { flex-shrink: 0; }

.event-meta .row.school {
  font-size: 14.5px;
  font-weight: 700;
}

.event-badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.info-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.info-chip .icon { font-size: 15px; flex-shrink: 0; }
.info-chip .label { flex-shrink: 0; }
.info-chip .value { color: inherit; }

.info-chip.grade {
  background: var(--blue-pale);
  border: 1px solid #BFE4F7;
  color: var(--blue-dark);
}

.highlight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.info-chip.guest {
  display: inline-flex;
  background: #fff;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 700;
  font-size: 12.5px;
}

.event-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
  margin: 0 0 12px;
}

.event-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #FF8FB8 0%, var(--pink) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 3px 0 #D94C82;
}
.event-apply:active { transform: translateY(2px); box-shadow: none; }

.event-apply .free-tag {
  background: #fff;
  color: var(--pink);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ---------- もっと見るボタン ---------- */

.show-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
  padding: 13px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.show-more:active { background: var(--blue-dark); }

.event-list .event-card.is-hidden { display: none; }

/* ---------- ローディング/エラー ---------- */

.state-message {
  padding: 32px 16px;
  text-align: center;
  color: var(--text-sub);
  font-size: 13px;
}

/* ---------- フッター ---------- */

.site-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-sub);
  padding: 28px 16px 36px;
}