@charset "UTF-8";
/* ==========================================================
   アールキカク 共通スタイル
   配色は旧サイト（2014）から抽出：生成り地・京緑・スレート・ローズ
   ブレークポイント：1024px（ナビ切替・タイル4列）／768px（タブレット）／480px（スマホ）
   ========================================================== */

:root {
  --bg: #f9eeda;
  --paper: #fffaf1;
  --ink: #26302b;
  --sub: #5d6762;
  --line: #e3d5ba;
  --green: #2d8d64;
  --green-d: #1f6e4d;
  --green-l: #51b78f;
  --green-t: #e6f2ea;
  --slate: #507c94;
  --rose: #a84150;
  --radius: 16px;
  --radius-s: 10px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Outfit", "Zen Kaku Gothic New", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: .02em;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--green); }
h1, h2, h3, p, ul, address { margin: 0; }
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; } /* 日本語見出しを文節で改行（対応ブラウザのみ） */
ul { padding: 0; list-style: none; }
address { font-style: normal; }
.inner { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sp-only { display: none; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.6em;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.btn:hover { transform: translateY(-1px); }
.btn-rose { background: var(--rose); color: #fff; }
.btn-rose:hover { background: #8f3442; }
.btn-white { background: #fff; color: var(--green-d); }
.btn-white:hover { background: var(--green-t); }
.btn-line { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.14); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-d); }
.btn-outline { border-color: var(--green); color: var(--green-d); background: transparent; }
.btn-outline:hover { background: var(--green-t); }
.btn-lg { min-height: 56px; font-size: 16px; padding-inline: 2em; }
.ext::after { width: 12px; height: 12px; border: 0; transform: none;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1H1v10h10V8M7 1h4v4M11 1 5 7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4 1H1v10h10V8M7 1h4v4M11 1 5 7' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- ヘッダー ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.hd-inner { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo-ja { font-size: 28px; font-weight: 900; letter-spacing: .04em; line-height: 1; white-space: nowrap; }
.logo-en { display: flex; flex-direction: column; font-family: var(--font-en); font-weight: 700; color: var(--green); font-size: 15px; line-height: 1.15; letter-spacing: .08em; padding-left: 12px; border-left: 2px solid var(--green-l); }
.logo-en small { font-family: var(--font); font-weight: 500; font-size: 11px; color: var(--sub); letter-spacing: .04em; white-space: nowrap; }
.hd-contact { display: flex; align-items: center; gap: 20px; }
.hd-tel { display: flex; flex-direction: column; text-decoration: none; color: var(--green-d); font-family: var(--font-en); font-weight: 700; font-size: 24px; line-height: 1.1; letter-spacing: .03em; white-space: nowrap; }
.hd-tel small { font-family: var(--font); font-size: 11px; font-weight: 500; color: var(--sub); letter-spacing: .04em; }
.menu-btn { display: none; }

.gnav { background: var(--green); }
.gnav ul { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: .8fr 1fr 1.6fr 1fr 1fr 1fr; }
.gnav li { border-left: 1px solid rgba(255,255,255,.2); }
.gnav li:last-of-type { border-right: 1px solid rgba(255,255,255,.2); }
.gnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 8px 6px; color: #fff; text-decoration: none; line-height: 1.35; transition: background-color .2s; }
.gnav a span { font-weight: 700; font-size: 15px; }
.gnav a small { font-family: var(--font-en); font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .04em; }
.gnav a:hover, .gnav a[aria-current="page"] { background: var(--green-d); }
.gnav .gnav-sp { display: none; }

/* ---------- メインビジュアル（タイル） ---------- */
.hero { max-width: var(--wrap); margin: 0 auto; padding: clamp(16px, 3vw, 32px) var(--gutter) 0; }
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 15vw, 186px);
  gap: 12px;
  grid-template-areas:
    "brand brand brand p1   ink  p2"
    "brand brand brand cut  p3   p3"
    "docs  docs  p4    p5   works works";
}
.tile { position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none; }
.t-brand { grid-area: brand; background: var(--green); padding: clamp(24px, 3.2vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; }
.brand-en { position: absolute; top: -.18em; left: -.04em; font-family: var(--font-en); font-weight: 700; font-size: clamp(80px, 11vw, 150px); line-height: 1; color: rgba(255,255,255,.1); letter-spacing: 0; white-space: nowrap; pointer-events: none; }
.t-brand h1 { position: relative; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.25; font-weight: 900; letter-spacing: .03em; }
.brand-lead { position: relative; margin-top: 14px; font-size: 15px; line-height: 1.8; max-width: 30em; opacity: .95; }
.brand-btns { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.t-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.t-photo:hover img { transform: scale(1.05); }
.cap { position: absolute; left: 10px; bottom: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(38,48,43,.72); font-size: 12px; line-height: 1.7; }
.a-p1 { grid-area: p1; } .a-p2 { grid-area: p2; } .a-p3 { grid-area: p3; } .a-p4 { grid-area: p4; } .a-p5 { grid-area: p5; }

.t-letter { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 12px; transition: filter .2s; }
.t-letter::before { content: attr(data-letter); position: absolute; left: 6%; top: 50%; transform: translateY(-50%); font-family: var(--font-en); font-weight: 700; font-size: clamp(120px, 14vw, 190px); line-height: 1; color: rgba(255,255,255,.12); }
.t-letter:hover { filter: brightness(1.08); }
.t-label { position: relative; font-family: var(--font-en); font-weight: 700; font-size: clamp(18px, 1.9vw, 24px); letter-spacing: .08em; line-height: 1.3; }
.t-sub { position: relative; font-size: 12px; opacity: .85; letter-spacing: .1em; }
.t-rose { background: var(--rose); }
.t-slate { background: var(--slate); }
.t-green { background: var(--green-d); }
.t-green .t-label { font-family: var(--font); font-weight: 900; letter-spacing: .04em; }
.t-green .t-sub { font-family: var(--font-en); font-weight: 700; font-size: 14px; }
.a-ink { grid-area: ink; } .a-cut { grid-area: cut; } .a-works { grid-area: works; }

.t-docs { grid-area: docs; background: var(--paper); color: var(--ink); display: grid; grid-template-columns: 38% 1fr; grid-template-rows: minmax(0, 1fr); align-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.t-docs img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.docs-text { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.docs-text strong { font-size: clamp(15px, 1.45vw, 19px); white-space: nowrap; line-height: 1.45; font-weight: 900; color: var(--green-d); }
.docs-more { font-size: 13px; font-weight: 700; color: var(--rose); display: inline-flex; align-items: center; gap: .5em; }
.docs-more::after { content: ""; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.t-docs:hover { box-shadow: inset 0 0 0 2px var(--green-l); }

/* ---------- セクション共通 ---------- */
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec-paper { background: var(--paper); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(24px, 3vw, 40px); }
/* 旧サイトの「緑の旗」付き見出しをCSSで再現 */
.sec-title { position: relative; padding-left: 26px; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; font-weight: 900; letter-spacing: .04em; }
.sec-title::before { content: ""; position: absolute; left: 0; top: .2em; width: 14px; height: 1.1em; background: var(--green); clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); }
.sec-title small { display: block; font-family: var(--font-en); font-weight: 500; font-size: 14px; color: var(--green); letter-spacing: .06em; line-height: 1.5; margin-top: 2px; }
.more { display: inline-flex; align-items: center; gap: .6em; font-weight: 700; font-size: 15px; color: var(--green-d); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid var(--green-l); }
.more::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* ---------- 最新の施工事例 ---------- */
.works { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.works a { display: flex; flex-direction: column; height: 100%; background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); transition: transform .25s, box-shadow .25s; }
.works a:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -12px rgba(38,48,43,.35), 0 0 0 1px var(--line); }
.works img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.w-name { padding: 14px 16px 0; font-weight: 700; font-size: 16px; line-height: 1.5; }
.w-more { margin-top: auto; padding: 8px 16px 14px; font-size: 13px; font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: .5em; }
.w-more::after { content: ""; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }

/* ---------- アールキカクで看板をつくると ---------- */
.merits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.merit { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); }
.merit img { width: 100%; aspect-ratio: 280 / 200; object-fit: cover; object-position: center 35%; }
.merit h3 { margin: 22px 22px 0; padding-top: 14px; font-size: 20px; line-height: 1.45; font-weight: 900; border-top: 4px solid; }
.merit p { margin: 10px 22px 0; font-size: 15px; line-height: 1.85; }
.merit p:last-child { margin-bottom: 24px; }
.merit .note { font-size: 12px; color: var(--sub); line-height: 1.7; }
.m-slate h3 { border-color: var(--slate); color: var(--slate); }
.m-green h3 { border-color: var(--green); color: var(--green-d); }
.m-rose h3 { border-color: var(--rose); color: var(--rose); }

/* ---------- 京都市の許可 ---------- */
.kyoto { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--paper); border-radius: calc(var(--radius) * 1.5); padding: clamp(24px, 4vw, 48px); box-shadow: 0 0 0 1px var(--line); }
.kyoto-img img { width: 100%; border-radius: var(--radius); transform: rotate(-2deg); box-shadow: 0 14px 30px -14px rgba(38,48,43,.45); }
.kyoto-body h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.45; font-weight: 900; color: var(--green-d); letter-spacing: .03em; }
.kyoto-body > p { margin-top: 16px; }
.kyoto-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.badge { margin-top: 24px; padding: 12px 16px 12px 46px; position: relative; background: var(--green-t); border-radius: var(--radius-s); font-size: 14px; line-height: 1.7; color: var(--green-d); font-weight: 500; }
.badge::before { content: ""; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ---------- お問い合わせ誘導 ---------- */
.cta { background: var(--green); color: #fff; padding-block: clamp(48px, 7vw, 80px); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: center; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.4; font-weight: 900; letter-spacing: .04em; }
.cta p { margin-top: 10px; opacity: .92; }
.cta-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.cta-tel { display: flex; flex-direction: column; align-items: center; color: #fff; text-decoration: none; font-family: var(--font-en); font-weight: 700; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: .04em; white-space: nowrap; }
.cta-tel small { font-family: var(--font); font-size: 13px; font-weight: 500; opacity: .85; margin-bottom: 4px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--ink); color: #e9e4d8; padding-top: clamp(48px, 6vw, 72px); font-size: 14px; line-height: 1.9; }
.site-footer a { color: #fff; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; }
.ft-nav ul { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 64px; }
.ft-logo { font-size: 24px; font-weight: 900; color: #fff; letter-spacing: .04em; line-height: 1.2; margin-bottom: 14px; }
.ft-logo small { margin-left: 10px; font-family: var(--font-en); font-weight: 700; font-size: 13px; color: var(--green-l); letter-spacing: .08em; }
.ft-info address { margin-top: 12px; }
.map-link { display: inline-flex; align-items: center; gap: .5em; margin-top: 12px; font-weight: 700; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.ft-nav ul { display: grid; gap: 4px; }
.ft-nav a { text-decoration: none; opacity: .9; }
.ft-nav a:hover { opacity: 1; text-decoration: underline; }
.copy { margin-top: clamp(40px, 5vw, 64px); padding: 18px var(--gutter); border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: 12px; opacity: .7; }

/* ---------- ページトップ・スマホ固定バー ---------- */
.pagetop { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: var(--green); box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.pagetop::before { content: ""; position: absolute; left: 50%; top: 55%; width: 12px; height: 12px; border-top: 3px solid #fff; border-left: 3px solid #fff; transform: translate(-50%, -50%) rotate(45deg); }
.pagetop.is-show { opacity: 1; visibility: visible; }
.sp-bar { display: none; }

/* ---------- スクロール時のフェード（JS有効時のみ） ---------- */
.js .fade { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.js .fade.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .fade { opacity: 1; transform: none; transition: none; }
  .t-photo img, .btn, .works a { transition: none; }
}

/* ==========================================================
   1024px以下：ハンバーガーメニュー／タイル4列
   ========================================================== */
@media (max-width: 1024px) {
  html { scroll-padding-top: 80px; }
  .hd-inner { padding-block: 10px; gap: 16px; }
  .menu-btn {
    display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 56px; height: 56px; border: 0; border-radius: 12px; background: var(--green); color: #fff; cursor: pointer; font: inherit;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .25s, background-color .25s; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; } .menu-icon::after { top: 7px; }
  .menu-label { font-size: 10px; line-height: 1; margin-top: 6px; letter-spacing: 0; white-space: nowrap; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100dvh - 76px); overflow-y: auto; box-shadow: 0 16px 24px -16px rgba(0,0,0,.4); }
  .gnav.is-open { display: block; }
  .gnav ul { grid-template-columns: 1fr; padding: 8px var(--gutter) 16px; }
  .gnav li, .gnav li:last-of-type { border: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .gnav a { flex-direction: row; justify-content: space-between; min-height: 58px; padding: 8px 4px; text-align: left; }
  .gnav a small { font-size: 12px; }
  .gnav .gnav-sp { display: block; }

  .bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: clamp(130px, 21vw, 190px);
    grid-template-areas:
      "brand brand brand brand"
      "brand brand brand brand"
      "p1    ink   p2    cut"
      "p3    p3    docs  docs"
      "p4    p5    works works";
  }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}

/* ==========================================================
   768px以下：タブレット
   ========================================================== */
@media (max-width: 768px) {
  body { padding-bottom: 64px; }
  .hd-contact { display: none; }
  .logo-ja { font-size: 24px; }
  .bento { grid-template-areas:
      "brand brand brand brand"
      "brand brand brand brand"
      "p1    p1    ink   cut"
      "docs  docs  docs  docs"
      "p3    p3    p2    p2"
      "p4    p5    works works"; }
  .merits { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
  .merit { display: grid; grid-template-columns: 38% 1fr; }
  .merit img { height: 100%; aspect-ratio: auto; grid-row: 1 / span 3; }
  .merit h3 { margin: 18px 18px 0; font-size: 18px; }
  .merit p { margin: 8px 18px 0; font-size: 14px; }
  .merit p:last-child { margin-bottom: 18px; }
  .kyoto { grid-template-columns: minmax(0, 1fr); }
  .kyoto-img { max-width: 260px; margin-inline: auto; }
  .cta-inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .cta-actions { align-items: center; }

  .sp-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-shadow: 0 -4px 16px -6px rgba(0,0,0,.3); }
  .sp-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; padding-bottom: env(safe-area-inset-bottom, 0); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; }
  .sp-bar a::before { content: ""; width: 20px; height: 20px; background: #fff; -webkit-mask: var(--ic) center/contain no-repeat; mask: var(--ic) center/contain no-repeat; }
  .sp-tel { background: var(--green); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E"); }
  .sp-mail { background: var(--rose); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18v14H3z M3 5l9 7 9-7' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E"); }
  .pagetop { bottom: 76px; right: 14px; width: 46px; height: 46px; }
}

/* ==========================================================
   480px以下：スマホ
   ========================================================== */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .sp-only { display: inline; }
  .logo { gap: 8px; }
  .logo-ja { font-size: 21px; }
  .logo-en { font-size: 12px; padding-left: 8px; }
  .logo-en small { font-size: 9.5px; }
  .menu-btn { width: 50px; height: 50px; }
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 132px;
    gap: 8px;
    grid-template-areas:
      "brand brand"
      "brand brand"
      "brand brand"
      "p1    ink"
      "cut   p2"
      "docs  docs"
      "p3    p3"
      "p4    p5"
      "works works";
  }
  .t-brand { padding: 22px; }
  .brand-lead { font-size: 14px; }
  .brand-btns .btn { flex: 1 1 auto; padding-inline: 1em; }
  .t-docs { grid-template-columns: 40% 1fr; }
  .works { gap: 10px; }
  .w-name { font-size: 14px; padding: 10px 12px 0; }
  .w-more { padding: 6px 12px 12px; font-size: 12px; }
  .merit { grid-template-columns: minmax(0, 1fr); }
  .merit img { grid-row: auto; aspect-ratio: 280 / 170; height: auto; }
  .kyoto-btns .btn { width: 100%; }
  .badge { font-size: 13px; }
  .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .ft-nav ul { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================
   下層ページ共通
   ========================================================== */
.page-head { position: relative; overflow: hidden; background: var(--green); color: #fff; padding-block: clamp(36px, 6vw, 72px) clamp(20px, 3vw, 28px); }
.page-head::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; border-radius: 40px; background: rgba(255,255,255,.07); transform: rotate(18deg); }
.page-title { position: relative; z-index: 1; font-size: clamp(28px, 4vw, 44px); line-height: 1.3; font-weight: 900; letter-spacing: .04em; }
.page-title small { display: block; margin-top: 4px; font-family: var(--font-en); font-weight: 500; font-size: 15px; letter-spacing: .08em; opacity: .8; }
.crumbs { position: relative; z-index: 1; margin-top: clamp(20px, 3vw, 36px); font-size: 13px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 0; list-style: none; }
.crumbs li { opacity: .85; }
.crumbs li + li::before { content: "/"; margin: 0 .7em; opacity: .6; }
.crumbs a { color: #fff; }
.crumbs [aria-current] { opacity: 1; font-weight: 700; }

.sec-tight { padding-block: clamp(40px, 6vw, 72px); }
.lead-text { font-size: clamp(16px, 1.6vw, 18px); margin-bottom: clamp(24px, 3vw, 36px); }
.note { font-size: 13px; color: var(--sub); line-height: 1.75; margin-top: 14px; }
.note-sub { font-size: 12px; color: var(--sub); margin-top: 18px; }
.em { color: var(--green-d); font-weight: 700; background: linear-gradient(transparent 62%, rgba(81,183,143,.28) 62%); }
.quote { margin-top: 20px; padding-left: 18px; border-left: 4px solid var(--green-l); font-weight: 700; font-size: 17px; line-height: 1.9; color: var(--green-d); }
.callout { margin-top: clamp(28px, 4vw, 40px); padding: 18px 22px; border-radius: var(--radius-s); background: #fff; box-shadow: inset 4px 0 0 var(--rose), 0 0 0 1px var(--line); font-weight: 700; }
.sub-title { position: relative; margin: clamp(32px, 4vw, 48px) 0 18px; padding: 0 0 10px 0; font-size: clamp(19px, 2vw, 22px); font-weight: 900; line-height: 1.45; border-bottom: 2px solid var(--line); }
.sub-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 2px; background: var(--green); }
.sec-head + .sub-title { margin-top: 0; }
.split-body p + p { margin-top: 14px; }
.split-body .sec-title { margin-bottom: 20px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px); gap: clamp(24px, 4vw, 56px); align-items: center; }
.split-rev { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); }
.split-img { margin: 0; }
.split-img img { width: 100%; border-radius: var(--radius); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.info-box { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: center; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.fig-card { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.fig-card img { width: 100%; }
.fig-card figcaption { padding: 12px 16px 16px; font-weight: 700; font-size: 15px; line-height: 1.5; }

.ba { display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: center; gap: 8px; max-width: 960px; }
.ba figure { margin: 0; position: relative; }
.ba img { width: 100%; border-radius: var(--radius); }
.ba figcaption { position: absolute; left: 12px; top: 12px; padding: 2px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-en); font-weight: 700; font-size: 14px; letter-spacing: .06em; }
.ba figure:last-of-type figcaption { background: var(--rose); }
.ba-arrow { justify-self: center; width: 0; height: 0; border-left: 16px solid var(--green); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.ba-text { margin-top: 18px; font-weight: 700; font-size: 17px; }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.cmp { background: var(--paper); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.cmp-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 900; line-height: 1.3; margin-bottom: 14px; }
.cmp-title span { display: block; font-family: var(--font-en); font-weight: 700; font-size: 14px; letter-spacing: .1em; }
.cmp-cut .cmp-title span { color: var(--slate); }
.cmp-ink .cmp-title span { color: var(--rose); }
.cmp-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.cmp-imgs img { width: 100%; aspect-ratio: 426 / 230; object-fit: cover; border-radius: var(--radius-s); }
.cmp-use { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--sub); line-height: 1.7; }
.cmp-use b { display: block; color: var(--ink); }
.advice { max-width: 860px; }
.advice .sec-title { margin-bottom: 18px; }
.advice p + p { margin-top: 12px; }

.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.photo-grid li { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tag { position: absolute; left: 10px; top: 10px; padding: 2px 12px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; }
.tag-ink { background: var(--rose); }
.tag-cut { background: var(--slate); }
.data-box { background: #fff; border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); box-shadow: 0 0 0 1px var(--line); }
.check-list li { position: relative; padding-left: 30px; }
.check-list li + li { margin-top: 12px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

.flow { list-style: none; padding: 0; margin: 0; counter-reset: flow; max-width: 920px; }
.flow li { position: relative; counter-increment: flow; padding: 0 0 clamp(24px, 3vw, 32px) 76px; }
.flow li::before { content: counter(flow); position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-family: var(--font-en); font-weight: 700; font-size: 22px; }
.flow li::after { content: ""; position: absolute; left: 25px; top: 56px; bottom: 4px; width: 2px; background: repeating-linear-gradient(var(--green-l) 0 6px, transparent 6px 12px); }
.flow li:last-child { padding-bottom: 0; }
.flow li:last-child::after { display: none; }
.flow h3 { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; font-weight: 900; color: var(--rose); padding-top: 10px; margin-bottom: 6px; }
.flow p { font-size: 15px; }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(8px, 2vw, 16px); }
.jump a { padding: 8px 16px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.jump a:hover { background: var(--green-t); color: var(--green-d); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 45%), 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.product-grid li { background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; }
.product-grid img { max-height: 274px; width: auto; }

/* ---------- 施工・製作例 ---------- */
.works-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: clamp(32px, 4vw, 48px); }
.pager ol { display: flex; gap: 6px; padding: 0; margin: 0; list-style: none; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-family: var(--font-en); font-weight: 700; }
.pager a { background: var(--paper); color: var(--green-d); box-shadow: 0 0 0 1px var(--line); }
.pager a:hover { background: var(--green-t); }
.pager [aria-current] { background: var(--green); color: #fff; }
.pager .is-off { color: #bbb0a0; }
.pager .pg-prev, .pager .pg-next { font-family: var(--font); font-size: 14px; }

.work { max-width: 960px; margin: 0 auto; }
.work-head time { font-family: var(--font-en); font-weight: 700; color: var(--green); letter-spacing: .06em; }
.work-head h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.35; font-weight: 900; letter-spacing: .03em; }
.work-main { margin: 20px 0 0; }
.work-main img { width: 100%; border-radius: var(--radius); }
.work-spec { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 20px 0 0; }
.work-spec div { display: flex; gap: 8px; }
.work-spec dt { font-weight: 700; color: var(--green-d); }
.work-spec dd { margin: 0; }
.work-body { margin-top: 20px; font-size: 16px; }
.work-body p + p { margin-top: 12px; }
.work-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); margin-top: 28px; }
.work-gallery figure { margin: 0; }
.work-gallery img { width: 100%; border-radius: var(--radius-s); }
.work-gallery figcaption { margin-top: 8px; font-size: 14px; line-height: 1.6; }
.work-main a, .work-gallery a { display: block; cursor: zoom-in; }
.work-nav { max-width: 960px; margin: clamp(32px, 4vw, 48px) auto 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.work-nav a { display: flex; flex-direction: column; justify-content: center; padding: 12px 18px; border-radius: var(--radius-s); background: var(--paper); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.5; }
.work-nav a:hover { background: var(--green-t); }
.work-nav small { font-weight: 500; font-size: 12px; color: var(--sub); }
.work-nav .wn-next { text-align: right; }
.work-nav .wn-list { background: var(--green); color: #fff; align-items: center; }
.work-nav .wn-list:hover { background: var(--green-d); }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20,26,23,.86); }
.lightbox figure { margin: 0; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; border-radius: var(--radius-s); display: block; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 10px; font-size: 14px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); cursor: pointer; }
.lb-close { right: -8px; top: -56px; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 14px; top: 23px; width: 20px; height: 2px; background: var(--ink); transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: -60px; }
.lb-next { right: -60px; }
.lb-prev::before, .lb-next::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); }
.lb-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.lb-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }

/* ---------- お問い合わせ ---------- */
.contact-wrap { max-width: 860px; }
.contact-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding: 20px 24px; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); margin-bottom: clamp(28px, 4vw, 40px); }
.contact-tel { display: flex; flex-direction: column; text-decoration: none; color: var(--green-d); font-family: var(--font-en); font-weight: 700; font-size: 28px; line-height: 1.15; white-space: nowrap; }
.contact-tel small { font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--sub); }
.cform-steps { display: flex; justify-content: center; padding: 0; margin: 0 auto clamp(24px, 3vw, 36px); list-style: none; max-width: 420px; counter-reset: st; }
.cform-steps li { flex: 1; position: relative; text-align: center; padding-top: 40px; font-size: 13px; font-weight: 700; color: var(--sub); counter-increment: st; }
.cform-steps li::before { content: counter(st); position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #d6c8aa; color: #fff; font-family: var(--font-en); z-index: 1; }
.cform-steps li + li::after { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: #d6c8aa; }
.cform-steps .is-on { color: var(--green-d); }
.cform-steps .is-on::before { background: var(--green); }
.field { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.field > label, .field legend { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.req { display: inline-block; padding: 0 8px; border-radius: 4px; background: var(--rose); color: #fff; font-size: 11px; line-height: 1.8; font-weight: 700; }
.cform input[type="text"], .cform input[type="email"], .cform input[type="tel"], .cform select, .cform textarea {
  width: 100%; min-height: 50px; padding: 10px 14px; border: 1px solid #cdbf9f; border-radius: var(--radius-s); background: #fff; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6;
}
.cform textarea { min-height: 180px; resize: vertical; }
.cform input:focus, .cform select:focus, .cform textarea:focus { outline: 3px solid rgba(81,183,143,.45); border-color: var(--green); }
.cform [aria-invalid="true"] { border-color: var(--rose); background: #fff6f7; }
.err { margin-top: 6px; color: var(--rose); font-size: 14px; font-weight: 700; }
.addr { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 220px); gap: 10px; margin-bottom: 10px; }
.addr-zip { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.field-check label { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; font-weight: 500; cursor: pointer; }
.field-check input { width: 22px; height: 22px; accent-color: var(--green); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.cform-msg { text-align: center; font-weight: 700; margin-bottom: 20px; }
.confirm-list { margin: 0; border-top: 1px solid var(--line); }
.confirm-list dt { padding-top: 14px; font-weight: 700; font-size: 14px; color: var(--green-d); }
.confirm-list dd { margin: 4px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }

.done { max-width: 720px; margin: 0 auto; text-align: center; background: var(--paper); border-radius: calc(var(--radius) * 1.5); padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px); box-shadow: 0 0 0 1px var(--line); }
.done h2 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 900; color: var(--green-d); margin-bottom: 16px; line-height: 1.45; }
.done p { margin-bottom: 12px; }
.done .btn { margin-top: 16px; }
.link-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 20px; }
.error-list { text-align: left; display: inline-block; color: var(--rose); font-weight: 700; margin-bottom: 8px; }
.error-list li { list-style: disc; margin-left: 1.2em; }

.prose { max-width: 860px; }
.prose h2 { font-size: 20px; font-weight: 900; margin: 36px 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.prose ul { padding-left: 1.3em; margin-top: 8px; }
.prose ul li { list-style: disc; }

@media (max-width: 1024px) {
  .works-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-close { right: 4px; }
}
@media (max-width: 768px) {
  .split, .split-rev { grid-template-columns: minmax(0, 1fr); }
  .split-img { max-width: 420px; }
  .info-box { grid-template-columns: minmax(0, 1fr); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-gallery { grid-template-columns: minmax(0, 1fr); }
  .work-nav { grid-template-columns: 1fr 1fr; }
  .work-nav .wn-list { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 480px) {
  .cards-3 { grid-template-columns: minmax(0, 1fr); }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .ba-arrow { transform: rotate(90deg); }
  .flow li { padding-left: 62px; }
  .flow li::before { width: 44px; height: 44px; font-size: 18px; }
  .flow li::after { left: 21px; top: 48px; }
  .works-3 { gap: 10px; }
  .addr { grid-template-columns: minmax(0, 1fr); }
  .pager .pg-prev, .pager .pg-next { order: 2; }
  .pager ol { order: 1; width: 100%; justify-content: center; }
  .contact-tel { font-size: 24px; }
}

@media (max-width: 400px) {
  .logo-en small { display: none; }
}
