:root{
  --bg: #f5f2ec;
  --panel: #efebe2;
  --fg: #1c1a17;
  --muted: #726f66;
  --accent: #8a1f24;
  --line: #d9d3c4;
}

/* Cocoonテーマの「カスタム背景(壁紙)」設定を無効化し、常にこのデザインの背景色にする */
body.custom-background,
body{
  background: var(--bg) !important;
  margin:0;
  color: var(--fg);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 300;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

/* このデザインの範囲はすべて #vgw でスコープし、Cocoon本体のCSSより優先されるようにする */
#vgw{ box-sizing: border-box; text-wrap: pretty; }
#vgw *{ box-sizing: border-box; }
#vgw a{ color: inherit; text-decoration: none; }
#vgw .nb{ white-space: nowrap; }

/* header */
#vgw .site-header{
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
#vgw .site-header-in{
  position: relative;
  max-width: 1200px; margin:0 auto; padding: 22px 32px;
  display:flex; align-items:center; justify-content:space-between;
}
#vgw .brand{
  display:flex; align-items:center; gap:14px;
  font-family:"Shippori Mincho", serif;
  font-size: 18px; letter-spacing: .18em; font-weight:600;
}
#vgw .brand-mark{ height: 58px; width:auto; display:block; }
#vgw .brand-text small{ display:block; font-family:"Noto Sans JP",sans-serif; font-weight:300; font-size:10px; letter-spacing:.2em; color:var(--muted); margin-top:4px; }
#vgw .nav-links{ display:flex; gap:40px; }
#vgw .nav-links a{
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid transparent; padding-bottom: 4px;
  transition: color .25s, border-color .25s;
}
#vgw .nav-links a:hover, #vgw .nav-links a.current{ color: var(--fg); border-color: var(--accent); }

/* mobile menu toggle button(スマホ幅でのみ表示するハンバーガーボタン) */
#vgw .nav-toggle{
  display:none;
  flex-direction:column; justify-content:center; align-items:center; gap:5px;
  width:34px; height:34px;
  background:none; border:none; padding:0; cursor:pointer;
}
#vgw .nav-toggle-bar{
  display:block; width:22px; height:1px; background: var(--fg);
  transition: transform .25s ease, opacity .25s ease;
}
#vgw .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1){ transform: translateY(6px) rotate(45deg); }
#vgw .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2){ opacity:0; }
#vgw .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3){ transform: translateY(-6px) rotate(-45deg); }

/* hero */
#vgw .hero{
  max-width: 1200px; margin: 0 auto;
  padding: 64px 32px 100px;
  display:grid; grid-template-columns: 1fr;
  row-gap: 40px;
}
#vgw .hero-text{ display:grid; row-gap: 28px; }
#vgw .eyebrow{
  font-size: 12px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); font-weight:500;
}
#vgw .hero h1{
  font-family:"Shippori Mincho", serif;
  font-weight: 600;
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.4;
  margin: 0;
  max-width: none;
}
#vgw .hero-rule{ width:64px; height:2px; background: var(--accent); margin: 8px 0; }
#vgw .hero-lede{
  max-width: 56ch;
  font-size: 16px;
  color: #3c3a35;
  font-weight: 300;
}
#vgw .hero-lede p{ margin: 0 0 .3em; }
#vgw .hero-meta{
  margin-top: 24px;
  display:flex; gap:48px; flex-wrap: wrap;
  font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase;
}
#vgw .hero-meta div span{ display:block; color: var(--fg); font-size: 13px; line-height: 1.7; letter-spacing: .04em; margin-top: 6px; text-transform:none; font-family:"Shippori Mincho",serif; }

/* section head (shared by exhibits / specs / biz / history) */
#vgw .section-head{
  display:flex; align-items:baseline; justify-content:space-between;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  padding: 26px 0; margin-bottom: 10px;
}
#vgw .section-head h2{
  font-family:"Shippori Mincho", serif; font-size: 22px; font-weight:600; margin:0;
  letter-spacing: .06em;
}
#vgw .section-head span{ font-size:11px; letter-spacing:.2em; color:var(--muted); text-transform:uppercase; }

/* specimen photo plate (now the hero visual) */
#vgw .specimen-frame{ margin:0; border: 1px solid var(--line); padding: 10px; background:#fff; }
#vgw .specimen-frame img{ display:block; width:100%; height:auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; filter: saturate(.92) contrast(1.02); }
#vgw .specimen-frame figcaption{
  display:flex; flex-direction:column; gap:8px;
  padding: 16px 8px 6px;
}
#vgw .specimen-tag{ font-family:"Shippori Mincho", serif; font-size: 12px; letter-spacing:.1em; color: var(--accent); white-space:nowrap; }
#vgw .specimen-note{ font-size: 12px; letter-spacing:.02em; color: var(--muted); max-width: 46ch; }

@media (min-width: 980px){
  #vgw .hero{ grid-template-columns: 1.15fr .85fr; align-items:start; column-gap: 64px; }
  #vgw .specimen-frame img{ aspect-ratio: 3 / 4; }
}

/* section: exhibits (business works list) */
#vgw .exhibits{ max-width: 1200px; margin: 0 auto; padding: 40px 32px 100px; }

