/*
Theme Name: ひととゑ
Theme URI: https://www.hitotoe.jp/
Author: 株式会社ひととゑ
Description: お墓掃除・お墓参り代行のための、スマートフォンを優先したオリジナルテーマです。
Version: 1.1.0
Text Domain: hitotoe
*/

:root {
  --ink: #27352f;
  --muted: #53615b;
  --olive: #66704b;
  --olive-dark: #4d5638;
  --sage: #e9ecdf;
  --paper: #fbfaf5;
  --sand: #eee7d9;
  --line: #d9d9cc;
  --white: #fff;
  --line-green: #168b46;
  --serif: "Yu Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --shadow: 0 12px 34px rgba(39, 53, 47, .1);
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.85; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid #b27a25; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: .6rem 1rem; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(800px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(102,112,75,.18); background: rgba(251,250,245,.96); backdrop-filter: blur(10px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: white; background: var(--olive); font-family: var(--serif); font-size: 22px; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy small { margin-bottom: 4px; color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.brand-copy strong { font-family: var(--serif); font-size: 19px; letter-spacing: .08em; }
.nav-list { display: flex; align-items: center; gap: 24px; padding: 0; margin: 0; list-style: none; }
.nav-list a { font-size: 14px; font-weight: 700; text-decoration: none; }
.nav-list .nav-cta { padding: 10px 18px; border-radius: 99px; color: white; background: var(--olive); }
.menu-toggle { display: none; border: 0; color: var(--ink); background: transparent; font-weight: 700; }

.hero { position: relative; overflow: hidden; padding: clamp(54px, 9vw, 110px) 0 70px; background: linear-gradient(115deg, #f8f4e9 0%, #f8f4e9 57%, #e2e6d6 57%); }
.hero::before { content: ""; position: absolute; inset: auto -7% -35% auto; width: 45vw; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.35); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: clamp(36px, 7vw, 90px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--olive-dark); font-size: 13px; font-weight: 700; letter-spacing: .1em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { margin: 0 0 20px; font-family: var(--serif); font-size: clamp(34px, 5.3vw, 64px); font-weight: 600; line-height: 1.45; letter-spacing: .045em; }
.hero h1 em { color: var(--olive); font-style: normal; }
.hero-lead { max-width: 620px; margin: 0 0 28px; color: #4f5d57; font-size: clamp(16px, 2vw, 19px); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border: 1px solid var(--olive); border-radius: 9px; font-weight: 700; text-decoration: none; }
.button.primary { color: white; background: var(--olive); }
.button.line { border-color: var(--line-green); color: white; background: var(--line-green); }
.button.light { border-color: var(--line); background: white; }
.hero-visual { position: relative; }
.hero-visual img { display: block; width: 100%; filter: drop-shadow(0 18px 35px rgba(50,65,55,.13)); }
.trust-chip { position: absolute; right: -8px; bottom: 3%; padding: 12px 16px; border: 1px solid rgba(102,112,75,.2); border-radius: 10px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); font-family: var(--serif); font-weight: 700; }

.trust-bar { background: var(--olive-dark); color: white; }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px 0; margin: 0; list-style: none; text-align: center; }
.trust-list li + li { border-left: 1px solid rgba(255,255,255,.25); }
.trust-list strong { display: block; font-family: var(--serif); font-size: 18px; letter-spacing: .05em; }
.trust-list span { font-size: 12px; opacity: .78; }

.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-alt { background: #f1f0e8; }
.section-green { background: #e9ecdf; }
.section-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-kicker { margin: 0 0 10px; color: var(--olive); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.section h2 { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(27px, 4vw, 42px); font-weight: 600; line-height: 1.55; letter-spacing: .04em; }
.section-head p { margin: 0; color: var(--muted); }
.worry-grid, .service-grid, .case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.worry-card, .service-card, .case-card, .price-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.83); box-shadow: 0 5px 20px rgba(39,53,47,.04); }
.worry-card { padding: 28px 24px; }
.card-icon { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 17px; border-radius: 50%; color: var(--olive-dark); background: var(--sage); font-size: 22px; }
.worry-card h3, .service-card h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 21px; }
.worry-card p, .service-card p { margin: 0; color: var(--muted); font-size: 14px; }

.about-grid, .profile-grid, .area-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(38px, 8vw, 100px); }
.stone-panel { position: relative; min-height: 420px; overflow: hidden; border-radius: 28px 4px 28px 4px; background: #d7dbd2 url("assets/images/craft-scene.svg") center/cover no-repeat; box-shadow: var(--shadow); }
.stone-panel::after { content: "石を知る職人が、\A一基ずつ丁寧に。"; white-space: pre; position: absolute; right: 0; bottom: 0; padding: 18px 24px; color: white; background: var(--olive-dark); font-family: var(--serif); font-size: 18px; }
.check-list { padding: 0; margin: 25px 0 0; list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 34px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: "✓"; position: absolute; left: 4px; color: var(--olive); font-weight: 900; }
.service-card { overflow: hidden; }
.service-thumb { display: grid; min-height: 150px; place-items: center; color: var(--olive-dark); background: linear-gradient(145deg, #e2e5dc, #f4eee2); font-family: var(--serif); font-size: 40px; }
.service-body { padding: 24px; }
.service-tag { display: inline-block; margin-top: 14px; color: var(--olive); font-size: 12px; font-weight: 800; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px 21px; border-top: 3px solid var(--olive); background: white; box-shadow: var(--shadow); counter-increment: step; }
.step::before { content: "0" counter(step); display: block; margin-bottom: 15px; color: var(--olive); font-family: Georgia, serif; font-size: 29px; }
.step h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 13px; }

.price-wrap { max-width: 820px; margin: auto; }
.price-card { padding: clamp(26px, 5vw, 46px); }
.price-main { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.price-main h3 { margin: 0; font-family: var(--serif); font-size: 23px; }
.price-value { color: var(--olive-dark); font-family: var(--serif); font-size: clamp(25px, 5vw, 38px); font-weight: 700; }
.price-note { color: var(--muted); font-size: 13px; }
.notice { margin-top: 18px; padding: 15px 18px; border-left: 3px solid var(--olive); background: var(--sage); font-size: 14px; }

.portrait { position: relative; min-height: 450px; overflow: hidden; border-radius: 50% 50% 8px 8px; background: url("assets/images/craft-scene.svg") 62% center/cover no-repeat; }
.portrait-label { position: absolute; right: 18px; bottom: 18px; padding: 13px 18px; background: white; box-shadow: var(--shadow); font-family: var(--serif); }
.signature { margin-top: 22px; font-family: var(--serif); font-size: 21px; }
.signature span { margin-right: 12px; color: var(--muted); font-family: var(--sans); font-size: 12px; }
.case-card { overflow: hidden; }
.case-image { position: relative; display: grid; min-height: 200px; grid-template-columns: 1fr 1fr; background: #d8dad1; }
.case-image div { display: grid; place-items: end start; padding: 12px; color: white; background: linear-gradient(160deg, #aaa99d, #73796e); font-size: 12px; font-weight: 800; }
.case-image div:last-child { background: linear-gradient(160deg, #dfe2d8, #9fa999); }
.case-body { padding: 21px; }
.case-body h3 { margin: 0 0 7px; font-family: var(--serif); }
.case-body p { margin: 0; color: var(--muted); font-size: 13px; }

.faq-list { max-width: 850px; margin: auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 23px 45px 23px 48px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::before { content: "Q"; position: absolute; left: 12px; color: var(--olive); font-family: Georgia, serif; font-size: 22px; }
.faq-list summary::after { content: "+"; position: absolute; right: 13px; font-size: 22px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 48px 23px; color: var(--muted); }
.faq-answer p { margin: 0; }
.area-map { min-height: 340px; border-radius: 40% 55% 45% 50%; background: var(--sage); display: grid; place-items: center; text-align: center; }
.area-map strong { display: block; color: var(--olive-dark); font-family: var(--serif); font-size: clamp(25px, 4vw, 40px); }
.area-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.area-list li { padding: 7px 15px; border: 1px solid var(--line); border-radius: 99px; background: white; font-weight: 700; }

.contact-section { padding: clamp(60px, 9vw, 100px) 0; color: white; background: var(--olive-dark); text-align: center; }
.contact-section h2 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(28px, 4vw, 42px); }
.contact-section p { margin: 0 0 26px; color: rgba(255,255,255,.78); }
.contact-section .button.light { color: var(--ink); }
.contact-note { margin-top: 17px !important; font-size: 12px; }
.site-footer { padding: 55px 0 25px; color: #dfe4df; background: #26322d; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; }
.footer-brand { color: white; font-family: var(--serif); font-size: 22px; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer-nav a { font-size: 13px; }
.copyright { padding-top: 35px; margin-top: 35px; border-top: 1px solid rgba(255,255,255,.15); color: #aeb9b3; font-size: 11px; }
.mobile-contact { display: none; }

@media (max-width: 850px) {
  body { padding-bottom: 68px; }
  .container, .narrow { width: min(100% - 30px, 680px); }
  .menu-toggle { display: block; padding: 12px; }
  .site-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 10px 20px 22px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: block; }
  .nav-list { display: grid; gap: 0; }
  .nav-list a { display: block; padding: 11px; }
  .hero { padding-top: 45px; background: linear-gradient(160deg, #f8f4e9 0%, #f8f4e9 70%, #e2e6d6 70%); }
  .hero-grid, .about-grid, .profile-grid, .area-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(500px, 100%); margin: auto; }
  .worry-grid, .service-grid, .case-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .trust-list strong { font-size: 15px; }
  .trust-list span { font-size: 10px; }
  .stone-panel, .portrait { min-height: 350px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .mobile-contact { position: fixed; z-index: 48; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: 68px; color: white; box-shadow: 0 -4px 15px rgba(0,0,0,.14); }
  .mobile-contact a { display: grid; place-items: center; background: var(--line-green); font-size: 14px; font-weight: 800; text-decoration: none; }
  .mobile-contact a:last-child { background: var(--olive-dark); }
}

@media (max-width: 520px) {
  .hero h1 { font-size: 34px; }
  .button-row .button { width: 100%; }
  .trust-list { grid-template-columns: 1fr; gap: 11px; text-align: left; }
  .trust-list li { display: flex; align-items: center; justify-content: center; gap: 8px; }
  .trust-list li + li { border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .price-main { display: block; }
  .price-value { display: block; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Completed homepage: photographs, readable pricing, and keyboard navigation. */
.hero { background: var(--paper); }
.hero::before { display:none; }
.hero-grid { grid-template-columns:1fr 1fr; gap:48px; }
.hero-visual img { aspect-ratio: 4/5; object-fit:cover; object-position:58% center; border-radius:3px 3px 80px 3px; filter:none; }
.hero h1 { font-size:clamp(34px,4.3vw,58px); }
.hero h1 em { display:block; }
.care-principles { padding:48px; border-left:3px solid var(--olive); background:var(--sage); }
.care-number { font:96px/1.1 Georgia,serif; margin:16px 0 32px; color:var(--olive-dark); }
.care-number span { display:block; font:16px/2 var(--sans); }
.care-principles h3 { font:28px/1.6 var(--serif); }
.price-options { display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:28px;text-align:left; }
.price-options article { position:relative;padding:30px 24px;border:1px solid var(--line);background:white; }
.price-options h3 { font-size:18px; }
.plan-price { font:36px/1.5 Georgia,serif;color:var(--olive-dark);margin:20px 0; }
.plan-price span { font:14px/1.5 var(--sans); }
.price-options .plan-featured { border:2px solid var(--olive);background:var(--sage); }
.plan-label { font-size:12px;color:var(--olive-dark);margin:0; }
.profile-photo { margin:0; }
.profile-photo img { width:100%;height:auto;max-height:550px;object-fit:cover;border-radius:3px 60px 3px 3px; }
.profile-photo figcaption { margin-top:12px;color:var(--muted);font-size:13px; }
.work-intro { display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center; }
.site-footer address { font-style:normal;font-size:14px; }
.mobile-contact { padding-bottom:env(safe-area-inset-bottom); }
:focus-visible { outline:3px solid #9b5e1b;outline-offset:4px; }
.menu-toggle { min-width:48px;min-height:48px; }
@media(max-width:850px) {
 .hero-grid,.price-options,.work-intro { grid-template-columns:1fr; }
 .hero { padding:42px 0; }
 .hero-visual img { aspect-ratio:4/3;max-height:420px; }
 .hero h1 em { display:inline; }
 .care-principles { padding:28px; }
 .price-options article { padding:24px; }
 .trust-list strong { font-size:15px; }
 .trust-list span { font-size:11px; }
 .button { min-height:52px; }
 body:not(.js-enabled) .site-nav { display:block; }
 body:not(.js-enabled) .menu-toggle { display:none; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation:none!important;transition:none!important; } }

.price-wrap { max-width:1100px; }
@media(max-width:850px) { body:not(.js-enabled) .site-header { position:relative; } body:not(.js-enabled) .header-inner { flex-wrap:wrap; } body:not(.js-enabled) .site-nav { position:static;width:100%; } .hero { background:var(--paper); } }

/* Preserve the full supplied photograph, including its before/after panel. */
.hero-visual img { width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:4px; }

/* Original photographed lettering: show the mark without redrawing it. */
.company-logo { position:relative;display:block;flex:none;overflow:hidden;width:34px;aspect-ratio:290 / 655;background:#c6c4bc; }
.company-logo img { position:absolute;display:block;width:471.72414%;max-width:none;height:auto;left:-196.55172%;top:-67.93893%; }
.hero-identity { display:flex;align-items:center;gap:28px;margin:0 0 32px; }
.hero-identity .company-logo { width:86px; }
.identity-name { margin:0 0 12px;color:var(--muted);font-size:13px;letter-spacing:.12em; }
.identity-message { margin:0;font-family:var(--serif);font-size:25px;line-height:1.8;letter-spacing:.12em; }
@media(max-width:850px) { .hero-identity { gap:22px;margin-bottom:28px; } .hero-identity .company-logo { width:68px; } .identity-message { font-size:22px; } }

/* White identity surface with the complete red seal. */
.hero { background:#fff; }
.company-logo { width:32px;aspect-ratio:1 / 3;background:#fff; }
.company-logo img { position:static;width:100%;max-width:100%;height:auto;filter:contrast(1.12); }
.hero-logo { display:flex;justify-content:center;align-items:center;background:#fff; }
.hero-logo img { width:auto;max-width:100%;height:620px;max-height:none;object-fit:contain;border-radius:0;filter:contrast(1.12); }
.work-photo { margin:0; }
.work-photo img { display:block;width:100%;height:auto;border-radius:4px; }
.campaign-banner { background:var(--olive-dark);color:#fff; }
.campaign-banner a { display:flex;justify-content:center;align-items:center;gap:24px;padding:12px 20px;color:inherit;text-decoration:none;font-size:14px; }
.campaign-banner strong { white-space:nowrap;text-decoration:underline;text-underline-offset:4px; }
.campaign-banner a:hover { background:#3b432b; }
@media(max-width:850px) { .hero-logo { grid-row:1; } .hero-logo img { height:470px; } .campaign-banner a { flex-wrap:wrap;gap:2px 14px;font-size:12px;text-align:center; } }

/* Keep small section labels readable on pale green backgrounds. */
.section-kicker { color: #4d5638; }
