/* =============================================
   PRAXIS — 共通デザイン
   色はロゴの黒と水色を基準に、面は白・黒・グレーで構成する
   ============================================= */

:root {
  --ink: #0b0b0b;
  --paper: #fff;
  --mist: #f1f1ef;
  --accent: #1397d7;
  --mute: #5e5e5e;
  --mute-dark: #a6a6a6;
  --line: rgba(11, 11, 11, 0.16);
  --line-dark: rgba(255, 255, 255, 0.22);

  --gutter: clamp(20px, 4vw, 64px);
  --section-space: clamp(96px, 13vw, 208px);
  --header-height: 76px;

  --font-ja: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'Inter Tight', 'Helvetica Neue', Arial, var(--font-ja);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* ロゴの斜線と同じ角度(ボタンのホバーなどに使う) */
  --logo-angle: 38deg;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  font-feature-settings: 'palt';
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
p,
li,
summary {
  word-break: auto-phrase;
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sp-only {
  display: none;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ── 見出し ── */

.eyebrow {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
}

.eyebrow span {
  display: inline-block;
  margin-right: 0.35em;
  color: var(--accent);
  font-weight: 600;
}

.section-head {
  padding-inline: var(--gutter);
}

.section-head__title {
  margin-top: clamp(24px, 3vw, 40px);
  font-size: clamp(36px, 6.2vw, 96px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.035em;
}

/* ── リンク ── */

.arrow-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 48px;
  padding-block: 10px;
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 1.5px solid currentColor;
}

.arrow-link__icon {
  flex: none;
  font-family: var(--font-en);
  font-weight: 500;
  transition: transform 0.5s var(--ease-out);
}

.arrow-link--quiet {
  font-weight: 500;
  border-bottom-color: var(--line);
}

.text-button {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ボタン:ホバーでロゴと同じ角度の面が横切る */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  padding-inline: 24px;
  overflow: hidden;
  isolation: isolate;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s, background 0.3s;
}

.btn--solid {
  background: var(--ink);
  color: var(--paper);
}

.btn--solid::before {
  content: '';
  position: absolute;
  inset: 0 -40%;
  z-index: -1;
  background: var(--accent);
  transform: skewX(calc(var(--logo-angle) * -1)) translateX(-120%);
  transition: transform 0.7s var(--ease-out);
}

.btn--line {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

/* ── ヘッダー ── */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding-inline: var(--gutter);
  color: var(--ink);
  transition: color 0.3s, transform 0.5s var(--ease-out);
}

.site-header.is-on-dark {
  color: var(--paper);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.logo-svg {
  width: 116px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 36px);
  font-family: var(--font-en);
  font-size: 16px;
}

.site-nav__link {
  position: relative;
  display: inline-flex;
  justify-content: center;
  min-width: 44px;
  padding-block: 12px;
}

.site-nav__link::after {
  content: '';
  position: absolute;
  inset: auto 0 8px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease-out);
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: clamp(4px, 1vw, 16px);
  padding-inline: 24px;
  font-family: var(--font-ja);
  font-size: 16px;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  transition: background 0.3s, color 0.3s;
}

.is-on-dark .site-nav__cta,
.is-on-dark .site-header__cta {
  background: var(--paper);
  color: var(--ink);
}

.site-header__cta {
  display: none;
  align-items: center;
  min-height: 44px;
  margin-left: auto;
  padding-inline: 16px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--ink);
  color: var(--paper);
}

.menu-button {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  min-width: 44px;
  font-family: var(--font-en);
  font-size: 15px;
}

.menu-button__mark {
  position: relative;
  width: 24px;
  height: 10px;
}

.menu-button__mark::before,
.menu-button__mark::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}

.menu-button__mark::before {
  top: 0;
}

.menu-button__mark::after {
  top: 8px;
}

.menu-button[aria-expanded='true'] .menu-button__mark::before {
  top: 4px;
  transform: rotate(38deg);
}

.menu-button[aria-expanded='true'] .menu-button__mark::after {
  top: 4px;
  transform: rotate(-52deg);
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  padding: var(--header-height) var(--gutter) 40px;
  background: var(--ink);
  color: var(--paper);
  overflow-y: auto;
}

.menu-panel[hidden] {
  display: none;
}

