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

html {
  overflow-x: hidden;
}

body {
  font-family: 'Outfit', 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.03em;
  overflow-x: hidden;
}

/* ===== テキストリンク共通ホバー ===== */
a {
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

/* ボタン類は透過なし（色変化あり、またはボタンデザイン） */
.btn-blue:hover,
.btn-white:hover,
.btn-mypage:hover {
  opacity: 1;
}

/* ===== HEADER ===== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 86px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  margin: 0;
  z-index: 1001;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}

header.is-hidden {
  transform: translateY(calc(-100% - 24px));
}

header.sp-open {
  border-radius: 15px 15px 0 0;
  box-shadow: none;
}

/* ===== LOGO AREA ===== */
.logo-area {
  display: flex;
  align-items: baseline;
  gap: 20px;
  font-weight: 600;
  font-size: 16px;
}

.header-logo {
  height: 30px;
  width: auto;
  display: block;
}

/* ===== NAV ===== */
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

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

.nav-list li {
  position: relative;
}

.nav-list a,
.nav-item-toggle {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: 0.3s;
}

.nav-list a:hover {
  color: #00A7D4;
  opacity: 1;
}

/* ===== DROPDOWN TRIGGER ===== */
.has-dropdown {
  position: relative;
}

.arrow-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.arrow-wrap::before,
.arrow-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #00A7D4;
  border-bottom: 2px solid #00A7D4;
  transition: opacity 0.2s ease;
}

.arrow-wrap::before {
  transform: translate(-50%, -65%) rotate(45deg);
  opacity: 1;
}

.arrow-wrap::after {
  transform: translate(-50%, -35%) rotate(-135deg);
  opacity: 0;
}

.has-dropdown:hover .arrow-wrap::before {
  opacity: 0;
}

.has-dropdown:hover .arrow-wrap::after {
  opacity: 1;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
  display: flex;
  gap: 32px;
  align-items: center;
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(235, 245, 252, 0.97);
  border-radius: 8px;
  padding: 30px 34px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  min-width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity 0.25s ease,
              visibility 0.25s ease,
              transform 0.25s ease;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a {
  font-size: 16px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
}

.dropdown a:hover {
  color: #00A7D4;
  text-decoration: none;
  transition: 0.3s;
  opacity: 1;
}

.dropdown-sep {
  color: #bbb;
  font-size: 14px;
}

/* ===== BUTTON ===== */
.btn-blue {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 60px;
  background: #00A7D4;
  border: 1px solid #00A7D4;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.btn-blue:hover {
  background: #fff;
  border: 1px solid #00A7D4;
  color: #00A7D4;
}

.btn-mypage {
  padding: 15px 25px;
  font-size: 13px;
}

.tab-icon-wrap {
  position: relative;
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.tab-icon {
  width: 14px;
  height: 14px;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.3s;
}

.tab-icon--default {
  opacity: 1;
}

.tab-icon--hover {
  opacity: 0;
}

.btn-mypage:hover .tab-icon--default {
  opacity: 0;
}

.btn-mypage:hover .tab-icon--hover {
  opacity: 1;
}

.btn-white {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 60px;
	border: 1px solid #00A7D4;
	border-radius: 50px;
	color: #00A7D4;
	font-weight: 500;
	font-size: 15px;
	text-decoration: none;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
	transition: background 0.2s, color 0.2s;
  max-width: 200px;
}

.btn-white:hover {
	background: #00A7D4;
	color: #fff;
}

/* ==========================================================
   RESPONSIVE（1024px以下でスマホレイアウト）
   ========================================================== */

/* --- ハンバーガーボタン --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 30px;
  height: 35px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.is-active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* --- SPメニュー本体 --- */
.sp-menu {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  height: auto;
  max-height: 55px; /* ヘッダー高さ分だけ確保してヘッダーの裏に隠す */
  background: #fff;
  z-index: 1000;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0);
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease, transform 0.3s ease;
}

/* ヘッダーが隠れる時はSPメニューも一緒に隠す（JSでis-hiddenを付与） */
.sp-menu.is-hidden {
  transform: translateY(-90px);
}

.sp-menu.is-open {
  max-height: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.sp-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 88px 32px 48px;
}

/* 閉じるボタン（ハンバーガーが✕に変化して閉じるため非表示） */
.sp-menu-close {
  display: none;
}

/* --- SPナビリスト --- */
.sp-nav-list {
  list-style: none;
  margin-bottom: 40px;
}

.sp-nav-list li {
  border-bottom: 1px solid #eee;
}

.sp-nav-link,
.sp-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

/* アコーディオン矢印 */
.sp-arrow {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid #00A7D4;
  border-bottom: 2px solid #00A7D4;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.sp-has-accordion.is-open .sp-arrow {
  transform: rotate(-135deg);
}

/* アコーディオン中身 */
.sp-accordion {
  list-style: none;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.sp-has-accordion.is-open .sp-accordion {
  max-height: 300px;
}

.sp-accordion li a {
  display: block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #6d6d6d;
  text-decoration: none;
}

.sp-accordion li a:hover {
  color: #00A7D4;
  opacity: 1;
}

/* SPマイページボタン */
.sp-btn-mypage {
  margin-top: 32px;
  justify-content: center;
}

/* --- オーバーレイ --- */
.sp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* ==========================================================
   FOOTER ===== */

/* --- メインエリア（青背景） --- */
.footer-main {
  background: #00A7D4;
  padding: 20px 20px 40px;
}

/* --- ホワイトカード --- */
.footer-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-card-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.footer-company-name {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
}


/* --- フッターナビ --- */
.footer-nav {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 210px;
}

.footer-nav-heading {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  text-decoration: none;
  transition: color 0.2s;
}

a.footer-nav-heading::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 10px;
  vertical-align: 1px;
  transition: transform 0.2s;
}

a.footer-nav-heading:hover {
  color: #00A7D4;
  opacity: 1;
}

a.footer-nav-heading:hover::after {
  transform: translateX(3px) rotate(45deg);
}

.footer-nav-hr {
  border: none;
  border-top: 1px solid #00A7D4;
  margin: 0;
}

.footer-nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #6d6d6d;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-link:hover {
  color: #00A7D4;
  opacity: 1;
}

