/* ===========================
   Willard Header Styles
   =========================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  font-size: 14px;
  color: #333;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===========================
   Top Announcement Bar
   =========================== */
.header-announcement {
  background-color: #fff;
  border-bottom: 1px solid #e8e8e8;
  text-align: center;
  padding: 6px 20px;
  font-size: 11px;
  color: #555;
  letter-spacing: 0.03em;
}

/* ===========================
   Main Header
   =========================== */
.header-main {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 0 30px;
  height: 70px;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
}

/* ===========================
   Logo
   =========================== */
.header-logo {
  flex-shrink: 0;
  margin-right: 10px;
}

.header-logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* ===========================
   Main Navigation
   =========================== */
.header-nav {
  flex: 1;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  height: 70px;
}

.nav-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #222;
  height: 100%;
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  width: 0;
  height: 2px;
  background-color: #1a3a6b;
  transition: width 0.25s ease;
}

.nav-link:hover {
  color: #1a3a6b;
}

.nav-link:hover::after {
  width: calc(100% - 36px);
}

/* Dropdown arrow */
.nav-link .arrow {
  font-size: 9px;
  color: #888;
  transition: transform 0.2s ease;
  margin-top: 1px;
}

.nav-item:hover .nav-link .arrow {
  transform: rotate(180deg);
  color: #1a3a6b;
}

/* ===========================
   Header Icons (PC)
   =========================== */
.header-icons {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.header-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  color: #333;
  transition: opacity 0.2s;
  text-decoration: none;
  height: 70px;
}

.header-icon-btn:hover {
  opacity: 0.6;
}

.header-icon-btn img {
  display: block;
  width: 24px;
  height: 24px;
}

.header-icon-label {
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  color: #333;
}


/* ===========================
   Hamburger Menu (SP only)
   =========================== */
.header-menu-btn {
  display: none;
}

.menu-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background-color: #333;
  transition: all 0.3s ease;
}

/* ===========================
   Dropdown Panel Menu
   =========================== */
.dropdown {
  display: none;
  position: fixed;
  top: 91px;
  left: 0;
  right: 0;
  background: #f2f5f8;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.nav-item:hover .dropdown {
  display: block;
}

/* パネル内部 */
.dropdown-panel {
  padding: 40px 40px 60px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* セクション */
.dropdown-section {
  margin-bottom: 30px;
}

.dropdown-section:last-child {
  margin-bottom: 0;
}

/* ===========================
   セクション見出し行
   実際のサイト: <p><a>テキスト</a></p>
   a に ::before(紺丸) + ::after(白矢印)
   =========================== */
.dropdown-section-head {
  margin-bottom: 0;
  border-bottom: 1px solid #7386b1;
  padding-bottom: 0;
}

/* リンクあり見出し */
.dropdown-section-title {
  display: inline-block;
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: #001d60;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0 45px 15px 0;
}

/* 紺丸 ::before */
.dropdown-section-title::before {
  content: '';
  display: block;
  position: absolute;
  right: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  background: #001d60;
  border-radius: 50%;
}

/* 白矢印 ::after */
.dropdown-section-title::after {
  content: '';
  display: block;
  position: absolute;
  right: 12px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  transform: rotate(45deg);
}

.dropdown-section-title:hover {
  opacity: 0.75;
}

/* リンクなし見出し（サービスについて等） */
.dropdown-section-title--nolink {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #001d60;
  letter-spacing: 0.03em;
  padding-bottom: 15px;
  pointer-events: none;
}

/* ===========================
   子リンクリスト
   実際のサイト: flex + wrap、各li幅固定
   =========================== */
/* display:grid で4列にすると同じ行のliが同じ高さに揃い
   border-bottomが途切れず1本線になる */
.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  border-top: 1px solid #c3ced7;
}

.dropdown-grid li {
  box-sizing: border-box;
  border-bottom: 1px solid #c3ced7;
}

.dropdown-grid li {
  position: relative;
}

.dropdown-grid-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 20px 30px 20px 0;
  font-size: 14px;
  color: #333;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.2s;
  box-sizing: border-box;
  position: relative;
}

/* 下線アニメーション：左から右へ紺色に流れる */
.dropdown-grid-item::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: #001d60;
  transition: width 0.3s ease;
  z-index: 1;
}

.dropdown-grid-item:hover {
  color: #001d60;
}

