/*
Theme Name: Magokoro Care Inoue
Theme URI: https://oneweek-novel.com/poc/
Author: Magokoro Care Inoue
Description: 有限会社まごころケアイノウエ専用WordPressテーマ。PoC版 v3。
Version: 3.0.0
Text Domain: magokoro-care
*/
:root {
  --paper: #fbf8f1;
  --paper-2: #f4eee3;
  --ink: #2c2925;
  --muted: #0c0b09;
  --wine: #7e2631;
  --wine-dark: #5f1721;
  --brown: #6f5a47;
  --gold: #b99a65;
  --line: #ded5c7;
  --white: #fff;
  --shadow: 0 12px 35px rgba(63, 48, 38, .10);
  --radius: 8px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.page-top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 10000; background: #fff; padding: 8px 14px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(251,248,241,.98); border-bottom: 1px solid var(--line); }
.header-utility { background: #2f2a26; color: #fff; font-size: 14px; }
.utility-inner { min-height: 34px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.utility-inner p { margin: 0; }
.utility-contact { display: flex; align-items: center; gap: 22px; }
.utility-phone { font-weight: 800; text-decoration: none; font-size: 16px; }
.header-main { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 290px; }
.brand-logo { width: 200px;height: 80px; object-fit: contain; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 22px; letter-spacing: .05em; }
.brand-text small { color: var(--muted); font-size: 15px; }
.main-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 700; }
.main-nav a { text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--wine); }
.nav-contact { padding: 9px 14px; border: 1px solid var(--wine); color: var(--wine); }
.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 4px; font-weight: 700; }

