/* RAY合同会社 — 白地・墨・方眼。差し色は琥珀のひとます */
:root {
  --paper: #fafaf8;
  --soft: #f2f1ed;
  --ink: #15171c;
  --mute: #585b63;
  --line: #e2e1dc;
  --ray: #d7a23f;
  --ray-deep: #7d5a12;
  --max: 1120px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: "Manrope", "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  font-size: 16px; line-height: 1.95; letter-spacing: .03em; font-feature-settings: "palt" 0;
  -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
:lang(en) body, html[lang="en"] body { letter-spacing: 0; line-height: 1.75; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: .25em; text-decoration-thickness: 1px; }
a:hover { color: var(--ray-deep); }
:focus-visible { outline: 2px solid var(--ray-deep); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-weight: 500; line-height: 1.5; letter-spacing: .04em; margin: 0; }
p { margin: 0 0 1.2em; }
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* ヘッダー */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(250, 250, 248, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.head-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand span { font-family: "Manrope", sans-serif; font-weight: 600; letter-spacing: .34em; font-size: 17px; padding-left: .1em; }
.brand .mark { width: 20px; height: 20px; color: var(--ray); }
.gnav { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 14px; }
.gnav a { text-decoration: none; position: relative; padding: 4px 0; }
.gnav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--ray); }
.gnav .nav-cta { border: 1px solid var(--ink); padding: 7px 18px; border-radius: 999px; }
.gnav .nav-cta:hover { background: var(--ink); color: var(--paper); }
.gnav .nav-cta[aria-current="page"]::after { display: none; }
.lang-sw { display: flex; gap: 2px; font-family: "Manrope", sans-serif; font-size: 12px; letter-spacing: .08em; }
.lang-sw a { text-decoration: none; padding: 4px 6px; color: var(--mute); }
.lang-sw a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .25s, top .25s; }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 25px; }
.site-head.open .menu-btn span:first-child { top: 21.5px; transform: rotate(45deg); }
.site-head.open .menu-btn span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* トップ */
.hero { position: relative; overflow: hidden; min-height: min(82vh, 760px); display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.hero-in { position: relative; z-index: 1; padding-top: clamp(72px, 12vh, 140px); padding-bottom: clamp(72px, 12vh, 140px); }
.eyebrow { font-family: "Manrope", sans-serif; font-size: 13px; letter-spacing: .24em; color: var(--ray-deep); margin-bottom: 28px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 64px); line-height: 1.42; letter-spacing: .05em; font-weight: 500; }
/* 日本語の見出しは、1行が行の途中で1〜2字だけ落ちない大きさにする */
html[lang="ja"] .hero h1 { font-size: min(60px, calc((100vw - 2 * var(--gut)) / 13.5)); }
.hero .lead { margin: 32px 0 44px; color: var(--mute); font-size: clamp(15px, 1.5vw, 18px); line-height: 2.1; }
.grid { position: absolute; top: 0; right: 0; width: 768px; height: 768px; max-width: none; pointer-events: none; }
.grid rect[fill="#d7a23f"] { opacity: 0; animation: cell .9s .4s ease-out forwards; }
@keyframes cell { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .grid rect[fill="#d7a23f"] { animation: none; opacity: 1; } }

