@charset "UTF-8";

:root {
  --color-primary: #003d7a;
  --color-secondary: #e60012;
  --color-text: #333;
  --color-text-nav: #5f5959;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-gray: #f5f5f5;
  --color-border: #ddd;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  --container-width: 1312px;
  --container-padding: 20px;
}
/* ==========================================================================
   CSS リセット
   ========================================================================== */
* {
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, Arial,
    sans-serif;
  line-height: 1.8;
  background-color: #fff;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}
/* ==========================================================================
   共通レイアウト
   ========================================================================== */
.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

ul,
ol {
  list-style: none;
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section--gray {
  background-color: var(--color-bg-gray);
}

.page-title {
  color: rgba(0, 86, 174, 1);
  font-size: 40px;
  font-weight: 400;
  text-align: center;
  position: relative;
  margin-bottom: 80px;
  padding-top: 100px;
}

/* 擬似要素を使って点線の下線を作成 */
.page-title::after {
  content: '';
  display: block;
  border-bottom: 3px dotted #aaa;
  width: 180px;
  height: 2px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.section-subtitle {
  font-weight: 300;
}

/* ==========================================================================
   ユーティリティクラス
   ========================================================================== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.mt-sm {
  margin-top: var(--spacing-sm);
}
.mt-md {
  margin-top: var(--spacing-md);
}
.mt-lg {
  margin-top: var(--spacing-lg);
}
.mt-xl {
  margin-top: var(--spacing-xl);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}
.mb-md {
  margin-bottom: var(--spacing-md);
}
.mb-lg {
  margin-bottom: var(--spacing-lg);
}
.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.sp-only {
  display: none;
}
.pc-only {
  display: block;
}

.text-link {
  color: rgba(67, 103, 136, 1);
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  height: auto;
}

.header__top-bar {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  margin-bottom: 0;
}

.header__top-inner {
  max-width: 1312px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  min-height: 70px;
}

.header__logo-area {
  display: flex;
  font-size: 34px;
  flex-direction: column;
  align-items: flex-start;
}

.header__logo-en {
  font-size: 17px;
  font-weight: 200;
  margin-top: 20px;
  margin-bottom: -7px;
  color: rgba(33, 33, 33, 1);
  letter-spacing: 1.02px;
  text-align: left;
}

.header__logo a {
  font-size: 34px;
  padding-top: 10px;
  font-weight: 600;
  color: rgba(33, 33, 33, 1);
  white-space: nowrap;
}

.header__button-link {
  display: inline-block;
  padding: 0 var(--spacing-md);
  height: 40px;
  line-height: 40px;
  width: 209px;
  margin-top: 25px;
  text-align: center;
  background-color: #38c2f1;
  color: var(--color-bg);
  border-radius: 22px;
  font-weight: bold;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  opacity: 1;
}

.header__button-link:hover {
  background-color: #1aa0d3;
}

.header__nav {
  border-top: none;
  background-color: var(--color-bg);
  margin-bottom: 50px;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.header__menu {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  flex-wrap: nowrap;
  margin-top: -5px;
  padding-right: 0;
  gap: 2.7rem;
}

.header__menu-item a {
  display: block;
  height: 24px;
  font-family: 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 20px;
  line-height: 24px;
  font-weight: 300;
  color: rgba(95, 89, 89, 1);
  text-align: center;
  padding: 0 8px;
  white-space: nowrap;
}

.header a:hover {
  opacity: 0.9;
}

.header__sp-menu-btn {
  position: relative;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1010;
  display: none;
  border: none;
  background-color: transparent;
  padding: 0;
  margin-right: 10px;
}

.header__sp-menu-btn span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.header__sp-menu-btn span:nth-child(1) {
  top: 0;
}
.header__sp-menu-btn span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.header__sp-menu-btn span:nth-child(3) {
  bottom: 0;
}

.header__sp-menu-btn.is-active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.header__sp-menu-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.header__sp-menu-btn.is-active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.header__menu-item--has-sub {
  position: relative;
}

/* PC表示 */
@media screen and (min-width: 768px) {
  #js-header-nav .header__menu-item--has-sub {
    position: relative;
  }

  #js-header-nav .header__submenu {
    position: absolute;
    top: 100%;
    right: 0;

    width: 160px;
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: block;
    border-top: 2px solid #eee;
  }

  #js-header-nav .header__menu-item--has-sub:hover .header__submenu {
    opacity: 1;
    visibility: visible;
  }

  #js-header-nav .header__submenu-item {
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
  }

  #js-header-nav .header__submenu-item a {
    display: block;
    width: 100%;
    height: auto;
    line-height: 1.4;
    padding: 12px 20px 10px 10px;
    margin: 0;
    text-align: left;
    font-size: 14px;
    font-weight: normal;
    color: #333;
    background: none;

    justify-content: flex-start;
    align-items: stretch;
  }

  #js-header-nav .header__submenu-item a:hover {
    background-color: #f7f7f7;
    color: #000;
    opacity: 1;
  }

  #js-header-nav .header__submenu-item a::before,
  #js-header-nav .header__submenu-item a::after {
    content: none;
    display: none;
  }
  .top__link-wrap {
    padding-right: 20px;
  }
}

