@charset "UTF-8";

/* ==============================
   layout.css
   全ページ共通レイアウト
   - パンくずリスト
   - ヘッダー
   - セクション見出し（共通）
   - フッター
   ============================== */

/* ==============================
   パンくずリスト
   ============================== */
.breadcrumb {
  background-color: #f7f9fc;
  border-bottom: 1px solid #e8eef5;
  padding: 10px 60px;
}

.breadcrumb__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1160px;
  font-size: 13px;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  color: #003d70;
  font-weight: 600;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  margin-right: 8px;
  color: #aabbcc;
}

.breadcrumb__link {
  color: #003d70;
  text-decoration: none;
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

.breadcrumb__item--current {
  color: #668aa8;
}

/* ==============================
   ヘッダー
   ============================== */
.header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 70px;
  gap: 80px;
}

.header__brand {
  font-size: 40px;
  font-weight: 700;
  color: #003d70;
  min-width: auto;
  flex-shrink: 0;
}

.header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  gap: 40px;
  margin-left: 0;
}

.nav__item {
  font-size: 14px;
  color: #003d70;
  font-weight: 700;
  transition: color 0.3s ease;
  position: relative;
}

.nav__item:hover {
  color: #003d70;
}

.nav__item::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #003d70;
  transition: width 0.3s ease;
}

.nav__item:hover::after {
  width: 100%;
}

.header__buttons {
  display: flex;
  gap: 16px;
  min-width: auto;
  justify-content: flex-end;
  margin-left: auto;
  flex-shrink: 0;
}

/* ==============================
   共通セクション見出し
   ============================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-heading {
  font-size: 48px;
  font-weight: 700;
  color: #003d70;
  margin-bottom: 20px;
}

.section-heading-line {
  width: 80px;
  height: 3px;
  background-color: #003d70;
  margin: 0 auto;
}

/* ==============================
   フッター
   ============================== */
.footer {
  background-color: #00366b;
  color: #fff;
  padding: 44px 60px 0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 0.9fr 1.2fr;
  gap: 0 36px;
  align-items: start;
  padding-bottom: 32px;
}

