/*
 * Goodwill コーポレートサイト リニューアル（デザイン案パターンA）
 * 出典: Ytateno119/goodwill-corp-site renewal/wordpress/goodwill/style.css
 * SWELL子テーマの会社サイト用ページ（LP以外）だけに読み込む。
 */

:root {
  --navy: #1f3a60;
  --navy-dark: #162b47;
  --navy-hover: #2b4a74;
  --text: #333;
  --muted: #666;
  --line: #d6dae0;
  --bg-gray: #f4f5f7;
  --th-bg: #eef1f5;
  --white: #fff;
  --error: #b3261e;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
  --container: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: var(--navy); }
a:hover { color: var(--navy-hover); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--navy-hover); outline-offset: 2px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ===== Accessibility ===== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; margin: 0; padding: 8px 16px; clip: auto; background: var(--white); color: var(--navy); border: 2px solid var(--navy); }

/* ===== Header ===== */
.site-header { border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); background: var(--white); }
.header-bar { display: flex; align-items: center; gap: 24px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.logo { margin: 0 auto 0 0; padding-left: 12px; border-left: 4px solid var(--navy); font-size: inherit; font-weight: normal; line-height: 1.1; }
.logo a { display: inline-flex; align-items: baseline; gap: .3em; font-family: var(--serif); font-weight: 600; text-decoration: none; color: var(--navy-dark); white-space: nowrap; }
.logo-corp { font-size: 14px; letter-spacing: .14em; color: var(--navy); }
.logo-name { font-size: 27px; letter-spacing: .05em; }

/* ===== Buttons ===== */
.btn { display: inline-block; min-width: 220px; padding: 11px 36px 11px 24px; border: 1px solid var(--navy); border-radius: 2px; background: var(--white); color: var(--navy); font-size: 14px; text-align: center; text-decoration: none; position: relative; }
.btn::after { content: "›"; position: absolute; right: 14px; top: 50%; transform: translateY(-52%); font-size: 18px; }
.btn:hover { background: var(--navy); color: var(--white); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-hover); color: var(--white); }
.header-btn { min-width: 0; padding: 11px 32px 11px 20px; white-space: nowrap; }
.btn-lg { min-width: 280px; padding-top: 15px; padding-bottom: 15px; font-size: 15px; }

/* ===== Global navigation ===== */
.gnav ul { display: flex; }
.gnav a { display: block; position: relative; padding: 10px 16px; color: var(--navy-dark); font-size: 14px; font-weight: bold; text-decoration: none; letter-spacing: .08em; white-space: nowrap; }
.gnav a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; background: var(--navy); opacity: 0; }
.gnav a:hover { color: var(--navy-hover); }
.gnav a:hover::after, .gnav .is-current a::after { opacity: 1; }