.dropdown-grid-item:hover::before {
  width: 100%;
}

/* 矢印 */
.dropdown-grid-item::after {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid #888;
  border-right: 1.5px solid #888;
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-left: 8px;
  transition: border-color 0.2s;
}

.dropdown-grid-item:hover::after {
  border-color: #001d60;
}

/* ===========================
   Category Navigation Bar
   =========================== */
.header-category {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.category-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 30px;
}

.category-list {
  list-style: none;
  display: flex;
  align-items: center;
}

.category-item {
  position: relative;
  display: flex;
  align-items: center;
}

.category-item + .category-item::before {
  content: '|';
  color: #ccc;
  font-size: 11px;
  padding: 0 2px;
}

.category-link {
  display: block;
  padding: 12px 16px;
  font-size: 12px;
  color: #444;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: color 0.2s;
  position: relative;
}

.category-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;
  width: 0;
  height: 2px;
  background-color: #1a3a6b;
  transition: width 0.25s ease;
}

.category-link:hover {
  color: #1a3a6b;
}

.category-link:hover::after {
  width: calc(100% - 32px);
}

/* ===========================
   Responsive - Tablet
   =========================== */
@media (max-width: 1024px) {
  .nav-link {
    padding: 0 12px;
    font-size: 12px;
  }
  .category-link {
    padding: 12px 10px;
    font-size: 11px;
  }
}

/* ===========================
   Responsive - SP
   =========================== */
@media (max-width: 768px) {
  /* アナウンスバー */
  .header-announcement {
    font-size: 10px;
    padding: 5px 12px;
  }

  /* ヘッダー本体 */
  .header-inner {
    padding: 0 16px;
    height: 54px;
    gap: 0;
  }

  /* PCナビ・カテゴリバー非表示 */
  .header-nav {
    display: none;
  }
  .header-category {
    display: none;
  }

  /* ロゴ */
  .logo-img {
    height: 34px;
  }

  /* ハンバーガーボタン */
  .header-menu-btn {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .header-menu-btn:hover .menu-bar {
    background-color: #1a3a6b;
  }
}

/* ===========================
   SP Overlay
   =========================== */
.sp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sp-overlay.is-active {
  display: block;
  opacity: 1;
}

/* ===========================
   SP Drawer
   =========================== */
.sp-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 82vw;
  max-width: 320px;
  height: 100%;
  background: #fff;
  z-index: 300;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -4px 0 20px rgba(0,0,0,0.12);
}

.sp-drawer.is-open {
  transform: translateX(0);
}

/* ドロワーヘッダー */
.sp-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.sp-logo-img {
  height: 32px;
  width: auto;
}

.sp-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  position: relative;
  padding: 0;
}

.close-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #333;
  position: absolute;
  transition: background 0.2s;
}

.close-bar:nth-child(1) { transform: rotate(45deg); }
.close-bar:nth-child(2) { transform: rotate(-45deg); }

.sp-close-btn:hover .close-bar {
  background: #1a3a6b;
}

/* SPナビリスト */
.sp-nav-list {
  list-style: none;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
}

.sp-nav-item {
  border-bottom: 1px solid #f0f0f0;
}

.sp-nav-item:last-child {
  border-bottom: none;
}

.sp-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  letter-spacing: 0.04em;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.sp-nav-link:hover,
.sp-nav-link:active {
  background: #f5f7fb;
  color: #1a3a6b;
}

.sp-arrow {
  font-size: 9px;
  color: #aaa;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.sp-accordion-btn[aria-expanded="true"] .sp-arrow {
  transform: rotate(180deg);
  color: #1a3a6b;
}

/* アコーディオン子メニュー */
.sp-child-list {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #f8f9fc;
}

.sp-child-list.is-open {
  max-height: 400px;
}

.sp-child-list li a {
  display: block;
  padding: 11px 20px 11px 32px;
  font-size: 12px;
  color: #555;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #ededf0;
  transition: background 0.15s, color 0.15s;
}

.sp-child-list li:last-child a {
  border-bottom: none;
}

.sp-child-list li a:hover {
  background: #eef1f8;
  color: #1a3a6b;
}

/* SPカテゴリセクション */
.sp-category-section {
  padding: 16px 0 24px;
}

.sp-category-title {
  font-size: 10px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 20px 8px;
}

.sp-category-list {
  list-style: none;
}

