/* Wintavia の紹介ページ。色は Yorihako Studio の仮の決まり（紺の地に差し色を少し）と Wintavia の色（水色〜青） */
:root {
  --navy: #011045;        /* Studio の主色 */
  --navy-2: #0b1a52;
  --panel: #0f1f5c;
  --text: #ffffff;
  --muted: #c3cde6;
  --accent: #22d3ee;      /* Wintavia の差し色 */
  --accent-strong: #01b6d8;
  --line: rgba(255, 255, 255, 0.12);
  --light-bg: #f4f7fb;
  --light-text: #0b1a40;
  --light-muted: #46557a;
  --radius: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
/* 日本語のときは日本語のフォントを先に（中国語の字形にならないように） */
:lang(ja) body, html:lang(ja) body {
  font-family: "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.8;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
.top { position: sticky; top: 0; z-index: 10; background: rgba(1, 16, 69, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: 0.01em; }
.brand img { border-radius: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button {
  font: inherit; font-size: 14px; color: var(--muted); background: transparent; border: 0; padding: 6px 14px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--navy); font-weight: 700; }
.lang button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* 最初の画面 */
.hero { padding: 56px 0 64px; background: radial-gradient(1200px 500px at 80% 0%, #12307a 0%, var(--navy) 60%); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
h1, h2, h3 { text-wrap: balance; }
/* 日本語の見出しは文節の切れ目で折り返す（「文書／を、」のような折り返しを避ける。対応していないブラウザでは今までどおり） */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { word-break: auto-phrase; }
h1 { font-size: clamp(30px, 5.2vw, 50px); line-height: 1.2; margin: 0 0 18px; letter-spacing: -0.01em; }
:lang(ja) h1 { letter-spacing: 0; line-height: 1.35; font-size: clamp(28px, 4.4vw, 40px); }
h1 { white-space: pre-line; }   /* 文言の \n で改行する（日本語の見出しを読みやすい位置で折る） */
.lead { font-size: clamp(17px, 2.1vw, 20px); color: var(--muted); margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.button {
  display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; font-size: 16px;
}
.button.primary { background: var(--accent); color: var(--navy); }
.button.primary:hover { background: #67e8f9; }
.text-link { color: var(--text); font-weight: 600; }
.note { color: var(--muted); font-size: 14px; margin: 18px 0 0; }

/* 画面の画像: 素材は窓だけ（透明・余白なし）なので、ここで地の色・余白・影を付ける。
   地は紺のタブバーとも明るい Office とも違う中くらいの青にする（同じ紺だとタブバーの端が溶ける） */
.shot {
  margin: 0;
  padding: clamp(10px, 2.4vw, 26px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #2a63c9 0%, #0e8fb0 100%);
}
.shot .frame { border-radius: 6px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.shot img { width: 100%; }
/* 狭い画面（スマホ）: 画像全体だと字が小さすぎるので、左側（タブバーと文書の一部）を 2 倍で見せる */
@media (max-width: 640px) {
  .shot .frame { aspect-ratio: 822 / 992; }
  .shot img { width: 200%; max-width: none; }
}

/* 画像を押すと大きく見られる（右下の印で押せることを示す） */
.shot[role="button"] { position: relative; cursor: zoom-in; }
.shot[role="button"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.shot[role="button"]::after {
  content: ""; position: absolute; right: 14px; bottom: 14px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(1, 16, 69, 0.78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5 5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 20px no-repeat;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); transition: transform 0.15s;
}
.shot[role="button"]:hover::after { transform: scale(1.1); }

/* 大きく見る画面 */
.viewer {
  width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; margin: 0; padding: 0; border: 0;
  background: transparent; overflow: auto;
}
.viewer::backdrop { background: rgba(1, 8, 32, 0.88); }
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer img {
  max-width: min(96vw, 1644px); max-height: 92vh; width: auto; height: auto; border-radius: 6px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5); background: #fff;
}
.viewer-close {
  position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.viewer-close:hover { background: rgba(255, 255, 255, 0.26); }
/* 狭い画面: 幅に収めると小さいままなので、高さに合わせて大きく出し、横に動かして見る（左端のタブバーから） */
@media (max-width: 640px) {
  .viewer[open] { justify-content: flex-start; }
  .viewer img { max-width: none; max-height: none; height: min(78vh, 992px); margin: 0 12px; }
}
.viewer-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* できること */
.features { padding: 64px 0 40px; background: var(--light-bg); color: var(--light-text); }
.features a { color: #0e7490; }
h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.3; margin: 0 0 16px; }
.features h2 { margin-bottom: 36px; }
h3 { font-size: clamp(20px, 2.4vw, 24px); line-height: 1.35; margin: 0 0 10px; }
.feature { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; margin-bottom: 56px; }
.feature p { color: var(--light-muted); font-size: 17px; margin: 0; }
.more { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
.more li { background: #ffffff; border: 1px solid #dbe3f0; border-radius: var(--radius); padding: 18px 20px; }
.more strong { display: block; font-size: 17px; margin-bottom: 4px; }
.more span { color: var(--light-muted); }

/* コマンドと AI・プライバシー */
.band { padding: 64px 0; background: var(--navy-2); }
.band p { color: var(--muted); font-size: 17px; }
.two { display: grid; grid-template-columns: 1fr; gap: 40px; }

/* インストール */
.install { padding: 64px 0; background: var(--navy); }
.install ol { padding-left: 1.4em; margin: 0 0 16px; font-size: 17px; }
.install li { margin-bottom: 8px; }
.small { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.plain { padding-left: 1.2em; margin: 0; font-size: 17px; color: var(--muted); }
.plain li { margin-bottom: 8px; }

/* フッター */
.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.maker { display: flex; align-items: center; gap: 10px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.contact-title { margin-top: 40px; }
.install .text-link { color: var(--accent); }
.maker img { border-radius: 6px; }

/* 広い画面: 文と画像を横に並べる（画像を左右交互に） */
@media (min-width: 900px) {
  .hero { padding: 80px 0 90px; }
  .hero-inner { grid-template-columns: 6fr 7fr; gap: 48px; }
  .feature { grid-template-columns: 5fr 7fr; gap: 48px; margin-bottom: 80px; }
  .feature:nth-of-type(even) { grid-template-columns: 7fr 5fr; }
  .feature:nth-of-type(even) .feature-text { order: 2; }
  .more { grid-template-columns: repeat(3, 1fr); }
  .two { grid-template-columns: 1fr 1fr; gap: 56px; }
}
