/* ValleyHill合同会社 コーポレートサイト（デザイン: 案A「紙と明朝」2026-09-11 採用。元は _designs/a-editorial.css） */

/* 英字・数字: Source Serif 4（日本語の源ノ明朝／Noto Serif JP と対になる書体。OFL。英字の範囲だけを読み込む） */
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f5f2ea;
  --paper-deep: #ede8dc;
  --ink: #1c1b19;
  --sub: #5f5b52;
  --rule: #d6cfbf;
  --accent: #1d6b7b;          /* ロゴの青緑（#44acc1）を、文字が読める濃さまで落とした色（紙とのコントラスト 5.45） */
  --accent-logo: #44acc1;     /* ロゴそのものの青緑。細い線などの飾りにだけ使う */
  --error: #9a3b26;           /* 入力エラーの表示 */
  --wrap: 1120px;
  --mincho: "Source Serif 4", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Yu Mincho", "YuMincho", "BIZ UDPMincho", "Noto Serif JP", serif;
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --latin: "Source Serif 4", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--gothic); font-size: 15.5px; line-height: 1.95; letter-spacing: 0.03em;
  font-feature-settings: "palt";
}
body:lang(en) { letter-spacing: 0.005em; line-height: 1.75; font-size: 16px; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--mincho); font-weight: 600; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(245, 242, 234, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* 会社ロゴ（2016 年制作。元データから scripts/make_logo.py で SVG 化） */
.brand-logo { display: block; height: 40px; width: auto; }
.site-nav { display: flex; gap: 26px; font-size: 0.86rem; }
.site-nav a { text-decoration: none; white-space: nowrap; }
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--gothic); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; }
.lang a { text-decoration: none; color: var(--sub); }
.lang a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent-logo); }
.lang-sep { color: var(--rule); }