.hero { background: #251f1b; }
.slider { position: relative; height: clamp(520px, 65vw, 720px); max-height: calc(100vh - 112px); overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .8s ease; background-image: var(--hero-image); background-size: cover; background-position: center; }
.slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(30,23,18,.80) 0%, rgba(30,23,18,.55) 45%, rgba(30,23,18,.15) 75%, rgba(30,23,18,.05) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; padding-top: 20px; padding-bottom: 90px; }
.hero-kicker { margin: 0 0 10px; font-size: 16px; font-weight: 700; letter-spacing: .18em; border-left: 4px solid #d0b17a; padding-left: 12px; }
.hero h1, .hero h2 { margin: 0 0 22px; max-width: 900px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; font-size: clamp(40px, 5.3vw, 72px); line-height: 1.35; letter-spacing: .04em; text-shadow: 0 3px 20px rgba(0,0,0,.25); }
.hero h2 { font-size: clamp(36px, 4.4vw, 62px); }
.hero-content > p:not(.hero-kicker) { margin: 0 0 26px; font-size: clamp(17px, 1.7vw, 21px); font-weight: 600; line-height: 1.9; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 10px 22px; border: 1px solid transparent; text-decoration: none; font-weight: 800; border-radius: 3px; cursor: pointer; }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: #f2e9dc; }
.button-primary { background: var(--wine); color: #fff; }
.button-primary:hover { background: var(--wine-dark); }
.button-outline { border-color: var(--wine); color: var(--wine); background: transparent; }
.button-outline:hover { background: var(--wine); color: #fff; }
.full { width: 100%; }
.slider-arrow { position: absolute; z-index: 4; top: 50%; transform: translateY(-50%); width: 54px; height: 72px; border: 0; background: rgba(255,255,255,.88); color: #2f2a26; font-size: 46px; line-height: 1; cursor: pointer; }
.slider-prev { left: 0; }
.slider-next { right: 0; }
.slider-controls { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 18px; }
.slider-dots { display: flex; gap: 10px; }
.dot { width: 14px; height: 14px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.dot.is-active { background: #fff; }
.slider-pause { min-height: 38px; padding: 5px 11px; border: 1px solid rgba(255,255,255,.75); background: rgba(0,0,0,.22); color: #fff; border-radius: 3px; cursor: pointer; font-size: 14px; }

.quick-contact { background: var(--wine); color: #fff; }
.quick-contact-inner { min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--wine); font-weight: 800; letter-spacing: .08em; font-size: 18px; }
.quick-contact .eyebrow { color: #f5ddc2; }
.quick-copy { margin: 0; font-size: 20px; font-weight: 700; }
.phone-block { display: grid; min-width: 300px; padding: 10px 20px; border-left: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; line-height: 1.45; }
.phone-block span { font-size: 13px; }
.phone-block strong { font-size: 30px; letter-spacing: .03em; }
.phone-block small { font-size: 13px; }

.section { padding: 90px 0; }
.section-soft { background: var(--paper-2); }
.section-heading { margin-bottom: 42px; }
.section-heading.center { max-width: 820px; margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2, .first-copy h2, .contact-intro h2, .campaign-content h2 { margin: 0 0 16px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.5; font-weight: 600; }
.section-heading p:not(.eyebrow) { margin: 0; color: var(--muted); }
.split-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.text-link { font-weight: 800; color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 5px; white-space: nowrap; }

.trouble-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
/*.trouble-card { position: relative; min-height: 150px; padding: 26px 24px; background: #fff; border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; justify-content: center; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }*/
.trouble-card { display: grid; grid-template-columns: 1fr 135px; grid-template-rows: auto auto; align-items: center; column-gap: 20px; min-height: 170px; padding: 22px 20px 22px 28px; background: #fffdf8; border: 1px solid #e7ddd0; border-radius: 14px; text-decoration: none; color: #333; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease;}
.trouble-card strong { grid-column: 1; grid-row: 1; align-self: end; display: block; font-size: 21px; line-height: 1.5; color: #4a2924; margin-bottom: 5px;}
.trouble-card small { grid-column: 1; grid-row: 2; align-self: start; display: block; font-size: 15px; line-height: 1.7; color: #6e655f;}

.trouble-icon { grid-column: 2; grid-row: 1 / 3; width: 135px; height: 135px; display: flex; align-items: center; justify-content: center;}
.trouble-icon img { width: 100%; height: 100%; object-fit: contain; display: block;}
.trouble-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);}



.trouble-card:hover { transform: translateY(-3px); border-color: #bca992; box-shadow: var(--shadow); }
.trouble-card span { position: absolute; right: 18px; top: 12px; color: #d7c6b3; font-family: serif; font-size: 26px; }
.trouble-card strong { font-size: 22px; margin-bottom: 4px; }
.trouble-card small { display: block; color: var(--muted); font-size: 14px; }
.trouble-icon { flex-shrink: 0; width: 150px; height:150px; margin-bottom:18px; display:flex; align-items: center; justify-content:center;}
.trouble-card strong {display: block;  font-size: 20px; line-height: 1.5; margin-bottom: 8px; color: #4a2924;}
.trouble-card small { font-size: 15px; line-height: 1.7; color: #6e655f;}

.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { background: #fff; border-top: 4px solid var(--wine); padding: 28px 24px 24px; box-shadow: 0 6px 20px rgba(45,38,31,.06); }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line); color: var(--wine); font-family: "Yu Mincho", serif; font-size: 27px; margin-bottom: 18px; }
.service-card h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.5; }
.service-card p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.service-card a { color: var(--wine); font-weight: 800; }

.price-table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); }
.price-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.price-table th, .price-table td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: #362f2a; color: #fff; font-size: 16px; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:last-child { width: 190px; }
.price-table strong { color: var(--wine); font-size: 20px; }
.note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }

.campaign-section { padding-top: 20px; padding-bottom: 20px; }
.campaign-box { position: relative; display: grid; grid-template-columns: 140px 1fr auto; gap: 30px; align-items: center; padding: 34px 38px; background: #fff; border: 1px solid #cdbda8; box-shadow: var(--shadow); }
.campaign-label { height: 100%; min-height: 120px; display: grid; place-items: center; background: var(--wine); color: #fff; font-family: "Yu Mincho", serif; font-size: 22px; writing-mode: vertical-rl; letter-spacing: .12em; }
.campaign-content h2 { font-size: 28px; margin-bottom: 8px; }
.campaign-content p { margin: 0; color: var(--muted); }
.status-badge, .admin-hint { display: inline-block; padding: 6px 10px; background: #eee4d5; color: #675846; border-radius: 3px; font-size: 13px; font-weight: 700; }

.two-column { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.photo-placeholder { min-height: 370px; display: grid; place-items: center; background: linear-gradient(145deg, #ded2c2, #b9a38b); color: #fff; border: 10px solid #fff; box-shadow: var(--shadow); }
.photo-placeholder span { padding: 8px 15px; background: rgba(45,38,31,.55); font-size: 14px; }
.first-copy p { color: var(--muted); }
.assurance-list { display: grid; gap: 8px; margin: 25px 0 28px; color: #4e443b; font-weight: 700; }
.assurance-list span { padding: 8px 0; border-bottom: 1px solid var(--line); }

.news-list { border-top: 2px solid #433a33; }
.news-item { display: grid; grid-template-columns: 150px 1fr; gap: 25px; padding: 26px 6px; border-bottom: 1px solid var(--line); }
.news-item time { font-size: 15px; color: var(--muted); }
.news-category { display: inline-block; margin-right: 10px; color: var(--wine); font-size: 13px; font-weight: 800; }
.news-item h3 { display: inline; margin: 0; font-size: 20px; }
.news-item p { margin: 7px 0 0; color: var(--muted); font-size: 15px; }

.calendar-card { max-width: 850px; margin: 0 auto; background: #fff; border: 1px solid var(--line); padding: 28px; box-shadow: 0 8px 30px rgba(45,38,31,.06); }
.calendar-head { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin-bottom: 20px; }
.calendar-head h3 { margin: 0; text-align: center; font-size: 24px; }
.calendar-nav { width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; font-size: 28px; cursor: pointer; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays span { padding: 9px 0; text-align: center; font-size: 14px; font-weight: 800; background: #f2ece3; border-right: 1px solid #e1d8cc; }
.calendar-weekdays span:last-child { border-right: 0; }
.calendar-grid { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.calendar-day { min-height: 74px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-day.is-empty { background: #faf8f4; }
.calendar-day.is-weekend { background: #f2eee8; color: #887d72; }
.calendar-day.is-today { outline: 3px solid var(--wine); outline-offset: -3px; font-weight: 800; }
.calendar-day small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.3; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.calendar-legend span { display: flex; align-items: center; gap: 7px; }
.calendar-legend i { width: 16px; height: 16px; display: inline-block; border: 1px solid var(--line); }
.legend-open { background: #fff; }
.legend-temp { background: #f2eee8; }

.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
.shop-card { padding: 32px; background: #fff; border: 1px solid var(--line); }
.shop-head span { color: var(--wine); font-weight: 800; font-size: 13px; }
.shop-head h3 { margin: 3px 0 3px; font-family: "Yu Mincho", serif; font-size: 30px; }
.shop-card dl { margin: 0 0 24px; }
.shop-card dl div { display: grid; grid-template-columns: 86px 1fr; padding: 12px 0; border-bottom: 1px solid var(--line); }
.shop-card dt { font-weight: 800; }
.shop-card dd { margin: 0; }
.shop-card dd a { color: var(--wine); font-weight: 800; }
.shop-card small { font-size: 12px; color: var(--muted); }
.shop-photo { width: 100%; height: 300px; background: linear-gradient(145deg, #ded2c2, #b9a38b); border: 10px solid #fff; box-shadow: var(--shadow); display: grid; place-items: center; }

.contact-section { background: #2f2a26; color: #fff; }
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; }
.contact-section .eyebrow { color: #e5c49a; }
.contact-intro h2 { font-size: clamp(32px, 3.7vw, 48px); }
.contact-intro > p { color: #ddd5cc; }
.contact-phone-card { display: grid; margin: 30px 0 20px; padding: 22px 24px; background: var(--wine); color: #fff; text-decoration: none; line-height: 1.45; }
.contact-phone-card span { font-size: 15px; }
.contact-phone-card strong { font-size: clamp(30px, 3vw, 42px); letter-spacing: .03em; }
.contact-phone-card small { font-size: 14px; }
.contact-note { font-size: 13px; }
.contact-form { background: #fff; color: var(--ink); padding: 34px; border-radius: var(--radius); }
.form-heading h3 { margin: 0; font-size: 26px; }
.form-heading p { margin: 2px 0 25px; color: var(--muted); font-size: 14px; }
.contact-form label { display: block; margin-bottom: 20px; font-weight: 800; }
.contact-form label > span { display: block; margin-bottom: 7px; }
.required { color: #9c1f2c; font-size: 12px; }
.contact-form input[type="text"], .contact-form input[type="tel"], .contact-form input[type="email"], .contact-form textarea { width: 100%; border: 1px solid #bdb5aa; background: #fffdf9; padding: 13px 14px; border-radius: 3px; font-size: 17px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(126,38,49,.18); border-color: var(--wine); }
.privacy-check { display: flex !important; align-items: center; gap: 10px; font-size: 14px; }
.privacy-check input { width: 20px; height: 20px; }
.privacy-check span { margin: 0 !important; }
.form-message { margin: 14px 0 0; font-weight: 800; color: var(--wine); min-height: 1.5em; }

.site-footer { background: #211e1b; color: #e9e4dd; padding: 48px 0 22px; font-size: 20px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer-brand { font-family: "Yu Mincho", serif; font-size: 22px; margin: 0 0 8px; }
.site-footer p { margin: 3px 0; }
.site-footer a { color: #fff; }
.footer-nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 20px; align-content: start; }
.footer-bottom { margin-top: 35px; padding-top: 18px; border-top: 1px solid #47413a; display: flex; justify-content: space-between; gap: 20px; }
.mobile-contact-bar { display: none; }

@media (max-width: 980px) {
  body { font-size: 17px; }
  .header-main { min-height: 60px; }
  .menu-toggle { display: inline-flex; }
  .main-nav { position: absolute; left: 0; right: 0; top: 122px; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 20px; display: none; grid-template-columns: repeat(2, 1fr); gap: 0; box-shadow: var(--shadow); }
  .main-nav.is-open { display: grid; }
  .main-nav a { padding: 12px; border-bottom: 1px solid #eee7dd; }
  .nav-contact { border: 0; color: var(--wine); }
  .slider { height: 620px; max-height: none; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .trouble-grid { grid-template-columns: repeat(2, 1fr); }
  .trouble-card { padding: 20px 16px;}
  .trouble-icon { width: 130px; height: 130px;}
  .campaign-box { grid-template-columns: 90px 1fr; }
  .status-badge { grid-column: 2; justify-self: start; }
  .two-column { gap: 35px; }
  .contact-layout { gap: 35px; }
  .site-footer { font-size: 14px; }
  .shop-head h3 { font-size: 25px; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 84px; }
  body { padding-bottom: 66px; font-size: 16px; line-height: 1.85; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-utility { display: none; }
  .site-header { top: 0; }
  .header-main { min-height: 80px; gap: 12px; }
  .brand { min-width: 0; gap: 9px; }
  .brand-logo { width: 150px; height: 60px; }
  .brand-text strong { font-size: 17px; }
  .brand-text small { display: none; }
  .menu-toggle { padding: 8px 12px; font-size: 14px; }
  .main-nav { top: 80px; }
  .slider { height: 600px; }
  .hero-shade { background: linear-gradient(90deg, rgba(28,22,18,.82), rgba(28,22,18,.48)); }
  .hero-content { padding: 55px 24px 105px; justify-content: flex-end; }
  .hero h1, .hero h2 { font-size: clamp(36px, 10vw, 48px); }
  .hero-content > p:not(.hero-kicker) { font-size: 16px; }
  .hero-content br { display: none; }
  .slider-arrow { width: 42px; height: 58px; font-size: 38px; top: 44%; }
  .slider-controls { bottom: 22px; }
  .quick-contact-inner { min-height: 0; padding-top: 22px; padding-bottom: 22px; display: block; }
  .quick-contact .quick-copy { font-size: 17px; }
  .phone-block { display: none; }
  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2, .first-copy h2, .contact-intro h2, .campaign-content h2 { font-size: 30px; }
  .split-heading { display: block; }
  .split-heading .text-link, .split-heading .button { margin-top: 16px; }
  .trouble-grid, .service-grid, .shop-grid, .two-column, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
  .trouble-card { min-height: 125px; }
  .service-card { padding: 24px 20px; }
  .price-table th, .price-table td { padding: 16px 18px; }
  .campaign-box { grid-template-columns: 1fr; padding: 25px 22px; gap: 18px; }
  .campaign-label { min-height: 0; height: auto; padding: 8px 12px; writing-mode: horizontal-tb; justify-self: start; }
  .status-badge { grid-column: 1; }
  .two-column { gap: 28px; }
  .shop-head h3 { font-size: 25px; }
  .photo-placeholder { min-height: 300px; }
  .news-item { grid-template-columns: 1fr; gap: 5px; padding: 22px 4px; }
  .calendar-card { padding: 18px 10px; }
  .calendar-day { min-height: 58px; padding: 5px; font-size: 14px; }
  .calendar-day small { display: none; }
  .calendar-legend { padding: 0 5px; }
  .shop-card { padding: 24px 20px; }
  .shop-card dl div { grid-template-columns: 70px 1fr; }
  .contact-form { padding: 24px 18px; }
  .contact-intro h2 br { display: block; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .mobile-contact-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 -4px 18px rgba(0,0,0,.20); }
  .mobile-contact-bar a { min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; font-weight: 800; font-size: 16px; }
  .mobile-call { background: var(--wine); color: #fff; }
  .mobile-mail { background: #f3e8d7; color: #322d28; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* お困りごと詳細ページ */
.sub-hero { padding: 78px 0 68px; background: #f3eee6; border-bottom: 1px solid var(--line); }
.sub-hero h1 { margin: 8px 0 18px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(38px, 5vw, 64px); line-height: 1.45; font-weight: 600; }
.sub-hero p:last-child { max-width: 780px; font-size: 18px; line-height: 1.9; color: var(--muted); }
.problem-jump { position: sticky; top: 0; z-index: 500; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.problem-jump-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.problem-jump a { min-height: 72px; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 10px; border-right: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.problem-jump a:first-child { border-left: 1px solid var(--line); }
.problem-jump a:hover { background: var(--wine); color: #fff; }
.problem-jump a span { color: #aa8f72; font-family: Georgia, serif; }
.problem-jump a:hover span { color: #f0dac0; }
.problem-detail { scroll-margin-top: 85px; }
.problem-detail-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(38px, 6vw, 86px); align-items: center; }
.problem-detail-grid.is-reverse .problem-photo { order: 2; }
.problem-detail-grid.is-reverse .problem-copy { order: 1; }
.problem-photo { margin: 0; background: #eee7de; border: 8px solid #fff; box-shadow: var(--shadow); overflow: hidden; }
.problem-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.problem-photo-crop img { object-position: 70% center; }
.problem-photo figcaption { padding: 10px 13px 12px; color: var(--muted); background: #fff; font-size: 13px; line-height: 1.5; }
.problem-number { margin: 0 0 -3px; color: #d2c2b1; font: 700 44px/1 Georgia, serif; }
.problem-copy h2 { margin: 4px 0 20px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(28px, 3.2vw, 42px); line-height: 1.55; font-weight: 600; }
.problem-copy > p:not(.eyebrow):not(.problem-number) { font-size: 17px; line-height: 1.95; }
.problem-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.problem-points span { padding: 8px 13px; border: 1px solid #ccbda9; background: #fff; font-size: 14px; }
.problem-consult { scroll-margin-top: 85px; background: #eee3d5; }
.problem-consult-box { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(38px, 6vw, 80px); align-items: center; }
.consult-photo { border-color: #f8f3ec; }
.problem-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.heading-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.form-topic { display: inline-block; margin: 0 0 10px; padding: 6px 10px; background: #f1e7dc; color: var(--wine); font-size: 14px; font-weight: 800; border-radius: 2px; }
.contact-form input[name="subject"] { font-weight: 700; }

@media (max-width: 900px) {
  .problem-jump { position: static; }
  .problem-jump-grid { grid-template-columns: repeat(3, 1fr); }
  .problem-jump a { border-bottom: 1px solid var(--line); }
  .problem-detail-grid, .problem-consult-box { grid-template-columns: 1fr; }
  .problem-detail-grid.is-reverse .problem-photo, .problem-detail-grid.is-reverse .problem-copy { order: initial; }
  .heading-actions { align-items: flex-start; }
}
@media (max-width: 600px) {
  .sub-hero { padding: 52px 0 44px; }
  .sub-hero h1 { font-size: 36px; }
  .problem-jump-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-jump a { min-height: 62px; font-size: 14px; }
  .problem-detail { padding-top: 52px; padding-bottom: 52px; }
  .problem-photo { border-width: 5px; }
  .problem-copy h2 { font-size: 28px; }
  .problem-actions { display: grid; }
}


/* 詳細ページ共通 */
.detail-header-main { min-height: 96px; display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr); align-items: center; gap: 20px; }
.detail-header-main .brand { grid-column: 2; min-width: 0; }
.detail-header-spacer { grid-column: 3; }
.back-home { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line); background: #fff; color: var(--wine); text-decoration: none; font-weight: 800; border-radius: 3px; }
.back-home:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.detail-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(38px, 6vw, 82px); align-items: center; }
.detail-feature.is-reverse .detail-photo { order: 2; }
.detail-feature.is-reverse .detail-copy { order: 1; }
.detail-photo { position: relative; min-height: 360px; margin: 0; overflow: hidden; background: linear-gradient(145deg,#ded2c2,#b9a38b); border: 8px solid #fff; box-shadow: var(--shadow); }
.detail-photo .photo-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; }
.detail-photo img { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.portrait-photo img { object-position: center 24%; }
.detail-copy h2 { margin: 4px 0 20px; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(30px,3.4vw,44px); line-height: 1.55; font-weight: 600; }
.detail-copy p:not(.eyebrow) { color: var(--muted); }
.signature { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink) !important; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.value-grid article { padding: 30px 26px; background: #fff; border-top: 4px solid var(--wine); box-shadow: 0 6px 20px rgba(45,38,31,.06); }
.value-grid strong { color: #c6ad8f; font: 700 30px/1 Georgia,serif; }
.value-grid h3 { margin: 12px 0 10px; font-size: 23px; }
.value-grid p { margin: 0; color: var(--muted); font-size: 16px; }
.detail-cta { text-align: center; max-width: 880px; }
.detail-cta h2 { margin: 0 0 26px; font-family: "Yu Mincho", serif; font-size: clamp(28px,3.2vw,40px); font-weight: 600; line-height: 1.6; }
.detail-cta > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.work-jump { position: sticky; top: 130px; z-index: 400; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.work-jump-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.work-jump a { min-height: 60px; display: grid; place-items: center; border-right: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.work-jump a:first-child { border-left: 1px solid var(--line); }
.work-jump a:hover { background: var(--wine); color: #fff; }
.work-detail { scroll-margin-top: 175px; }
@media (max-width: 900px) {
  .detail-header-main { grid-template-columns: auto 1fr; }
  .detail-header-main .brand { grid-column: 2; justify-self: end; min-width: 0; }
  .detail-header-spacer { display: none; }
  .detail-feature { grid-template-columns: 1fr; }
  .detail-feature.is-reverse .detail-photo, .detail-feature.is-reverse .detail-copy { order: initial; }
  .value-grid { grid-template-columns: 1fr; }
  .work-jump { top: 122px; }
}
@media (max-width: 720px) {
  .header-main { min-height: 60px; }
  .detail-header-main { min-height: 80px; gap: 10px; }
  .back-home { min-height: 42px; padding: 7px 10px; font-size: 14px; }
  .detail-header-main .brand-text { display: none; }
  .detail-header-main .brand-logo { width: 60px; height: 60px; }
  .detail-photo, .detail-photo img { min-height: 280px; }
  .work-jump { position: static; }
  .work-jump-grid { grid-template-columns: repeat(2,1fr); }
  .work-jump a { min-height: 54px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .work-detail { scroll-margin-top: 80px; }
}


/* WordPress dynamic additions */
.wp-contact-status{margin:0 0 20px;padding:14px 16px;border-radius:4px;font-weight:700}
.wp-contact-status.is-success{background:#eaf5ec;color:#245d31}
.wp-contact-status.is-error{background:#fff0f0;color:#8a2525}
.form-honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.calendar-store-tabs{display:flex;justify-content:center;gap:8px;margin:0 0 18px}
.calendar-store-tab{border:1px solid var(--line);background:#fff;padding:9px 18px;font-weight:800;cursor:pointer}
.calendar-store-tab.is-active{background:var(--wine);color:#fff;border-color:var(--wine)}
.calendar-day .store-note{font-size:10px}
.calendar-day.is-closed{background:#f2eee8;color:#887d72}
.calendar-day.is-special{background:#fff5dd}
.campaign-box.has-image{grid-template-columns:140px minmax(0,1fr) 220px}
.campaign-image{width:220px;height:150px;object-fit:cover}
.news-thumb{width:120px;height:84px;object-fit:cover;float:right;margin-left:18px}
.contact-form input[type="hidden"]{display:none}
.contact-form .privacy-check input{display:inline-block}
.detail-photo img,.problem-photo img,.shop-photo,.photo-first img{width:100%;height:100%;object-fit:cover}
.photo-first{overflow:hidden}
.shop-photo{height:300px;object-fit:cover;margin-bottom:22px;border:10px solid #fff;box-shadow:var(--shadow)}
.mag-photo-note{font-size:13px;color:var(--muted)}
@media(max-width:720px){
  .campaign-box.has-image{grid-template-columns:1fr}
  .campaign-image{width:100%;height:200px}
  .news-thumb{width:90px;height:68px}
  .calendar-store-tabs{flex-wrap:wrap}
  .calendar-store-tab{flex:1 1 40%}
  .shop-photo{height:220px}
}
