.hero h1, h2, .logo-name, .footer-logo { font-family: 'Zen Old Mincho', 'Noto Serif JP', serif; font-weight: 700; }

.brush { position: relative; display: inline-block; isolation: isolate; }
.brush::after {
  content: ""; position: absolute; z-index: -1;
  left: -.1em; right: -.16em; bottom: -.1em; height: .32em;
  background: linear-gradient(90deg, #1a64a8 0%, #3c5d4b 52%, #9a694b 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 32' preserveAspectRatio='none'%3E%3Cpath d='M5 13 C28 7 62 9 98 8 C136 7 170 5 196 9 C199 13 198 19 193 21 C168 24 134 23 100 25 C70 27 38 28 12 26 C4 24 1 19 5 13Z'/%3E%3Cpath d='M150 23 C170 24 186 25 196 27 L180 29 C168 28 158 27 150 23Z' opacity='.7'/%3E%3Cpath d='M10 27 C30 29 50 30 70 29 L40 31 C28 31 16 30 10 27Z' opacity='.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 32' preserveAspectRatio='none'%3E%3Cpath d='M5 13 C28 7 62 9 98 8 C136 7 170 5 196 9 C199 13 198 19 193 21 C168 24 134 23 100 25 C70 27 38 28 12 26 C4 24 1 19 5 13Z'/%3E%3Cpath d='M150 23 C170 24 186 25 196 27 L180 29 C168 28 158 27 150 23Z' opacity='.7'/%3E%3Cpath d='M10 27 C30 29 50 30 70 29 L40 31 C28 31 16 30 10 27Z' opacity='.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .95;
}

html.motion:not(.ready) .hero h1 { visibility: hidden; }

html.motion .hero-photo { clip-path: polygon(9% 0, 9% 0, 0 100%, 0 100%); }
html.motion.ready .hero-photo { animation: m2Wipe .9s cubic-bezier(.65,0,.25,1) forwards; }
@keyframes m2Wipe { to { clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); } }

html.motion .hero h1 .ch { display: inline-block; opacity: 0; transform: translateY(.25em); }
html.motion.ready .hero h1 .ch { animation: m2Char .45s ease-out forwards; animation-delay: calc(.1s + var(--i) * .04s); }
@keyframes m2Char { to { opacity: 1; transform: none; } }

html.motion .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
html.motion .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  html.motion .hero-photo { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
  html.motion.ready .hero-photo { animation-name: m2WipeSp; }
  @keyframes m2WipeSp { to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } }
}

@media (max-width: 767px) {
  .hero { position: relative; }
  .hero-copy { position: static; }
  .hero-photo::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(180deg, rgba(20,35,55,.50) 0%, rgba(20,35,55,.30) 30%, rgba(20,35,55,0) 58%);
  }
  .hero-slide { z-index: 0; }
  .hero-title {
    position: absolute; left: 0; right: 0; top: 0; z-index: 2;
    padding: 22px 20px 0;
  }
  .hero-title .hero-kicker { display: inline-block; background: var(--red); color: #fff; padding: 4px 10px; letter-spacing: .12em; margin-bottom: 10px; }
  .hero-title h1, .hero-title h1 * { color: #fff; }
  .hero-title h1 { margin: 0; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
  .hero-copy > .lead { margin-top: 0; }

  html.motion.ready .hero h1 .ch { animation-delay: calc(.3s + var(--i) * .03s); }
}

.map-link { margin: 24px auto 0; text-align: center; }
.map-link a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6em 1.8em; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 500; letter-spacing: .04em; }
.map-link a:hover, .map-link a:focus-visible { background: rgba(255,255,255,.1); }

@media (prefers-reduced-motion: reduce) {
  html.motion .hero-photo, html.motion .hero h1 .ch, html.motion .reveal { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}


.worry-grid { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.worry-grid li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 18px 46px; position: relative; font-weight: 500; color: var(--navy); line-height: 1.6; word-break: auto-phrase; text-wrap: pretty; }
.worry-grid li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--red); box-sizing: border-box; }
.worry-note { max-width: 960px; margin: 14px auto 0; font-size: .85rem; color: var(--muted); line-height: 1.7; text-align: right; }
.worry-foot { text-align: center; margin: 28px 0 0; color: var(--navy); font-weight: 600; }
@media (max-width: 767px) { .worry-grid { grid-template-columns: 1fr; gap: 10px; } .worry-grid li { padding: 14px 14px 14px 42px; } .worry-grid li::before { left: 16px; top: 19px; } .worry-note { text-align: left; } }
.nb { display: inline-block; }
@media (min-width: 768px) and (max-width: 860px) {
  .hero-photo { aspect-ratio: auto; height: min(calc(var(--lockh, 100svh) * .56), 560px); }
}
@media (min-width: 768px) and (max-width: 860px) and (max-height: 500px) {
  .hero-photo { height: calc(var(--lockh, 100svh) * .42); }
}
@media (min-width: 768px) and (max-width: 860px) and (max-height: 500px) {
  .hero { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); height: calc(var(--lockh, 100svh) - var(--header-h) - 75px - env(safe-area-inset-bottom)); min-height: 240px; }
  .hero-photo { grid-column: 2; grid-row: 1; height: auto; aspect-ratio: auto; }
  .hero-copy { grid-column: 1; grid-row: 1; align-self: center; padding: 12px 10px 12px 24px; }
  .hero-copy > .lead, .hero-copy > .hero-tags, .hero-btns { display: none; }
  .hero h1 { font-size: 1.7rem; margin-bottom: 0; }
}
@media (max-width: 767px) {
  html.motion .reveal, html.motion .reveal.is-in { opacity: 1; transform: none; transition: none; }
}

