@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Noto+Serif+JP:wght@400;500;700&display=swap');

/* サイト全体で ol に番号付きリストスタイルを適用 */
ol {
  list-style-type: decimal;
  padding-left: 2em;
  margin: 1em 0;
}

ol li {
  margin-bottom: 0.5em;
}

/* 右寄せユーティリティクラス */
.text-right {
  text-align: right;
}

@layer components {
  .d-none {
    display: none !important;
    /* Bootstrapのd-noneと同じ効果を持たせるために!importantを使用 */
  }

  .badge .tag {
    display: inline-block;
    padding: .25em .4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    text-decoration: none;
  }

  .badge-secondary {
    color: #fff;
    background-color: #6c757d;
  }

  .form-field .input-block .input {
    display: inline-block;
  }

  .form-field .input-block .input {
    display: inline-block;
    border: solid 0.2rem #4c4c4c;
    border-radius: 1.0rem;
    padding: 0.7rem 2.3rem;
  }

  @media screen and (min-width: 751px), print {
    section.corp-info .button-block li a {
      display: flex;
      align-items: center;
      /* 縦位置を揃える */
      justify-content: space-between;
      /* 右端に矢印を寄せる */
      text-decoration: none;
      text-align: center;
      width: 32.3rem;
      border-radius: 1.1rem;
      border: solid 0.3rem #005da8;
      background: #fff;
      padding: 1.3rem 0rem 4.5rem 0rem;
      padding: 1.3rem 1.6rem;
      /* 矢印用に左右余白を確保 */
      box-shadow: 0.4rem 0.4rem 0 0 #aaa;
      transition: opacity 200ms 0s ease;
      margin-bottom: 1rem;
    }

    section.corp-info .button-block li a:hover {
      opacity: 0.6;
    }

    section.corp-info .button-block li a::after {
      content: "";
      display: inline-block;
      width: 1.6rem;
      height: 1.6rem;
      background: url(../img/icon_arrow_black.png) center/contain no-repeat;
      margin-left: 0.5rem;
    }

    footer .fmenu {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 2rem;
      width: 100%;
    }

    footer .fmenu ul {
      text-align: left;
    }
  }

  @media screen and (max-width: 750px) {
    section.corp-info .button-block li a {
      display: flex;
      align-items: center;
      /* 縦位置を揃える */
      justify-content: space-between;
      /* 右端に矢印を寄せる */
      text-decoration: none;
      text-align: center;
      max-width: 60.9rem;
      margin: 0 auto;
      margin-bottom: 1rem;
      border-radius: 2.3rem;
      border: solid 0.6rem #005da8;
      background: #fff;
      padding: 2.8rem 0rem 9.4rem 0rem;
      padding: 1.3rem 1.6rem;
      /* 矢印用に左右余白を確保 */
      box-shadow: 0.7rem 1.0rem 0 0 #aaa;
    }

    section.corp-info .button-block li a::after {
      content: "";
      display: inline-block;
      width: 1.6rem;
      height: 1.6rem;
      background: url(../img/icon_arrow_black.png) center/contain no-repeat;
      margin-left: 0.5rem;
    }

    footer .fmenu {
      grid-template-columns: 1fr;
    }

  }

  /* ★ モジュールタイトル用スタイル */
  .simple h3.title .main {
    display: block;
    color: var(--main-blue);
    font-family: "Playfair Display", "Noto Serif JP", serif;
    font-size: 3.0rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  }

  .simple h3.title .sub {
    display: inline-block;
    font-family: "Noto Serif JP", serif;
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #777;
    border-bottom: 2px solid var(--main-blue);
    padding-bottom: 0.15rem;
  }

  /* 小さめ画面対応 */
  @media (max-width: 768px) {
    .simple h3.title .main {
      font-size: 3.8rem;
    }
  }

  /* entry_or_youkou / seed choice buttons (moved from inline CSS) */
  .entry-or-youkou-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
  }

  .choice-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .choice-buttons li {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
  }

  .choice-buttons a {
    display: block;
    padding: 2.5rem 2rem;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    border-radius: 12px;
    border: solid 3px #005da8;
    color: #005da8;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
  }

  .choice-buttons li:first-child a {
    border-color: #005da8;
    color: #005da8;
  }

  .choice-buttons li:last-child a {
    border-color: #00aca8;
    color: #00aca8;
  }

  .choice-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }

  .choice-buttons a:active {
    transform: translateY(-1px);
  }

  /* Seed page uses same layout but different accent */
  .seed-choice .choice-buttons li:first-child a {
    border-color: #00aca8;
    color: #00aca8;
  }
}

/* Modular Submenu Styling */
:root {
  --header-height: 7.0rem;
  /* PC: 70px */
  --submenu-height: 6.0rem;
  /* Approx */
  --scroll-offset: calc(var(--header-height) + var(--submenu-height) + 2.0rem);
}

.modular-submenu-wrapper {
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.0rem 0;
  margin-bottom: 2.0rem;
  box-shadow: 0 0.4rem 0.6rem -0.1rem rgba(0, 0, 0, 0.1);
}

.modular-submenu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.0rem;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 100.0rem;
  margin-left: auto;
  margin-right: auto;
}

.modular-submenu li {
  margin: 0;
}

.modular-submenu a {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background-color: #f5f5f7;
  /* Apple-like light gray */
  color: #1d1d1f;
  /* Apple-like dark text */
  text-decoration: none;
  border-radius: 99.9rem;
  /* Pill shape */
  font-size: 1.4rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 0.1rem solid transparent;
}

.modular-submenu a:hover {
  background-color: #e8e8ed;
  transform: scale(1.02);
}

.modular-submenu a:active {
  transform: scale(0.98);
  background-color: #d2d2d7;
}

.module-anchor {
  scroll-margin-top: var(--scroll-offset);
}

@media screen and (max-width: 768px) {
  :root {
    --header-height: 10.0rem;
    /* Mobile: 100px (scaled) */
  }

  .modular-submenu-wrapper {
    /* top is already using var(--header-height) */
    padding: 0.8rem 0;
  }

  .modular-submenu ul {
    gap: 0.8rem;
    padding: 0 1.0rem;
  }

  .modular-submenu a {
    padding: 0.6rem 1.2rem;
    font-size: 2.4rem;
  }

  .youkou-card h3 {
    font-size: 3.2rem;
  }
}

/* Youkou List Grid */
.youkou-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 3.1rem;
  margin-top: 2rem;
}

.youkou-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50px;
  /* Pill shape or rounded button */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  border: 2px solid var(--main-blue, #005da8);
  /* Solid border for button feel */
  height: auto;
  padding: 1.5rem 2rem;
  text-align: center;
}

.youkou-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  background-color: var(--main-blue, #005da8);
  color: #fff;
}

.youkou-card .card-content {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.youkou-card h3 {
  margin: 0;
  font-weight: 700;
  color: inherit;
  /* Inherit from card (handles hover) */
  border: none;
  padding: 0;
}

.youkou-card p,
.youkou-card .read-more {
  display: none;
  /* Hide summary and read more for button look */
}

/* ----------------------------------------
  印刷時に不要要素を非表示
  ---------------------------------------- */
@media print {
    header,
    footer,
    .modular-submenu {
        display: none !important;
    }
}