:root {
  --navy: #1d5a87;
  --navy-deep: #0f3553;
  --navy-light: #4a8fb5;
  --gold: #d4a872;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --text: #1f2d3a;
  --text-muted: #5a6675;
  --border: #dde5ec;
  --max: 1120px;
  --radius: 4px;
  --transition: 0.25s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 800px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: "Noto Serif JP", serif; font-weight: 700; font-size: 18px; color: var(--navy); letter-spacing: 0.05em; }
.brand-en { font-size: 10px; letter-spacing: 0.2em; color: var(--text-muted); margin-top: 2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--text); }
.nav-cta {
  background: var(--navy); color: #fff !important;
  padding: 10px 20px; border-radius: var(--radius);
  font-size: 13px;
}
.nav-cta:hover { background: var(--navy-light); opacity: 1; }
.nav-cta.is-active { background: var(--navy-deep); }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 0;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--navy);
  transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #fff;
  padding: 96px 0 112px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; right: -100px; bottom: -80px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(184,154,94,0.15) 0%, transparent 70%);
}
.hero-photo {
  background: url("../assets/hero.jpg") center 40% / cover no-repeat;
  padding: 140px 0 160px;
}
.hero-photo .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,80,130,0.18) 0%, rgba(20,80,130,0.05) 45%, rgba(15,45,68,0.35) 100%);
  z-index: 1;
}
.hero-photo .hero-inner { position: relative; z-index: 2; }
.hero-photo .hero-eyebrow { color: #ffd9a8; text-shadow: 0 1px 6px rgba(0,0,0,0.4); }
.hero-photo .hero-title { text-shadow: 0 2px 14px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.35); }
.hero-photo .hero-lead { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.45); }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.3em; color: var(--gold);
  margin: 0 0 20px;
}
.hero-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 700; line-height: 1.5;
  margin: 0 0 28px;
}
.hero-lead {
  font-size: 16px; line-height: 2;
  color: rgba(255,255,255,0.85);
  margin: 0 0 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 14px; font-weight: 500;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 1px solid transparent;
  letter-spacing: 0.05em;
}
.btn-primary { background: var(--gold); color: #fff !important; box-shadow: 0 4px 14px rgba(212,168,114,0.35); }
.btn-primary:hover { background: #c0935f; opacity: 1; }
.btn-outline { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: rgba(255,255,255,0.1); opacity: 1; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  font-size: 12px; letter-spacing: 0.3em; color: var(--navy);
  font-weight: 500;
  margin: 0 0 12px;
}
.section-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 700; color: var(--navy-deep);
  margin: 0 0 24px;
  position: relative; padding-bottom: 16px;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 2px; background: var(--gold);
}
.section-lead { color: var(--text-muted); margin: 0 0 48px; }

/* ===== Message ===== */
.message-body p { margin: 0 0 1.6em; }
.message-body::after { content: ""; display: block; clear: both; }
.message-photo {
  float: right;
  width: 280px;
  margin: 0 0 16px 32px;
}
.message-photo img {
  width: 100%;
  border-radius: var(--radius);
  filter: grayscale(8%);
  display: block;
}
.signature {
  text-align: right; font-family: "Noto Serif JP", serif;
  font-size: 17px; color: var(--navy-deep);
  margin-top: 48px !important;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  padding: 40px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15,42,74,0.08);
}
.service-num {
  font-family: "Noto Serif JP", serif;
  font-size: 14px; color: var(--gold); letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.service-card h3 {
  font-family: "Noto Serif JP", serif;
  font-size: 19px; color: var(--navy-deep);
  margin: 0 0 16px;
}
.service-card p { font-size: 14px; line-height: 1.9; color: var(--text-muted); margin: 0 0 16px; }
.service-card ul {
  list-style: none; padding: 0; margin: 0;
  border-top: 1px solid var(--border); padding-top: 16px;
}
.service-card li {
  font-size: 13px; color: var(--text); padding-left: 16px; position: relative;
  margin-bottom: 6px;
}
.service-card li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 6px; height: 1px; background: var(--gold);
}

