/* ============================================================
   Avenily 企業向けトップ（2026-10-14 作り直し）
   方針：実物の動画を先に見せる。飾りを減らし、事実は仕様の表で。
   書体は IBM Plex Sans JP の1つだけ（10/14 BIZ UDPGothic から変更：角ばって見えるため）。影・グラデーション・出現の動きは使わない。
   英語ページ（en/）は今も avenily.css を使う。
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+JP:wght@400;500;700&display=swap');

:root {
  --font: 'IBM Plex Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

  --ink: #1f2430;      /* 見出し・本文の濃い所 */
  --text: #3b4150;     /* 本文 */
  --muted: #687080;    /* 注記 */
  --paper: #ffffff;    /* 地 */
  --panel: #eef0f3;    /* 動画の帯・表の見出し */
  --line: #d6dae1;     /* 罫線 */
  --brand: #34408f;    /* ロゴの藍。ボタンとリンクだけ */
  --brand-dark: #262f6e;
  --ok: #1f7a55;       /* 比較表の◯ */

  --wrap: 1080px;
  --gutter: 24px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  font-feature-settings: "palt" 0;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { color: var(--ink); font-weight: 700; margin: 0; letter-spacing: 0.01em; }
p { margin: 0; }

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

/* ---------- 上の帯 ---------- */
.notice {
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
  padding: 8px var(--gutter);
}

