/* ===== 2026/06/30新設 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-ink: #0f0f0f;
  --c-muted: #6b6b6b;
  --c-border: #e2e2e2;
  --c-surface: #f7f6f3;
  --c-white: #ffffff;
  --c-accent: #1a6bff;
  --c-accent-dim: #e8efff;
  --font: "Gen Interface JP", sans-serif;
  --mono: 'DM Mono', monospace;
  --p-blue: #1d9bf0;
  --p-blue-hover: #1a8cd8;
  --bg: #f7f9f9;
  --surface: #ffffff;
  --text-primary: #0f1419;
  --text-secondary: #536471;
  --border: #eff3f4;
  --link: #1d9bf0;
  --link-hover: #1a8cd8;
  --nav-height: 53px;
  --accent: #0059FF;
  --blue: #1d9bf0;
  --black: #0f1419;
  --white: #ffffff;
  --offwhite: #f9fafa;
  --gray: #536471;
  --dark-bg: #15202b;
  --dark-surface: #1e2732;
  --nav-h: 60px;

  /* ▼ 見出しの「横長」調整用 (X方向 / Y方向の拡大率) */
  --hero-sx: 0.9;
  --hero-sy: 0.7;
  --main-sx: 0.9;
  --main-sy: 0.7;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--c-white);
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-left img {
  height: 20px;
  width: auto;
}

.header-divider {
  width: 1px;
  height: 18px;
  background: var(--c-border);
}

.header-label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--c-muted);
  text-transform: uppercase;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: 38px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
}

.btn-login:hover {
  background: var(--c-surface);
  border-color: #c2c2c2;
}

/* ── HERO (2カラム：左=テキスト / 右=背景画像) ── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 48px;
  min-height: 700px;
  padding: 0 0 0 80px;   /* 右は余白なし＝画像を端まで */
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* 左揃え */
  justify-content: center;
  padding: 96px 0;
}

.hero h1 {
  /* h1とpの左端をピッタリ揃えるための設定 */
  --h1-shift: -0.04em;       /* ← 文字の左側の余白ぶんを補正。ズレたらここを微調整 */
  margin: 0 0 0 var(--h1-shift);
  font-weight: 800;
  font-size: 5.5em;
  line-height: 1.1;
  color: #000;
  letter-spacing: -0.05em;
  white-space: nowrap;
  /* 横長に変形（左上基準なので左端は動かない） */
  transform: scale(var(--hero-sx), var(--hero-sy));
  transform-origin: left top;
  /* 縦に潰した分の隙間を詰める */
  margin-bottom: calc(24px - (1 - var(--hero-sy)) * 1.1em);
}

.hero p {
  margin: 0;
  padding: 0;
  font-weight: 500;
  font-size: 1.5em;
  color: #000;
  text-align: left;
}

/* 右側の画像エリア（背景画像） */
.hero-image {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 420px;
  /* PC用画像 */
  background-image: var(--hero-img-pc);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ===== MAIN ===== */
main { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }

/* main直下の文章 (p) を大きめに */
main p {
  font-size: 20px;
  line-height: 1.7;
  font-weight: 500;
  color: var(--text-primary);
}

/* main直下の見出し (h1) を大きく＆横長に */
main h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  margin: 36px 0 0;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  white-space: nowrap;
  transform: scale(var(--main-sx), var(--main-sy));
  transform-origin: left top;
  margin-bottom: calc(16px - (1 - var(--main-sy)) * 1.2em);
}

main hr {
  border: none;
  height: 3px;
  background: var(--p-blue);
  margin: 35px 0;
  width: 10%;
}
main a { color: var(--p-blue); text-decoration: none; }
main a:hover { text-decoration: underline; }

/* ===== TOP NOTICE ===== */
.notice-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #e8f5fd;
  border: 1px solid #b3d9f5;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--text-secondary);
  animation: fadeSlideIn 0.5s ease both;
}

.notice-bar .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--p-blue);
  margin-top: 1px;
}
.notice-bar a { color: var(--link); text-decoration: none; font-weight: 600; }
.notice-bar a:hover { text-decoration: underline; }

/* ===== PAGE TITLE ===== */
.page-title {
  font-size: 60px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  animation: fadeSlideIn 0.45s ease both;
}
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-secondary); }
.article-meta .dot { color: #ccc; }

/* ===== ARTICLE BODY (カード型で使う場合) ===== */
.article-body { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 36px 32px; }
.article-body p:last-child { margin-bottom: 0; }
.article-body h2 { font-size: 24px; font-weight: 600; margin: 32px 0 14px; color: var(--text-primary); }
.article-body h3 { font-size: 20px; font-weight: 500; margin: 24px 0 10px; color: var(--text-primary); }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; }
.article-body li { margin-bottom: 10px; line-height: 1.65; font-size: 19px; }

/* ===== ダウンロード要素の横並び ([画像][タイトル][DLボタン]) ===== */
.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.download-row:last-of-type { border-bottom: none; }
.download-row .article-img {
  width: 50px;
  height: auto;
  flex-shrink: 0;
}
.download-row h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  color: var(--text-primary);
}
.download-row .btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--p-blue);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
  flex-shrink: 0;
}
.download-row .btn:hover { background: var(--p-blue-hover); }
main .download-row .btn { color: #fff; }
main .download-row .btn:hover { text-decoration: none; }

/* 注意書きボックス */
.info-box {
  background: #e8f5fd; border-left: 3px solid var(--p-blue);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 20px 0;
  font-size: 14px; color: var(--text-secondary);
}
.info-box i { color: var(--p-blue); margin-right: 6px; }

/* ステップ */
.step { display: flex; gap: 14px; margin-bottom: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--p-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; margin-top: 2px;
}
.step-body { flex: 1; }
.step-body strong { display: block; font-weight: 600; margin-bottom: 4px; }
.step-body p { margin: 0; font-size: 14px; color: var(--text-secondary); }

/* ── RESPONSIVE (スマホ：上=テキスト / 下=画像) ── */
@media (max-width: 768px) {
  header { padding: 0 20px; }

  .hero {
    grid-template-columns: 1fr;   /* 1カラム＝上下配置 */
    gap: 0;
    min-height: 0;
    padding: 0;
  }
  .hero-content { padding: 48px 24px 40px; }
  .hero h1 { font-size: clamp(48px, 15vw, 88px); }
  .hero p  { font-size: 1.2em; }

  .hero-image {
    min-height: 0;
    height: 260px;
    /* スマホ用画像（未指定ならPC用画像を使う） */
    background-image: var(--hero-img-sp, var(--hero-img-pc));
  }

  main { padding: 36px 20px 64px; }
  main p  { font-size: 18px; }
  main h1 { font-size: clamp(26px, 6.5vw, 40px); }

  .page-title { font-size: 30px; }
  .download-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .download-row .btn { width: 100%; justify-content: center; }
}

/* ===== FOOTER ===== */
footer { text-align: center; padding: 32px 24px; color: var(--text-secondary); font-size: 13px; }
footer a { color: var(--text-secondary); text-decoration: none; }
footer a:hover { text-decoration: underline; color: var(--p-blue); }