/* ---------- hero ---------- */
.hero { padding: 132px 0 116px; border-bottom: 1px solid var(--rule); }
.hero-sub { display: flex; align-items: center; gap: 14px; color: var(--accent); font-size: 0.84rem; letter-spacing: 0.16em; margin-bottom: 34px; }
.hero-sub::before { content: ""; width: 40px; height: 1px; background: var(--accent-logo); }
.hero-sub:lang(en) { letter-spacing: 0.04em; font-size: 0.9rem; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.52; letter-spacing: 0.08em; font-weight: 600; }
.hero h1:lang(en) { font-family: var(--latin); font-weight: 600; letter-spacing: -0.01em; line-height: 1.22; font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
.lead { margin-top: 40px; max-width: 38em; color: var(--sub); font-size: 1.02rem; }
@media (prefers-reduced-motion: no-preference) {
  .hero-sub, .hero h1, .lead { animation: rise 0.9s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: 0.12s; }
  .lead { animation-delay: 0.26s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- sections ---------- */
.section { padding: 104px 0; border-bottom: 1px solid var(--rule); }
.section-grid { display: grid; grid-template-columns: 250px 1fr; gap: 72px; }
.section-grid > * { min-width: 0; }
.section-head { align-self: start; position: sticky; top: 112px; }
.section-no { font-family: var(--latin); font-size: 2rem; font-weight: 400; line-height: 1; letter-spacing: 0.02em; font-variant-numeric: lining-nums; color: var(--accent); margin-bottom: 16px; }
.section-head h2 { font-size: 1.62rem; letter-spacing: 0.08em; line-height: 1.5; }
.section-head h2:lang(en) { font-family: var(--latin); font-weight: 600; font-size: 1.7rem; letter-spacing: 0; line-height: 1.25; }
.section-lead { margin-top: 18px; color: var(--sub); font-size: 0.92rem; }

/* サービス：罫線で区切る番号付きリスト */
.service-list { list-style: none; margin: 0; padding: 0; counter-reset: svc; }
.service { counter-increment: svc; display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; padding: 30px 0 32px; border-top: 1px solid var(--rule); }
.service:last-child { border-bottom: 1px solid var(--rule); }
.service::before { content: counter(svc, decimal-leading-zero); grid-row: span 2; font-family: var(--latin); font-size: 1.15rem; font-variant-numeric: lining-nums tabular-nums; color: var(--sub); line-height: 1.7; }
.service h3 { font-size: 1.24rem; letter-spacing: 0.06em; line-height: 1.6; }
.service h3:lang(en) { font-family: var(--latin); font-weight: 600; font-size: 1.24rem; letter-spacing: 0; line-height: 1.4; }
.service p { margin-top: 10px; color: var(--sub); max-width: 40em; }
.service.is-focus h3 { color: var(--accent); }

/* 生成AIの4段階：2列の罫線 */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.step { padding: 30px 0 34px; border-top: 1px solid var(--rule); }
.step h3 { display: flex; align-items: baseline; gap: 16px; font-size: 1.3rem; letter-spacing: 0.1em; }
.step h3:lang(en) { font-family: var(--latin); font-weight: 600; font-size: 1.28rem; letter-spacing: 0; }
.step-no { font-family: var(--latin); font-weight: 400; font-size: 1.9rem; line-height: 1; font-variant-numeric: lining-nums; color: var(--accent); letter-spacing: 0; }
.step-sub { margin: 6px 0 12px; font-size: 0.84rem; color: var(--accent); letter-spacing: 0.08em; }
.step p:last-child { color: var(--sub); font-size: 0.94rem; }
.step-sub:lang(en), .case-industry:lang(en) { letter-spacing: 0.02em; }
.principle { margin-top: 36px; padding: 6px 0 6px 22px; border-left: 2px solid var(--accent-logo); font-family: var(--mincho); font-size: 1.04rem; line-height: 2; }
.principle:lang(en) { font-family: var(--latin); font-size: 1.1rem; line-height: 1.7; }

/* 実績 */
.industries { margin-bottom: 44px; line-height: 2.2; }
.industries-label { display: block; font-size: 0.8rem; letter-spacing: 0.14em; color: var(--sub); margin-bottom: 6px; }
.industries span:not(.industries-label) { font-family: var(--mincho); font-size: 1.02rem; white-space: nowrap; display: inline-block; }
.industries span:not(.industries-label) + span::before { content: "／"; color: var(--rule); margin: 0 0.5em; font-family: var(--gothic); }
.industries:lang(en) span:not(.industries-label) { font-family: var(--latin); font-size: 1.02rem; white-space: normal; }
.industries:lang(en) span:not(.industries-label) + span::before { content: "/"; }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.case { padding: 26px 0 30px; border-top: 1px solid var(--rule); }
.case-industry { font-size: 0.8rem; letter-spacing: 0.12em; color: var(--accent); }
.case h3 { margin: 8px 0 10px; font-size: 1.12rem; line-height: 1.7; letter-spacing: 0.05em; }
.case h3:lang(en) { font-family: var(--latin); font-weight: 600; font-size: 1.1rem; line-height: 1.45; letter-spacing: 0; }
.case p:last-child { color: var(--sub); font-size: 0.93rem; }
.confidential { margin-top: 26px; font-size: 0.82rem; color: var(--sub); }

/* 会社概要 */
.company { width: 100%; border-collapse: collapse; }
.company th, .company td { text-align: left; vertical-align: top; padding: 22px 0; border-top: 1px solid var(--rule); }
.company tr:last-child th, .company tr:last-child td { border-bottom: 1px solid var(--rule); }
.company th { width: 11em; font-family: var(--mincho); font-weight: 600; letter-spacing: 0.1em; padding-right: 24px; }

/* お問い合わせ */
.contact .section-body > p:first-child { max-width: 36em; }
.contact-action { margin-top: 30px; }
.contact-link { font-family: var(--mincho); font-size: 1.55rem; letter-spacing: 0.06em; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 6px; }
.contact-link:lang(en) { font-family: var(--latin); font-size: 1.4rem; letter-spacing: 0; }
.contact-link::after { content: "→"; margin-left: 14px; font-family: var(--latin); transition: margin 0.2s ease; }
.contact-link:hover { border-color: var(--accent); }
.contact-link:hover::after { margin-left: 22px; }
.contact-note { margin-top: 28px; font-size: 0.84rem; color: var(--sub); }
.section.contact { border-bottom: 0; }

/* フッター */
.site-footer { background: var(--paper-deep); padding: 44px 0 52px; font-size: 0.84rem; color: var(--sub); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 32px; }
.footer-brand { font-family: var(--mincho); color: var(--ink); margin-right: auto; }
.site-footer nav { display: flex; gap: 22px; }
.copyright { font-size: 0.8rem; letter-spacing: 0.04em; }

/* プライバシーポリシー */
.doc { padding: 80px 0 100px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: 0.1em; }
.doc .meta { margin: 12px 0 44px; color: var(--sub); font-size: 0.9rem; }
.doc h2 { font-size: 1.14rem; letter-spacing: 0.08em; margin: 48px 0 14px; padding-top: 22px; border-top: 1px solid var(--rule); }
.doc p, .doc li { color: #34322d; }
.doc p + p { margin-top: 0.8em; }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc .box { border: 1px solid var(--rule); padding: 20px 24px; margin-bottom: 12px; }

/* お問い合わせフォーム */
.contact-form { margin-top: 8px; }
.field { margin-bottom: 28px; }
.contact-form input, .contact-form select, .contact-form textarea { scroll-margin-top: 150px; } /* エラーで移動したとき、見出しがヘッダーに隠れないように */
.field > label { display: block; margin-bottom: 8px; font-family: var(--mincho); font-weight: 600; letter-spacing: 0.06em; }
.field > label:lang(en) { font-family: var(--gothic); letter-spacing: 0.01em; }
.req, .opt { margin-left: 12px; padding: 0 7px; border: 1px solid currentColor; font-family: var(--gothic); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.08em; vertical-align: 0.15em; }
.req { color: var(--accent); }
.opt { color: var(--sub); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
  display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 0;
  background: #fbfaf6; color: var(--ink); font: inherit; letter-spacing: 0.02em;
}
.contact-form textarea { min-height: 14em; line-height: 1.8; resize: vertical; }
.contact-form select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--sub) 50%), linear-gradient(135deg, var(--sub) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.contact-form [aria-invalid="true"] { border-color: var(--error); background-color: #fbf1ec; }
.field-error { margin-top: 6px; color: var(--error); font-size: 0.86rem; }
.field-agree label { display: flex; align-items: center; gap: 12px; font-family: var(--gothic); font-weight: 400; letter-spacing: 0.02em; }
.field-agree input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.field-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 36px; }
.form-actions button {
  padding: 15px 56px; border: 0; background: var(--ink); color: var(--paper); cursor: pointer;
  font-family: var(--mincho); font-size: 1.08rem; letter-spacing: 0.16em; transition: background 0.2s ease;
}
.form-actions button:lang(en) { font-family: var(--latin); font-size: 1.05rem; font-weight: 600; letter-spacing: 0.06em; }
.form-actions button:hover { background: var(--accent); }
.form-actions button:disabled { opacity: 0.5; cursor: wait; }
.form-status { min-height: 1.6em; margin-top: 16px; color: var(--sub); }
.back-link { margin-top: 36px; }
.site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent-logo); }

/* 下書きの要確認箇所（公開前にすべて除去する。deploy.sh が検出して公開を止める） */
.todo { background: #fff1a8; outline: 2px dashed #e0b400; outline-offset: 2px; color: #1c1b19; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .section-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { position: static; }
  .site-nav { gap: 18px; }
}
@media (max-width: 760px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 14px 0 0; gap: 0; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; gap: 22px; padding: 10px 0 12px; margin-top: 10px; border-top: 1px solid var(--rule); scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .hero { padding: 84px 0 76px; }
  .section { padding: 76px 0; }
  .steps, .cases { grid-template-columns: 1fr; }
  .service { grid-template-columns: 48px 1fr; }
  .company th, .company td { display: block; width: 100%; padding: 0; border: 0; }
  .company th { padding-top: 18px; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--sub); }
  .company td { padding: 4px 0 18px; }
  .company tr:last-child td { border-bottom: 1px solid var(--rule); }
  .company tr:last-child th { border-bottom: 0; }
}

@media (max-width: 560px) {
  /* 見出しの2行目（12字）が1行に収まるよう画面幅に合わせる */
  .hero h1:lang(ja) { font-size: calc((100vw - 56px) / 13.3); letter-spacing: 0.08em; }
  .site-nav { gap: 12px; font-size: 0.76rem; }
}
@media (max-width: 400px) {
  .brand-logo { height: 34px; }
}
