/* ============================================================
   大屋印刷株式会社 提案デモサイト
   印刷会社らしく「校正の朱」を差し色にした、紙とインクの配色
   ============================================================ */

:root {
  --sumi: #1c2130;      /* 墨・インク（ヘッダー/フッター） */
  --sumi-2: #262c40;
  --sumi-3: #313a54;
  --shu: #b3341f;        /* 朱色（校正・検印を連想させるCTA色） */
  --shu-dark: #8f2818;
  --gold: #ad8a45;       /* 差し色（数字・装飾） */
  --paper: #f7f3ea;      /* 用紙のクリーム */
  --paper-2: #efe8d8;
  --white: #ffffff;
  --line: #ddd2b8;
  --text: #2b271f;
  --text-weak: #6f6653;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(28, 33, 48, .10);
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- 上部インフォバー ---------- */
.topbar { background: var(--sumi); color: #c7c2b3; font-size: 12.5px; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #e7dfc9; }
.topbar .addr { white-space: nowrap; opacity: .85; }

/* ---------- ヘッダー ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; max-width: 1280px; height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 44px; height: 44px; flex: none;
  background: linear-gradient(135deg, var(--sumi) 0%, var(--sumi-3) 100%);
  border-radius: 6px; display: grid; place-items: center;
  color: #f0b078; font-family: var(--font-serif); font-weight: 600; font-size: 21px;
}
.brand-text { line-height: 1.3; }
.brand-text .name { font-weight: 700; font-size: 17px; color: var(--sumi); letter-spacing: .04em; white-space: nowrap; font-family: var(--font-serif); }
.brand-text .tagline { font-size: 10px; color: var(--text-weak); letter-spacing: .12em; white-space: nowrap; }

.gnav ul { display: flex; flex-wrap: nowrap; gap: 2px; }
.gnav a { display: block; padding: 10px clamp(8px, 1vw, 15px); font-size: 14.5px; font-weight: 500; border-radius: 6px; transition: background .2s, color .2s; white-space: nowrap; }
.gnav a:hover { background: #f2ede0; color: var(--sumi); }
.gnav a.current { color: var(--shu); font-weight: 700; }

.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }
.header-tel { text-align: right; line-height: 1.25; white-space: nowrap; }
.header-tel .num { font-family: var(--font-serif); font-weight: 700; font-size: 20px; color: var(--sumi); letter-spacing: .02em; white-space: nowrap; }
.header-tel .note { font-size: 10.5px; color: var(--text-weak); }
.btn-contact { background: var(--shu); color: #fff; font-weight: 700; font-size: 14px; padding: 12px 22px; border-radius: 6px; transition: background .2s; white-space: nowrap; }
.btn-contact:hover { background: var(--shu-dark); }

.menu-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; padding: 0 10px; }
.menu-toggle span { height: 2px; background: var(--sumi); border-radius: 2px; transition: .25s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー(トップ) ---------- */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("img/hero.jpg") center 42% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20, 24, 36, .90) 0%, rgba(20, 24, 36, .68) 45%, rgba(20, 24, 36, .30) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; }
.hero-en { font-family: var(--font-serif); font-weight: 600; letter-spacing: .28em; color: #f0b078; font-size: 13.5px; margin-bottom: 14px; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(28px, 4.4vw, 46px); font-weight: 700; line-height: 1.6; letter-spacing: .04em; margin-bottom: 20px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero p.lead { font-size: clamp(15px, 1.6vw, 17px); max-width: 580px; line-height: 2; margin-bottom: 32px; color: #ece7da; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 32px; border-radius: 6px; font-weight: 700; font-size: 15.5px; transition: .2s; cursor: pointer; border: none; }
.btn-primary { background: var(--shu); color: #fff; }
.btn-primary:hover { background: var(--shu-dark); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }

/* 実務バー */
.factbar { background: var(--sumi); color: #fff; }
.factbar .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.factbar .item { padding: 20px 18px; text-align: center; border-left: 1px solid rgba(255,255,255,.12); }
.factbar .item:first-child { border-left: none; }
.factbar .label { font-size: 11.5px; letter-spacing: .12em; color: #b8ac8e; margin-bottom: 4px; }
.factbar .value { font-weight: 700; font-size: 15px; line-height: 1.5; }
.factbar .value .big { font-family: var(--font-serif); font-size: 23px; font-weight: 700; color: #f0b078; }

/* ---------- セクション共通 ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--white); }
.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; }
.sec-en { font-family: var(--font-serif); font-weight: 600; font-size: 13px; letter-spacing: .32em; color: var(--shu); display: block; margin-bottom: 8px; }
.sec-head h2 { font-family: var(--font-serif); font-size: clamp(23px, 3vw, 30px); font-weight: 700; color: var(--sumi); letter-spacing: .04em; line-height: 1.6; }
.sec-head .sub { margin-top: 12px; color: var(--text-weak); font-size: 15px; max-width: 720px; }
.sec-head.center .sub { margin-left: auto; margin-right: auto; }

/* ---------- カード ---------- */
.cards { display: grid; gap: 26px; }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--line); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-family: var(--font-serif); font-size: 17.5px; font-weight: 700; color: var(--sumi); margin-bottom: 9px; }
.card p { font-size: 14px; color: var(--text-weak); line-height: 1.9; flex: 1; }
.card .more { margin-top: 14px; font-weight: 700; font-size: 13.5px; color: var(--shu); display: inline-flex; align-items: center; gap: 6px; }
.card .more::after { content: "→"; transition: transform .2s; }
.card:hover .more::after { transform: translateX(4px); }

/* 番号付き強みカード */
.reason { position: relative; padding: 30px 28px; }
.reason .num { font-family: var(--font-serif); font-weight: 700; font-size: 42px; color: var(--paper-2); line-height: 1; margin-bottom: 10px; }
.reason h3 { font-family: var(--font-serif); font-size: 17.5px; color: var(--sumi); }

/* ---------- メディア事業部バンド ---------- */
.media-band { position: relative; overflow: hidden; color: #fff; }
.media-band::before { content: ""; position: absolute; inset: 0; background: url("img/media.jpg") center 30% / cover no-repeat; }
.media-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,24,36,.92) 0%, rgba(20,24,36,.72) 55%, rgba(20,24,36,.40) 100%); }
.media-band .container { position: relative; z-index: 2; padding-top: 68px; padding-bottom: 68px; max-width: 640px; }
.media-band .en { font-family: var(--font-serif); font-size: 13px; letter-spacing: .32em; color: #f0b078; display: block; margin-bottom: 10px; }
.media-band h2 { font-family: var(--font-serif); font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; margin-bottom: 16px; letter-spacing: .04em; }
.media-band p { color: #ece7da; font-size: 15px; margin-bottom: 26px; }

/* ---------- 帯CTA ---------- */
.cta-band { position: relative; color: #fff; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url("img/rollers.jpg") center / cover no-repeat; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: rgba(18, 22, 33, .84); }
.cta-band .container { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; text-align: center; }
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(21px, 3vw, 28px); font-weight: 700; margin-bottom: 12px; letter-spacing: .04em; }
.cta-band p { color: #d8d2c1; margin-bottom: 28px; font-size: 15px; }
.cta-band .tel { font-family: var(--font-serif); font-size: clamp(28px, 4.2vw, 40px); font-weight: 700; color: #fff; letter-spacing: .03em; display: block; margin-bottom: 4px; }
.cta-band .tel-note { font-size: 13px; color: #b9b2a0; margin-bottom: 24px; }

/* ---------- テーブル ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 16px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 26%; background: #f2ede0; color: var(--sumi); font-weight: 700; white-space: nowrap; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }
.note { font-size: 12.5px; color: var(--text-weak); margin-top: 12px; }
.note.demo { color: #8a5a1f; }

/* プレースホルダ表記 */
.ph { color: #8a5a1f; background: #f7ecd9; border-radius: 4px; padding: 1px 7px; font-size: .92em; }

/* ---------- 事業内容ページ ---------- */
.svc-block { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); margin-bottom: 40px; }
.svc-block .photo { min-height: 300px; }
.svc-block .photo img { width: 100%; height: 100%; object-fit: cover; }
.svc-block .text { padding: 40px 42px; }
.svc-block.rev .photo { order: 2; }
.svc-block h3 { font-family: var(--font-serif); font-size: 21px; font-weight: 700; color: var(--sumi); margin-bottom: 6px; }
.svc-block .en { font-family: var(--font-serif); font-size: 12.5px; letter-spacing: .26em; color: var(--shu); font-weight: 600; display: block; margin-bottom: 14px; }
.svc-block p { font-size: 15px; color: var(--text); margin-bottom: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #f2ede0; color: var(--sumi-3); font-size: 13px; font-weight: 500; padding: 5px 13px; border-radius: 100px; border: 1px solid #e3d9bf; }

/* フロー */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.flow li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; box-shadow: var(--shadow); counter-increment: step; }
.flow li::before { content: "0" counter(step); font-family: var(--font-serif); font-weight: 700; font-size: 29px; color: var(--shu); display: block; margin-bottom: 8px; line-height: 1; }
.flow li:not(:last-child)::after { content: "▶"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); color: #c9bd9c; font-size: 12px; z-index: 2; }
.flow h3 { font-family: var(--font-serif); font-size: 16px; color: var(--sumi); margin-bottom: 6px; }
.flow p { font-size: 13.5px; color: var(--text-weak); line-height: 1.8; }

/* ---------- 拠点 ---------- */
.bases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.base { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px; }
.base .kind { display: inline-block; background: var(--sumi); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 100px; margin-bottom: 12px; letter-spacing: .08em; }
.base h3 { font-family: var(--font-serif); font-size: 18px; color: var(--sumi); margin-bottom: 8px; }
.base p { font-size: 14px; color: var(--text-weak); line-height: 1.9; }

/* ---------- FAQ ---------- */
.faq { max-width: 840px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { padding: 20px 24px; font-weight: 700; font-size: 15.5px; color: var(--sumi); cursor: pointer; list-style: none; position: relative; padding-left: 58px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; background: var(--sumi); color: #fff; border-radius: 6px; display: grid; place-items: center; font-family: var(--font-serif); font-size: 15px; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--shu); font-size: 22px; font-weight: 400; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .answer { padding: 0 24px 22px 58px; font-size: 14.5px; color: var(--text-weak); }

/* ---------- ページヘッダー(下層) ---------- */
.page-head { position: relative; color: #fff; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background: var(--ph-img, url("img/rollers.jpg")) center / cover no-repeat; }
.page-head::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,22,33,.92) 0%, rgba(18,22,33,.55) 100%); }
.page-head .container { position: relative; z-index: 2; padding-top: 74px; padding-bottom: 74px; }
.page-head .en { font-family: var(--font-serif); letter-spacing: .3em; font-weight: 600; color: #f0b078; font-size: 13px; display: block; margin-bottom: 8px; }
.page-head h1 { font-family: var(--font-serif); font-size: clamp(25px, 3.6vw, 36px); font-weight: 700; letter-spacing: .06em; }
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-weak); }
.breadcrumb .container { padding-top: 10px; padding-bottom: 10px; }
.breadcrumb a { color: var(--sumi-3); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span::before { content: "›"; margin: 0 8px; color: #c2b797; }

/* ---------- フォーム ---------- */
.form-wrap { max-width: 760px; margin: 0 auto; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 44px 46px; }
.form-row { margin-bottom: 22px; }
.form-row label { display: block; font-weight: 700; font-size: 14.5px; color: var(--sumi); margin-bottom: 8px; }
.req { background: var(--shu); color: #fff; font-size: 10.5px; font-weight: 700; border-radius: 4px; padding: 2px 8px; margin-left: 8px; vertical-align: 2px; }
.opt { background: #9c9276; }
.form-row input[type="text"], .form-row input[type="tel"], .form-row input[type="email"],
.form-row select, .form-row textarea { width: 100%; padding: 13px 15px; border: 1px solid #d6cbac; border-radius: 6px; font-family: inherit; font-size: 15px; background: #fbfaf6; transition: border-color .2s; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--shu); background: #fff; }
.form-row textarea { min-height: 150px; resize: vertical; }
.form-submit { text-align: center; margin-top: 30px; }
.form-submit .btn { min-width: 260px; }

.contact-channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.channel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; padding: 30px 22px; }
.channel .icon { font-size: 30px; margin-bottom: 8px; }
.channel h3 { font-family: var(--font-serif); font-size: 15.5px; color: var(--sumi); margin-bottom: 6px; }
.channel .big { font-family: var(--font-serif); font-size: 23px; font-weight: 700; color: var(--sumi); line-height: 1.3; }
.channel p { font-size: 12.5px; color: var(--text-weak); margin-top: 6px; }

/* ---------- 沿革 ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: #d9cdac; }
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 8px; width: 12px; height: 12px; background: var(--shu); border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--shu); }
.timeline .year { font-family: var(--font-serif); font-weight: 700; font-size: 19px; color: var(--sumi); }
.timeline p { font-size: 14.5px; color: var(--text-weak); }

/* ---------- フッター ---------- */
.footer { background: var(--sumi); color: #b9b2a0; margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding: 60px 0 44px; }
.footer h4 { font-family: var(--font-serif); color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.footer .brand-f { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer .brand-f .brand-mark { width: 38px; height: 38px; font-size: 18px; }
.footer .brand-f .name { color: #fff; font-weight: 700; font-size: 16.5px; font-family: var(--font-serif); }
.footer p, .footer li { font-size: 13.5px; line-height: 2; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; font-size: 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #8a8368; }

/* デモ注記バー */
.demo-note { background: #fdf6e8; border-top: 1px solid #ecdcb3; color: #7a5a1f; font-size: 12px; text-align: center; padding: 8px 16px; }

/* ---------- スクロールリビール ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) { .header-tel { display: none; } }
@media (max-width: 960px) {
  .gnav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(28,33,48,.12); display: none; z-index: 99; }
  .gnav.open { display: block; }
  .gnav ul { flex-direction: column; padding: 12px 20px 20px; gap: 0; }
  .gnav a { padding: 14px 10px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-toggle { display: flex; }
  .factbar .container { grid-template-columns: repeat(2, 1fr); }
  .factbar .item { border-left: none; border-top: 1px solid rgba(255,255,255,.12); }
  .factbar .item:nth-child(-n+2) { border-top: none; }
  .factbar .item:nth-child(even) { border-left: 1px solid rgba(255,255,255,.12); }
  .cards.c3, .cards.c4, .cards.c2 { grid-template-columns: 1fr 1fr; }
  .svc-block { grid-template-columns: 1fr; }
  .svc-block.rev .photo { order: 0; }
  .svc-block .photo { min-height: 220px; aspect-ratio: 16 / 9; }
  .svc-block .text { padding: 30px 26px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:not(:last-child)::after { display: none; }
  .bases { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; }
  .topbar .addr { display: none; }
}
@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .hero { min-height: 480px; }
  .flow { grid-template-columns: 1fr; }
  .cards.c3, .cards.c4, .cards.c2 { grid-template-columns: 1fr; }
  .form-wrap { padding: 30px 22px; }
  .spec-table th { width: 34%; white-space: normal; }
  .btn-contact { padding: 10px 14px; font-size: 13px; }
}
@media (max-width: 700px) { .brand .tagline { display: none; } .brand-text .tagline { display: none; } }
@media (max-width: 560px) { .header-cta .btn-contact { display: none; } }
.menu-toggle { flex: 0 0 auto; }
