/* SnySystems のサイトの見た目（手書きの HTML・CSS）。
   見た目の案（mock）の style.css が元。外部の読み込みは無し。日本語はシステムのフォント。
   色はロゴ（logo.svg）から取った：ロゴの灰色 #585a5b、いちばん濃い所 #2e3132、銀の光沢（明るい灰色）。 */

:root {
  --ink: #2b2e2f;          /* 本文の文字 */
  --graphite: #2e3132;     /* 見出し・主のボタン・フッター */
  --logo-gray: #585a5b;    /* ロゴの灰色。小見出し・線 */
  --muted: #5f6264;        /* 補足の文字（白・地の色とのコントラスト比 5.5 以上） */
  --silver-1: #c9ccce;     /* 銀の光沢（線） */
  --silver-2: #e4e6e7;     /* 銀の光沢（面） */
  --paper: #f6f7f7;        /* 地の色 */
  --white: #ffffff;
  --radius: 10px;
  --wrap: 960px;
  --read: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  /* 本文が短いページでも、フッターを画面のいちばん下に置く（長いページでは本文の後ろに続く） */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: var(--graphite); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--logo-gray); }

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

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

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

/* 画面には出さず、読み上げには出す */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 本文へ飛ぶリンク（キーボードで最初に出る） */
.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 100;
  background: var(--graphite);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--white); }

/* ヘッダー */
.site-header { background: var(--white); position: sticky; top: 0; z-index: 10; }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--graphite); }
.brand img { width: 52px; height: auto; }
.brand span { font-size: 19px; font-weight: 600; letter-spacing: 0.06em; }
.nav ul { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--logo-gray); padding: 4px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--graphite); border-bottom-color: var(--silver-1); }
.nav a[aria-current="page"] { color: var(--graphite); font-weight: 600; border-bottom-color: var(--logo-gray); }

/* 銀の光沢の線（ロゴのグラデーションに合わせる） */
.silver-line {
  height: 3px;
  background: linear-gradient(90deg, var(--logo-gray) 0%, var(--silver-1) 35%, var(--white) 50%, var(--silver-1) 65%, var(--logo-gray) 100%);
}

/* トップのはじめの帯。ロゴのグラデーションは白が基調なので、地は白にする（ヘッダーの白とつながる）。
   下の地の色（--paper）との境目は、細い線と薄い影で分ける */
.hero {
  background: var(--white);
  border-bottom: 1px solid var(--silver-2);
  box-shadow: 0 1px 6px rgba(46, 49, 50, 0.05);
  position: relative;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 24px 40px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.hero h1 { font-size: 40px; line-height: 1.3; margin: 0 0 12px; color: var(--graphite); letter-spacing: 0.06em; }
.hero .lead { font-size: 18px; color: var(--logo-gray); margin: 0; }

/* トップの大きなロゴ（動きは下の「動き」の節） */
.hero-mark { position: relative; width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 244.9 / 155.06; }
.hero-mark .logo-img { display: block; width: 100%; height: 100%; }
.hero-mark .logo-draw { display: none; }

.page-title { background: var(--white); border-bottom: 1px solid var(--silver-1); }
.page-title .wrap { padding-top: 36px; padding-bottom: 28px; }
.page-title h1 { margin: 0; font-size: 30px; line-height: 1.4; color: var(--graphite); letter-spacing: 0.04em; }
.page-title p { margin: 8px 0 0; color: var(--logo-gray); max-width: var(--read); }

main { display: block; flex: 1 0 auto; }
.site-header, .site-footer { flex-shrink: 0; }
.content { padding: 32px 0 56px; }

section { margin: 0 0 28px; }

.card {
  background: var(--white);
  border: 1px solid var(--silver-2);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  box-shadow: 0 1px 2px rgba(46, 49, 50, 0.04);
}
.card > *:first-child { margin-top: 0; }
.card > *:last-child { margin-bottom: 0; }

h2 {
  font-size: 22px;
  line-height: 1.5;
  color: var(--graphite);
  margin: 0 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--logo-gray);
}
h3 { font-size: 18px; line-height: 1.5; color: var(--graphite); margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 12px; max-width: var(--read); }
ul, ol { padding-left: 1.4em; }
li { margin: 2px 0; }
li > ul { margin: 4px 0 0; }

.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--logo-gray);
  border: 1px solid var(--silver-1);
  border-radius: 999px;
  padding: 1px 10px;
  margin-bottom: 8px;
  background: var(--paper);
}

/* ボタン */
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--graphite);
}
.btn-primary { background: var(--graphite); color: var(--white); }
.btn-primary:hover { background: var(--logo-gray); color: var(--white); border-color: var(--logo-gray); }
.btn-secondary { background: var(--white); color: var(--graphite); }
.btn-secondary:hover { background: var(--silver-2); color: var(--graphite); }

/* 注意の一文 */
.note {
  border-left: 3px solid var(--silver-1);
  background: var(--paper);
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  border-radius: 0 6px 6px 0;
  max-width: var(--read);
}