/* ===== Main visual ===== */
.mv { position: relative; height: 440px; overflow: hidden; background: #c9ced6; border-bottom: 1px solid var(--line); }
.mv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.mv-inner { position: relative; height: 100%; display: flex; align-items: flex-end; padding-bottom: 48px; }
.mv-copy { background: rgba(22, 43, 71, .86); color: var(--white); padding: 24px 32px; max-width: 520px; }
.mv-title { font-family: var(--serif); font-size: 28px; line-height: 1.5; letter-spacing: .08em; margin-bottom: 8px; }
.mv-lead { font-size: 14px; line-height: 1.8; }

/* ===== Section common ===== */
.sec { padding: 64px 0; border-bottom: 1px solid var(--line); }
.bg-gray { background: var(--bg-gray); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.sec-title { margin: 0 0 -1px; padding: 2px 0 12px 16px; border-left: 5px solid var(--navy); font-size: 22px; line-height: 1.4; font-weight: bold; color: var(--navy-dark); letter-spacing: .06em; }
.sec-en { margin-left: 14px; font-size: 12px; font-weight: normal; color: #8a93a0; letter-spacing: .16em; text-transform: uppercase; }
.sec-head-link { font-size: 13px; padding-bottom: 12px; white-space: nowrap; }
.sec-lead { margin-bottom: 28px; }

/* ===== Message ===== */
.message { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.message-head { font-family: var(--serif); font-size: 24px; line-height: 1.6; color: var(--navy-dark); letter-spacing: .06em; margin-bottom: 20px; }
.message-body p + p { margin-top: 1em; }
.message-img { display: block; width: 100%; height: 260px; object-fit: cover; }

/* ===== Business ===== */
.biz-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.biz-card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.biz-img { display: block; width: 100%; height: 210px; object-fit: cover; }
.biz-img-system { object-position: center 25%; }
.biz-img-hr { object-position: center 30%; }
.biz-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.biz-title { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); font-size: 19px; color: var(--navy-dark); letter-spacing: .06em; }
.biz-num { font-family: var(--serif); font-size: 15px; color: #8a93a0; margin-right: 10px; }
.biz-body > p { margin-bottom: 14px; }
.list-square li { position: relative; padding-left: 1.2em; font-size: 14px; line-height: 1.9; }
.list-square li::before { content: ""; position: absolute; left: 0; top: .75em; width: 7px; height: 7px; background: var(--navy); }
.biz-body .btn { margin-top: auto; align-self: flex-start; }
.biz-body .list-square { margin-bottom: 22px; }
.biz-sub { margin-top: 24px; background: var(--white); border: 1px solid var(--line); display: grid; grid-template-columns: 250px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 18px 28px; }
.biz-sub-title { margin: 0; font-size: 15px; color: var(--navy-dark); border-right: 1px solid var(--line); padding-right: 20px; }
.biz-sub-title .biz-num { font-size: 13px; }
.biz-sub p { font-size: 14px; }
.text-link { font-size: 14px; white-space: nowrap; }
.text-link::after { content: " ›"; }

/* ===== Company ===== */
.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.info-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); font-size: 14px; }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); padding: 14px 18px; text-align: left; vertical-align: top; }
.info-table th { width: 9em; background: var(--th-bg); font-weight: bold; color: var(--navy-dark); }
.company-photo { display: block; width: 100%; height: 300px; object-fit: cover; }
.company-more { margin-top: 24px; }