/* ===== Service Detail ===== */
.detail-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 40px 32px;
  margin-bottom: 32px;
}
.detail-title {
  font-family: "Noto Serif JP", serif;
  font-size: 22px; color: var(--navy-deep);
  margin: 0 0 12px;
  display: flex; align-items: baseline; gap: 16px;
}
.detail-num {
  font-size: 13px; letter-spacing: 0.2em;
  color: var(--gold); font-family: "Noto Serif JP", serif;
}
.detail-lead {
  color: var(--text-muted); font-size: 15px;
  margin: 0 0 28px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.detail-list {
  list-style: none; padding: 0; margin: 0;
  counter-reset: detail-counter;
}
.detail-list > li {
  counter-increment: detail-counter;
  padding: 20px 0 20px 48px;
  position: relative;
  border-bottom: 1px dashed var(--border);
}
.detail-list > li:last-child { border-bottom: none; padding-bottom: 0; }
.detail-list > li::before {
  content: counter(detail-counter);
  position: absolute; left: 0; top: 22px;
  width: 32px; height: 32px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  font-family: "Noto Serif JP", serif;
}
.detail-list > li h4 {
  font-size: 16px; color: var(--navy-deep);
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.6;
}
.detail-list > li p {
  font-size: 14px; line-height: 1.9;
  color: var(--text); margin: 0;
}
.sub-list {
  list-style: none; padding: 12px 0 0; margin: 12px 0 0;
  border-top: 1px solid var(--border);
}
.sub-list li {
  font-size: 13px; color: var(--text-muted);
  padding: 4px 0 4px 16px; position: relative;
}
.sub-list li::before {
  content: "▸"; position: absolute; left: 0;
  color: var(--gold);
}

/* ===== Profile ===== */
.profile-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.profile-layout-noimg { grid-template-columns: 1fr; }
.profile-photo img {
  border-radius: var(--radius);
  filter: grayscale(8%);
}
.profile-name {
  font-family: "Noto Serif JP", serif;
  font-size: 22px; color: var(--navy-deep);
  margin: 0 0 4px;
}
.profile-name span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.15em;
  margin-left: 12px;
}
.profile-title {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.15em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  margin: 0 0 24px;
}
.profile-body p { margin: 0 0 1.4em; font-size: 15px; }

/* ===== About ===== */
.about-list { margin: 0 0 48px; }
.about-list > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.about-list dt {
  font-weight: 500; color: var(--navy); font-size: 14px;
}
.about-list dd { margin: 0; font-size: 15px; }

/* ===== CTA ===== */
.cta-section {
  background: var(--navy-deep);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 16px;
}
.cta-section p { color: rgba(255,255,255,0.8); margin: 0 0 32px; }

/* ===== Page head (contact) ===== */
.page-head {
  background: var(--bg-alt);
  padding: 80px 0 48px;
  text-align: center;
}
.page-head .section-title { display: inline-block; }

/* ===== Contact Form ===== */
.contact-form {
  background: #fff;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 56px;
}
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-size: 14px; font-weight: 500;
  color: var(--navy-deep);
  margin-bottom: 8px;
}
.form-required {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  color: #c0392b;
  background: #fdecea;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 2px;
  vertical-align: middle;
}
.form-optional {
  display: inline-block;
  font-size: 11px; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 2px;
  vertical-align: middle;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.contact-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231d5a87' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.contact-form textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.7;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(29, 90, 135, 0.12);
}
/* :user-invalid はユーザーが操作（フォーカス離脱や送信試行）した後にのみ発動するため、初期表示で赤枠にならない */
.contact-form input:user-invalid,
.contact-form select:user-invalid,
.contact-form textarea:user-invalid {
  border-color: #c0392b;
}

/* Honeypot — visually hidden, accessible to bots */
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* Checkbox row */
.form-row-checkbox { margin-top: 32px; margin-bottom: 32px; }
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400 !important;
  color: var(--text) !important;
  cursor: pointer;
  margin: 0 !important;
}
.form-checkbox input[type="checkbox"] {
  width: 18px; height: 18px;
  margin: 0;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--navy);
  cursor: pointer;
}
.form-checkbox span { line-height: 1.6; }
.form-checkbox a { color: var(--navy); text-decoration: underline; }

