/* =========================================================
   酌井社労士事務所 — 労働条件通知書 兼 雇用契約書 作成ツール LP
   デザイン: さくらデザイン handoff（hi-fi）をベースに実装
   ========================================================= */
:root {
  /* メインカラー：元HP（sr-meguria.com）に合わせたワインレッド＋ゴールド */
  --yellow:        #5c0119;  /* メイン：ワインレッド（元HP） */
  --yellow-soft:   #f2cb4e;  /* アクセント：ゴールド（元HPの電話バー） */
  --yellow-dark:   #7a1226;  /* 濃いめのレッド（ホバー・テキスト） */
  --yellow-tint:   #f9eef0;  /* 極淡いレッドの背景 */
  --bluegrey:      #A8B5BD;
  --bluegrey-dark: #76858e;
  --bluegrey-tint: #eef1f2;

  --bg:        #ffffff;
  --bg-alt:    #F5F6F7;
  --text:      #333333;
  --text-soft: #6b7178;
  --line:      #e4e6e8;

  --font-en: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-jp: "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --pad:  clamp(20px, 5vw, 64px);
  --header-h: 76px;
}

/* ===================== Reset / base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  line-height: 1.85;
  font-size: 16px;
  letter-spacing: .02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.en-eyebrow {
  font-family: var(--font-en);
  font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  font-size: 12px; color: var(--yellow-dark);
  display: inline-flex; align-items: center; gap: 10px;
}
.en-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--yellow); display: inline-block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(72px, 11vw, 140px) 0; }

.sec-title { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-title .en { font-family: var(--font-en); font-weight: 300; font-size: clamp(38px, 6vw, 72px); line-height: 1; letter-spacing: .01em; }
.sec-title .jp { margin-top: 16px; font-size: 15px; font-weight: 500; color: var(--text-soft); letter-spacing: .14em; }
.slash { color: var(--yellow); font-weight: 300; }

/* ===================== Buttons ===================== */
.btn-contact {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: #fff;
  font-family: var(--font-en); font-weight: 600; letter-spacing: .12em; font-size: 13px;
  padding: 13px 28px; border-radius: 999px;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 22px -10px rgba(92,1,25,.7);
}
.btn-contact:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-contact svg { width: 15px; height: 15px; }

/* ===================== Image placeholders（本番は写真に差し替え可） ===================== */
.img-ph {
  display: block; width: 100%; height: 100%;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(92,1,25,.22), transparent 55%),
    linear-gradient(135deg, var(--bluegrey-tint), #dfe5e8);
  border-radius: inherit;
  position: relative;
}
.img-ph svg { width: 34%; height: 34%; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity: .85; }
.img-ph--circle { border-radius: 50%; }

