@charset "UTF-8";

/* :rootでCSS変数を定義する */
:root {
  --color-primary: #3b6493;
  --color-secondary: #ed7b2f;
  --color-accent: #ffd700;
  --color-background: #ffffd5;
  --color-surface: #fff;
  --color-text: #333;
  --color-text-light: #555;
  --color-border: #ccc;
  --color-bg-light: #e6f7f5;

  --font-primary: "Montserrat", "Zen Kaku Gothic New", sans-serif;
  --font-secondary: "Noto Sans JP", sans-serif;
}

html {
  scroll-behavior: smooth;
}


/* --- 共通ヘッダー・フッター --- */
.site-header {
  margin: 0 auto;
  background: var(--color-surface);
  padding: 20px 10px 0px;
  max-width: 390px;
}


.site-header a img {
  display: block;
  margin: 0 auto;
  width: 90px;
}

.sitefooter {
  background-size: contain;
  padding: 50px 0 0;
}

.sitefooter__anchor--img {
  width: 90px;
  vertical-align: bottom;
  margin: 10px auto;
}

.sitefooter__text {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  font-size: 16px;
  line-height: 35px;
  text-align: center;
  color: #000;
}

.sitefooter__sns {
  list-style: none;
  display: flex;
  width: 150px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 10px auto 50px;
}

.sitefooter__copyright {
  font-family: var(--font-secondary);
  font-size: 10px;
  text-align: center;
  padding: 0 0 100px;
}

body {
  position: relative;
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.6;
  margin: 0 auto;
  padding: 12px;
  max-width: 390px;
}

main {
  margin: 0 auto;
  background: var(--color-surface);
  padding: 15px 15px 60px;
  max-width: 390px;
}

section {
  margin-bottom: 60px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
}

p {
  margin: 0 0 1em;
  text-align: left;
}

strong {
  font-weight: bold;
}


/* --- 見出しスタイル --- */
h1, h2, h3, h4 {
  font-weight: bold;
  color: var(--color-primary);
}

h1.hero-title {
  position: relative;
  text-align: center;
  width: 100%;
  margin: 0;
}

h1.hero-title img {
  width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.title-text {
  position: absolute;
  top: 58px;
  left: 22%;
  transform: translateX(-50%);
  width: 100%;
  text-align: center;
  padding: 0 10px;
  box-sizing: border-box;
  color: #000;
}

.main-title {
  font-size: 14px;
  font-weight: bold;
  display: block;
  margin-bottom: 2px;
}

.sub-title {
  font-size: 10px;
  font-weight: bold;
  display: block;  /* transformを効かせるため */
}

h2 {
  font-size: 20px;
  border-left: 5px solid var(--color-primary);
  padding-left: 10px;
  margin-bottom: 20px;
}

h2 .h2-sub {
  display: block;
  font-size: 14px;
  font-weight: normal;
}

h3 {
  color: var(--color-surface);
  background-color: var(--color-secondary);
  width: 100px;
  text-align: center;
  border-radius: 20px;
  padding: 5px;
}

h4 {
  margin: 0;
  font-weight: bold;
}


/* --- 目次 --- */
nav.toc {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 10px 10px 20px;
  border: 1px solid var(--color-border);
  margin-bottom: 50px;
}

nav.toc h2 {
  margin: 15px 0 0;
}

nav.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav.toc a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--color-primary);
  border-bottom: 1px dotted var(--color-border);
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
  line-height: 1.4;
}

nav.toc li:last-child a {
  border-bottom: none;
}

nav.toc a:hover {
  background-color: #f0f0f0;
  color: var(--color-secondary);
}

nav.toc .toc-sub {
  font-size: 12px;
  font-weight: normal;
}
nav.toc .toc-main {
  font-size: 14px;
  font-weight: bold;
}


/* --- 年齢別リスト --- */
.age-group {
    width: 300px;
    display: flex;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.age-group h3 {
  width: 130px;
}

.list_0 h3 {
  margin-bottom: 20px;
}

.checklist li {
  list-style: none;
  margin-bottom: 10px;
  padding-left: 1.2em;
  position: relative;
}

.checklist li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.3em;
  color: var(--color-secondary);
  font-size: 0.8em;
}

/* --- 共通アコーディオン --- */
.accordion {
  margin-bottom: 5px;
}

.accordion button {
  position: relative;
  width: 100%;
  background: var(--color-surface);
 color: #3b6493;
  padding: 10px 30px 10px 10px;
  text-align: left;
  border: none;
  border-bottom: 1px dotted var(--color-border);
  cursor: pointer;
  font-size: 16px;
  font-weight: normal;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease;
}

.accordion.active button,
.accordion button:hover {
  background-color: #f7f7f7;
}

.accordion button::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-accent);
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.accordion.active button::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: #f7f7f7;
  padding: 0 10px;
}

.accordion-content > *:first-child {
  padding-top: 10px;
}

/* --- アコーディオン（チェックリスト用） --- */
#checklist .accordion button {
  padding-left: 3px;
}

#checklist .accordion button .q-icon {
  width: 24px;
  height: 24px;
  margin-right: 10px;
}

/* --- アコーディオン（Q&A用） --- */
#qa .accordion button {
  padding-left: 40px;
}

#qa .accordion button::before {
  content: "Q";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
  color: var(--color-secondary);
  font-size: 18px;
}

#qa .accordion-content p span {
  font-weight: bold;
}

/* --- タイムスケジュール --- */
.wrapper {
  width: 100%;
  box-sizing: border-box;
}

.time_schedule {
  position: relative;
  background-color: var(--color-bg-light);
  color: var(--color-primary);
  padding: 20px;
  border-radius: 8px;
}