.hero-slide picture { display: block; width: 100%; height: 100%; }
.hero-slide.s-work img { object-position: 72% 50%; }
.hero-slide.s-scaffold img { object-position: 50% 42%; }
.hero-slide.s-blue img { object-position: 50% 55%; }
@media (max-width: 860px) {
  .hero-slide.s-work img { object-position: 66% 35%; }
  .hero-slide.s-scaffold img, .hero-slide.s-blue img { object-position: 50% 50%; }
}
@media (max-width: 767px) {
  .hero-slide.s-work img { object-position: 66% 0%; }
  .hero-slide.s-scaffold img { object-position: 78% 50%; }
}
@media (min-width: 768px) and (max-width: 860px) and (max-height: 500px) {
  .hero-slide.s-work img { object-position: 66% 25%; }
}

.price-box { max-width: 880px; margin: 0 auto 40px; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--red); box-shadow: 0 4px 18px rgba(31, 51, 71, .06); padding: 26px 30px 22px; }
.price-title { font-size: 1.15rem; color: var(--navy); margin-bottom: 12px; text-align: center; }
.price-tax { font-size: .8em; font-weight: 500; color: var(--muted); margin-left: .2em; }
.price-list { margin: 0; }
.price-row { display: grid; grid-template-columns: 8em 9em 1fr; align-items: baseline; column-gap: 18px; padding: 14px 4px; border-top: 1px solid var(--line); }
.price-row:last-child { border-bottom: 1px solid var(--line); }
.price-row dt { font-weight: 700; color: var(--navy); }
.price-row dd { margin: 0; }
.price-row .yen { font-family: 'Zen Old Mincho', 'Noto Serif JP', serif; font-weight: 700; font-size: 1.7rem; color: #a8361f; line-height: 1.2; white-space: nowrap; }
.price-row .yen span { font-size: .95rem; margin-left: .1em; }
.price-row .incl { font-size: .9rem; color: var(--ink); line-height: 1.7; }
.price-row.is-set { background: var(--red-soft); border-radius: 8px; border-top-color: transparent; padding-left: 12px; padding-right: 12px; }
.price-row.is-set + .price-row, .price-row.is-set:last-child { border-bottom-color: transparent; }
.price-note { max-width: 40em; margin: 16px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.8; }

.urushi-photos { display: flex; gap: 14px; align-items: flex-start; }
.urushi-pair { display: flex; gap: 14px; align-items: flex-start; flex: 1.5 1 14px; }
.urushi-pair.is-wide { flex: 2.6667 1 14px; }
.urushi-photos figure { margin: 0; flex: 1 1 0; min-width: 0; }
.urushi-photos .p-tall { flex: .75 1 0; }
.urushi-photos .p-wide { flex: 1.3333 1 0; }
.urushi-photos img { width: 100%; height: auto; border-radius: 10px; }
.urushi-photos figcaption { font-size: .82rem; color: var(--navy); font-weight: 500; margin-top: 6px; line-height: 1.5; }
.urushi-row2 { margin-top: 22px; }
.urushi-pair.is-sq { flex: 2 1 14px; }
.urushi-pair.is-one { flex: .8 1 0; }
.urushi-photos .p-sq { flex: 1 1 0; }


.about-sign-art { margin: 0 0 8px; max-width: 420px; }
.about-sign-art img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 4px 16px rgba(31, 51, 71, .12); }
#about .about-urushi { background: var(--paper-light); }

@media (max-width: 860px) {
  .price-box { padding: 20px 16px 16px; margin-bottom: 30px; }
  .price-row { grid-template-columns: auto 1fr; row-gap: 2px; }
  .price-row .yen { text-align: right; font-size: 1.5rem; }
  .price-row .incl { grid-column: 1 / -1; font-size: .86rem; }
  .urushi-photos { flex-direction: column; gap: 16px; }
  .urushi-pair, .urushi-pair.is-wide, .urushi-pair.is-sq { flex: none; width: 100%; gap: 10px; }
  .urushi-row2 { margin-top: 16px; }
  .urushi-pair.is-one { flex: none; width: 62%; margin: 0 auto; }
  .about-sign-art { margin-left: auto; margin-right: auto; }
}

