/* きくち秀英事務所:ロゴの紺と金茶を軸にしたデザイン(構造は旧テーマ BusinessPress のまま)
   旧テーマに寄せた版は style_旧テーマ寄せ版.css.bak に保存 */
:root {
  --ink: #333a44;
  --head: #13294a;
  --muted: #6b7480;
  --navy: #16325c;
  --navy-dark: #0f2342;
  --gold: #c08a3e;
  --gold-soft: #f6efe3;
  --line: #e3e7ed;
  --soft: #f5f7fa;
  --sans: "Noto Sans JP", "游ゴシック体", YuGothic, "Yu Gothic", "メイリオ", sans-serif;
  --serif: "Noto Serif JP", "游明朝", YuMincho, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.9; }
a { color: var(--navy); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--head); line-height: 1.5; word-break: auto-phrase; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.nw { display: inline-block; } /* 見出しの折り返し位置を固定(Safariはauto-phrase非対応) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 上の帯 */
.topbar { background: var(--navy-dark); font-size: 12px; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 22px; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #d6deea; text-decoration: none; }
.topbar a:hover { color: #fff; }

/* ヘッダー */
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.logo img { display: block; width: 240px; height: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.menu > li { position: relative; }
.menu a { display: block; white-space: nowrap; padding: 10px 13px; color: #2b3440; text-decoration: none; font-size: 14.5px; font-weight: 500; }
.menu > li > a { position: relative; }
.menu > li > a::before { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.menu > li > a:hover::before { transform: scaleX(1); }
.menu > li:last-child > a { background: var(--navy); color: #fff; border-radius: 999px; padding: 8px 20px; margin-left: 8px; }
.menu > li:last-child > a::before { display: none; }
.menu > li:last-child > a:hover { background: var(--gold); }
.menu .has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid #8a93a0; border-bottom: 1.5px solid #8a93a0; transform: rotate(45deg) translateY(-3px); }
.menu .sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 10px 28px rgba(15,35,66,.14); display: none; }
.menu .has-sub:hover .sub, .menu .has-sub:focus-within .sub { display: block; }
.menu .sub a { padding: 9px 20px; font-size: 14px; }
.menu .sub a:hover { background: var(--soft); color: var(--navy); }
.menu-toggle, .menu-button { display: none; }

/* トップの写真 */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; color: #fff;
  background: var(--navy) url("/images/2021/04/image_1_1280540.jpg") center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,35,66,.88) 0%, rgba(15,35,66,.62) 48%, rgba(15,35,66,.2) 100%); }
.hero-inner { position: relative; width: 100%; max-width: 1140px; margin: 0 auto; padding: 56px 20px; }
.hero-eyebrow { display: inline-block; margin: 0 0 14px; padding: 3px 14px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; font-size: 13px; letter-spacing: .08em; color: #e8edf5; }
.hero h1, .hero h2 { color: #fff; font-family: var(--serif); font-size: clamp(30px, 5vw, 48px); margin: 0 0 14px; letter-spacing: .04em; }
.hero h1::after, .hero h2::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 18px; }
.hero p { margin: 0 0 30px; font-size: 15.5px; color: #e3e9f2; max-width: 34em; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 12px 32px; border-radius: 999px; font-size: 15px; font-weight: 700; border: 2px solid var(--navy); font-family: var(--sans); cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.hero .btn { background: var(--gold); border-color: var(--gold); }
.hero .btn:hover { background: #a9762f; border-color: #a9762f; }
.hero .btn-ghost { background: transparent; border-color: rgba(255,255,255,.8); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: #a9762f; border-color: #a9762f; }

/* ページ見出し */
.page-header { position: relative; background: linear-gradient(120deg, var(--navy-dark), var(--navy) 60%, #24497d); color: #fff; padding: 46px 0 44px; margin-bottom: 44px; overflow: hidden; }
.page-header::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.05); }
.page-header h1 { margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(22px, 3.6vw, 30px); letter-spacing: .03em; }
.crumbs { margin: 0 0 6px; font-size: 12.5px; color: #b9c6d9; }
.crumbs a { color: #d6deea; text-decoration: none; }
.post-meta { margin: 6px 0 0; font-size: 13px; color: #c5d0e0; }
main { padding-bottom: 72px; }

/* 本文 */
.entry h2 { font-family: var(--serif); font-size: 25px; margin: 52px 0 18px; }
.entry h3 { font-size: 19px; margin: 40px 0 14px; padding: 4px 0 4px 14px; border-left: 4px solid var(--gold); background: linear-gradient(90deg, var(--soft), rgba(245,247,250,0)); }
.entry p { margin: 0 0 1.3em; }
.entry p:empty { display: none; }
.entry ul, .entry ol { padding-left: 1.5em; }
.entry li { margin: 4px 0; }
.entry li::marker { color: var(--gold); }
.entry table { width: 100% !important; border-collapse: collapse; margin: 0 0 1.8em; font-size: 15px; height: auto !important; background: #fff; }
.entry th, .entry td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.entry th, .entry thead th { background: #eef2f7; color: var(--head); font-weight: 700; }
.entry tr > td:first-child[width] { background: #eef2f7; font-weight: 700; color: var(--head); }
.has-text-align-center, .aligncenter { text-align: center; }
.wp-block-separator { border: 0; height: 1px; background: var(--line); margin: 56px auto; width: 100%; }
.wp-block-columns { display: flex; gap: 28px; margin: 24px 0; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-image { margin: 0 0 16px; }
.wp-block-image figure { margin: 0; }
.is-style-rounded img { border-radius: 50%; box-shadow: 0 6px 22px rgba(15,35,66,.15); }
.wp-block-buttons { display: flex; justify-content: center; margin: 0 0 16px; }
.wp-block-button__link { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; padding: 9px 26px; border-radius: 999px; font-size: 14.5px; font-weight: 700; transition: background .2s; }
.wp-block-button__link:hover { background: var(--gold); }

/* トップ */
.home-content { padding-top: 64px; max-width: 860px; }
.home-content > h2.has-text-align-center::after { content: ""; display: block; width: 48px; height: 3px; background: var(--gold); margin: 14px auto 0; }
.home-content > p { text-align: justify; }
.subheader, .section-eyebrow { color: var(--gold); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin: 56px 0 0; text-align: center; }
.container-wrapper h2, .section-title { font-family: var(--serif); font-size: 28px; text-align: center; margin: 4px 0 30px !important; }
.home-content .alignwide { width: min(1140px, calc(100vw - 40px)); position: relative; left: 50%; transform: translateX(-50%); gap: 24px; }
.home-content .alignwide .wp-block-column { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0 0 24px; box-shadow: 0 4px 18px rgba(15,35,66,.06); transition: transform .2s, box-shadow .2s; }
.home-content .alignwide .wp-block-column:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15,35,66,.12); }
.home-content .alignwide .wp-block-image { margin: 0 0 16px; }
.home-content .alignwide .wp-block-image img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; display: block; }
.home-content .alignwide p { padding: 0 20px; font-size: 14.5px; line-height: 1.8; text-align: left; }
.home-content .alignwide .wp-block-buttons { margin-top: auto; margin-bottom: 0; }

/* 実績 */
.stats { background: var(--soft); padding: 8px 0 56px; margin-top: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.stat { background: #fff; border-radius: 12px; padding: 26px 16px 22px; text-align: center; border-top: 4px solid var(--gold); box-shadow: 0 4px 16px rgba(15,35,66,.06); }
.stat-num { margin: 0; font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-num span { font-size: 16px; margin-left: 4px; color: var(--ink); }
.stat-label { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.stats-more { text-align: center; margin: 26px 0 0; }
.stats-more a { font-weight: 700; text-decoration: none; }

/* お問い合わせの帯(フォームのないページの下) */
.cta { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; padding: 52px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-eyebrow { margin: 0; color: var(--gold); font-size: 13px; letter-spacing: .2em; font-weight: 700; }
.cta-title { margin: 4px 0 6px; font-family: var(--serif); font-size: clamp(20px, 3vw, 26px); font-weight: 700; color: #fff; }
.cta-text { margin: 0; color: #cfd8e6; font-size: 14.5px; }
.cta-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.cta-tel { color: #fff; font-size: 22px; font-weight: 700; text-decoration: none; letter-spacing: .04em; }

/* お知らせ */
.news-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.news-list li { display: flex; gap: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--gold); font-size: 14px; font-weight: 700; white-space: nowrap; }
.news-list a { text-decoration: none; color: var(--ink); }
.news-list a:hover { color: var(--navy); text-decoration: underline; }
.back { margin-top: 32px; }

/* フォーム:幅を絞ったカードにまとめ、欄の長さを中身に合わせる */
.contact-form { max-width: 640px; margin: 32px auto 40px; padding: 34px 38px 36px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; box-shadow: 0 8px 28px rgba(15,35,66,.08); display: grid; gap: 22px; }
.contact-form label { display: grid; gap: 8px; font-size: 15px; font-weight: 700; color: var(--head); }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea { width: 100%; min-width: 0; padding: 12px 14px; font-size: 16px; font-weight: 400; font-family: var(--sans); color: var(--ink); border: 1px solid #cdd5e0; border-radius: 8px; background: #fbfcfe; transition: border-color .15s, box-shadow .15s, background .15s; }
.contact-form input[name=name] { max-width: 22em; }
.contact-form input[name=email] { max-width: 28em; }
.contact-form textarea { min-height: 11em; resize: vertical; line-height: 1.7; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; background: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,50,92,.14); }
.contact-form .agree { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.contact-form .btn { justify-self: center; min-width: 240px; padding: 13px 44px; font-size: 16px; letter-spacing: .12em; }
.contact-form .btn:hover { background: var(--gold); border-color: var(--gold); }
.req, .opt { margin-left: 8px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 3px; vertical-align: 2px; }
.req { color: #fff; background: #c0453b; }
.opt { color: var(--muted); background: #e8ecf2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* フッター */
.site-footer { background: #0b1a33; color: #b8c3d4; font-size: 14px; padding: 52px 0 0; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-name { margin: 0 0 4px; font-family: var(--serif); font-size: 20px; color: #fff; font-weight: 700; }
.footer-brand p { margin: 0 0 10px; line-height: 1.8; }
.footer-head { margin: 0 0 10px; color: #fff; font-weight: 700; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer a { color: #d3dbe7; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.copy { margin: 40px 0 0; padding: 16px 0; text-align: center; font-size: 12px; color: #7d8aa0; border-top: 1px solid rgba(255,255,255,.08); }

@media (max-width: 1000px) {
  .menu-button { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #2b3440; cursor: pointer; padding: 8px 4px; }
  .menu-button span, .menu-button span::before, .menu-button span::after { display: block; width: 20px; height: 2px; background: #2b3440; position: relative; }
  .menu-button span::before, .menu-button span::after { content: ""; position: absolute; left: 0; }
  .menu-button span::before { top: -6px; }
  .menu-button span::after { top: 6px; }
  .header-inner { flex-wrap: wrap; }
  .nav { display: none; width: 100%; padding-bottom: 12px; }
  .menu-toggle:checked ~ .nav { display: block; }
  .menu { flex-direction: column; gap: 0; }
  .menu a { padding: 11px 4px; border-top: 1px solid var(--line); font-size: 15px; }
  .menu > li > a::before, .menu .has-sub > a::after { display: none; }
  .menu > li:last-child > a { margin: 10px 0 0; text-align: center; }
  .menu .sub { display: block; position: static; box-shadow: none; border-top: 0; padding: 0 0 0 16px; }
}
@media (max-width: 900px) {
  .wp-block-columns { flex-wrap: wrap; }
  .wp-block-column { flex: 1 1 calc(50% - 14px); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .topbar .wrap { justify-content: center; }
  .logo img { width: 190px; }
  .hero { min-height: 440px; }
  .hero::before { background: linear-gradient(180deg, rgba(15,35,66,.78), rgba(15,35,66,.7)); }
  .wp-block-column { flex: 1 1 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 18px 26px; }
  .contact-form input[name=name], .contact-form input[name=email] { max-width: none; }
  .contact-form .btn { width: 100%; min-width: 0; }
  .cta-actions { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; gap: 24px; }
  .is-style-rounded { margin: 28px 0 36px; }
  .is-style-rounded img { width: 180px !important; }
}
.sp-br { display: none; }
@media (max-width: 600px) { .sp-br { display: inline; } }