/* 共通の区切り */
.sec { padding: clamp(64px, 9vw, 128px) 0; }
.sec-tight { padding-top: 0; }
.sec-soft { background: var(--soft); }
.label { font-family: "Manrope", sans-serif; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); margin: 0 0 20px; }
.label span { color: var(--ray-deep); margin-right: 14px; font-weight: 600; }
.sec h2 { font-size: clamp(22px, 2.6vw, 32px); margin-bottom: 28px; }
.split { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
.split > div { max-width: 720px; }
.more { margin-top: 28px; }
.arrow { text-decoration: none; display: inline-flex; align-items: center; gap: 12px; font-size: 15px; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }
.arrow::after { content: "→"; font-family: "Manrope", sans-serif; transition: transform .2s; }
.arrow:hover::after { transform: translateX(4px); }
.arrow.back::after { content: ""; }
.arrow.back::before { content: "←"; font-family: "Manrope", sans-serif; }

/* 事業 */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; margin-top: 12px; }
.svc { border-top: 1px solid var(--ink); padding-top: 24px; }
.svc-no { font-family: "Manrope", sans-serif; font-size: 13px; color: var(--ray-deep); letter-spacing: .1em; margin-bottom: 14px; }
.svc h3 { font-size: 19px; margin-bottom: 14px; }
.svc p:last-child { color: var(--mute); font-size: 15px; margin: 0; }
.steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.step-no { display: block; font-family: "Manrope", sans-serif; font-weight: 300; font-size: 44px; line-height: 1; color: var(--ray); margin-bottom: 18px; }
.steps h3 { font-size: 19px; margin-bottom: 10px; }
.steps p { color: var(--mute); font-size: 15px; margin: 0; }
.sub { font-size: 15px; color: var(--mute); margin: 32px 0 12px; letter-spacing: .08em; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 14px; height: 1px; background: var(--ray); }
.flow { list-style: none; padding: 0; margin: 0; counter-reset: f; }
.flow li { display: flex; gap: 22px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.flow li span { font-family: "Manrope", sans-serif; font-size: 13px; color: var(--ray-deep); letter-spacing: .1em; }

/* 会社概要 */
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { border-top: 1px solid var(--line); }
.facts dt { color: var(--mute); font-size: 14px; }
.facts dd { margin: 0; }
.facts.small > div { padding: 12px 0; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain.links li + li { margin-top: 14px; }
.link-card { display: grid; gap: 8px; text-decoration: none; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.link-card::after { content: "→"; font-family: "Manrope", sans-serif; position: absolute; right: clamp(24px, 4vw, 48px); top: 50%; transform: translateY(-50%); font-size: 22px; transition: transform .2s; }
.link-card:hover::after { transform: translate(6px, -50%); }
.link-card .label { margin: 0; }
.lc-title { font-size: clamp(20px, 2.2vw, 26px); }
.lc-lead { color: var(--mute); padding-right: 48px; }

/* 下層ページの見出し */
.phero { position: relative; overflow: hidden; padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.phero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(#e4e3dd 1px, transparent 1px), linear-gradient(90deg, #e4e3dd 1px, transparent 1px); background-size: 48px 48px; background-position: right -1px top -1px; -webkit-mask-image: linear-gradient(105deg, transparent 45%, #000 100%); mask-image: linear-gradient(105deg, transparent 45%, #000 100%); }
.phero .wrap { position: relative; }
.phero h1 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 18px; }
.phero .lead { color: var(--mute); max-width: 720px; }
.crumbs { font-size: 13px; color: var(--mute); margin-top: 32px; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { text-decoration: none; }
.crumbs i { font-style: normal; margin: 0 8px; color: var(--line); }
.nf { min-height: 60vh; }

/* 文章のページ */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(19px, 2vw, 23px); margin: 56px 0 18px; }
.prose h2:first-child, .prose .draft-note + h2 { margin-top: 0; }
.legal h2 { font-size: 18px; margin-top: 44px; }
.legal ul, .legal ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.legal li { margin-bottom: .4em; }
.est { color: var(--mute); margin: 0; }
.legal .est:first-of-type { margin-top: 56px; }
.sign { margin-top: 56px; display: grid; justify-items: end; gap: 4px; }
.sign span { font-size: 13px; color: var(--mute); }
.sign strong { font-weight: 500; font-size: 22px; letter-spacing: .2em; }
.draft-note { background: #fbf1dc; border-left: 3px solid var(--ray); padding: 12px 16px; font-size: 14px; margin-bottom: 40px; }
.note-lang { font-size: 13px; color: var(--mute); margin-top: 24px; }

/* お知らせ */
.news { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news a { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.news time { color: var(--mute); font-size: 14px; font-family: "Manrope", "Zen Kaku Gothic New", sans-serif; }

/* お問い合わせ */
.cform .f { margin-bottom: 26px; }
.cform label { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 8px; }
.cform label em { font-style: normal; font-size: 11px; letter-spacing: .06em; color: var(--paper); background: var(--ink); padding: 1px 8px; border-radius: 2px; }
.cform label em.opt { background: none; color: var(--mute); border: 1px solid var(--line); }
.cform input, .cform select, .cform textarea { width: 100%; font: inherit; font-size: 16px; letter-spacing: .02em; color: var(--ink); background: #fff; border: 1px solid #cfcec8; border-radius: 4px; padding: 12px 14px; }
.cform textarea { resize: vertical; min-height: 180px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 2px solid var(--ray-deep); outline-offset: 1px; border-color: transparent; }
.cform .check { display: flex; gap: 12px; align-items: flex-start; }
.cform .check input { width: 20px; height: 20px; margin: 4px 0 0; flex: none; accent-color: var(--ink); }
.cform .check label { margin: 0; font-size: 15px; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.f-note { font-size: 14px; margin: -8px 0 32px; }
.cform-status { margin-top: 20px; min-height: 1.6em; font-size: 15px; }

/* ボタン・お問い合わせの帯 */
.btn { display: inline-block; text-decoration: none; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 14px 34px; border-radius: 999px; font: inherit; font-size: 15px; letter-spacing: .08em; cursor: pointer; transition: background .2s, color .2s; }
.btn:hover { background: transparent; color: var(--ink); }
.band { background: var(--ink); color: var(--paper); padding: clamp(56px, 8vw, 96px) 0; }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.band h2 { font-size: clamp(21px, 2.4vw, 28px); margin-bottom: 12px; }
.band p { margin: 0; color: #c9cad0; }
.btn-light { background: var(--ray); color: var(--ink); border-color: var(--ray); flex: none; }
.btn-light:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

/* フッター */
.site-foot { padding: 56px 0 40px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 40px; }
.foot-brand p { margin: 10px 0 0; color: var(--mute); font-size: 13px; }
.foot-nav, .foot-legal { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.foot-nav a, .foot-legal a { text-decoration: none; }
.foot-legal { grid-column: 1; font-size: 13px; color: var(--mute); }
.copy { grid-column: 2; justify-self: end; margin: 0; color: var(--mute); font-family: "Manrope", sans-serif; font-size: 12px; letter-spacing: .1em; }

/* とても広い画面：文字を少し大きく */
@media (min-width: 2200px) {
  :root { --max: 1360px; }
  body { font-size: 18px; }
}

/* タブレット以下 */
@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .svc-grid, .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .band-in { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .head-in { gap: 8px; }
  .lang-sw { margin-left: auto; }
  .gnav { position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 24px; display: none; font-size: 16px; }
  .site-head.open .gnav { display: flex; }
  .gnav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gnav a[aria-current="page"]::after { display: none; }
  .gnav a[aria-current="page"] { color: var(--ray-deep); }
  .gnav .nav-cta { margin-top: 18px; text-align: center; border-radius: 999px; padding: 12px; }
}
@media (max-width: 560px) {
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .news a { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .copy { grid-column: 1; justify-self: start; }
  .lc-lead { padding-right: 32px; }
}
@media print {
  .site-head, .band, .menu-btn, .grid { display: none !important; }
  body { background: #fff; }
}

/* 料金の目安 */
.facts.price dd { font-weight: 500; }
.note-s { font-size: 13px; color: var(--mute); margin-top: 16px; max-width: 44em; }
.links-row { display: flex; flex-wrap: wrap; gap: 16px 32px; }

/* ===== 2026-10-14 デザインの見直し：写真・手書きの線・節ごとの形 ===== */
/* 手で引いた蛍光ペンの線 */
.hl { background: url("marker.svg") no-repeat 0 88% / 100% .42em; padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* トップ：文と写真を左右に */
.hero2 { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); min-height: min(88vh, 880px); border-bottom: 1px solid var(--line); }
.hero2-text { display: flex; flex-direction: column; justify-content: center; padding: clamp(64px, 10vh, 120px) clamp(24px, 4vw, 64px) clamp(56px, 8vh, 96px) max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); }
.hero2 h1 { font-weight: 500; line-height: 1.45; letter-spacing: .05em; font-size: clamp(28px, 3.6vw, 52px); }
/* 「名前がつく前の仕事から、」（12字）が左の列に1行で収まる大きさ */
html[lang="ja"] .hero2 h1 { font-size: clamp(24px, calc((50vw - 60px) / 13.6), 40px); letter-spacing: .04em; }
@media (min-width: 2200px) { html[lang="ja"] .hero2 h1 { font-size: 48px; } }
.hero2 .lead { margin: 32px 0 40px; color: var(--mute); font-size: clamp(15px, 1.25vw, 17px); line-height: 2.1; max-width: 34em; }
.hero2-photo { margin: 0; position: relative; overflow: hidden; background: var(--soft); }
.hero2-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; display: block; }

/* 目的：大きな言葉と、少しずらした本文 */
.statement-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 clamp(32px, 6vw, 96px); align-items: end; }
.statement-in .label { grid-column: 1 / -1; }
.statement h2.big { font-size: clamp(30px, 4.4vw, 60px); line-height: 1.38; letter-spacing: .04em; margin: 0; }
.statement-body { color: var(--mute); margin: 0; padding-bottom: .4em; }

/* 進め方：墨の地に、大きな3つの言葉 */
.sec-ink { background: var(--ink); color: var(--paper); }
.sec-ink .label { color: #a9abb2; }
.sec-ink h2 { color: var(--paper); }
.bigsteps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px); }
.bigsteps .w { display: inline-block; font-size: clamp(48px, 7vw, 108px); font-weight: 500; line-height: 1.15; letter-spacing: .06em; }
html[lang="en"] .bigsteps .w { font-family: "Manrope", sans-serif; font-size: clamp(34px, 4.2vw, 64px); letter-spacing: 0; }
.bigsteps .e { display: block; font-family: "Manrope", sans-serif; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ray); margin: 18px 0 10px; }
html[lang="en"] .bigsteps .e { display: none; }
.bigsteps p { color: #c9cad0; font-size: 15px; margin: 12px 0 0; max-width: 22em; }

/* 代表のことば：引用の形 */
.quote-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.quote-in .label { grid-column: 1 / -1; }
.quote blockquote { margin: 0; }
.quote .q { font-size: clamp(26px, 3.6vw, 48px); line-height: 1.5; letter-spacing: .05em; margin: 0 0 20px; }
.quote .q::before { content: "“"; display: block; font-family: "Manrope", sans-serif; font-size: 1.6em; line-height: .6; color: var(--ray); margin-bottom: .2em; }
.quote footer { display: flex; gap: 16px; align-items: baseline; color: var(--mute); font-size: 13px; }
.quote footer strong { color: var(--ink); font-weight: 500; font-size: 18px; letter-spacing: .2em; }

/* 写真の帯（事業内容・代表メッセージ） */
.photo-band { padding: clamp(24px, 4vw, 56px) 0 0; }
.photo-band img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; display: block; border-radius: 2px; }

@media (max-width: 900px) {
  .hero2 { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero2-text { padding: 56px var(--gut) 40px; }
  html[lang="ja"] .hero2 h1 { font-size: min(40px, calc((100vw - 2 * var(--gut)) / 13)); }
  .hero2-photo { aspect-ratio: 4 / 3; }
  .statement-in, .quote-in { grid-template-columns: minmax(0, 1fr); }
  .statement h2.big { margin-bottom: 24px; }
  .bigsteps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .photo-band img { aspect-ratio: 4 / 3; }
}

/* よくあるご質問 */
.faq { border-bottom: 1px solid var(--line); }
.faq:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Manrope", sans-serif; position: absolute; right: 4px; top: 18px; font-size: 22px; color: var(--ray-deep); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--mute); margin: -6px 0 24px; }
.svc h3 a { text-decoration: none; }
.svc h3 a:hover { color: var(--ray-deep); }
.foot-legal { row-gap: 8px; }