/* --- ポリシーリンク --- */
.footer-policies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 20px;
}

.footer-policy-link {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.footer-policy-link:hover {
  opacity: 0.7;
}

.footer-policy-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* --- コピーライト --- */
.footer-copyright {
  text-align: center;
  font-size: 12px;
  color: #b8ecfe;
  font-weight: 500;
}

/* --- グループエリア（白背景） --- */
.footer-group {
  background: #fff;
  padding: 28px 108px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-group-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

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

.footer-group-desc {
  font-size: 14px;
  color: #959595;
  font-weight: 500;
}

.footer-group-title {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s;
}

a.footer-group-title:hover {
  color: #00A7D4;
  opacity: 1;
}

.footer-group-sub {
  font-size: 16px;
  color: #00bfd3;
  font-weight: 600;
  letter-spacing: 0.32px;
}

.footer-group-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-group-links {
  display: flex;
  gap: 40px;
}

.footer-group-link {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-group-link:hover {
  color: #00A7D4;
  opacity: 1;
}

.footer-group-policies {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-group-policy {
  font-size: 14px;
  font-weight: 500;
  color: #959595;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-group-policy:hover {
  color: #00A7D4;
  opacity: 1;
}

.footer-group-sep {
  color: #ccc;
  font-size: 14px;
}

/* ==========================================================
   MEDIA QUERY
   ========================================================== */
@media (max-width: 1024px) {

  /* ヘッダー */
  header {
    height: 55px;
    padding: 0 16px;
    top: 12px;
    left: 12px;
    right: 12px;
    margin: 0;
    border-radius: 15px;
  }

  .header-company-name {
    font-size: 9px;
    white-space: nowrap;
  }

  .logo-area {
    align-items: center;
    gap: 8px;
  }

  .header-logo {
    height: 18px;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .sp-menu {
    max-height: 55px;
  }

  .btn-blue {
    font-size: 14px;
    padding: 13px 40px;
  }

  .btn-white {
    font-size: 14px;
    padding: 13px 40px;
  }

  /* フッター：ホワイトカード */

  .footer-main {
    padding: 10px 10px 40px;
  }
  
  .footer-card {
    flex-direction: column;
    gap: 0;
    padding: 24px 20px;
    border-radius: 15px;
  }

  /* ロゴ+社名を縦積み、ボタンを下に配置 */
  .footer-card-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 24px;
  }

  .footer-card-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer-logo {
    height: 28px;
    flex-shrink: 0;
  }

  .footer-company-name {
    font-size: 13px;
  }

  .footer-btn-mypage {
    flex-shrink: 0;
    font-size: 12px;
    padding: 10px 16px;
  }

  /* ナビ：縦積み＋セクション間スペース */
  .footer-nav {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .footer-nav-col {
    width: 100%;
    padding: 24px 0;
  }

  .footer-nav-col + .footer-nav-col {
    margin-top: 8px;
  }

  /* ポリシーリンク */
  .footer-policies {
    gap: 6px 10px;
    padding: 0 4px;
  }

  .footer-policy-link {
    font-size: 11px;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .footer-policy-sep {
    font-size: 11px;
  }

  /* グループエリア（中央揃え縦積み） */
  .footer-group {
    flex-direction: column;
    align-items: center;
    padding: 36px 24px;
    gap: 8px;
    text-align: center;
  }

  .footer-group-left {
    align-items: center;
    padding-bottom: 24px;
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .footer-group-title {
    font-size: 18px;
  }

  .footer-group-right {
    align-items: center;
    width: 100%;
    gap: 20px;
    padding-top: 8px;
  }

  .footer-group-links {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .footer-group-link {
    font-size: 15px;
  }

  .footer-group-policies {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .footer-group-sep {
    display: none;
  }

  /* 14pxテキストのline-height */
  .sp-accordion li a,
  .footer-nav-link,
  .footer-policy-link,
  .footer-group-desc,
  .footer-group-policy {
    line-height: 1.7;
  }
}

@media (min-width: 1024px) {
.sp-menu {
  display: none;
}
}

/* SP時 <br> 非表示ユーティリティ */
@media (max-width: 768px) {
  .sp-no-br br {
    display: none;
  }
}

/* PC/SP 切り替えユーティリティ（768px） */
@media (max-width: 768px) {
	.sp-hidden { display: none; }
}
@media (min-width: 769px) {
	.sp-show { display: none; }
}

/* SP専用改行・PC専用改行（600px基準） */
.sp-br { display: none; }
@media (max-width: 600px) {
	.sp-br { display: inline; }
	.pc-br { display: none; }
}
