

:root {

  --phi: 1.618;
  --silver: 1.4142;

  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   19px;
  --fs-lg:   24px;
  --fs-xl:   31px;
  --fs-2xl:  39px;
  --fs-3xl:  50px;
  --fs-4xl:  63px;
  --fs-5xl:  81px;

  --sp-1: 8px;
  --sp-2: 11px;
  --sp-3: 16px;
  --sp-4: 23px;
  --sp-5: 32px;
  --sp-6: 45px;
  --sp-7: 64px;
  --sp-8: 91px;
  --sp-9: 128px;

  --ar-golden:    1.618 / 1;
  --ar-golden-p:  1 / 1.618;
  --ar-silver:    1.4142 / 1;
  --ar-silver-p:  1 / 1.4142;

  --c-text:     #242430;
  --c-text-2:   #5a5a6a;
  --c-text-3:   #8a8a98;
  --c-bg:       #ffffff;
  --c-soft:     #f7f5ee;
  --c-washi:    #ebe5d7;
  --c-border:   #e8e6e0;
  --c-line:     #d8d5cc;

  --c-sea:      #1d5e9f;
  --c-sea-d:    #143f6c;
  --c-sea-soft: #e5eef6;
  --c-yamabuki: #d9a228;
  --c-shu:      #c7472a;
  --c-shu-d:    #8a2e1a;
  --c-moegi:    #6a8c4a;
  --c-sumi:     #1c1b18;

  --c-kinari:   #f6efe1;
  --c-ebicha:   #883a2e;

  --f-gothic:   "Noto Sans JP", "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, sans-serif;
  --f-mincho:   "Shippori Mincho", "Noto Serif JP", "ヒラギノ明朝 Pro", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-en:       "DM Sans", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --max-w: 1200px;
  --gutter: var(--sp-5);
  --r: 6px;

  --shadow-card: 0 4px 18px -8px rgba(36, 36, 48, 0.18);
  --shadow-deep: 0 18px 44px -16px rgba(36, 36, 48, 0.28);

  --header-h: 64px;
}

.site-header, .site-footer {
  font-family: var(--f-gothic);
  font-size: var(--fs-base);
  line-height: 1.85;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
}
.site-header *, .site-footer * { box-sizing: border-box; }
.site-header a, .site-footer a { text-decoration: none; }
.site-header a:hover, .site-footer a:hover { text-decoration: none; opacity: 0.65; }
.site-header img, .site-footer img { max-width: 100%; display: block; }
.site-header h4, .site-footer h4, .site-footer h2 { margin: 0; font-weight: 700; line-height: 1.4; }

:where(#search-modal, .memories-popup-overlay, .memory-popup-overlay, .experience-rail, .experience-drawer, .site-update-toast, .lock-hint) {
  font-family: var(--f-gothic);
  font-size: var(--fs-base);
  line-height: 1.85;
  letter-spacing: normal;
  font-weight: 400;
  color: var(--c-text);
}
:where(#search-modal, .memories-popup-overlay, .memory-popup-overlay) p { margin-block: 1em; }
:where(#search-modal, .memories-popup-overlay, .memory-popup-overlay) :is(h1, h2, h3, h4) { margin: 0; font-weight: 700; letter-spacing: 0.02em; line-height: 1.4; }
:where(#search-modal, .memories-popup-overlay, .memory-popup-overlay, .experience-rail, .experience-drawer) a { color: var(--c-text); text-decoration: none; }
:where(#search-modal, .memories-popup-overlay, .memory-popup-overlay, .experience-rail, .experience-drawer) a:hover { text-decoration: none; opacity: 0.65; }

:where(#search-modal, .memories-popup-overlay, .memory-popup-overlay) button { padding: revert; margin: revert; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  z-index: 100;
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 18px -10px rgba(36,36,48,0.18); }

.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 100%;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text);
  flex-shrink: 0;
}
.brand__mark {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: grid; place-items: center;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand__name {
  font-family: var(--f-mincho);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0.06em;
}
.brand__sub {
  font-family: var(--f-en);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--c-text-2);
  text-transform: uppercase;
  font-weight: 600;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: 14px;
  font-weight: 700;
}
.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--c-text);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -6px;
  width: 0; height: 2px;
  background: var(--c-sea);
  transition: width 0.3s ease, left 0.3s ease;
}
.nav a:hover { opacity: 1; }

.nav a:hover::after { width: 100%; left: 0; }
.nav a.is-active { font-weight: 700; }

.nav a { white-space: nowrap; }
@media (max-width: 1240px) {
  .nav.nav--6 { gap: 16px; font-size: 13px; }
}
@media (max-width: 1060px) {
  .nav.nav--6 { gap: 11px; font-size: 12px; }
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}
.head-tools__icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--c-text-2);
  transition: all 0.2s ease;
}
.head-tools__icon:hover { background: var(--c-soft); color: var(--c-text); opacity: 1; }
.head-tools__icon svg { width: 16px; height: 16px; }
.head-tools__cta {
  margin-left: 6px;
  padding: 9px 18px;
  background: var(--c-shu);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  letter-spacing: 0.06em;
}

