/* ==========================================================================
   ちょいラク工房 共通スタイル（トップ / privacy / 404 で使用）
   デザイン基準: app_zenkakuhankaku/docs/site-design/windows-a-photo-v3.png
   方針: 写真風背景とすりガラスは維持。ボタンなどの操作部品だけ単色フラット。
   ========================================================================== */

:root {
  --base: #EAF2FA;
  --ink: #142B45;
  --text: #34495E;
  --text-sub: #5B6E82;
  --primary: #1766CA;
  --primary-hover: #1257AE;
  --on-primary: #FFFFFF;
  --line: #D3DFEA;
  --glass: rgba(255, 255, 255, 0.86);
  --glass-soft: rgba(255, 255, 255, 0.34);
  --glass-line: rgba(255, 255, 255, 0.75);
  --surface: #FFFFFF;
  --font-sans: "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  --radius-card: 16px;
  --radius-btn: 6px;
  --side: clamp(24px, 3.4vw, 64px);
  --container: 1680px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

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

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side);
  padding-right: var(--side);
}

/* ---------- ヘッダー（すりガラス） ---------- */
.site-header {
  position: relative;
  z-index: 10;
  padding-left: clamp(12px, 1.3vw, 24px);
  padding-right: clamp(12px, 1.3vw, 24px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 8px clamp(20px, 3vw, 56px);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-top: 0;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: clamp(22px, 1.8vw, 30px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 44px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---------- ボタン（単色フラット） ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 28px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline {
  background: var(--surface);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--on-primary);
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 40px;
  color: var(--text-sub);
  font-size: 14px;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--primary);
}

/* ---------- 文書ページ（プライバシーポリシー・404） ---------- */
.page-head {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(24px, 3vw, 40px);
}

.page-title {
  color: var(--ink);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.4;
}

.doc {
  padding-bottom: clamp(64px, 8vw, 120px);
  overflow-wrap: anywhere;
}

.doc-inner {
  max-width: 960px;
}

.doc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 56px);
}

.doc section + section {
  margin-top: clamp(32px, 4vw, 48px);
}

.doc h2 {
  color: var(--ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 12px;
}

.doc h3 {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 24px;
  margin-bottom: 8px;
}

.doc p + p {
  margin-top: 12px;
}

.doc ul {
  margin-top: 12px;
}

.doc li {
  position: relative;
  padding-left: 1.2em;
}

.doc li + li {
  margin-top: 8px;
}

.doc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.doc strong {
  color: var(--ink);
  font-weight: 700;
}

.doc .updated {
  margin-top: 40px;
  color: var(--text-sub);
  font-size: 14px;
}

.notfound-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

@media (max-width: 767px) {
  .site-header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 16px;
    padding: 8px 16px;
  }

  .site-nav ul {
    gap: 16px;
  }

  .site-nav a {
    font-size: 14px;
  }
}

/* ---------- 登場アニメーション（控えめ・1回だけ） ----------
   .reveal は JS が付ける（JS なしでは最初から見える）。
   「動きを減らす」設定では JS が何もしないため、隠れることはない。 */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  .hero-copy,
  .hero-stage,
  .apps {
    animation: none !important;
  }

  /* 閲覧途中でこの設定に切り替えた場合も、待機中・表示途中のブロックを即時表示にする */
  .reveal,
  .reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    transition-delay: 0s !important;
  }

  * {
    transition: none !important;
  }
}
