*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #ffffff; --bg-alt: #eef1f6; --text: #111111; --text-sub: #555555;
  --white: #ffffff; --primary: #0f3d6e; --primary-dark: #0a1e3a; --accent: #d4582a;
  --sans: "Noto Sans JP", sans-serif; --serif: "Noto Serif JP", serif; --en: "Inter", sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); height: 96px; }
.header-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 0 0 4%; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo-mark { height: 60px; width: auto; object-fit: contain; }
.logo-text .logo-name { font-size: 16px; font-weight: 700; letter-spacing: 0.08em; }
.logo-text .logo-sub { font-size: 10px; color: var(--text-sub); letter-spacing: 0.06em; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a { font-size: 14px; font-weight: 500; letter-spacing: 0.06em; transition: color 0.3s; position: relative; padding-bottom: 6px; }
.nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent); transition: width 0.3s, left 0.3s; }
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; left: 0; }
.header-right { display: flex; align-items: stretch; }
.header-btn { display: flex; align-items: center; justify-content: center; flex-direction: column; height: 96px; width: 140px; font-size: 16px; font-weight: 500; color: var(--white); letter-spacing: 0.08em; transition: opacity 0.3s; }
.header-btn:hover { opacity: 0.85; }
.header-btn-tel { background: transparent; color: var(--text); width: auto; padding: 0 28px; }
.header-btn-tel .tel-num { font-family: var(--en); font-size: 20px; font-weight: 700; }
.header-btn-tel .tel-time { font-size: 10px; color: var(--text-sub); }
.header-btn-contact { background: var(--primary); width: 160px; text-align: center; }
.header-btn-contact .btn-en { font-family: var(--en); font-size: 14px; font-weight: 700; letter-spacing: 0.1em; }
.header-btn-contact .btn-jp { font-size: 11px; margin-top: 2px; }

.page-hero { margin-top: 96px; padding: 80px 0 60px; background-color: var(--primary-dark); background-image: linear-gradient(135deg, rgba(10,30,58,0.82), rgba(15,61,110,0.78)), url('../img/office-sign.jpg'); background-size: cover; background-position: center; color: var(--white); position: relative; overflow: hidden; }
.page-hero-inner { width: 90%; max-width: 1430px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero-en { font-family: var(--en); font-size: 80px; font-weight: 900; color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: -12px; }
.page-hero h1 { font-size: 36px; font-weight: 900; letter-spacing: 0.06em; }
.breadcrumb { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.6); }
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--white); }

/* ===== CONTACT SECTION ===== */
.contact-section { padding: 100px 0; }
.contact-inner { width: 90%; max-width: 900px; margin: 0 auto; }
.contact-intro { text-align: center; margin-bottom: 60px; }
.contact-intro p { font-size: 16px; line-height: 2; color: var(--text-sub); }

/* TEL BOX */
.contact-tel-box {
  background-color: var(--primary);
  color: var(--white); padding: 48px; text-align: center;
  margin-bottom: 60px;
}
.contact-tel-box .tel-label { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.7; margin-bottom: 12px; }
.contact-tel-box .tel-number { font-family: var(--en); font-size: 42px; font-weight: 900; letter-spacing: 0.04em; margin-bottom: 8px; }
.contact-tel-box .tel-hours { font-size: 14px; opacity: 0.6; }

/* FORM */
.form-section { margin-top: 20px; }
.form-section h2 { font-size: 24px; font-weight: 900; margin-bottom: 32px; text-align: center; }
.form-note { font-size: 13px; color: var(--text-sub); margin-bottom: 32px; text-align: center; }
.form-note span { color: var(--accent); }