#vgw .exhibit{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
#vgw .exhibit:first-of-type{ padding-top: 64px; }
#vgw .exhibit-index{
  font-family:"Shippori Mincho", serif;
  font-size: 15px; color: var(--accent); letter-spacing:.08em;
  position: sticky; top: 140px;
}
#vgw .exhibit-index em{ display:block; font-style:normal; font-size:11px; color:var(--muted); margin-top:6px; letter-spacing:.14em; }
#vgw .exhibit-title{
  font-family:"Shippori Mincho", serif; font-weight:600;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0 0 18px;
}
#vgw .exhibit-body{ max-width: 62ch; font-size: 15px; color:#3c3a35; }
#vgw .exhibit-body p{ margin:0 0 .9em; }
#vgw .exhibit-body p:last-child{ margin-bottom:0; }
#vgw .exhibit-body ul{ margin:0; padding:0; list-style:none; }
#vgw .exhibit-body ul li{ margin-bottom: .9em; }
#vgw .exhibit-body ul li:last-child{ margin-bottom:0; }

/* 事業紹介の各項目に添える現場写真・動画(specimen-frameと同系統の額装スタイル) */
#vgw .exhibit-photo{
  margin: 24px 0 0; max-width: 480px;
  border: 1px solid var(--line); background: #fff; padding: 8px;
}
#vgw .exhibit-photo img,
#vgw .exhibit-photo video{
  display:block; width:100%; height:auto; background:#000;
}
#vgw .exhibit-photo figcaption{
  padding: 10px 4px 2px;
  font-size: 12px; letter-spacing:.02em; color: var(--muted);
}

/* section: specs (company facts definition list) */
#vgw .specs{ max-width: 1200px; margin: 0 auto; padding: 40px 32px 20px; }
#vgw .spec-row{
  display:grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
#vgw .spec-row:first-of-type{ padding-top: 40px; }
#vgw .spec-label{
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding-top: 4px;
}
#vgw .spec-value{ font-family:"Shippori Mincho", serif; font-size: 17px; color:#2a2824; line-height:1.8; }
#vgw .spec-value .sub{ display:block; font-family:"Noto Sans JP",sans-serif; font-weight:300; font-size:13px; color:var(--muted); margin-top:8px; letter-spacing:.04em; }

/* section: business lines list */
#vgw .biz{ max-width: 1200px; margin: 0 auto; padding: 40px 32px 20px; }
#vgw .biz-list{
  list-style:none; margin: 8px 0 0; padding:0;
  display:grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px;
}
#vgw .biz-list li{
  display:flex; gap:16px; align-items:baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color:#2a2824;
}
#vgw .biz-list li .d{ flex: 1 1 auto; }
#vgw .biz-list li .n{
  font-family:"Shippori Mincho", serif; color: var(--accent);
  font-size: 13px; letter-spacing:.04em; min-width: 26px;
}

/* section: history */
#vgw .history{ max-width: 1200px; margin: 0 auto; padding: 40px 32px 160px; }
#vgw .history-body{ max-width: 70ch; font-size: 16px; color:#3c3a35; margin-top: 24px; }
#vgw .history-body p{ margin:0 0 1em; }
#vgw .history-link{ color:#0645ad; font-weight:700; }
#vgw .history-link:visited{ color:#6b2fa0; }

/* section: faq (よくある質問) */
#vgw .faq{ max-width: 1200px; margin: 0 auto; padding: 40px 32px 160px; }
#vgw .faq-item{ padding: 30px 0; border-bottom: 1px solid var(--line); }
#vgw .faq-item:first-of-type{ padding-top: 40px; }
#vgw .faq-q{
  font-family:"Shippori Mincho", serif; font-weight:600;
  font-size: 17px; color:#2a2824; margin-bottom: 12px;
  max-width: 60ch; text-wrap: pretty;
}
#vgw .faq-a{
  font-size: 15px; color:#3c3a35; max-width: 60ch;
  text-wrap: pretty;
}

/* section: legal (プライバシーポリシー等) */
#vgw .legal{ max-width: 900px; margin: 0 auto; padding: 40px 32px 160px; }
#vgw .legal-body h3{
  font-family:"Shippori Mincho", serif; font-weight:600;
  font-size: 17px; color:#2a2824; margin: 2em 0 .8em;
}
#vgw .legal-body h3:first-child{ margin-top: 0; }
#vgw .legal-body p{ font-size: 15px; color:#3c3a35; margin: 0 0 1em; }
#vgw .legal-body ul{ margin: 0 0 1em; padding-left: 1.4em; font-size: 15px; color:#3c3a35; }
#vgw .legal-body ul li{ margin-bottom: .5em; }

/* footer */
#vgw .site-footer{
  border-top: 1px solid var(--line);
  padding: 48px 32px 60px;
}
#vgw .site-footer-in{
  max-width: 1200px; margin:0 auto;
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
}
#vgw .site-footer .brand{ font-size:14px; }
#vgw .copyright{ font-size:11px; letter-spacing:.1em; color: var(--muted); }

@media (max-width: 720px){
  #vgw .hero{ padding: 100px 20px 80px; }
  #vgw .exhibit{ grid-template-columns: 1fr; }
  #vgw .exhibit-index{ position: static; }
  #vgw .spec-row{ grid-template-columns: 1fr; gap: 8px; }
  #vgw .biz-list{ grid-template-columns: 1fr; }
}

/* ナビゲーションのハンバーガーメニュー切り替え:
   リンク数が増えた(事業紹介・会社概要・よくある質問・お問い合わせ・
   プライバシーポリシーの5つ)ため、720px幅ではまだ横並びのリンクが
   折り返して文字が途中で改行されてしまう。980px以下でハンバーガーに
   切り替えることで、その手前のタブレット幅でも崩れないようにしている。 */
@media (max-width: 980px){
  #vgw .nav-toggle{ display:inline-flex; }
  #vgw .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  #vgw .nav-links.is-open{ max-height: 400px; }
  #vgw .nav-links a{
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }
}