/* =========================================
   スマホメニュー用の設定
   ========================================= */
@media screen and (max-width: 832px) {
  #js-header-nav .header__menu-item.is-active > a {
    color: #333;
    background-color: transparent;
  }

  #js-header-nav .header__menu-item--has-sub .header__submenu {
    display: block;
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 0;
    min-width: auto;
  }

  #js-header-nav .header__submenu-item {
    display: block;
  }

  #js-header-nav .header__menu-item a,
  #js-header-nav .header__submenu-item a {
    color: #333;
    background: none;
  }

  #js-header-nav .header__submenu-item a {
    padding: 20px 20px 10px 40px;
    font-size: 20px;
    display: block;
    height: auto;
  }
}
/* =========================================================
 * アクティブなナビゲーションリンクのハイライト
 * ========================================================= */

.header__menu-item.is-active a {
  color: rgba(36, 109, 185, 1);
  font-weight: 600;
}

/* ==========================================================================
   【コア修正】ブレークポイント 832px 以下 (PCメニュー非表示 & SPボタン表示)
   ========================================================================== */
@media screen and (max-width: 832px) {
  .header-container,
  .main {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  body,
  html {
    overflow-x: hidden;
    width: 100%;
  }

  .header,
  .header__top-bar,
  .header__top-inner,
  .header__nav {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .header .header__button-link {
    display: none;
  }

  .header__nav {
    display: none;
    margin-bottom: 0;
  }

  .header__menu {
    display: none;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .header__sp-menu-btn {
    display: block;
    margin-right: 10px;
    align-self: center;
  }

  .pc-only {
    display: none;
  }
  .sp-only {
    display: block;
  }

  .header__top-inner {
    min-height: 70px;
    padding: 10px 20px;
  }

  .header__logo-area {
    margin-left: 10px;
    font-size: 20px;
  }
  .header__logo-en {
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: -3px;
  }
  .header__logo a {
    font-size: 20px;
    padding-top: 5px;
    white-space: normal;
    word-break: break-word;
  }

  body footer.footer {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
  }
  .footer__main {
    min-height: auto;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 20px;
  }

  .footer .footer__inner {
    max-width: 100%;
    padding: 0 20px;
    flex-direction: column;
  }

  .footer .footer__content-wrap {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    min-width: 100%;
    min-height: auto;
    padding-left: 0;
    padding-right: 0;
    padding-top: 20px;
    text-align: left;
  }

  .footer__image-wrap {
    display: none;
  }

  .footer .footer__nav-group .footer__nav-row {
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
  }

  .footer .footer__nav-row--middle {
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .footer .footer__nav-col--home-only,
  .footer .footer__nav-col--news-title,
  .footer .footer__nav-col--news-sub,
  .footer .footer__nav-col--normal-title,
  .footer .footer__nav-col--normal-sub,
  .footer .footer__nav-row--middle .footer__nav-col--member,
  .footer .footer__nav-row--middle .footer__nav-col--link,
  .footer .footer__nav-col--normal-title:nth-child(3),
  .footer .footer__nav-col--normal-sub:nth-child(3) {
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: center;
  }

  .footer .footer__nav-title.is-main {
    font-size: 20px;
    font-weight: 600;
    line-height: 2.2;
    margin-top: 15px;
    margin-bottom: 5px;
    white-space: normal;
    text-align: left;
  }
  .footer .footer__nav-title.is-privacy {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.8;
  }

  .footer .footer__nav-list {
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .footer .footer__nav-list-item {
    font-size: 16px;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    white-space: normal;
    text-align: center;
  }

  .footer .footer__nav-list-item a {
    display: block;
    padding: 5px 0;
    text-align: left;
  }

  .footer .footer__nav-list-item a::before {
    content: '';
  }

  .footer .footer__info {
    padding-bottom: 20px;
    text-align: left;
  }
  .footer .footer__logo-en,
  .footer .footer__logo-jp,
  .footer .footer__address,
  .footer .footer__tel {
    font-size: 16px;
    text-align: left;
    line-height: 1.5;
  }
  .footer .footer__logo-jp {
    font-size: 20px;
  }

  .footer .footer__copyright {
    height: 60px;
    font-size: 14px;
    text-align: left;
    padding: 0 20px;
  }
}

/* --------------------------------------
 * Topへボタン (縦並びの実現)
 * -------------------------------------- */

.top__link-wrap {
  display: flex;
  justify-content: flex-end;
  padding-right: 160px;
  padding-bottom: 160px;
}

.icon-top {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: rgba(67, 103, 136, 1);
  font-size: 21px;
  font-weight: 500;
}

.top__cow-icon {
  margin-left: 0;
  width: 54px;
  height: 91px;
  object-fit: contain;
  margin-right: 0;
  margin-bottom: 5px;
}

/* .back-to-top top-icon {
  width: 48px;
  height: auto;
  margin-right: 10px;
  margin-top: 30px;
} */

/* ==========================================================================
   モバイルメニュー（832px以下）詳細スタイル (既存のスタイル維持)
   ========================================================================== */
@media screen and (max-width: 832px) {
  /* ==========================================================================
   SPメニューオープン時のスタイル (既存のスタイル維持)
   ========================================================================== */
  html body.is-active {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
  }

  html body.is-active .header__nav {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--color-bg);
    overflow-y: auto;
    z-index: 998;
    margin-bottom: 0;
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }

  body.is-active .header__nav .header__menu {
    display: block;
    flex-direction: column;
    padding-top: 0;
    width: 100%;
    margin: 0;
    max-width: none;
  }
  .header__menu .header__menu-item {
    display: block;
    width: 100%;
    text-align: left;
    border-bottom: none;
    margin: 0;
    padding: 0;
  }

  .header__menu .header__menu-item a {
    display: block;
    padding: 20px 0;
    font-size: 20px;
    text-align: left;
    border-bottom: none;
    padding-left: 0;
  }

  html body.is-active .header__nav .header__menu .header__menu-item.sp-only {
    display: block;
    order: 10;
    width: 100%;
    text-align: left;
    border-bottom: none;
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 0;
  }

  body.is-active .header__nav .header__menu .header__menu-item.sp-only a {
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: none;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }

  body.is-active .header__nav a.header__button-link--sp[href] {
    display: inline-block;
    background-color: #38c2f1;
    color: #fff;
    border-radius: 22px;
    text-align: center;
    width: 250px;
    height: 40px;
    line-height: 40px;
    font-weight: bold;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s ease;
    opacity: 1;
  }

  body.is-active .header__nav a.header__button-link--sp[href]:hover {
    background-color: #1aa0d3;
  }

  .top__link-wrap {
    padding-right: 20px;
  }
}

/* ==========================================================================
   フッター (PCレイアウト安定化) - 統合HTML対応CSS
   ========================================================================== */

/* (既存コードを維持) */
.footer__main {
  background-color: rgba(0, 86, 174, 1);
  position: relative;
  border-bottom: 3px solid #fff;
  padding-bottom: 0;
}

.footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: nowrap;
  padding-top: 0;
  padding-bottom: 0;
}

.footer__image-wrap {
  position: absolute;
  top: 0;
  left: calc(0px - var(--container-padding));
  width: calc(428px + (100vw - 1272px) / 2);
  height: 100%;
  background-image: url('../images/sections/footer.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: left center;
  filter: none;
  opacity: 1;
}

.footer__content-wrap {
  margin-left: calc(428px + (100vw - 1272px) / 2);
  margin-top: 10px;
  min-height: 800px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 40px;
  padding-top: 30px;
  width: 100%;
}
.footer__nav-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.footer__nav-row {
  display: flex;
  width: 100%;
}

/* -----------------------------------------------------
 * PCレイアウトのためのクラス定義 (統合HTML対応)
 * ----------------------------------------------------- */

.footer__nav-col--home-only {
  width: 30%;
  flex-shrink: 0;
}
.footer__nav-row--title-home {
  margin-bottom: 25px;
}

.footer__nav-row--main-unified {
  display: flex;
  margin-bottom: 40px;
}

.footer__nav-col--item {
  padding-right: 30px;
}
.footer__nav-row--main-unified .footer__nav-col--news-title {
  width: 30%;
  flex-shrink: 0;
}
.footer__nav-row--main-unified .footer__nav-col--normal-title:nth-child(2) {
  width: 35%;
  flex-shrink: 0;
}
.footer__nav-row--main-unified .footer__nav-col--normal-title:nth-child(3) {
  width: auto;
  flex-shrink: 0;
}

.footer__nav-row--middle {
  margin-bottom: 20px;
  margin-top: 7px;
  flex-direction: row;
}
.footer__nav-row--middle .footer__nav-col--member {
  width: 45%;
  padding-right: 30px;
  flex-shrink: 0;
  margin-top: -3px;
}
.footer__nav-row--middle .footer__nav-col--link {
  margin-left: 50px;
  flex-shrink: 0;
}

.footer__nav-row--bottom {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
}
.footer__nav-col--privacy-wrap {
  width: 100%;
  margin-left: 0;
}

.footer__nav-title.is-privacy {
  font-size: 25px;
  line-height: 1.8;
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
}
.footer__nav-title.is-privacy a {
  color: #fff;
  font-weight: normal;
}

.footer__nav-title.is-main {
  font-size: 25px;
  font-weight: 500;
  margin-bottom: 0;
  white-space: nowrap;
  line-height: 1.8;
  color: rgba(255, 255, 255, 1);
}
.footer__nav-title.is-main a {
  color: #fff;
  font-weight: 500;
}

.footer__nav-list {
  padding-top: 5px;
  margin-top: 10px;
  padding-left: 0;
}
.footer__nav-list-item {
  font-size: 22.82px;
  font-weight: 300;
  margin-bottom: 5px;
  white-space: nowrap;
  line-height: 1.6;
  color: #fff;
}
.footer__nav-list-item a {
  font-weight: 300;
  display: inline-block;
  font-size: 25px;
  color: rgba(255, 255, 255, 1);
}

.footer__nav-list-item a::before {
  content: '| ';
  color: #fff;
}

.footer__info {
  color: #fff;
  margin-top: 40px;
}

.footer__logo-en {
  font-size: 17px;
  font-weight: 300;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 1);
  line-height: 1.4;
  letter-spacing: 0.7px;
}

.footer__logo-jp {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, 1);
  margin-bottom: var(--spacing-sm);
}

.footer__address,
.footer__tel {
  font-size: 24px;
  line-height: 1.6;
  font-weight: 300;
  color: rgba(255, 255, 255, 1);
}

.footer__copyright {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 114px;
  text-align: center;
  font-size: 20px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 1);
  background-color: rgba(0, 86, 174, 1);
  font-weight: 300;
  padding: 0;
}

@media screen and (min-width: 1367px) {
  .footer__image-wrap {
    width: clamp(428px, calc(428px + (100vw - 1366px) * 0.5), 900px);
  }

  .footer__content-wrap {
    margin-left: 428px;
    max-width: calc(100% - 428px);
  }
}

@media screen and (max-width: 900px) {
  .footer__content-wrap {
    padding-left: 12px;
  }
}

@media screen and (max-width: 832px) {
  .footer__nav-list-item a {
    font-size: 16px;
  }
}

/* =========================================================
 * フッター レスポンシブ対応 (768px以下) - 統合HTML対応
 * -----------------------------------------------------
 * 新しいHTML構造で正しい縦並びを実現
 * ----------------------------------------------------- */
@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
  }

  .footer__image-wrap {
    display: none;
  }

  .footer__content-wrap {
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 30px;
    min-height: auto;
    width: 100%;
  }

  .footer__nav-group {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .footer__nav-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    padding: 0;
  }

  .footer__nav-col {
    width: 100%;
    padding-right: 0;
    margin-left: 0;
    flex-shrink: 1;
    margin-bottom: 0;
  }

  /* 3. orderプロパティによる行の並び替え */

  .footer__nav-row--title-home {
    order: 1;
    margin-bottom: 30px;
  }

  .footer__nav-row--main-unified {
    order: 2;
    margin-bottom: 30px;
    flex-direction: column;
  }
  .footer__nav-row--middle {
    order: 3;
    margin-bottom: 30px;
    flex-direction: column;
  }

  /* order 4: プライバシー */
  .footer__nav-row--bottom {
    order: 4;
    margin-bottom: 40px;
  }

  /* order 5: 情報ブロック */
  .footer__info {
    order: 5;
  }

  .footer__nav-title.is-main {
    font-size: 18px;
    margin-bottom: 5px;
  }
  .footer__nav-list {
    margin-top: 5px;
  }
  .footer__nav-list-item {
    font-size: 16px;
    margin-bottom: 3px;
  }

  .footer__nav-list-item a {
    font-size: 16px;
  }
  .footer__nav-row--main-unified .footer__nav-col--normal-title:nth-child(2) {
    width: 100%;
    flex-shrink: 0;
  }
}