/* 縦棒 */
.time_schedule::before {
    content: "";
    position: absolute;
    top: 0;
    left: 108px;
    width: 2px;
    height: 100%;
    background: var(--color-primary);
    z-index: 1;
}

.time_schedule dl {
  position: relative;
  padding: 15px 0 15px 110px;
  min-height: 3em;
}

.time_schedule dt {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 75px;
    text-align: left;
    font-weight: bold;
}

.time_schedule dd {
  margin: 0;
}

.time_schedule dd p {
  font-size: 12px;
  margin-top: -0.3em;
}

/* 丸を疑似要素で自動生成 */
.time_schedule dl::before {
  content: "";
  position: absolute;
  background: var(--color-primary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 50%;
  left: 90px;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 3px solid var(--color-bg-light);
  box-sizing: border-box;
}


/* ---- 服えらびポイント ---- */
#point h2 {
  font-size: 22px;
  line-height: 1.5;
  margin-bottom: 24px;
}

#point .voice-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

#point .voice-slider::-webkit-scrollbar {
  height: 6px;
}

#point .voice-slider::-webkit-scrollbar-thumb {
  background: #cfdad7;
  border-radius: 6px;
}

#point .voice-card {
  flex: 0 0 86vw;
  max-width: 300px;
  background-color: var(--color-bg-light);
  border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  padding: 16px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

#point .voice-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 15px;
}

#point .voice-head img {
  object-fit: cover;
  margin: 0;
}

#point .voice-title {
  /* h3の共通スタイルを上書きして無効化 */
  background-color: transparent;
  width: auto;
  padding: 0;
  border-radius: 0;
  text-align: left;

  margin: 0;
  font-size: 18px;
  color: var(--color-primary);
}

#point .voice-tag {
  display: inline-block;
  text-align: center;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--color-primary);
  width: 100px;
}

#point .voice-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 10px;
  flex-grow: 1;
}

.recommended_items {
  padding-bottom: 10px;
  margin: auto;
}

.recommended_items span {
  font-weight: bold;
  display: block;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.recommended_items .items-wrapper {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.recommended_items a {
  flex: 0 0 auto;
  display: block;
  width: 120px;
  text-align: center;
}

.recommended_items .items-wrapper a:only-child {
  margin-left: auto;
  margin-right: auto;
}

.recommended_items p {
  font-size: 12px;
  line-height: 1.2;
  margin-top: 4px;
}


/* --- おすすめアイテム --- */
#recommend .scroll-x {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
  margin: 0 auto;
  scroll-snap-type: x mandatory;
}

#recommend .scroll-x .item {
  flex: 0 0 auto;
  width: 120px;
  text-align: center;
  font-size: 12px;
  scroll-snap-align: start;
}

#recommend .scroll-x .item a {
  text-decoration: none;
  color: inherit;
}

#recommend .scroll-x .item-img {
  width: 130px;
  object-fit: cover;
  margin: 0 auto 8px;
}

.others {
  margin: auto;
  text-align: center;
}

.others span {
  font-weight: bold;
}

.others p {
  text-align: center;
}

.more {
  border-radius: 20px;
  background-color: var(--color-secondary);
  width: 200px;
  padding: 5px;
  margin: auto;
}

.more a {
  color: var(--color-surface);
}

/* ドットナビデザイン */
.slider-dots {
  text-align: center;
  margin-top: 12px;
}
#recommend .slider-dots {
  margin-bottom: 30px;
}
.slider-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  background-color: #ccc;
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s;
}
.slider-dots .active {
  background-color: var(--color-secondary);
  transform: scale(1.3);
}



/*-------------------
  メディアクエリ（タブレットサイズ）
-------------------*/
@media (min-width: 720px) {

.title-text {
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  text-align: left;
  padding: 0 10px;
  box-sizing: border-box;
}

.main-title {
  font-size: 28px;
  font-weight: bold;
}

.sub-title {
  font-size: 18px;
  font-weight: bold;
}

  .site-header a img {
  display: block;
  margin: 0 auto;
  width: 110px;
}

  body, main {
    max-width: 720px;
    padding: 20px;
  }

  .site-header {
    max-width: 720px;
  }

  h1.hero-title .title-text {
    left: 50%;
    top: 120px;
    width: 90%;
  }

  .accordion button {
    font-size: 18px;
    padding: 12px 40px 12px 10px;
  }

  .checklist li {
    font-size: 16px;
  }

  .age-group {
    flex-wrap: wrap;
    justify-content: flex-start;
  }


  .age-group h3 {
    width: auto;
    flex: 1 1 calc(50% - 10px);
  }

  #point .voice-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  #point .voice-card {
    flex: none;
  }

  .recommended_items .items-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  #recommend .scroll-x {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow: visible;
    margin-bottom: 40px;
  }

  #recommend .scroll-x .item {
    width: auto;
  }

  #recommend .scroll-x .item-img {
        width: 160px;
        height: 160px;
        object-fit: cover;
        margin-bottom: 8px;
}
  #recommend .scroll-x .item p {
    width: 160px;
    margin: 0 auto;
  }

  /* タブレット以上ではドットナビを非表示 */
  .slider-dots {
    display: none;
  }
}

/* 共通 */
#point .voice-slider,
#recommend .scroll-x {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE, Edge(旧) */
}
#point .voice-slider::-webkit-scrollbar,
#recommend .scroll-x::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}


/*-------------------
  メディアクエリ（PCサイズ）
-------------------*/
@media (min-width: 1280px) {
  body {
    max-width: 1200px;
    padding: 40px;
    margin: 0 auto;
  }

  main {
    display: flex;
    gap: 40px;
    padding: 40px;
  }

  article {
    flex: 3;
  }

    nav.toc {
    max-height: calc(100vh - 80px);
  }
}