.form-group { margin-bottom: 28px; }
.form-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; margin-bottom: 8px;
}
.form-required {
  display: inline-block; background: var(--accent); color: var(--white);
  font-size: 10px; padding: 2px 8px; font-weight: 700; letter-spacing: 0.06em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid #d0d5e0; background: var(--bg);
  font-family: var(--sans); font-size: 16px; color: var(--text);
  transition: border-color 0.3s;
  -webkit-appearance: none; appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-textarea { height: 200px; resize: vertical; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23555'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 24px;
  padding-right: 40px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-submit {
  text-align: center; margin-top: 40px;
}
.form-submit button {
  display: inline-block;
  background: var(--accent); color: var(--white); border: none;
  font-family: var(--sans); font-size: 16px; font-weight: 700;
  padding: 20px 80px; letter-spacing: 0.06em; cursor: pointer;
  transition: opacity 0.3s;
}
.form-submit button:hover { opacity: 0.85; }

/* ===== ACCESS ===== */
.contact-access { padding: 80px 0; background: var(--bg-alt); }
.contact-access-inner { width: 90%; max-width: 900px; margin: 0 auto; }
.contact-access h2 { font-size: 24px; font-weight: 900; text-align: center; margin-bottom: 32px; }
.access-info { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 32px; }
.access-detail h3 { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.access-detail p { font-size: 15px; line-height: 2; }
.access-detail .access-tel { font-family: var(--en); font-size: 24px; font-weight: 700; margin: 12px 0; }
.access-map iframe { width: 100%; height: 300px; border: none; }

.footer { background-color: #0a1e3a; background-image: linear-gradient(to top, #0f3d6e, #0a1e3a); color: rgba(255,255,255,0.85); padding: 80px 0 40px; }
.footer-inner { width: 90%; max-width: 1430px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer-logo .f-name { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.footer-logo .f-tel { font-family: var(--en); font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-logo p { font-size: 13px; line-height: 2; }
.footer-logo .f-meta { font-size: 11px; margin-top: 16px; line-height: 1.8; opacity: 0.8; }
.footer-nav h4 { font-size: 14px; color: var(--white); font-weight: 700; margin-bottom: 20px; }
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { font-size: 13px; transition: color 0.3s; }
.footer-nav a:hover { color: var(--white); }
.footer-copy { width: 90%; max-width: 1430px; margin: 48px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 11px; padding-top: 24px; color: rgba(255,255,255,0.9); border-top: 1px solid rgba(255,255,255,0.15); }
.footer-copy-links { display: flex; gap: 16px; }
.footer-copy-links a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer-copy-links a:hover { color: var(--white); }

.side-tab { position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 90; }
.side-tab a { display: flex; align-items: center; gap: 8px; writing-mode: vertical-rl; text-orientation: mixed; background: var(--primary-dark); color: var(--white); padding: 16px 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; transition: background 0.3s; border-radius: 6px 0 0 6px; box-shadow: -2px 0 12px rgba(0,0,0,0.15); }
.side-tab a:hover { background: var(--accent); }
.side-tab-img { writing-mode: horizontal-tb; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(255,255,255,0.5); }
.side-tab-img img { width: 100%; height: 100%; object-fit: cover; }

.scroll-progress { position: fixed; top: 96px; left: 0; right: 0; height: 3px; z-index: 99; background: rgba(0,0,0,0.05); }
.scroll-progress-bar { height: 100%; width: 0%; background: var(--accent); transition: width 0.1s; }


/* ===== HAMBURGER + MOBILE NAV ===== */
.hamburger { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 20px; position: relative; padding: 0; z-index: 101; margin-right: 20px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--text); position: absolute; left: 0; transition: all .3s; }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.active span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); z-index: 100;
  flex-direction: column; align-items: center; gap: 0;
  padding-top: 96px; overflow-y: auto;
}
.mobile-nav.active { display: flex; }
.mobile-nav-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; color: #333;
  font-size: 32px; cursor: pointer; line-height: 1; padding: 8px;
  z-index: 101; transition: color 0.2s;
}
.mobile-nav-close:hover { color: var(--accent); }
.mobile-nav-logo { padding: 24px 0 16px; width: 100%; display: flex; justify-content: center; margin-bottom: 16px; }
.mobile-nav-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  width: 90%; max-width: 400px; background: #ffffff;
  border-radius: 12px; overflow: hidden;
}
.mobile-nav-grid a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 24px 8px; background: #ffffff;
  color: #111; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; transition: background 0.2s;
}
.mobile-nav-grid a:hover { background: #eef1f6; }
.mobile-nav-grid a svg { width: 24px; height: 24px; stroke: var(--primary); fill: none; stroke-width: 1.5; }
.mobile-nav-grid a.mn-wide { grid-column: span 2; flex-direction: row; gap: 12px; padding: 18px; font-size: 13px; }
.mobile-nav-tel {
  margin-top: 28px; text-align: center;
}
.mobile-nav-tel a {
  font-family: var(--en); font-size: 26px; font-weight: 900; color: #0f3d6e;
  display: block; margin-bottom: 6px; letter-spacing: 0.02em;
}
.mobile-nav-tel .tel-hours { font-size: 11px; color: var(--text-sub); }
.mobile-nav-cta {
  margin-top: 20px; margin-bottom: 32px;
}
.mobile-nav-cta a {
  display: inline-block; background: var(--accent); color: var(--white);
  font-size: 14px; font-weight: 700; padding: 14px 44px; letter-spacing: 0.06em;
  border-radius: 4px; transition: opacity 0.3s;
}
.mobile-nav-cta a:hover { opacity: 0.85; }
@media (max-width: 1024px) { .nav { display: none; } .hamburger { display: block; } .scroll-progress { top: 64px; } }
@media (max-width: 767px) {
  .header { height: 64px; } .mobile-nav { padding-top: 64px; } .header-btn { height: 64px; width: 100px; } .header-btn-tel { display: none; } .header-btn-contact { display: none; }
  .page-hero { margin-top: 64px; padding: 60px 0 50px; } .page-hero-en { font-size: 48px; } .page-hero h1 { font-size: 26px; }
  .contact-section { padding: 60px 0; }
  .contact-tel-box .tel-number { font-size: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .access-info { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .side-tab { display: none; }
  .scroll-progress { top: 64px; }
  .form-input, .form-select, .form-textarea { font-size: 16px; }
}
/* =====================================================
 *  CF7（Contact Form 7）レンダリング部 スタイル
 *  注：CF7 フォーム本体（管理画面側）は一切タッチせず、
 *      出力 HTML のクラス（.clCo / .clr / .bDd / .hissuIcon / .soushinBtn /
 *      wpcf7-* / wpcf7-form-control 等）に対する見た目調整のみ
 * ===================================================== */
.form-section .wpcf7 { max-width: 880px; margin: 0 auto; }
.form-section .wpcf7-form { font-size: 15px; color: var(--text, #111); }

.form-section .clCo { display: block; }
.form-section .clCo.mb { margin-top: 24px; }

.form-section .clr {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px 32px;
  align-items: start; padding: 22px 0; border-bottom: 1px solid #e4e7ee;
}
.form-section .clr:first-child { border-top: 1px solid #e4e7ee; }
.form-section .clr > dt {
  font-weight: 700; font-size: 15px; color: var(--text, #111);
  padding-top: 10px; letter-spacing: 0.04em;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.form-section .clr > dt > p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.form-section .clr > dd { margin: 0; }
.form-section .clr > dd > p { margin: 0; }

/* 必須バッジ */
.form-section .hissuIcon {
  display: inline-block; background: var(--accent, #d4582a); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; letter-spacing: 0.06em;
  line-height: 1.4; border-radius: 2px;
}

/* テキスト系入力 */
.form-section .wpcf7-form-control-wrap { display: block; width: 100%; }
.form-section input.wpcf7-form-control[type="text"],
.form-section input.wpcf7-form-control[type="email"],
.form-section input.wpcf7-form-control[type="tel"],
.form-section input.wpcf7-form-control[type="url"],
.form-section input.wpcf7-form-control[type="number"],
.form-section textarea.wpcf7-form-control,
.form-section select.wpcf7-form-control {
  width: 100%; max-width: 100%; box-sizing: border-box;
  padding: 14px 16px; border: 1px solid #cfd5e0; background: #fff;
  font-size: 15px; line-height: 1.6; color: var(--text, #111);
  font-family: inherit; border-radius: 2px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-section input.wpcf7-form-control:focus,
.form-section textarea.wpcf7-form-control:focus,
.form-section select.wpcf7-form-control:focus {
  outline: none; border-color: var(--primary, #0f3d6e);
  box-shadow: 0 0 0 3px rgba(15, 61, 110, 0.12);
}
.form-section textarea.wpcf7-form-control { min-height: 180px; resize: vertical; }

/* チェックボックス（お問い合わせ内容 .bDd） */
.form-section .wpcf7-checkbox,
.form-section .wpcf7-radio,
.form-section .wpcf7-acceptance .wpcf7-list-item {
  display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0;
}
.form-section .wpcf7-list-item { margin: 0; }
.form-section .wpcf7-list-item label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 16px; border: 1px solid #cfd5e0; background: #fff;
  font-size: 14px; transition: all 0.2s;
}
.form-section .wpcf7-list-item label:hover { border-color: var(--primary, #0f3d6e); background: var(--bg-alt, #eef1f6); }
.form-section .wpcf7-list-item input[type="checkbox"],
.form-section .wpcf7-list-item input[type="radio"] {
  width: 18px; height: 18px; accent-color: var(--primary, #0f3d6e); margin: 0; flex-shrink: 0;
}

/* 同意（[acceptance]）は単独行・テキスト inline */
.form-section .wpcf7-acceptance { display: block; }
.form-section .wpcf7-acceptance .wpcf7-list-item { display: inline-flex; }
.form-section .wpcf7-acceptance .wpcf7-list-item label {
  border: none; background: transparent; padding: 8px 0;
}
.form-section .wpcf7-acceptance .wpcf7-list-item label:hover { background: transparent; }

/* 送信ボタン */
.form-section .soushinBtn { margin-top: 40px; text-align: center; }
.form-section .soushinBtn p { margin: 0; }
.form-section input.wpcf7-submit,
.form-section button.wpcf7-submit {
  appearance: none; -webkit-appearance: none;
  display: inline-block; min-width: 320px;
  padding: 18px 56px; font-size: 16px; font-weight: 700; letter-spacing: 0.12em;
  color: #fff; background: var(--primary, #0f3d6e); border: none; border-radius: 2px;
  cursor: pointer; transition: background 0.25s, transform 0.15s;
  font-family: inherit;
}
.form-section input.wpcf7-submit:hover,
.form-section button.wpcf7-submit:hover { background: var(--primary-dark, #0a1e3a); }
.form-section input.wpcf7-submit:active,
.form-section button.wpcf7-submit:active { transform: translateY(1px); }

/* バリデーション・レスポンス */
.form-section .wpcf7-not-valid-tip { color: #d4582a; font-size: 13px; margin-top: 6px; display: block; }
.form-section .wpcf7-response-output {
  margin: 24px 0 0; padding: 14px 18px; font-size: 14px;
  border: 1px solid #cfd5e0; background: #f8fafc;
}
.form-section .wpcf7-mail-sent-ok { border-color: #2d7d3a; background: #f0fff4; color: #1f6630; }
.form-section .wpcf7-validation-errors,
.form-section .wpcf7-mail-sent-ng { border-color: #d4582a; background: #fff5ef; color: #a3401a; }

/* スピナー */
.form-section .wpcf7-spinner { display: inline-block; margin-left: 12px; vertical-align: middle; }

/* タブレット・スマホ：dl を1カラム化 */
@media (max-width: 768px) {
  .form-section .clr {
    grid-template-columns: 1fr; gap: 10px; padding: 18px 0;
  }
  .form-section .clr > dt { padding-top: 0; font-size: 14px; }
  .form-section input.wpcf7-submit,
  .form-section button.wpcf7-submit { min-width: 100%; padding: 16px; }
}