.menu-panel nav {
  width: 100%;
}

.menu-panel__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-block: 12px;
  font-size: clamp(28px, 8.4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  border-top: 1px solid var(--line-dark);
}

.menu-panel__no {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 500;
  color: var(--mute-dark);
  letter-spacing: 0;
}

/* ── フッター ── */

.site-footer {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  grid-template-rows: auto 1fr auto;
  column-gap: 40px;
  padding: clamp(40px, 4.4vw, 64px) var(--gutter) 32px;
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--line-dark);
}

/* ロゴをリンクの左に置き、フッターの高さをリンクの高さに収める */
.site-footer__top {
  display: contents;
}

.site-footer__desc {
  font-size: 16px;
  line-height: 1.9;
  color: var(--mute-dark);
}

.site-footer__nav {
  grid-column: 3;
  grid-row: 1 / -1;
  display: grid;
  align-content: start;
  justify-items: start;
  font-size: 16px;
}

.site-footer__nav a,
.site-footer__privacy {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-align: left;
}

.site-footer__logo {
  grid-column: 1 / span 2;
  grid-row: 2;
  align-self: end;
  margin-top: clamp(32px, 3.4vw, 48px);
}

.site-footer__logo .logo-svg {
  width: min(38vw, 560px);
}

.site-footer__copy {
  grid-column: 1 / span 2;
  grid-row: 3;
  margin-top: 16px;
  font-family: var(--font-en);
  color: var(--mute-dark);
}

.site-footer__copy small {
  font-size: 13px;
}

/* ── プライバシーポリシー ── */

.privacy {
  width: min(720px, calc(100vw - 32px));
  max-height: min(80vh, 760px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  overflow: hidden;
}

.privacy[open] {
  display: flex;
  flex-direction: column;
}

.privacy::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.privacy__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.privacy__title {
  font-size: 18px;
  font-weight: 700;
}

.privacy__close {
  min-width: 44px;
  min-height: 44px;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy__body {
  padding: 24px;
  overflow-y: auto;
  font-size: 16px;
}

.privacy__body h3 {
  margin-top: 28px;
  font-size: 15px;
  font-weight: 700;
}

.privacy__body li::before {
  content: '・';
}

.privacy__date {
  margin-top: 28px;
  color: var(--mute);
}

/* ── 404 ── */

.not-found {
  min-height: 80vh;
  padding: calc(var(--header-height) + 96px) var(--gutter) 96px;
}

.not-found__title {
  margin-block: 32px;
  font-size: clamp(40px, 8vw, 120px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.not-found__text {
  margin-bottom: 40px;
}

/* ── 表示アニメーション(JSが無効なら最初から表示) ── */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ── 確認用:仮原稿の表示 ── */

.draft-toggle {
  position: fixed;
  right: 8px;
  top: 50%;
  z-index: 150;
  min-height: 32px;
  padding: 10px 4px;
  writing-mode: vertical-rl;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: #000;
  background: #ffe14d;
}

.show-drafts [data-draft] {
  outline: 2px dashed #ff2f92;
  outline-offset: 4px;
  background: rgba(255, 47, 146, 0.1);
}

@media (hover: hover) {
  .site-nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .site-nav__cta:hover,
  .is-on-dark .site-nav__cta:hover {
    background: var(--accent);
    color: var(--ink);
  }

  .btn--solid:hover::before {
    transform: skewX(calc(var(--logo-angle) * -1)) translateX(0);
  }

  .btn--solid:hover {
    color: var(--ink);
  }

  .btn--line:hover {
    background: var(--ink);
    color: var(--paper);
  }

  .btn:hover .arrow-link__icon {
    transform: translateX(6px);
  }

  .btn--line:hover .arrow-link__icon {
    transform: translateY(4px);
  }

  .arrow-link:hover .arrow-link__icon {
    transform: translateX(8px);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .sp-only {
    display: inline;
  }

  .logo-svg {
    width: 96px;
  }

  .site-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
    margin-left: 14px;
  }

  .site-header__cta {
    display: inline-flex;
  }

  .site-footer {
    display: block;
    padding-bottom: 24px;
  }

  .site-footer__top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer__nav {
    grid-column: auto;
    grid-row: auto;
  }

  .site-footer__logo .logo-svg {
    width: min(68vw, 310px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