/* ===== News ===== */
.news-list { border-top: 1px solid var(--line); background: var(--white); }
.news-list li { display: grid; grid-template-columns: 7em 7.5em minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.news-list time { color: var(--muted); font-size: 14px; }
.news-cat { display: inline-block; border: 1px solid var(--navy); color: var(--navy); font-size: 11px; line-height: 1.6; padding: 1px 0; text-align: center; width: 7.5em; }
.news-list a { color: var(--text); text-decoration: none; font-size: 15px; }
.news-list a:hover { color: var(--navy); text-decoration: underline; }
.news-empty { padding: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 14px; }

/* ===== Contact panel ===== */
.contact-panel { display: flex; justify-content: space-between; align-items: center; gap: 32px; border: 1px solid var(--line); background: var(--bg-gray); padding: 32px 36px; }
.cb-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ===== Page top ===== */
.pagetop { text-align: right; padding-top: 10px; padding-bottom: 10px; }
.pagetop a { font-size: 12px; color: var(--muted); text-decoration: none; }
.pagetop a::before { content: "▲ "; font-size: 10px; }

/* ===== Footer ===== */
.site-footer { background: var(--navy-dark); color: #c9d3e0; font-size: 13px; }
.footer-main { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-top: 44px; padding-bottom: 40px; }
.footer-head { margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.18); color: var(--white); font-size: 15px; letter-spacing: .06em; }
.footer-info { margin: 0; }
.footer-info dt { color: var(--white); font-weight: bold; }
.footer-info dd { margin: 2px 0 0; }
.footer-links li + li { margin-top: 8px; }
.footer-links a { color: #c9d3e0; text-decoration: none; }
.footer-links a::before { content: "› "; color: #8fa6c4; }
.footer-links a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; }
.footer-bottom .container { padding-top: 14px; padding-bottom: 14px; text-align: center; }
.copyright { letter-spacing: .04em; }

/* ===== Lower pages: page header & breadcrumb ===== */
.page-head { background: var(--bg-gray); border-bottom: 1px solid var(--line); }
.page-head .container { padding-top: 36px; padding-bottom: 36px; }
.page-title { margin: 0; padding: 2px 0 2px 16px; border-left: 5px solid var(--navy); font-size: 26px; line-height: 1.4; color: var(--navy-dark); letter-spacing: .06em; }
.page-title-en { display: block; margin-top: 6px; font-size: 12px; font-weight: normal; color: #8a93a0; letter-spacing: .16em; text-transform: uppercase; }
.breadcrumb { border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; margin: 0 auto; padding-top: 10px; padding-bottom: 10px; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin: 0 .6em; color: #a5adb8; }
.breadcrumb a { color: var(--muted); }
.page-body { padding: 56px 0 72px; }
.page-sec + .page-sec { margin-top: 64px; }
.page-lead { margin-bottom: 32px; }
.page-cta { margin-top: 72px; }

/* ===== Lower pages: editor content ===== */
.entry-content { overflow-wrap: anywhere; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { margin: 2.4em 0 1em; padding: 2px 0 10px 14px; border-left: 5px solid var(--navy); border-bottom: 1px solid var(--line); font-size: 20px; line-height: 1.5; color: var(--navy-dark); letter-spacing: .04em; }
.entry-content h3 { margin: 2em 0 .8em; padding-bottom: 6px; border-bottom: 2px solid var(--navy); font-size: 17px; line-height: 1.5; color: var(--navy-dark); }
.entry-content h4 { margin: 1.6em 0 .6em; font-size: 15px; color: var(--navy-dark); }
.entry-content > h2:first-child, .entry-content > h3:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content ul { list-style: square; }
.entry-content ol { list-style: decimal; }
.entry-content li + li { margin-top: .3em; }
.entry-content a { text-decoration: underline; }
.entry-content strong { color: var(--navy-dark); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); font-size: 14px; }
.entry-content th, .entry-content td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--th-bg); color: var(--navy-dark); white-space: nowrap; }
.entry-content blockquote { margin-left: 0; margin-right: 0; padding: 12px 20px; border-left: 4px solid var(--line); background: var(--bg-gray); }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry-content .wp-block-button__link { border-radius: 2px; background: var(--navy); color: var(--white); text-decoration: none; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.wp-caption-text, .wp-element-caption { font-size: 12px; color: var(--muted); }

/* ===== Company page ===== */
.info-table-wide th { width: 15em; }

/* ===== Services page ===== */
.service-block { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 40px; align-items: start; }
.service-photo { display: block; width: 100%; height: 280px; object-fit: cover; }
.service-title { margin: 0 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); font-size: 22px; color: var(--navy-dark); letter-spacing: .06em; }
.service-text > p { margin-bottom: 16px; }
.service-sub { margin: 32px 0 16px; padding-left: 12px; border-left: 4px solid var(--navy); font-size: 16px; line-height: 1.5; color: var(--navy-dark); }
.service-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.service-item { border: 1px solid var(--line); background: var(--white); padding: 18px 20px; }
.service-item h4 { margin: 0 0 6px; font-size: 15px; color: var(--navy-dark); }
.service-item p { font-size: 14px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; border: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 18px 20px; background: var(--white); }
.steps li + li { border-left: 1px solid var(--line); }
.steps li::before { content: "STEP " counter(step); display: block; font-family: var(--serif); font-size: 12px; color: #8a93a0; letter-spacing: .1em; }
.steps h4 { margin: 2px 0 6px; font-size: 15px; color: var(--navy-dark); }
.steps p { font-size: 13px; line-height: 1.8; }
.service-own { border: 1px solid var(--line); background: var(--bg-gray); padding: 24px 28px; }
.service-own h3 { margin: 0 0 8px; font-size: 17px; color: var(--navy-dark); }
.service-own .text-link { display: inline-block; margin-top: 10px; }

/* ===== News archive & single ===== */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers { display: inline-block; min-width: 40px; padding: 6px 10px; border: 1px solid var(--line); color: var(--navy); text-align: center; text-decoration: none; font-size: 14px; }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: var(--white); }
.pagination a.page-numbers:hover { background: var(--th-bg); }
.post-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.post-meta time { color: var(--muted); font-size: 14px; }
.post-title { margin: 0 0 32px; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 22px; line-height: 1.6; color: var(--navy-dark); }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.post-nav a { text-decoration: none; }
.post-back { margin-top: 32px; text-align: center; }
.narrow { max-width: 900px; }

/* ===== Contact page (Contact Form 7) ===== */
.contact-intro { margin-bottom: 32px; }
.form-panel { border: 1px solid var(--line); background: var(--white); padding: 36px 40px; }
.form-admin-note { padding: 16px 20px; border: 1px dashed var(--error); color: var(--error); font-size: 14px; }
.wpcf7 form p { margin: 0 0 22px; }
.wpcf7 label { display: block; font-size: 14px; font-weight: bold; color: var(--navy-dark); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 input[type="number"], .wpcf7 select, .wpcf7 textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid #b6bec9; border-radius: 2px; background: var(--white); color: var(--text);
  font: inherit; font-size: 15px; font-weight: normal; line-height: 1.6;
}
.wpcf7 textarea { min-height: 200px; resize: vertical; }
.wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { border-color: var(--navy); outline: 2px solid rgba(43, 74, 116, .35); outline-offset: 0; }
.wpcf7 .wpcf7-list-item { margin: 0 1.2em 0 0; }
.wpcf7 .wpcf7-list-item label { display: inline; font-weight: normal; color: var(--text); }
.wpcf7 input[type="submit"], .wpcf7 .wpcf7-submit {
  display: inline-block; min-width: 280px; padding: 15px 36px; border: 1px solid var(--navy); border-radius: 2px;
  background: var(--navy); color: var(--white); font: inherit; font-size: 15px; letter-spacing: .06em; cursor: pointer;
}
.wpcf7 .wpcf7-submit:hover { background: var(--navy-hover); }
.wpcf7 .wpcf7-submit:disabled { opacity: .6; cursor: not-allowed; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 4px; color: var(--error); font-size: 13px; font-weight: normal; }
.wpcf7 form .wpcf7-response-output { margin: 24px 0 0; padding: 12px 16px; border: 1px solid var(--line); font-size: 14px; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output { border-color: #d9a400; background: #fffbe6; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #2e7d32; background: #eef7ee; }
.wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: var(--error); background: #fdeeee; }

/* ===== 404 ===== */
.notfound { text-align: center; }
.notfound p + p { margin-top: 24px; }

/* ===== LP (オンガチャ法務ページ /lp/〜) ===== */
.lp-header { border-bottom: 1px solid var(--line); background: var(--white); }
.lp-header .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; font-size: 13px; }
.lp-back { text-decoration: none; }
.lp-back::before { content: "‹ "; }
.lp-company { color: var(--muted); font-size: 12px; }
.lp-main { padding: 48px 0 72px; }
.lp-main .container { max-width: 900px; }
.lp-title { margin: 0 0 32px; padding-bottom: 14px; border-bottom: 2px solid var(--navy); font-size: 24px; line-height: 1.5; color: var(--navy-dark); }
.lp-footer { border-top: 1px solid var(--line); background: var(--bg-gray); color: var(--muted); font-size: 12px; text-align: center; padding: 16px 20px; }

/* ===== Tablet ===== */
@media (max-width: 1000px) {
  .header-bar { gap: 12px; }
  .logo-corp { font-size: 12px; }
  .logo-name { font-size: 23px; }
  .gnav a { padding: 10px 10px; font-size: 13px; letter-spacing: .04em; }
  .gnav a::after { left: 10px; right: 10px; }
  .header-btn { padding: 10px 28px 10px 16px; font-size: 13px; }
}

/* ===== Smartphone ===== */
@media (max-width: 768px) {
  body { font-size: 14px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .header-bar { flex-wrap: wrap; min-height: 0; padding-bottom: 0; gap: 10px 12px; }
  .logo { padding-left: 10px; border-left-width: 3px; }
  .header-btn { order: 2; padding: 9px 26px 9px 14px; font-size: 12px; }
  .header-btn::after { right: 10px; font-size: 15px; }
  .gnav { order: 3; flex: 0 0 calc(100% + 32px); margin: 0 -16px; border-top: 1px solid var(--line); }
  .gnav ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gnav li + li { border-left: 1px solid var(--line); }
  .gnav a { padding: 11px 2px; text-align: center; }
  .gnav a::after { left: 22%; right: 22%; bottom: 0; height: 3px; }
  .mv { height: 280px; }
  .mv-inner { padding-bottom: 20px; }
  .mv-copy { padding: 14px 18px; }
  .mv-title { font-size: 19px; }
  .mv-lead { font-size: 12px; }
  .sec { padding: 44px 0; }
  .sec-title { font-size: 18px; padding-left: 12px; border-left-width: 4px; }
  .sec-en { display: block; margin: 2px 0 0; font-size: 10px; }
  .message, .biz-main, .company-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .message-head { font-size: 19px; }
  .message-img { height: 200px; }
  .biz-img { height: 190px; }
  .biz-body { padding: 20px; }
  .biz-sub { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 20px; }
  .biz-sub-title { border-right: none; padding-right: 0; }
  .btn { min-width: 0; width: 100%; }
  .header-btn { width: auto; }
  .btn-lg { min-width: 0; }
  .info-table th, .info-table td { display: block; width: 100%; padding: 10px 12px; }
  .info-table th { border-bottom: none; }
  .info-table-wide th { width: 100%; }
  .company-photo { height: 200px; }
  .news-list li { grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 14px 4px; }
  .news-list li a { grid-column: 1 / -1; }
  .news-list { background: transparent; }
  .contact-panel { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px 20px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 32px; padding-bottom: 32px; }

  .page-head .container { padding-top: 24px; padding-bottom: 24px; }
  .page-title { font-size: 20px; padding-left: 12px; border-left-width: 4px; }
  .page-title-en { font-size: 10px; }
  .page-body { padding: 36px 0 48px; }
  .page-sec + .page-sec { margin-top: 48px; }
  .page-cta { margin-top: 48px; }
  .entry-content h2 { font-size: 18px; }
  .entry-content h3 { font-size: 16px; }
  .entry-content th { white-space: normal; }
  .service-block { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .service-photo { height: 200px; }
  .service-title { font-size: 19px; }
  .service-items { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { border-left: none; border-top: 1px solid var(--line); }
  .service-own { padding: 20px; }
  .post-title { font-size: 19px; margin-bottom: 24px; }
  .post-nav { flex-direction: column; }
  .form-panel { padding: 24px 16px; }
  .wpcf7 input[type="submit"], .wpcf7 .wpcf7-submit { width: 100%; min-width: 0; }
  .alignleft, .alignright { float: none; margin: 0 0 16px; }
  .lp-main { padding: 32px 0 48px; }
  .lp-title { font-size: 20px; }
}

/* ===== Narrow smartphones ===== */
@media (max-width: 360px) {
  .logo-corp { font-size: 11px; letter-spacing: .08em; }
  .logo-name { font-size: 20px; letter-spacing: .03em; }
  .header-btn { padding: 8px 22px 8px 10px; font-size: 11px; }
  .header-btn::after { right: 8px; }
}

/* ===== お問い合わせ（テーマ内フォーム。CF7ではないため .wpcf7 と同じ見た目を別クラスで定義） ===== */
.gw-form p { margin: 0 0 22px; }
.gw-form label { display: block; font-size: 14px; font-weight: bold; color: var(--navy-dark); }
.gw-form input[type="text"], .gw-form input[type="email"], .gw-form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid #b6bec9; border-radius: 2px; background: var(--white); color: var(--text);
  font: inherit; font-size: 15px; font-weight: normal; line-height: 1.6;
}
.gw-form textarea { min-height: 200px; resize: vertical; }
.gw-form input:focus, .gw-form textarea:focus { border-color: var(--navy); outline: 2px solid rgba(43, 74, 116, .35); outline-offset: 0; }
.gw-req { display: inline-block; margin-left: 8px; padding: 0 6px; border-radius: 2px; background: var(--navy); color: var(--white); font-size: 11px; font-weight: normal; line-height: 1.7; vertical-align: 1px; }
.gw-check label { font-weight: normal; color: var(--text); }
.gw-check input { margin: 0 6px 0 0; vertical-align: -1px; }
.gw-submit { margin: 32px 0 0 !important; text-align: center; }
.gw-submit button {
  display: inline-block; min-width: 280px; padding: 15px 36px; border: 1px solid var(--navy); border-radius: 2px;
  background: var(--navy); color: var(--white); font: inherit; font-size: 15px; letter-spacing: .06em; cursor: pointer;
}
.gw-submit button:hover { background: var(--navy-hover); }
.form-notice { margin: 0 0 24px; padding: 16px 20px; border: 1px solid var(--line); font-size: 14px; }
.form-notice p { margin: 0; }
.form-notice-title { font-weight: bold; font-size: 16px; color: var(--navy-dark); margin-bottom: 6px !important; }
.form-notice-success { border-color: #2e7d32; background: #eef7ee; }
.form-notice-error { border-color: var(--error); background: #fdeeee; color: var(--error); }
@media (max-width: 768px) {
  .gw-submit button { width: 100%; min-width: 0; }
}
.service-thumb { margin-bottom: 32px; }

/* ===== 企業理念（ミッション・ビジョン・バリュー）2026-11 ===== */
.sp-only { display: none; }
.mvv { margin-top: -32px; }
.mvv-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.mvv-label { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.3; color: var(--navy-dark); letter-spacing: .06em; }
.mvv-label span { display: block; margin-top: 6px; font-family: var(--sans); font-size: 13px; color: #6b7480; letter-spacing: .1em; }
.mvv-head { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; line-height: 1.6; color: var(--navy-dark); letter-spacing: .06em; }
.mvv-body > p:not(.mvv-head) { color: #333; }
/* Value: 2000年代初頭の罫線表スタイル（カード・影・左アクセント線は使わない） */
.mvv-values { list-style: none; margin: 0; padding: 0; border: 1px solid #c9ced6; border-bottom: 0; }
.mvv-values li { display: grid; grid-template-columns: 10em minmax(0, 1fr); border-bottom: 1px solid #c9ced6; }
.mvv-values li strong { display: flex; align-items: center; padding: 12px 14px; background: #eef1f5; border-right: 1px solid #c9ced6; font-size: 15px; color: var(--navy-dark); letter-spacing: .1em; }
.mvv-values li strong::before { content: "\25A0"; margin-right: 8px; font-size: 11px; color: var(--navy); }
.mvv-values li span { padding: 12px 16px; font-size: 14px; line-height: 1.8; color: #333; background: #fff; }
@media (max-width: 768px) {
  .sp-only { display: inline; }
  .mvv-row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .mvv-label { font-size: 22px; }
  .mvv-label span { display: inline; margin: 0 0 0 10px; }
  .mvv-head { font-size: 19px; }
  .mvv-values li { grid-template-columns: 1fr; }
  .mvv-values li strong { border-right: 0; border-bottom: 1px solid #c9ced6; padding: 10px 12px; }
  .mvv-values li span { padding: 10px 12px; }
}

/* ===== 代表メッセージ 2026-11 ===== */
.ceo-msg { max-width: 820px; }
.ceo-lead { margin: 0 0 24px; font-family: var(--serif); font-size: 24px; line-height: 1.6; color: var(--navy-dark); letter-spacing: .06em; }
.ceo-body p { color: #333; line-height: 2; }
.ceo-body p + p { margin-top: 1em; }
.ceo-sign { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ceo-title { margin: 0; font-size: 14px; color: #4a5260; letter-spacing: .1em; }
.ceo-sign-img { display: block; width: 238px; height: auto; }
@media (max-width: 768px) {
  .ceo-lead { font-size: 20px; }
  .ceo-sign-img { width: 200px; }
}

/* ===== お問い合わせ bot対策 2026-11 ===== */
.gw-hp { position: absolute !important; left: -10000px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.gw-human { margin-top: 4px; padding: 14px 16px; background: #f4f6f9; border: 1px solid var(--line); }
.gw-secure-note { margin-top: 10px; font-size: 12px; color: #6b7480; text-align: center; }
