/* Turn Navigator site shared styles (unified v1.1.0) */
:root {
  --bg: #E9FBF6;
  --surface: rgba(255, 255, 255, .72);
  --surface-2: rgba(255, 255, 255, .90);
  --border: rgba(19, 43, 52, .12);
  --text: #0B1F24;
  --muted: rgba(11, 31, 36, .65);
  --brand: #18B38B;
  --brand-2: #1D9BE0;
  --shadow: 0 18px 60px rgba(4, 37, 34, .14);
  --shadow-soft: 0 10px 26px rgba(4, 37, 34, .10);
  --radius: 20px;
  --radius-2: 28px;
  --max: 1080px;

  /* system font stack (Segoe UI含む) */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --tn-header-h: 76px;  /* JSで上書きされる */
  --tn-footer-h: 56px;  /* 必要なら調整 */
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 20% 0%, rgba(24, 179, 139, .18), transparent 55%),
    radial-gradient(900px 520px at 80% 10%, rgba(29, 155, 224, .12), transparent 60%),
    linear-gradient(180deg, var(--bg), #ffffff 90%);
}

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

a:hover {
  text-decoration: underline;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

/* ===== Header (force fixed) ===== */
#tn-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
}

/* ヘッダーの“中身”も透過させない（見た目維持） */
#tn-header header {
  background: rgba(233, 251, 246, .72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(19, 43, 52, .08);
}

/* fixed にした分、本文をヘッダー高さ分だけ下げる */
body{
  padding-top: var(--tn-header-h, 76px);
  padding-bottom: 0; /* デフォはフッター固定しない */
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: auto;
}

.skip-link:focus{
  left: 16px;
  top: 16px;
  z-index: 100000;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
header,
.tn-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(233, 251, 246, .72);
  border-bottom: 1px solid rgba(19, 43, 52, .08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.site-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.brandmark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #0B1F24;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  flex: 0 0 auto;
}

.brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brandtext strong {
  font-size: 15px;
  letter-spacing: .2px;
}

.brandtext span {
  font-size: 12px;
  color: var(--muted);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(19, 43, 52, .10);
  box-shadow: 0 8px 22px rgba(4, 37, 34, .06);
  font-size: 13px;
  color: rgba(11, 31, 36, .86);
  white-space: nowrap;
}

.pill.is-active {
  background: rgba(29, 155, 224, .12);
  border-color: rgba(29, 155, 224, .35);
  text-decoration: none;
}

.pill.primary {
  background: rgba(24, 179, 139, .12);
  border-color: rgba(24, 179, 139, .32);
}

.pill.ghost {
  background: rgba(255, 255, 255, .45);
}

.pill:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

.pill:active {
  transform: translateY(1px);
}

.lang {
  display: flex;
  gap: 8px;
  padding-left: 6px;
  border-left: 1px solid rgba(19, 43, 52, .10);
  margin-left: 6px;
}

.lang button {
  cursor: pointer;
  border: 1px solid rgba(19, 43, 52, .14);
  background: rgba(255, 255, 255, .55);
  padding: 10px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--font);
  color: rgba(11, 31, 36, .88);
  box-shadow: 0 8px 22px rgba(4, 37, 34, .06);
}

.lang button[aria-pressed="true"] {
  background: rgba(29, 155, 224, .12);
  border-color: rgba(29, 155, 224, .35);
  font-weight: 700;
}

/* Hero */
.hero {
  padding: 38px 0 16px;
}

.heroCard {
  background: var(--surface);
  border: 1px solid rgba(19, 43, 52, .10);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.heroInner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  padding: 28px;
  align-items: center;
}

.badgeRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(19, 43, 52, .10);
  font-size: 12px;
  color: rgba(11, 31, 36, .8);
}

.badge strong {
  font-weight: 800;
  color: rgba(11, 31, 36, .92);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: .2px;
}

.lead {
  margin: 0 0 16px;
  color: rgba(11, 31, 36, .72);
  font-size: 15px;
  line-height: 1.75;
}

.points {
  margin: 0;
  padding-left: 18px;
  color: rgba(11, 31, 36, .78);
  line-height: 1.8;
  font-size: 14px;
}

.ctaRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(19, 43, 52, .12);
  background: rgba(255, 255, 255, .75);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
}

.btn.primary {
  background: rgba(24, 179, 139, .16);
  border-color: rgba(24, 179, 139, .38);
}

.btn.dark {
  background: rgba(11, 31, 36, .88);
  color: rgba(255, 255, 255, .92);
  border-color: rgba(11, 31, 36, .10);
}

.heroMedia {
  display: grid;
  place-items: center;
  padding: 8px;
}

.promoTile {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(19, 43, 52, .10);
  background: rgba(255, 255, 255, .80);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  place-items: center;
  min-height: 240px;
}

.promoTile img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Sections */
section {
  padding: 18px 0 0;
}

.sectionTitle {
  font-size: 18px;
  margin: 22px 0 10px;
  letter-spacing: .2px;
}

.sectionSub {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

/* Screenshot grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

figure {
  margin: 0;
  background: var(--surface-2);
  border: 1px solid rgba(19, 43, 52, .10);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(4, 37, 34, .08);
  overflow: hidden;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
}

figcaption {
  padding: 10px 12px 12px;
  font-size: 13px;
  color: rgba(11, 31, 36, .78);
  line-height: 1.5;
}

figcaption small {
  display: block;
  color: rgba(11, 31, 36, .55);
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  background: var(--surface-2);
  border: 1px solid rgba(19, 43, 52, .10);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(4, 37, 34, .08);
  padding: 14px 14px 12px;
  min-height: 120px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.card p {
  margin: 0;
  color: rgba(11, 31, 36, .70);
  font-size: 13px;
  line-height: 1.7;
}

/* Footer */
.tn-site-footer{
  background: rgba(233, 251, 246, .72);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(19, 43, 52, .08);
}

footer {
  padding: 26px 0 34px;
  color: rgba(11, 31, 36, .60);
  font-size: 13px;
}

.footRow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(19, 43, 52, .10);
  padding-top: 14px;
  margin-top: 14px;
}

.footLinks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Language sections */
[data-lang] {
  display: none;
}

[data-lang].active {
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  .heroInner {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .brand {
    min-width: unset;
  }

  .nav {
    align-items: flex-start;
  }

  .navlinks {
    justify-content: flex-start;
  }

  .lang {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* Lightbox (shared) */
#tn-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .75);
  z-index: 999999;
}

#tn-lightbox.is-open {
  display: flex;
}

#tn-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
}

#tn-lightbox .tn-lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

#tn-lightbox .tn-lb-btn:hover {
  background: rgba(255, 255, 255, .14);
}

#tn-lightbox .tn-lb-prev {
  left: 16px;
}

#tn-lightbox .tn-lb-next {
  right: 16px;
}

#tn-lightbox .tn-lb-close {
  top: 18px;
  right: 18px;
  transform: none;
  font-size: 28px;
}

img[data-tn-gallery] {
  cursor: zoom-in;
}

/* ===== Fixed footer (desktop only by width) ===== */
@media (min-width: 900px){
  .tn-site-footer{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
  }

  /* ★ここがポイント：bodyじゃなくhtml */
  html{
    padding-bottom: var(--tn-footer-h, 108px);
  }
}

@media (min-width: 900px){
  .tn-footer-spacer{
    height: var(--tn-footer-h, 108px);
  }
}

/* 見出しが固定ヘッダーに隠れない */
:target{
  scroll-margin-top: var(--tn-header-h, 76px);
}

/* 下も少し余裕（固定フッター用） */
main{
  scroll-margin-bottom: var(--tn-footer-h, 108px);
}

.tn-lang { display:flex; gap:10px; margin-left:10px; }
.tn-lang-btn{
  appearance:none;
  border:1px solid rgba(19,43,52,.18);
  background: rgba(255,255,255,.7);
  border-radius:999px;
  padding:10px 14px;
  cursor:pointer;
  font: inherit;
}
.tn-lang-btn.is-active{
  outline:2px solid rgba(31,142,255,.25);
}