.price-row.is-set { align-items: center; margin-top: 12px; padding: 16px 16px; background: var(--red-soft); border: 1.5px solid #e3a99b; border-radius: 10px; }
.price-row.is-set dt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.set-badge { display: inline-block; font-size: .74rem; font-weight: 700; line-height: 1.5; letter-spacing: .06em; color: #fff; background: var(--red); border-radius: 999px; padding: .1em .8em; }
.price-row.is-set .incl { color: var(--navy); font-weight: 500; }

.flow-groups { list-style: none; padding: 0; margin: 0 auto; max-width: 1000px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 44px; }
.flow-group { position: relative; background: var(--white); border-radius: var(--radius); border-top: 4px solid var(--navy); box-shadow: 0 4px 18px rgba(31, 51, 71, .06); padding: 20px 22px 22px; }
.flow-group:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -29px; width: 14px; height: 14px; border-top: 3px solid var(--red); border-right: 3px solid var(--red); transform: translateY(-50%) rotate(45deg); }
.flow-group-title { font-size: 1.12rem; color: var(--navy); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.flow-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.flow-steps li { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 500; font-size: .96rem; line-height: 1.5; }
.flow-steps .no { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .88rem; }
.flow-group-note { margin: 14px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.6; }

.about-layout { grid-template-columns: 1fr 1.15fr; grid-template-rows: auto auto 1fr; grid-template-areas: "photo title" "photo word" "photo copy"; column-gap: 52px; row-gap: 0; }
.about-title { grid-area: title; }
.about-photo { grid-area: photo; }
.about-word { grid-area: word; }
.about-copy { grid-area: copy; }
.about-word { background: var(--white); border-radius: var(--radius); box-shadow: 0 4px 18px rgba(31, 51, 71, .06); padding: 18px 22px 16px; margin: 0 0 24px; }
.about-word-label { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--red); margin: 0 0 6px; }
.about-word-text { font-family: 'Zen Old Mincho', 'Noto Serif JP', serif; font-weight: 700; font-size: 1.35rem; color: var(--navy); line-height: 1.6; margin: 0 0 6px; }
.about-word-name { margin: 0; text-align: right; color: var(--navy); font-size: .9rem; letter-spacing: .1em; }
.about-word-name .sign-name { font-size: 1.2rem; }

@media (min-width: 861px) {
  .hero-copy { justify-self: end; width: 100%; max-width: 600px; padding: 48px clamp(28px, 3.4vw, 64px) 48px 32px; }
}
@media (min-width: 1181px) {
  .hero { grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); }
  .hero-copy { padding-left: 40px; }
}
@media (min-width: 1440px) {
  .hero-copy { max-width: 640px; }
  .hero h1 { font-size: clamp(3rem, 2.9vw, 3.5rem); }
  .hero .lead { font-size: 1.05rem; }
}

@media (max-width: 860px) {
  .price-row.is-set { padding: 14px 12px; }

  .about-layout { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "title" "photo" "word" "copy"; row-gap: 0; }
  .about-photo { margin-bottom: 16px; }
  .about-word { padding: 16px 18px 14px; }
  .about-word-text { font-size: 1.2rem; }
}

@media (max-width: 860px) {
  .flow-groups { grid-template-columns: 1fr; gap: 40px; max-width: 520px; counter-reset: fg; }
  .flow-group { counter-increment: fg; padding: 18px 20px 20px; }
  .flow-group:not(:last-child)::after { top: auto; right: auto; bottom: -29px; left: 50%; width: 14px; height: 14px; border-top: 0; border-left: 0; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: translateX(-50%) rotate(45deg); }
  .flow-group-title { font-family: 'Zen Old Mincho', 'Noto Serif JP', serif; font-weight: 700; font-size: 1.18rem; margin: 0 0 14px; padding-bottom: 12px; line-height: 1.4; }
  .flow-group-title::before { content: counter(fg); display: inline-block; margin-right: .45em; font-size: 2.1rem; line-height: 1; color: var(--red); vertical-align: -.14em; }
  .flow-group-title .nb { font-size: .9rem; color: var(--muted); font-family: 'Noto Sans JP', sans-serif; font-weight: 500; }
  .flow-steps { gap: 9px; }
  .flow-steps li { gap: 12px; font-size: .94rem; }
  .flow-steps .no { width: 24px; height: 24px; font-size: .78rem; background: none; color: var(--navy); border: 1.5px solid var(--navy); }
  .flow-group-note { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .82rem; }
}

/* 説明文：句点で改行・左寄せで行を書き切る（スマホ基準） */
main p:not(.hero-kicker):not(.worry-foot):not(.flow-group-note):not(.about-word-label):not(.about-word-text):not(.about-word-name):not(.motto) { word-break: normal; text-wrap: wrap; text-align: left; }