/* ===================== Header ===================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 100;
  display: flex; align-items: center; background: rgba(255,255,255,0);
  transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.site-header .container { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark { width: 40px; height: 40px; flex: none; object-fit: contain; display: block; }
.logo .name { line-height: 1.25; }
.logo .name .jp { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.logo .name .en { font-family: var(--font-en); font-size: 9.5px; letter-spacing: .18em; color: var(--text-soft); text-transform: uppercase; display:block; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.nav a.nav-link { font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .15em; position: relative; padding: 6px 0; }
.nav a.nav-link::after { content:""; position:absolute; left:0; bottom:0; width:0; height:2px; background: var(--yellow); transition: width .3s ease; }
.nav a.nav-link:hover::after { width: 100%; }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav-toggle span { position:absolute; left:0; width:100%; height:2px; background: var(--text); transition: .3s ease; }
.nav-toggle span:nth-child(1){ top:0; }
.nav-toggle span:nth-child(2){ top:10px; }
.nav-toggle span:nth-child(3){ top:20px; }
.nav-toggle.open span:nth-child(1){ top:10px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ top:10px; transform: rotate(-45deg); }

/* ===================== Hero ===================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.hero__marquee { position: absolute; top: 50%; left: 0; width: 100%; transform: translateY(-50%); pointer-events: none; z-index: 0; white-space: nowrap; overflow: hidden; }
.hero__marquee .track {
  display: inline-flex; gap: 1.2em; font-family: var(--font-en); font-weight: 700;
  font-size: clamp(56px, 11vw, 168px); line-height: 1; color: #f5f6f8;
  animation: marquee 38s linear infinite; will-change: transform;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.hero__copy { max-width: 1000px; margin-inline: auto; text-align: center; }
.hero__copy h1 { font-family: var(--font-en); font-weight: 300; font-size: clamp(32px, 5.4vw, 74px); line-height: 1.1; letter-spacing: .005em; }
.hero__copy h1 .em { color: var(--yellow); font-style: normal; }
.hero__copy .jp-sub { margin-top: 26px; font-size: clamp(17px, 2vw, 21px); font-weight: 700; letter-spacing: .08em; line-height: 1.7; }
.hero__copy .lead { margin-top: 22px; color: var(--text-soft); font-size: 15px; max-width: 440px; margin-inline: auto; }
.hero__copy .hero-cta { margin-top: 36px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }
.text-link { font-family: var(--font-en); font-weight: 600; font-size: 13px; letter-spacing: .14em; display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.text-link .arrow { width: 30px; height: 1px; background: var(--text); position: relative; transition: width .3s ease; }
.text-link:hover .arrow { width: 44px; }

.hero__art { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-left: auto; }
.hero__diamond { position: absolute; inset: 8% 6% 8% 14%; transform: rotate(45deg); overflow: hidden; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(118,133,142,.55); }
.hero__diamond .img-ph { position: absolute; top: 50%; left: 50%; width: 142%; height: 142%; transform: translate(-50%,-50%) rotate(-45deg); }
.img-ph--hero { background: linear-gradient(140deg, var(--yellow) 0%, var(--yellow-dark) 100%); }
.img-ph--hero svg { width: 30%; height: 30%; opacity: 1; }
.hero__oar { position: absolute; z-index: -1; left: -6%; top: -4%; width: 60%; height: 116%; }

/* ===================== Concept ===================== */
.concept { position: relative; color: #fff; text-align: center; padding: clamp(110px, 18vw, 220px) 0; overflow: hidden; }
.concept__bg { position:absolute; inset:0; z-index:0; background: linear-gradient(155deg, #3a474e 0%, #2d3940 55%, #222b30 100%); }
.concept__bg::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(80% 70% at 80% 20%, rgba(92,1,25,.20), transparent 60%);
}
.concept .container { position: relative; z-index: 2; }
.concept .en-eyebrow { color: var(--yellow-soft); }
.concept .en-eyebrow::before { background: var(--yellow-soft); }
.concept h2 { font-family: var(--font-en); font-weight: 300; font-size: clamp(30px, 4.4vw, 56px); margin: 22px 0 36px; }
.concept p { max-width: 760px; margin: 0 auto 18px; font-size: clamp(15px, 1.8vw, 18px); line-height: 2.2; font-weight: 500; color: rgba(255,255,255,.92); }
.concept .oar-line { color: var(--yellow-soft); font-weight: 700; }

/* ===================== Features — 3 circles ===================== */
.features { background: var(--bg-alt); }
.feature-diagram { position: relative; max-width: 860px; margin: 0 auto; aspect-ratio: 1 / .82; }
.feature-diagram svg.lines { position:absolute; inset:0; width:100%; height:100%; z-index:0; }
.feat-node {
  position: absolute; width: clamp(180px, 26vw, 280px); aspect-ratio: 1/1; border-radius: 50%;
  background: #fff; box-shadow: 0 24px 50px -26px rgba(118,133,142,.6);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 22px; z-index: 2; transition: transform .35s ease, box-shadow .35s ease;
}
.feat-node:hover { transform: translateY(-6px); box-shadow: 0 34px 60px -24px rgba(118,133,142,.75); }
.feat-node .num { font-family: var(--font-en); font-weight:300; font-size: clamp(34px,5vw,52px); color: var(--yellow); line-height:1; }
.feat-node h3 { font-size: clamp(16px,2.2vw,20px); font-weight: 700; margin: 10px 0 8px; letter-spacing:.04em; }
.feat-node p { font-size: 12.5px; color: var(--text-soft); line-height: 1.7; max-width: 200px; }
.feat-node.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.feat-node.n1:hover { transform: translateX(-50%) translateY(-6px); }
.feat-node.n2 { bottom: 0; left: 0; }
.feat-node.n3 { bottom: 0; right: 0; }
.feat-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: clamp(64px, 10vw, 96px); height: clamp(64px, 10vw, 96px); border-radius: 50%; background: var(--yellow);
  display: flex; align-items: center; justify-content: center; z-index: 3; box-shadow: 0 14px 30px -10px rgba(92,1,25,.8);
}
.feat-center svg { width: 52%; height: 52%; }

/* ===================== 作成ツール ===================== */
.tool-section { background: var(--bg-alt); }
.tool {
  display: grid; grid-template-columns: 340px 1fr; gap: clamp(24px, 3vw, 40px); align-items: start;
}
.tool-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 22px 28px; position: sticky; top: calc(var(--header-h) + 16px);
  box-shadow: 0 20px 50px -34px rgba(118,133,142,.6);
}
.tool-step {
  font-size: 12px; font-weight: 700; color: var(--yellow-dark); letter-spacing: .06em;
  margin: 22px 0 12px; padding-bottom: 7px; border-bottom: 2px solid var(--yellow-tint);
}
.tool-step:first-child { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: #3a3f45; letter-spacing: .03em; }
.field .hint { font-weight: 400; color: var(--text-soft); font-size: 11px; letter-spacing: 0; }
.field input, .field select {
  width: 100%; padding: 9px 11px; font-size: 14px; font-family: var(--font-jp);
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }

/* 検索つきひな形一覧 */
.tool-help { font-size: 12px; color: var(--text-soft); line-height: 1.7; margin: -4px 0 12px; }
.tpl-search-wrap { position: relative; }
#tpl-search { margin-bottom: 8px; padding-right: 34px; }
#tpl-clear {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-alt); color: var(--text-soft); font-size: 16px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#tpl-clear:hover { background: var(--line); color: var(--text); }

/* 区分チップ */
.tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tpl-chip {
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: #3a3f45; line-height: 1;
  display: inline-flex; align-items: center; gap: 5px; transition: all .2s ease;
}
.tpl-chip:hover { border-color: var(--yellow); color: var(--yellow); }
.tpl-chip .c { font-family: var(--font-en); font-size: 10px; color: var(--bluegrey-dark); }
.tpl-chip.on { background: var(--yellow); border-color: var(--yellow); color: #fff; }
.tpl-chip.on .c { color: rgba(255,255,255,.8); }

.tpl-count { font-size: 11.5px; color: var(--text-soft); margin-bottom: 6px; }
.tpl-list {
  max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; -webkit-overflow-scrolling: touch;
}
.tpl-group {
  position: sticky; top: 0; z-index: 1; background: var(--yellow-tint); color: var(--yellow-dark);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 6px 10px;
  border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
}
.tpl-group .tpl-gn { font-family: var(--font-en); font-weight: 600; color: var(--bluegrey-dark); }
.tpl-item {
  display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; font-size: 13px;
  cursor: pointer; border-bottom: 1px solid #f0f1f3; line-height: 1.5;
}
.tpl-item:last-child { border-bottom: none; }
.tpl-item:hover { background: var(--bg-alt); }
.tpl-item.sel { background: var(--yellow-tint); font-weight: 700; }
.tpl-no { font-family: var(--font-en); font-size: 11px; color: var(--bluegrey-dark); min-width: 20px; }
.tpl-empty { padding: 18px; font-size: 13px; color: var(--text-soft); text-align: center; line-height: 1.7; }
.tpl-selected { margin-top: 10px; font-size: 12px; color: var(--text-soft); padding: 8px 10px; background: var(--yellow-tint); border-radius: 8px; }
.tpl-selected b { color: var(--yellow); font-weight: 700; }
.tpl-selected:empty { display: none; }

.row2, .row3 { display: flex; gap: 8px; }
.row2 .field, .row3 .field { flex: 1; }
.row3 input { text-align: center; }

.btn-tool { display: block; width: 100%; padding: 12px; font-size: 14px; font-weight: 700; border-radius: 999px; margin-top: 10px; letter-spacing: .04em; transition: all .25s ease; }
.btn-tool--primary { background: var(--yellow); color: #fff; box-shadow: 0 8px 22px -10px rgba(92,1,25,.7); }
.btn-tool--primary:hover { background: var(--yellow-dark); transform: translateY(-2px); }
.btn-tool--ghost { background: #fff; color: #3a3f45; border: 1px solid var(--line); }
.btn-tool--ghost:hover { background: var(--bg-alt); }
.tool-note { font-size: 11.5px; color: var(--text-soft); background: var(--yellow-tint); border-radius: 10px; padding: 12px 13px; margin-top: 18px; line-height: 1.75; }

.tool-preview { min-width: 0; }
.tool-preview__bar { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.tool-preview__bar .doc-name { font-weight: 700; font-size: 15px; letter-spacing: .04em; }
.tool-preview__tip { font-size: 12px; color: var(--text-soft); }

/* A4 文書プレビュー */
.page {
  width: 100%; background: #fff; padding: clamp(24px, 4vw, 46px) clamp(20px, 4vw, 50px);
  box-shadow: 0 14px 40px -18px rgba(118,133,142,.55); border: 1px solid var(--line); border-radius: 4px;
}
.doc-tag { font-size: 11px; color: var(--text-soft); margin-bottom: 6px; }
.doc-title { text-align: center; font-size: clamp(17px, 2.4vw, 21px); font-weight: 700; letter-spacing: .18em; margin: 4px 0 16px; }
.doc-intro { font-size: 13.5px; margin: 0 0 14px; text-indent: 1em; }

table.k { width: 100%; border-collapse: collapse; font-size: 13px; }
table.k th, table.k td { border: 1px solid #333; padding: 6px 8px; vertical-align: top; text-align: left; }
table.k th { background: #f3f4f6; font-weight: 700; width: 150px; white-space: normal; word-break: break-word; }
table.k td { white-space: pre-wrap; }
table.k .subhead { background: #f8fafc; width: 96px; font-weight: 600; }

.doc-footer { margin-top: 20px; font-size: 13px; }
.doc-footer .line { white-space: pre-wrap; margin: 2px 0; }
/* 署名欄（甲乙）：ラベル・値・押印位置を揃え、全体を右へずらす */
.doc-footer .sig { margin-top: 12px; padding-left: 10em; }
.doc-footer .sig-row { display: grid; grid-template-columns: 2.2em 4.8em 1fr; align-items: baseline; column-gap: .4em; position: relative; margin: 5px 0; min-height: 1.5em; padding-right: 96px; }
.doc-footer .sig-row .v { white-space: pre-wrap; }
.doc-footer .sig-row .seal { position: absolute; right: 40px; top: 0; }

/* 編集可能セル */
[contenteditable="true"] { cursor: text; }
.editing-on [data-edit]:hover { background: #fff8d6; }
[data-edit]:focus { background: #fffbe6; outline: 2px solid var(--yellow); }

/* トークン（差し込み箇所） */
.token { background: var(--yellow-tint); border-radius: 3px; padding: 0 2px; }
.token.empty { color: #aeb4ba; }
.editing-off .token { background: transparent; padding: 0; }

/* ===================== Service ===================== */
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: grid; grid-template-columns: 64px minmax(220px, 1fr) auto auto; align-items: center;
  gap: clamp(20px, 4vw, 48px); padding: clamp(26px, 4vw, 40px) 8px;
  border-top: 1px solid var(--line); position: relative; transition: padding-left .35s ease;
}
.service-list .service-row:last-child { border-bottom: 1px solid var(--line); }
.service-row .num { font-family: var(--font-en); font-weight: 300; font-size: clamp(26px,4vw,40px); color: var(--bluegrey); }
.service-row .title { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; letter-spacing: .04em; }
.service-row .desc { font-size: 13.5px; color: var(--text-soft); max-width: 420px; }
.service-row .photo { width: clamp(72px, 11vw, 132px); aspect-ratio: 1/1; border-radius: 50%; overflow: hidden; opacity: 0; transform: scale(.6) translateX(20px); transition: opacity .45s ease, transform .45s ease; justify-self: end; }
.service-row .more { font-family: var(--font-en); font-weight:600; font-size:12px; letter-spacing:.14em; display:inline-flex; align-items:center; gap:8px; color: var(--text-soft); white-space: nowrap; transition: color .3s ease; }
.service-row .more .arrow { width: 26px; height:1px; background: currentColor; transition: width .3s ease; }
.service-row:hover { background: #fff; }
.service-row:hover .photo { opacity: 1; transform: scale(1) translateX(0); }
.service-row:hover .more { color: var(--yellow-dark); }
.service-row:hover .more .arrow { width: 40px; }

/* ===================== About ===================== */
.about .about-table { width: 100%; border-collapse: collapse; max-width: 820px; }
.about .about-table th, .about .about-table td { text-align: left; padding: 24px 4px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.about .about-table th { width: 220px; font-weight: 700; letter-spacing: .08em; color: var(--text); }
.about .about-table th .en { display:block; font-family: var(--font-en); font-weight: 600; font-size: 10px; letter-spacing:.16em; color: var(--bluegrey-dark); margin-top: 4px; }
.about .about-table td { color: var(--text-soft); }

/* ===================== Message ===================== */
.message { background: var(--bg-alt); }
.message .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.message__photo { position: relative; }
.message__photo .img-ph { width: 100%; aspect-ratio: 4/5; border-radius: 16px; }
.message__photo .img-ph--portrait { background: linear-gradient(150deg, var(--bluegrey) 0%, var(--bluegrey-dark) 100%); }
.message__photo .img-ph svg { width: 38%; height: 38%; opacity: 1; }
.message__photo .rep-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; border-radius: 16px; z-index: 1;
}
.message__photo .badge {
  z-index: 2;
  position: absolute; bottom: -22px; left: -22px; background: var(--yellow); color:#fff; border-radius: 50%;
  width: 116px; height: 116px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; box-shadow: 0 20px 40px -16px rgba(92,1,25,.8);
}
.message__photo .badge .en { font-family: var(--font-en); font-size: 9px; letter-spacing:.14em; }
.message__photo .badge .jp { font-size: 13px; font-weight: 700; margin-top: 2px; }
.message__body h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; line-height: 1.5; letter-spacing: .03em; margin-bottom: 26px; }
.message__body h2 .hl { background: linear-gradient(transparent 62%, var(--yellow-soft) 62%); }
.message__body p { font-size: 15px; color: var(--text-soft); margin-bottom: 16px; }
.message__sign { margin-top: 30px; display:flex; align-items:flex-end; gap: 18px; flex-wrap: wrap; }
.message__sign .role { font-size: 13px; color: var(--text-soft); }
.message__sign .nm { font-size: 24px; font-weight: 700; letter-spacing: .1em; }
.message__profile { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.message__profile li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--text-soft); margin-bottom: 8px; }
.message__profile li::before { content:""; position:absolute; left:0; top:11px; width:10px; height:2px; background: var(--yellow); }

/* ===================== FAQ ===================== */
.faq .faq-list { max-width: 880px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; display: grid; grid-template-columns: 40px 1fr 32px; align-items: center; gap: 16px; padding: 28px 4px; font-size: clamp(15px, 2vw, 18px); font-weight: 700; letter-spacing: .03em; }
.faq-q .qmark { font-family: var(--font-en); font-weight: 400; font-size: 26px; color: var(--yellow); line-height:1; }
.faq-q .icon { position: relative; width: 22px; height: 22px; justify-self: end; }
.faq-q .icon::before, .faq-q .icon::after { content:""; position:absolute; background: var(--bluegrey-dark); transition: transform .3s ease, opacity .3s ease; }
.faq-q .icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.faq-q .icon::after  { left: 10px; top: 0; width: 2px; height: 22px; }
.faq-item.open .faq-q .icon::after { transform: scaleY(0); }
.faq-item.open .faq-q .icon::before { background: var(--yellow); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a__inner { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 0 4px 28px; color: var(--text-soft); font-size: 14.5px; }
.faq-a__inner .amark { font-family: var(--font-en); font-weight: 400; font-size: 22px; color: var(--bluegrey); line-height:1; }

/* ===================== Floating banner ===================== */
.float-banner {
  position: fixed; right: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); z-index: 90;
  background: var(--yellow); color: #fff; border-radius: 18px; padding: 18px 22px;
  box-shadow: 0 24px 50px -16px rgba(92,1,25,.85); display: flex; align-items: center; gap: 14px;
  transition: transform .35s ease, opacity .35s ease; text-align: left;
}
.float-banner:hover { transform: translateY(-4px); }
.float-banner .ico { width: 38px; height: 38px; flex: none; display:flex; align-items:center; justify-content:center; background: rgba(255,255,255,.2); border-radius: 50%; }
.float-banner .ico svg { width: 20px; height: 20px; }
.float-banner .en { font-family: var(--font-en); font-weight: 600; font-size: 11px; letter-spacing: .14em; opacity:.9; }
.float-banner .jp { font-size: 16px; font-weight: 700; letter-spacing: .06em; }

/* ===================== Footer ===================== */
.site-footer { background: #2d3940; color: rgba(255,255,255,.75); padding: clamp(60px, 8vw, 96px) 0 32px; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .logo .name .jp { color: #fff; }
.site-footer .logo .name .en { color: rgba(255,255,255,.6); }
.site-footer .addr { margin-top: 22px; font-size: 13.5px; line-height: 2; }
.site-footer .fcol h4 { font-family: var(--font-en); font-weight: 600; font-size: 12px; letter-spacing: .16em; color: var(--yellow-soft); margin-bottom: 18px; }
.site-footer .fcol a { display: block; font-size: 14px; padding: 7px 0; transition: color .25s ease; }
.site-footer .fcol a:hover { color: var(--yellow-soft); }
.site-footer .fcontact { display: flex; align-items: flex-start; }
.site-footer .bottom { padding-top: 28px; display:flex; justify-content: space-between; align-items:center; gap: 16px; flex-wrap: wrap; }
.site-footer .copy { font-family: var(--font-en); font-size: 11.5px; letter-spacing: .08em; color: rgba(255,255,255,.5); }

/* ===================== サブページ（コラム・規約） ===================== */
.subpage { padding-top: var(--header-h); }
.page-head { background: var(--bg-alt); padding: clamp(36px,6vw,72px) 0 clamp(24px,4vw,44px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(22px,3.2vw,34px); font-weight: 700; letter-spacing: .04em; line-height: 1.5; }
.page-head .lead { margin-top: 12px; color: var(--text-soft); font-size: 14.5px; }
.page-head .crumbs { font-size: 12px; color: var(--text-soft); margin-bottom: 14px; }
.page-head .crumbs a { color: var(--yellow-dark); }
.prose { max-width: 820px; margin: 0 auto; padding: clamp(36px,5vw,64px) 0; font-size: 15px; line-height: 2; }
.prose > p { margin: 0 0 16px; color: #3a3f45; }
.prose h2 { font-size: clamp(18px,2.6vw,24px); font-weight: 700; margin: 40px 0 14px; padding-left: 14px; border-left: 4px solid var(--yellow); letter-spacing: .03em; }
.prose h3 { font-size: 16px; font-weight: 700; margin: 26px 0 10px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.4em; }
.prose li { margin-bottom: 8px; }
.prose .note { background: var(--yellow-tint); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; color: #4a4f55; margin: 0 0 18px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); }
.prose a { color: var(--yellow-dark); text-decoration: underline; }
.prose .cta { display: inline-flex; margin-top: 8px; }
.backlinks { max-width: 820px; margin: 0 auto; padding: 0 var(--pad) 64px; }
.backlinks a { color: var(--yellow-dark); font-weight: 700; }

/* コラム一覧カード */
.col-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 22px; }
.col-card { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #fff; transition: all .25s ease; }
.col-card:hover { border-color: var(--yellow); transform: translateY(-3px); box-shadow: 0 16px 40px -24px rgba(118,133,142,.6); }
.col-card .cat { font-size: 11px; font-weight: 700; color: var(--yellow-dark); letter-spacing: .08em; }
.col-card h3 { font-size: 17px; font-weight: 700; margin: 10px 0 8px; line-height: 1.5; }
.col-card p { font-size: 13px; color: var(--text-soft); line-height: 1.7; }

/* ===================== Scroll reveal ===================== */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__marquee .track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===================== Responsive ===================== */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero__art { max-width: 420px; margin: 0 auto; }
  .tool { grid-template-columns: 1fr; }
  .tool-panel { position: static; }
  .message .container { grid-template-columns: 1fr; }
  .message__photo { max-width: 380px; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav .nav-list, .nav .btn-contact { position: fixed; }
  .nav-toggle { display: block; z-index: 110; }
  .nav .nav-list {
    inset: 0 0 0 auto; width: min(78vw, 320px); background: #fff; flex-direction: column; align-items: flex-start;
    padding: calc(var(--header-h) + 20px) 36px 36px; transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.1,1); box-shadow: -20px 0 60px -30px rgba(0,0,0,.4); display: flex; gap: 8px;
  }
  .nav .nav-list.open { transform: translateX(0); }
  .nav .nav-list a.nav-link { font-size: 16px; padding: 12px 0; }
  .nav .nav-list .btn-contact { margin-top: 16px; }
  .nav { gap: 0; }
}
@media (max-width: 760px) {
  .feature-diagram { aspect-ratio: auto; display: flex; flex-direction: column; gap: 20px; max-width: 320px; }
  .feature-diagram svg.lines, .feat-center { display: none; }
  .feat-node { position: static !important; transform: none !important; width: 100%; aspect-ratio: auto; padding: 30px; }
  .feat-node.n1, .feat-node:hover { transform: none !important; }
  .service-row { grid-template-columns: 48px 1fr auto; }
  .service-row .photo { display: none; }
  .about .about-table th, .about .about-table td { display: block; width: 100%; padding: 6px 0; border: none; }
  .about .about-table tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .about .about-table th { padding-top: 0; }
}
@media (max-width: 480px) {
  .float-banner { right: 12px; bottom: 12px; padding: 14px 16px; }
  .float-banner .jp { font-size: 14px; }
  .message__photo .badge { width: 92px; height: 92px; }
}

/* ===================== 印刷（書面のみを複数ページ対応で出力） ===================== */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; }
  /* 文書以外のセクション・装飾をすべて非表示 */
  .site-header, .hero, .concept, #features, #service, #about, #message, #faq,
  .float-banner, .site-footer { display: none !important; }
  /* ツールセクションは文書だけを通常フローで出力 */
  .tool-section { padding: 0 !important; background: #fff !important; }
  .tool-section .container { max-width: none; padding: 0; }
  .tool-section .sec-title, .tool-panel, .tool-preview__bar { display: none !important; }
  .tool { display: block !important; }
  .tool-preview { min-width: 0; }
  #page { box-shadow: none; border: none; padding: 0; width: 100%; }
  .doc-tag { display: none !important; }
  .token { background: transparent !important; padding: 0 !important; }
  [data-edit] { background: transparent !important; outline: none !important; }
}