/* Submit */
.form-submit-wrap {
  text-align: center;
  margin-top: 16px;
}
.form-submit {
  background: var(--navy);
  color: #fff !important;
  border: none;
  padding: 16px 56px;
  font-size: 15px;
  cursor: pointer;
  min-width: 240px;
}
.form-submit:hover:not(:disabled) {
  background: var(--navy-light);
  opacity: 1;
}
.form-submit:disabled {
  background: var(--text-muted);
  cursor: not-allowed;
  opacity: 0.7;
}
.form-recaptcha-note {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 20px 0 0;
}
.form-recaptcha-note a { color: var(--text-muted); text-decoration: underline; }

/* Error */
.form-error {
  background: #fdecea;
  border-left: 3px solid #c0392b;
  color: #922b21;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.7;
}

.contact-fallback {
  padding: 32px;
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
}
.contact-fallback h2 { font-size: 17px; color: var(--navy-deep); margin: 0 0 12px; }
.contact-fallback ul { list-style: none; padding: 0; margin: 0; }
.contact-fallback li { padding: 6px 0; }

/* ===== Thanks page ===== */
.thanks-body p { margin: 0 0 1.4em; font-size: 15px; line-height: 1.9; }
.thanks-contact {
  background: var(--bg-alt);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin: 32px 0;
}
.thanks-contact-label {
  font-weight: 500; color: var(--navy);
  margin: 0 0 8px !important;
}
.thanks-contact ul {
  list-style: none; padding: 0; margin: 0;
}
.thanks-contact li { padding: 4px 0; font-size: 14px; }
.thanks-back {
  text-align: center;
  margin-top: 48px;
}

/* ===== Mobile form adjustments ===== */
@media (max-width: 600px) {
  .contact-form { padding: 24px 20px; }
  .form-submit { width: 100%; min-width: 0; padding: 14px 24px; }
}

/* ===== Privacy Policy ===== */
.policy-body { font-size: 15px; line-height: 1.9; }
.policy-body > p { margin: 0 0 1.4em; color: var(--text); }
.policy-body h2 {
  font-family: "Noto Serif JP", serif;
  font-size: 17px; color: var(--navy-deep);
  margin: 2.4em 0 0.8em;
  padding-left: 12px;
  border-left: 3px solid var(--gold);
}
.policy-body ul {
  margin: 0 0 1.4em; padding-left: 1.4em;
  color: var(--text);
}
.policy-body ul li { margin-bottom: 0.4em; }
.policy-contact {
  background: var(--bg-alt);
  padding: 24px 28px;
  border-radius: var(--radius);
  margin: 1em 0 1.6em;
}
.policy-contact > div {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 16px; padding: 8px 0;
}
.policy-contact dt { font-weight: 500; color: var(--navy); font-size: 14px; }
.policy-contact dd { margin: 0; font-size: 14px; }
.policy-date {
  text-align: right; color: var(--text-muted);
  font-size: 13px; margin-top: 2.4em;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 56px 0 24px;
  font-size: 13px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-name {
  font-family: "Noto Serif JP", serif;
  font-size: 16px; color: #fff;
  margin: 0 0 8px;
}
.footer-addr, .footer-tel { margin: 0 0 4px; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { color: rgba(255,255,255,0.75); font-size: 13px; }
.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px; margin: 24px 0 0;
  text-align: center; font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 24px; gap: 20px;
  }
  .nav-toggle { display: flex; }
  .profile-layout { grid-template-columns: 1fr; gap: 32px; }
  .profile-photo { max-width: 240px; margin: 0 auto; }
  .message-photo { float: none; width: 240px; margin: 0 auto 24px; }
  .about-list > div { grid-template-columns: 1fr; gap: 4px; }
  .about-list dt { font-size: 12px; color: var(--text-muted); }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 88px; }
  .hero-photo { padding: 100px 0 120px; }
  .detail-block { padding: 28px 24px; }
  .detail-list > li { padding-left: 40px; }
  .detail-list > li::before { width: 28px; height: 28px; font-size: 12px; }
}
