/*
Theme Name: Mon Sourire
Description: Mon Sourire合同会社の軽量な専用テーマ。
Version: 0.1.2
Text Domain: monsourire
*/

:root {
  --paper: #f7f3ee;
  --white: #fff;
  --rose: #eadbd7;
  --ink: #302c29;
  --muted: #655c56;
  --accent: #76534e;
  --line: #d6cac2;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --content-width: 1240px;
  --reading-width: 760px;
  --gutter: clamp(20px, 4vw, 80px);
  --space-section: clamp(64px, 7vw, 128px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.9; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .25em; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 100; background: var(--white); padding: 12px; }
.skip-link:focus { top: 12px; }
.wrap { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 96px; }
.brand { text-decoration: none; display: block; flex-shrink: 0; }
.brand-name { display: block; font-family: var(--serif); font-size: 27px; line-height: 1.3; letter-spacing: .035em; }
.brand-sub { display: block; font-size: 10px; letter-spacing: .12em; margin-top: 5px; }
.custom-logo { width: auto; max-width: 190px; max-height: 60px; }
.site-nav ul { display: flex; align-items: center; gap: clamp(12px, 1.3vw, 24px); list-style: none; margin: 0; padding: 0; }
.site-nav a { font-size: 12px; text-decoration: none; white-space: nowrap; padding-block: 10px; display: block; }
.site-nav a:hover, .site-nav .current-menu-item a { color: var(--accent); text-decoration: underline; }
.nav-toggle { display: none; border: 1px solid var(--accent); color: var(--accent); background: var(--paper); padding: 8px 12px; }
.nav-toggle:hover { color: var(--white); background: var(--accent); }
.page-intro { padding-block: 64px 56px; border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent); letter-spacing: .14em; font-size: 12px; margin: 0 0 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
h1 { font-size: clamp(32px, 3vw, 52px); margin: 0; }
h2 { font-size: clamp(26px, 2.4vw, 38px); margin: 0 0 28px; }
h3 { font-size: 23px; margin: 0 0 18px; }
p { margin: 0 0 1.5em; }
.page-body { padding-block: var(--space-section); }
.prose { max-width: var(--reading-width); margin-inline: auto; }
.prose h2:not(:first-child) { margin-top: 64px; }
.prose > :last-child { margin-bottom: 0; }
.button, .wpcf7 input.wpcf7-submit { display: inline-flex; align-items: center; justify-content: center; gap: 36px; background: var(--accent); color: var(--white); border: 1px solid var(--accent); padding: 15px 28px; text-decoration: none; border-radius: 0; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.button:hover, .wpcf7 input.wpcf7-submit:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.button--outline { background: transparent; color: var(--accent); }
.button--outline:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.section { padding-block: var(--space-section); }
.section + .section { border-top: 1px solid var(--line); }
.site-footer { padding-block: 64px 28px; background: var(--rose); }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-contact { margin-top: 20px; font-size: 14px; }
.footer-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding: 0; margin: 0; list-style: none; }
.footer-nav a { font-size: 13px; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.copyright { border-top: 1px solid #c6b2aa; padding-top: 24px; margin-top: 40px; font-size: 11px; }
.company-table, .price-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td, .price-table th, .price-table td { text-align: left; padding: 24px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.company-table th { width: 24%; font-weight: 500; }
details { border-block-end: 1px solid var(--line); padding-block: 22px; }
summary { cursor: pointer; font-weight: 500; }
details > p { margin: 20px 0 0; }
@media (max-width: 1100px) {
  .header-inner { min-height: 82px; flex-wrap: wrap; gap: 0; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; padding-block: 20px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
}
@media (max-width: 600px) {
  .brand-name { font-size: 23px; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-intro { padding-block: 40px; }
  .company-table th, .company-table td { display: block; width: 100%; padding: 12px 0; }
  .company-table th { border-bottom: 0; padding-bottom: 0; }
  .company-table td { padding-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