.sp-category-list li a {
  display: block;
  padding: 12px 20px;
  font-size: 13px;
  color: #333;
  letter-spacing: 0.03em;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s, color 0.15s;
}

.sp-category-list li:last-child a {
  border-bottom: none;
}

.sp-category-list li a:hover {
  background: #f5f7fb;
  color: #1a3a6b;
}

/* body scroll lock */
body.drawer-open {
  overflow: hidden;
}

/* ===========================
   Footer
   =========================== */
.site-footer {
  background-color: #eef0f7;
  padding: 50px 0 0;
}

/* ロゴ */
.footer-logo-wrap {
  text-align: center;
  margin-bottom: 48px;
}

.footer-logo-img {
  height: 70px;
  width: auto;
}

/* ナビゲーション */
.footer-nav-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px 48px;
}

.footer-nav-heading {
  font-size: 13px;
  font-weight: 700;
  color: #001d60;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
}

.footer-nav-list {
  list-style: none;
}

.footer-nav-list li {
  margin-bottom: 12px;
  padding-left: 14px;
  position: relative;
}

.footer-nav-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #001d60;
}

.footer-nav-list li a {
  font-size: 12px;
  color: #333;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.footer-nav-list li a:hover {
  color: #001d60;
}

/* サブリンク */
.footer-sub {
  border-top: 1px solid #c8ccd8;
  padding: 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-sub-list {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 32px;
}

.footer-sub-list li a {
  font-size: 11px;
  color: #555;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.footer-sub-list li a:hover {
  color: #001d60;
}

/* SNS */
.footer-sns {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 28px 0;
}

.footer-sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.footer-sns-link:hover {
  opacity: 0.6;
}

.footer-sns-link img {
  display: block;
  width: 32px;
  height: 32px;
}

/* コピーライト */
.footer-copyright {
  background: #eef0f7;
  text-align: center;
  padding: 20px;
  border-top: 1px solid #c8ccd8;
}

.footer-copyright p {
  font-size: 11px;
  color: #888;
  letter-spacing: 0.04em;
}

/* ===========================
   Footer - アコーディオンボタン共通（PC非表示）
   =========================== */
.footer-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: default;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.footer-accordion-icon {
  display: none;
}

/* ===========================
   Footer - SP
   =========================== */
@media (max-width: 768px) {
  .site-footer {
    padding-top: 32px;
  }

  .footer-logo-img {
    height: 54px;
  }

  .footer-logo-wrap {
    margin-bottom: 24px;
  }

  /* SP: 1カラム・アコーディオン */
  .footer-nav-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 0 0;
  }

  .footer-nav-col {
    border-bottom: 1px solid #d0d3de;
  }

  /* ボタンをタップ可能に */
  .footer-accordion-btn {
    cursor: pointer;
    pointer-events: auto;
    padding: 16px 20px;
    font-size: 13px;
    font-weight: 700;
    color: #001d60;
    letter-spacing: 0.04em;
  }

  /* + アイコン */
  .footer-accordion-icon {
    display: block;
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .footer-accordion-icon::before,
  .footer-accordion-icon::after {
    content: '';
    position: absolute;
    background: #001d60;
    border-radius: 1px;
  }

  .footer-accordion-icon::before {
    width: 14px;
    height: 1.5px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  .footer-accordion-icon::after {
    width: 1.5px;
    height: 14px;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  /* 開いた状態: + → - */
  .footer-accordion-btn[aria-expanded="true"] .footer-accordion-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
  }

  /* リスト：SP では折りたたみ */
  .footer-nav-list.footer-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
  }

  .footer-nav-list.footer-accordion-body.is-open {
    max-height: 600px;
    padding-bottom: 16px;
  }

  /* リストアイテム */
  .footer-nav-list li {
    margin-bottom: 14px;
    padding-left: 12px;
  }

  .footer-nav-list li a {
    font-size: 13px;
  }

  /* サブリンク: SP では縦並び */
  .footer-sub {
    padding: 0;
  }

  .footer-sub-list {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .footer-sub-list li {
    border-bottom: 1px solid #d0d3de;
  }

  .footer-sub-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-size: 13px;
    color: #333;
  }

  .footer-sub-list li a::after {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #888;
    border-right: 1.5px solid #888;
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  .footer-sns {
    gap: 24px;
    padding: 28px 0;
  }

  .footer-sns-link img {
    width: 36px;
    height: 36px;
  }
}