.head-tools__search {
  padding: 9px 16px;
  background: var(--c-soft);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

:root { --c-search: #2D6D72; --c-search-d: #1f5257; }

.head-tools { min-width: 0; }
.head-tools .head-tools__search {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 1 230px;
  width: 230px;
  min-width: 120px;
  height: 38px;
  padding: 0 14px;
  background: #fff;
  border: 1.5px solid var(--c-search);
  border-radius: 999px;
  color: var(--c-text-3);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: text;
  transform: none;
}
.head-tools .head-tools__search:hover {
  background: #fff;
  border-color: var(--c-search-d);
  color: var(--c-text-3);
  box-shadow: 0 0 0 3px rgba(45, 109, 114, 0.12);
  transform: none;
}
.head-tools__search-ph { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.head-tools__search-ico { font-size: 14px; line-height: 1; flex-shrink: 0; }
.head-tools__search-sp { display: none; }
.head-tools__search:hover {
  background: var(--c-sea-soft);
  border-color: var(--c-sea);
  color: var(--c-sea);
}
.head-tools__cta:hover { background: var(--c-shu-d); color: #fff; opacity: 1; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  color: var(--c-text);
}

body { padding-top: var(--header-h); }

.site-footer {
  margin-top: 0;
  padding: var(--sp-7) 0 var(--sp-5);
  background: #fff;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-text);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.618fr 1fr 1fr 1fr;
  gap: var(--sp-5);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--c-border);
}
.site-footer .brand__name { font-size: 19px; }
.site-footer__about p { margin: 18px 0 0; color: var(--c-text-2); line-height: 2; }

.site-footer h4, .site-footer h2 {
  font-size: 13px;
  margin-bottom: 16px;
  letter-spacing: 0.1em;
  color: var(--c-text);
}
.site-footer__col a { display: block; padding: 5px 0; color: var(--c-text-2); font-size: 13px; }
.site-footer__col a:hover { color: var(--c-sea); opacity: 1; }

.site-footer__col a[hidden] { display: none; }
.site-footer__contact {
  font-style: normal;
  font-size: 12px;
  color: var(--c-text-2);
  line-height: 2;
  margin-top: 16px;
}
.site-footer__contact strong { display: block; color: var(--c-text); font-size: 13px; margin-bottom: 6px; }
.site-footer__bottom {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.site-footer__copy {
  font-family: var(--f-en);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-text-3);
}

.site-footer__brand { font-family: var(--f-mincho); }

.site-footer__ai {
  margin: 26px 0 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: var(--c-text);
}
.site-footer__ai s { text-decoration-thickness: 2px; }
.site-footer__ai .ai-faint { opacity: 0.45; }

.site-footer__fiction { margin: 10px 0 0; font-size: 11px; line-height: 1.8; color: var(--c-text-3); }
.site-footer__sns {
  display: flex; gap: 6px;
}
.site-footer__sns a {
  width: 34px; height: 34px;
  background: var(--c-soft);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--c-text-2);
}
.site-footer__sns a:hover { background: var(--c-sea); color: #fff; opacity: 1; }
.site-footer__sns svg { width: 14px; height: 14px; }

.site-footer > .container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }

@media (max-width: 980px) {
  .nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .head-tools__cta { display: none; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 24px; }
  .site-footer__about { padding-bottom: 14px; border-bottom: 1px solid var(--c-border); }
  .brand__sub { display: none; }

  .site-footer__bottom { justify-content: flex-start; }

  .site-header__inner { gap: 10px; }
  .head-tools { gap: 2px; }
  .head-tools .head-tools__search {
    flex: 0 0 36px;
    width: 36px; height: 40px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--c-search);
    color: #fff;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
  }
  .head-tools .head-tools__search:hover { background: var(--c-search-d); box-shadow: none; }
  .head-tools__search-ph { display: none; }
  .head-tools__search-ico { font-size: 13px; }
  .head-tools__search-sp {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
  }
  .head-tools__icon[aria-label="言語"] { display: none; }

  .site-header .brand { flex-shrink: 1; min-width: 0; }
  .site-header .brand__text { min-width: 0; }
  html[lang="en"] .site-header .brand__name,
  html[lang="es"] .site-header .brand__name { font-size: 16px; letter-spacing: .02em; line-height: 1.15; }
}

.nav.is-open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  padding: 24px var(--gutter) 28px;
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 8px 18px -10px rgba(36,36,48,0.2);
  gap: 18px;
  align-items: flex-start;
}

