@charset "UTF-8";

:root {
  --shell-margin: 30px;
  --color-primary: #3aa0d8;
  --color-primary-deep: #276BAD;
  --color-brand-border: #6DA3D8;
  --color-primary-light: #75A7D8;
  --color-accent: #f39a4b;
  --color-accent-deep: #e07b25;
  --color-text: #171717;
  --color-subtext: #6c7280;
  --color-surface: #ffffff;
  --color-surface-soft: rgba(255, 255, 255, 0.86);
  --color-border: rgba(31, 36, 48, 0.1);
  --shadow-soft: 0 12px 36px rgba(25, 35, 58, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --content-width: 1200px;
  --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* アンカー遷移時、固定/追従ヘッダー分だけ下げて表示 */
html {
  scroll-padding-top: calc(var(--header-height, 80px) + 16px);
}

:where([id]) {
  scroll-margin-top: calc(var(--header-height, 80px) + 16px);
}

body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--color-text);
  background: #6DA3D8;
  line-height: 1.6;
  letter-spacing: 0.05em;
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  width: calc(100% - (var(--shell-margin) * 2));
  margin: var(--shell-margin);
  background: #fff;
  border-radius: 0 0 clamp(20px, 3.125vw, 50px) clamp(20px, 3.125vw, 50px);
  overflow: clip;
  min-height: 100vh;
}

/* ヘッダーを page-shell の外に出した場合の見た目調整 */
body > .site-header {
  width: calc(100% - (var(--shell-margin) * 2));
  margin: var(--shell-margin) var(--shell-margin) 0;
}

body > .site-header + .page-shell {
  margin-top: 0;
}

.font-lato {
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI",
    "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-variant-numeric: tabular-nums;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container { width: 100%; margin: 0 auto; }

/* ===== header/footer（テンプレ） ===== */
.site-header { position: sticky; top: 0; z-index: 40; }

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 20px 60px 20px;
  background: rgba(255, 255, 255, 1);
  backdrop-filter: blur(14px);
  border-radius: clamp(20px, 3.125vw, 50px) clamp(20px, 3.125vw, 50px) 0 0;
  transition: border-radius 0.3s ease, box-shadow 0.3s ease;
  animation: header-float-down 680ms cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

.is-scrolled .site-header__inner {
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

@keyframes header-float-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header__inner {
    animation: none;
  }
}

@media (max-width: 1370px) {
  .site-header__inner {
    padding: 20px 35px 20px;
  }
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  width: clamp(120px, 10.04vw, 160.68px);
}

.global-nav { justify-self: end; }
.global-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(3px, calc(-40.615px + 4.0385vw), 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.global-nav__item { min-width: 110px; }
.global-nav__link {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 8px 14px 12px;
  border-radius: 14px;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}
.global-nav__link:hover,
.global-nav__link:focus-visible {
  background: rgba(58, 160, 216, 0.12);
  color: var(--color-primary-deep);
  transform: translateY(-1px);
  outline: none;
}
.global-nav__label-en {
  font-size: clamp(0.75rem, 0.528rem + 0.35vw, 0.875rem);
  color: #E89E6D;
  letter-spacing: 0.08em;
  font-weight: 700;
}
.global-nav__label-ja {
  font-size: clamp(0.9375rem, calc(0.2885rem + 0.9615vw), 1.25rem);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.35;
}
.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  display: none;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  color: var(--color-primary-deep);
  cursor: pointer;
  position: relative;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  width: 32px;
  height: 2px;
  margin: 0;
  background: currentColor;
  transition: transform var(--transition), opacity var(--transition);
  transform: translateX(-50%);
}
.menu-toggle::before { top: 14px; }
.menu-toggle span { top: 23px; }
.menu-toggle::after { top: 32px; }
.menu-toggle[aria-expanded="true"]::before {
  transform: translateX(-50%) translateY(9px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span { opacity: 0; }
.menu-toggle[aria-expanded="true"]::after {
  transform: translateX(-50%) translateY(-9px) rotate(-45deg);
}

.footer {
  background: var(--color-brand-border);
  color: var(--color-surface);
  padding: 50px 0 100px;
}
.footer__inner {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: clamp(300px, calc(195.9px + 9.633vw), 350px) auto;
  grid-template-rows: auto auto;
  gap: clamp(24px, 3vw, 40px);
}
.footer__left { grid-row: 1 / 3; }
.footer__logo { width: 140px; margin-bottom: 20px; }
.footer__info {
  font-size: clamp(0.9rem, 1vw, 1.125rem);
  font-weight: 500;
  line-height: 2;
  opacity: 0.9;
}
.footer__nav { 
  align-self: start;
  justify-items: end;
}
.footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 32px);
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer__list a {
  display: inline-block;
  color: var(--color-surface);
  text-decoration: none;
  font-size: clamp(0.875rem, 0.9vw, 1rem);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: .25s ease;
}
.footer__list a:hover {
  transform: translateY(-2px);
  border-bottom: 1px solid var(--color-surface);
}
.footer__copy {
  text-align: right;
  font-size: clamp(0.9rem, 1vw, 1.125rem);
  letter-spacing: 0.08em;
  align-self: end;
}

/* ===== responsive ===== */
@media (max-width: 1080px) {
  :root { --shell-margin: 24px; }
  .site-header__inner {
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    padding-inline: 20px;
  }
  .global-nav__item { min-width: auto; }
  .global-nav__link { padding-inline: 10px; }

  .footer__nav { grid-column: 1 / -1; grid-row: 1; justify-items: center; }
  .footer__list { justify-content: center; }
  .footer__left { grid-column: 1; grid-row: 2; }
  .footer__copy { grid-column: 2; grid-row: 2; align-self: end; text-align: right; }
}

@media (max-width: 920px) {
  .site-header__inner {
    position: relative;
    grid-template-columns: 1fr auto;
    padding: 12px 60px 12px 20px;
  }
  .brand { position: relative; z-index: 90; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .global-nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 70;
    padding: 0;
    background: #fff;
  }
  .site-header.is-open .global-nav { display: block; }
  .global-nav__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 104px 20px 20px;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .global-nav__link {
    justify-items: start;
    padding: 20px 0;
    background: transparent;
    border: 0;
    border-bottom: 2px dotted #6DA3D8;
    border-radius: 0;
  }
  .header-actions {
    position: absolute;
    top: 18px;
    right: 14px;
    justify-self: auto;
    z-index: 90;
  }

}

@media (max-width: 768px) {
  :root { --shell-margin: 16px; }
  body { padding-bottom: calc(105px + env(safe-area-inset-bottom)); }
  .site-header__inner { padding: 7px 12px; }
  .header-actions { top: 9px; right: 10px; }
  .brand { width: 100px; }

  .footer { padding: 20px 0 50px; }
  .footer__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 30px;
    padding: 0 20px;
  }
  .footer__left {
    display: flex;
    align-items: center;
    flex-direction: column;
    grid-column: 1 / -1;
  }
  .footer__info { text-align: center; margin: 0; font-size: 0.875rem; }
  .footer__nav { margin-bottom: 1em; }
  .footer__copy {
    grid-column: 1 / -1;
    grid-row: 3;
    text-align: center;
    margin: 0;
    font-size: 0.875rem;
  }

}

@media (max-width: 540px) {
  .global-nav__list {
    grid-template-columns: 1fr;
    padding: 90px 20px 20px;
  }

  .global-nav__link {
    padding: 15px 0;
  }
}