/* ---------- ヘッダー ---------- */
.head { border-bottom: 1px solid var(--line); background: var(--paper); }
.head-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: 0; }
.logo img { width: 32px; height: 32px; }
.head nav { display: flex; gap: 22px; margin-left: 12px; }
.head nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.head nav a:hover { color: var(--brand); text-decoration: underline; }
.head-side { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 13px; }
.head-side a.sub { color: var(--muted); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 15px 26px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.small { padding: 11px 18px; font-size: 14px; }

/* ---------- 冒頭 ---------- */
.intro { padding: 64px 0 40px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.intro .kind { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.intro h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.38; letter-spacing: 0.02em; }
.intro .lead { margin-top: 22px; max-width: 30em; font-size: 16.5px; }
.intro .lead strong { color: var(--ink); }
.intro .actions { margin-top: 30px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* 仕様の表 */
.spec { margin: 0; border-top: 2px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; color: var(--ink); }
.spec dd b { font-size: 20px; }

/* ---------- サンプルの帯 ---------- */
.reel { background: var(--panel); padding: 44px 0 40px; }
.reel h2 { font-size: 18px; margin-bottom: 20px; text-align: center; }
.reel-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 720px; margin: 0 auto; }
.reel figure { margin: 0; }
.reel .frame { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; border: 4px solid var(--ink); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel figcaption { margin-top: 10px; font-size: 13px; line-height: 1.65; color: var(--text); }
.reel figcaption b { color: var(--ink); }
.reel .note { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 各節 ---------- */
.block { padding: 80px 0; border-top: 1px solid var(--line); }
.block.tint { background: #f7f8fa; }
.block > .wrap > h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.45; }
.block .desc { margin-top: 14px; max-width: 38em; }

/* 比較表 */
.cmp-scroll { margin-top: 36px; overflow-x: auto; }
.cmp { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; line-height: 1.65; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--panel); color: var(--ink); font-size: 14px; border-bottom: 2px solid var(--ink); }
.cmp tbody th { color: var(--ink); width: 9em; font-weight: 700; }
.cmp td.us { color: var(--ink); background: #f5f6fb; }
.cmp thead th.us { background: var(--brand); color: #fff; }
.cmp .m { display: inline-block; width: 1.4em; font-weight: 700; }
.cmp .m.o { color: var(--ok); }
.cmp .m.x { color: #a3443a; }
.cmp .m.t { color: var(--muted); }

/* 流れ（順番があるので番号を付ける） */
.flow { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.flow li { padding: 20px 22px 0 0; }
.flow li + li { padding-left: 22px; border-left: 1px solid var(--line); }
.flow .no { font-size: 13px; color: var(--muted); }
.flow h3 { font-size: 18px; margin: 4px 0 10px; }
.flow p { font-size: 14.5px; line-height: 1.8; }

/* 強み */
.points { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.points div { padding: 24px 0; border-top: 1px solid var(--line); }
.points h3 { font-size: 18px; margin-bottom: 8px; }
.points p { font-size: 15px; }

/* 料金 */
.price-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.price { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); }
.price th, .price td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.price th { text-align: left; font-weight: 700; color: var(--ink); font-size: 16px; }
.price th small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.6; }
.price td { text-align: right; font-size: 24px; font-weight: 700; color: var(--ink); white-space: nowrap; padding-left: 16px; }
.price-free { margin-top: 16px; font-size: 14px; color: var(--text); }
.refund { border-left: 4px solid var(--brand); padding: 4px 0 4px 20px; }
.refund h3 { font-size: 18px; margin-bottom: 8px; }
.refund p { font-size: 15px; }
.fine { margin-top: 20px; font-size: 13px; line-height: 1.8; color: var(--muted); }

/* 代表 */
.about-grid { margin-top: 36px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.about-grid img { width: 100%; height: auto; border-radius: 4px; }
.about-name { font-size: 22px; font-weight: 700; color: var(--ink); }
.about-name span { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 12px; }
.about-role { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.about-text p + p { margin-top: 14px; }
.about-text { max-width: 38em; }

/* FAQ（details を使う。JS なしで開閉） */
.faq { margin-top: 32px; border-top: 2px solid var(--ink); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; color: var(--ink); font-size: 16px; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 6px; top: 18px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "－"; }
.faq .a { padding: 0 0 22px; font-size: 15px; max-width: 42em; }

/* 問い合わせ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-grid h2 { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.5; }
.contact-list { margin: 22px 0 0; padding: 0 0 0 1.2em; font-size: 15px; }
.contact-list li + li { margin-top: 4px; }
.form { background: var(--paper); border: 1px solid var(--line); border-top: 2px solid var(--ink); padding: 28px; }
.form .field + .field { margin-top: 18px; }
.form label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.form .req { color: #a3443a; font-weight: 400; font-size: 12px; margin-left: 6px; }
.form input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #b9bfca; border-radius: 4px; background: #fff; color: var(--ink); }
.form input:focus { outline: 3px solid rgba(52, 64, 143, 0.25); border-color: var(--brand); }
.form .btn { width: 100%; margin-top: 24px; padding: 17px; font-size: 16px; }
.form .note { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* フッター */
.foot { background: var(--ink); color: #c8ccd6; padding: 56px 0 32px; font-size: 14px; }
.foot a { color: #e3e6ee; text-decoration: none; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot .logo { color: #fff; margin-bottom: 12px; }
.foot h4 { margin: 0 0 12px; color: #fff; font-size: 13px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li + li { margin-top: 8px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid #3a4152; font-size: 12.5px; color: #9aa1b0; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 900px) {
  .head nav { display: none; }
  .intro-grid, .price-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow li:nth-child(3) { padding-left: 0; border-left: 0; }
  .flow li:nth-child(n+3) { margin-top: 24px; border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .head-inner { gap: 12px; min-height: 60px; }
  .head-side { gap: 12px; }
  .intro { padding: 40px 0 32px; }
  .block { padding: 56px 0; }
  .reel-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 56%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 8px; }
  .reel figure { scroll-snap-align: start; }
  .reel h2, .reel .note { text-align: left; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow li, .flow li + li { padding: 18px 0 0; border-left: 0; }
  .flow li + li { margin-top: 18px; border-top: 1px solid var(--line); }
  .points { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .about-grid img { max-width: 200px; }
  .form { padding: 22px 18px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .price td { font-size: 20px; }
}