.footer__logo {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer__logo:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer__tagline {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

.footer__nav-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer__nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav-list li {
  margin-bottom: 6px;
}

.footer__nav-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s;
}

.footer__nav-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  height: 50px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.footer__contact-btn:hover {
  background-color: #fff;
  color: #003d70;
  border-color: #fff;
}

.footer__bottom {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.footer__legal-link {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  margin-bottom: 6px;
}

.footer__legal-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==============================
   レスポンシブ - 1200px
   ============================== */
@media (max-width: 1200px) {
  /* パンくずリスト */
  .breadcrumb {
    padding: 10px 40px;
  }

  /* ヘッダー */
  .header__container {
    padding: 0 30px;
  }

  .header__nav {
    gap: 24px;
  }

  .nav__item {
    font-size: 13px;
  }

  /* セクション見出し */
  .section-heading {
    font-size: 40px;
  }

  /* フッター */
  .footer {
    padding: 44px 40px 0;
  }

  .footer__inner {
    grid-template-columns: 1.2fr 0.85fr 0.85fr 0.85fr 1.1fr;
    gap: 0 24px;
  }

  .footer__logo {
    font-size: 26px;
  }
}

/* ==============================
   レスポンシブ - 1400px（ナビ非表示）
   ============================== */
@media (max-width: 1400px) {
  .header__nav {
    display: none;
  }
}

/* ==============================
   レスポンシブ - 1000px（フッター折り返し）
   ============================== */
@media (max-width: 1000px) {
  .footer {
    padding: 50px 40px 0;
  }

  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 40px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ==============================
   レスポンシブ - 900px
   ============================== */
@media (max-width: 900px) {
  /* パンくずリスト */
  .breadcrumb {
    padding: 10px 30px;
  }

  /* ヘッダー */
  .header__container {
    height: 60px;
    padding: 0 16px;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    justify-content: space-between;
  }

  .header__brand {
    font-size: 28px;
    min-width: auto;
    flex-shrink: 0;
  }

  .header__nav {
    display: none;
  }

  .header__buttons {
    display: flex;
    gap: 8px;
    min-width: auto;
    justify-content: flex-end;
    flex-shrink: 0;
  }

  .header__entry-button {
    display: none;
  }

  .header__recruit-button {
    display: none;
  }

  /* ボタン（全ページ共通） */
  .btn {
    padding: 10px 16px;
    font-size: 14px;
  }

  .header__contact-button {
    font-size: 12px;
  }

  .btn--large {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* セクション見出し */
  .section-header {
    margin-bottom: 40px;
  }

  .section-heading {
    font-size: 36px;
    margin-bottom: 16px;
  }
}

/* ==============================
   レスポンシブ - 640px
   ============================== */
@media (max-width: 640px) {
  /* パンくずリスト */
  .breadcrumb {
    padding: 10px 16px;
  }

  .breadcrumb__list {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  /* ヘッダー */
  .header__container {
    height: 60px;
    padding: 0 16px;
  }

  .header__brand {
    font-size: 24px;
  }

  .header__nav {
    display: none;
  }

  /* ボタン（全ページ共通） */
  .btn--large {
    width: 100%;
  }

  /* セクション見出し */
  .section-header {
    margin-bottom: 32px;
  }

  .section-heading {
    font-size: 28px;
    margin-bottom: 12px;
  }

  .section-heading-line {
    width: 60px;
    height: 2px;
  }

  /* フッター */
  .footer {
    padding: 40px 16px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-bottom: 36px;
  }

  .footer__brand {
    grid-column: auto;
  }

  .footer__logo {
    font-size: 26px;
  }

  .footer__contact-btn {
    width: 100%;
  }

  .footer__bottom {
    padding: 18px 0 24px;
  }
}

/* ==============================
   ハンバーガーメニュー
   ============================== */
.header__menu-button,
.header__menu-backdrop,
.header__menu-actions {
  display: none;
}

body.is-menu-open {
  overflow: hidden;
}

@media (max-width: 1400px) {
  .header__container {
    position: relative;
    z-index: 3;
    gap: 0;
    background-color: #fff;
  }

  .header__menu-button {
    width: 44px;
    height: 44px;
    margin-left: 12px;
    padding: 0;
    flex: 0 0 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #003d70;
    background-color: #fff;
    border: 1px solid #003d70;
    border-radius: 6px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }

  .header__menu-button:focus-visible {
    outline: 3px solid rgba(0, 61, 112, 0.25);
    outline-offset: 2px;
  }

  .header__menu-icon {
    width: 22px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .header__menu-icon-line {
    width: 100%;
    height: 2px;
    display: block;
    background-color: currentcolor;
    border-radius: 999px;
    transform-origin: center;
    transition:
      transform 0.25s ease,
      opacity 0.2s ease;
  }

  .header.is-menu-open .header__menu-icon-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header.is-menu-open .header__menu-icon-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .header.is-menu-open .header__menu-icon-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .header__nav {
    width: min(360px, 100%);
    height: calc(100vh - 70px);
    height: calc(100dvh - 70px);
    margin: 0;
    padding: 20px 24px 28px;
    position: fixed;
    top: 70px;
    right: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    background-color: #fff;
    box-shadow: -12px 16px 28px rgba(0, 36, 70, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition:
      transform 0.25s ease,
      opacity 0.2s ease,
      visibility 0.25s ease;
  }

  .header.is-menu-open .header__nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .header__nav .nav__item {
    width: 100%;
    padding: 16px 4px;
    display: block;
    flex: 0 0 auto;
    color: #003d70;
    border-bottom: 1px solid #e0e9f1;
    font-size: 16px;
    line-height: 1.6;
  }

  .header__nav .nav__item::after {
    display: none;
  }

  .header__menu-backdrop {
    position: fixed;
    inset: 70px 0 0;
    z-index: 1;
    display: block;
    background-color: rgba(0, 31, 61, 0.42);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease;
  }

  .header.is-menu-open .header__menu-backdrop {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 900px) {
  .header__nav {
    top: 60px;
    height: calc(100vh - 60px);
    height: calc(100dvh - 60px);
  }

  .header__menu-backdrop {
    inset: 60px 0 0;
  }

  .header__menu-actions {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .header__menu-action {
    width: 100%;
    min-height: 48px;
  }

  .header__menu-action--contact,
  .header__menu-action--entry {
    display: none;
  }
}

@media (max-width: 640px) {
  .header__menu-button {
    width: 40px;
    height: 40px;
    margin-left: 8px;
    flex-basis: 40px;
  }

  .header__nav {
    width: 100%;
    padding: 16px 20px 24px;
  }

  .header__nav .nav__item {
    padding: 14px 4px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header__menu-icon-line,
  .header__nav,
  .header__menu-backdrop {
    transition: none;
  }
}