/* 価格・対応 */
.facts { display: grid; grid-template-columns: 7em 1fr; gap: 8px 16px; margin: 0 0 8px; max-width: var(--read); }
.facts dt { font-weight: 600; color: var(--graphite); }
.facts dd { margin: 0; }

/* 特徴などの並び */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.grid > section { margin: 0; }
.grid .card h3 { margin-top: 0; }

/* 表（スマホでは中だけ横に動く） */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 12px; }
table { border-collapse: collapse; min-width: 100%; font-size: 15px; background: var(--white); }
th, td { border: 1px solid var(--silver-2); padding: 8px 12px; text-align: left; vertical-align: top; }
.table-wrap th, .table-wrap td { white-space: nowrap; }
th { background: var(--paper); color: var(--graphite); font-weight: 600; }
td.empty { color: var(--muted); }

/* 項目と内容の表（特定商取引法に基づく表記・事業者の情報）。文は折り返す */
table.kv { width: 100%; max-width: 860px; margin: 0 0 16px; }
table.kv th { width: 13em; }
table.kv td, table.kv th { white-space: normal; }

/* メールの書き出し */
pre {
  background: var(--paper);
  border: 1px solid var(--silver-2);
  border-radius: 8px;
  padding: 14px 16px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "MS Gothic", monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  max-width: var(--read);
  margin: 0 0 12px;
}

/* 規約・方針の文 */
.doc h2 { margin-top: 28px; }
.doc h2:first-child { margin-top: 0; }
.doc ol > li { margin: 6px 0; }
.doc .signature { list-style: none; padding: 0; color: var(--muted); }

/* よくある質問 */
.faq details { border-top: 1px solid var(--silver-2); padding: 10px 0; }
.faq details:last-child { border-bottom: 1px solid var(--silver-2); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--graphite); list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 0; color: var(--logo-gray); font-weight: 400; font-size: 20px; line-height: 1.4; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 8px 0 4px; }

/* 画面の写真の仮の箱 */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shot {
  aspect-ratio: 9 / 19.5;
  background: #d9dbdc;
  border: 1px solid #c4c7c9;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4f5254;
  font-size: 15px;
}

/* お知らせ */
.news { list-style: none; padding: 0; }
.news li { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 0; border-bottom: 1px solid var(--silver-2); }
.news time, .news .date { color: var(--logo-gray); flex-shrink: 0; }

/* フッター（全ページ同じ） */
.site-footer { background: var(--graphite); color: #d6d8d9; font-size: 14px; line-height: 1.8; }
.site-footer .wrap { padding-top: 32px; padding-bottom: 32px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { width: 44px; filter: brightness(2.2); }
.footer-brand span { color: var(--white); font-weight: 600; letter-spacing: 0.06em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 16px; padding: 0; list-style: none; }
.footer-links a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.45); }
.footer-links a:hover { text-decoration-color: var(--white); }
.footer-links a[aria-current="page"] { font-weight: 700; text-decoration-color: var(--white); }
.site-footer :focus-visible { outline-color: var(--white); }
.trademark { color: #b4b7b9; font-size: 12px; max-width: none; margin: 0 0 8px; }
.copyright { color: #b4b7b9; font-size: 12px; margin: 0; }

/* ===== 動き（JavaScript があるときだけ。html に class="js" が付く） ===== */

/* 1. トップの大きなロゴ：ロゴ全体の外形（帯の輪郭）の線が描かれていき、線が消えてロゴが出る。
   線は 7 つの形（グラデーションのために分けた形）をそのまま描くが、同じ形で塗った SVG のマスク（#logo-outside）で
   形の内側に入る線を隠すので、見えるのは全体の外形だけ（継ぎ目・帯の交わる所の線は出ない）。
   見える線の太さは stroke-width の半分。 */
.js .hero-mark .logo-draw { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.js .hero-mark .logo-draw .line {
  fill: none;
  stroke: var(--logo-gray);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 2.2s ease-in-out 0.2s forwards, fade-out 0.8s ease 2.5s forwards;
}
.js .hero-mark .logo-img { opacity: 0; animation: fade-in 1s ease 2.1s forwards; }

/* 2. 下へ進むとカードがふわっと出る（main.js が is-visible を付ける） */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { to { opacity: 1; } }

/* 動きを減らす設定の人には、全部止める */
@media (prefers-reduced-motion: reduce) {
  .js .hero-mark .logo-draw { display: none; }
  .js .hero-mark .logo-img { opacity: 1; animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* スマホの幅 */
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  .brand img { width: 44px; }
  .brand span { font-size: 17px; }
  .nav ul { font-size: 14px; gap: 2px 14px; }
  .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 32px; }
  .hero-mark { order: -1; max-width: 200px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 16px; }
  .page-title h1 { font-size: 24px; }
  .card { padding: 18px 16px 14px; }
  h2 { font-size: 19px; }
  h3 { font-size: 16.5px; }
  .grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  table.kv, table.kv tbody, table.kv tr, table.kv th, table.kv td { display: block; width: 100%; }
  table.kv tr { border-bottom: 1px solid var(--silver-2); }
  table.kv th { border-bottom: 0; }
  table.kv td { border-top: 0; }
}
