

:root {
  --f-mincho: 'Zen Old Mincho', 'Yu Mincho', '游明朝', 'Hiragino Mincho ProN', serif;
  --f-en:     'EB Garamond', 'Times New Roman', Georgia, serif;
}

html body .hero-eyebrow { font-size: .9rem; letter-spacing: .3em; }
html body .sec-num { font-size: .85rem; letter-spacing: .2em; }

@media (min-width: 901px) {
  html body .hero-offer-list li { font-size: clamp(.875rem, .84rem + .19vw, 1rem); }
}

@media (max-width: 420px) {
  html body .hero-statement .hero-lead-1,
  html body .hero-statement .hero-lead-2 { font-size: min(1.375rem, 5.9vw); }
  html body .section-message .message-sign { letter-spacing: .03em; }
}

html body .sec-title { letter-spacing: .08em; }
html body .statement { letter-spacing: .06em; }

.hm-head {
  display: flex; align-items: flex-start;
  gap: clamp(14px, 1.6vw, 28px);
  margin-top: clamp(12px, 1.6vh, 36px);
}
.hm-label {
  writing-mode: vertical-rl;
  font-family: var(--f-en); font-size: .9rem;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--c-gold-text, #7E611B);
  border-left: 1px solid var(--c-gold-line, #B8923A);
  padding-left: .5em; flex: none; line-height: 1;
}
html body .hero-mission.hm {
  margin-top: 0; flex: 1; min-width: 0;
  font-size: inherit; line-height: 1.3; letter-spacing: 0;
}
.hm-s, .hm-m { display: block; font-family: var(--f-mincho); font-weight: 400; }
.hm-s {
  font-size: clamp(1rem, .75rem + .7vw, 1.4rem);
  letter-spacing: .14em; line-height: 1.45;
}
.hm-kw {
  position: relative; display: inline-block;
  font-family: var(--f-mincho); font-weight: 600;
  font-size: clamp(2.4rem, 4.8vw, 4rem);
  line-height: 1.3; white-space: nowrap;
  margin-top: .08em; padding-bottom: .12em;
}
.hm-line {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--c-gold-line, #B8923A);
}
.hm-m {
  margin-top: .3em;
  font-size: clamp(1.15rem, .8rem + 1vw, 1.8rem);
  letter-spacing: .16em; line-height: 1.5; white-space: nowrap;
}

@media (max-width: 900px) {

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hm-head { order: 2; margin-top: clamp(20px, 5vw, 28px); }
  .hm-s { font-size: min(4.4vw, 1.25rem); letter-spacing: .04em; white-space: nowrap; }
  .hm-kw { font-size: min(9.4vw, 3.4rem); }
  .hm-m { font-size: min(5.4vw, 1.5rem); }
}

.hm-kw { font-size: clamp(2.2rem, 4.2vw, 3.5rem); }
.hm-s  { font-size: clamp(.95rem, .8rem + .45vw, 1.2rem); color: var(--c-sub, #666); }
.hm-m  { font-size: clamp(1.05rem, .85rem + .6vw, 1.45rem); }

html body .hero-statement .hero-lead-1 {
  font-size: clamp(1.1rem, .95rem + .45vw, 1.35rem);
  font-weight: 500; line-height: 1.7; letter-spacing: .04em;
}
html body .hero-statement .hero-lead-2 {
  font-family: var(--f-gothic, 'Yu Gothic Medium', 'Yu Gothic', sans-serif);
  font-size: clamp(.9375rem, .9rem + .15vw, 1rem);
  line-height: 1.95; color: var(--c-sub, #666); margin-top: .9em;
}
html body .hero-offer-list li {
  font-family: var(--f-gothic, 'Yu Gothic Medium', 'Yu Gothic', sans-serif);
  font-size: .875rem; color: var(--c-sub, #666); line-height: 2;
}
@media (min-width: 901px) {
  html body .hero-statement { margin-top: clamp(28px, 3.6vh, 52px); }
}
@media (max-width: 900px) {
  .hm-kw { font-size: min(8.6vw, 2.8rem); }
  .hm-s  { font-size: min(4vw, 1.05rem); }
  .hm-m  { font-size: min(4.8vw, 1.25rem); }
  html body .hero-statement .hero-lead-1 { font-size: 1.15rem; }
  html body .hero-statement .hero-lead-2 { font-size: .9375rem; }
  html body .hero-offer-list li { font-size: .9375rem; line-height: 1.5; }
}

@media (min-width: 901px) {
  html body .hm-head { margin-top: clamp(16px, 2.2vh, 28px); }
  html body .hero-statement { margin-top: clamp(32px, 4.4vh, 52px); }
  html body .hero-consult { margin-top: clamp(10px, 1.4vh, 16px); }
  html body .hero-offer { margin-top: clamp(28px, 4vh, 48px); padding-top: clamp(18px, 2.4vh, 26px); }
  html body .hero-offer-list { margin-top: 12px; }
  html body .hero-offer-list li { line-height: 2; }
  html body .hero-offer-note { margin-top: 12px; }
}

html body .hm-head { align-items: stretch; }
html body .hm-label { padding-top: .2em; }

html body .hm-s  { line-height: 1.6; }
html body .hm-kw { margin-top: .32em; padding-bottom: .16em; }
html body .hm-m  { margin-top: .85em; }
@media (max-width: 900px) {
  html body .hm-kw { margin-top: .28em; }
  html body .hm-m  { margin-top: .75em; }
}
@media (max-width: 900px) {
  html body .hm-head { margin-top: 32px; }
  html body .hero-offer { margin-top: 44px; padding-top: 26px; }
  html body .hero-offer-list li { margin-top: 9px; }
  html body .hero-offer-note { margin-top: 24px; }
  html body .hero-visual { margin-top: 48px; }
  html body .hero-statement { margin-top: 40px; }
  html body .hero-consult { margin-top: 16px; }
}

@media (min-width: 901px) { html body .hero-copy > .hm-head:first-child { margin-top: clamp(36px, 5.4vh, 60px); } }
@media (max-width: 900px) { html body .hm-head { margin-top: 18px; } }

@media (max-width: 900px) {
  html body .hero-offer-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  html body .hero-offer-list + .hero-offer-list { margin-top: 8px; }
  html body .hero-offer-list li {
    margin: 0; padding: 5px 12px; line-height: 1.5;
    font-size: .8125rem; color: var(--c-text, #222);
    border: 1px solid var(--c-rule, #DADBDD); border-radius: 999px; background: #fff;
  }
  html body .hero-offer-list li::before { content: none; }
}

html body:not(.svc-page) main :is(#issue, #about, #services, #promise, #message, #contact) .statement {
  font-size: clamp(1.375rem, .95rem + 1.9vw, 2.5rem);
  font-weight: 500; letter-spacing: .06em; line-height: 1.75;
  word-break: auto-phrase;
}
@media (max-width: 600px) {
  html body:not(.svc-page) main :is(#issue, #about, #services, #promise, #message, #contact) .statement {
    font-size: min(5.6vw, 1.5rem); letter-spacing: .02em;
  }
}
html body:not(.svc-page) main :is(#issue, #about, #services, #promise, #message, #contact) .statement::after {
  content: ""; display: block; width: 64px; height: 2px;
  margin-top: clamp(18px, 2vw, 26px);
  background: var(--c-gold-line, #B8923A) !important;
}
html body:not(.svc-page) main :is(#about, #message, #contact) .statement::after {
  background: var(--c-gold-dark, #C9A646) !important;
}
@media (prefers-reduced-motion: no-preference) {
  html body:not(.svc-page) main .statement.reveal::after {
    transform: scaleX(0); transform-origin: left center;
    transition: transform 1.75s cubic-bezier(.22, .61, .36, 1) .6s;
  }
  html body:not(.svc-page) main .statement.reveal.is-in::after { transform: scaleX(1); }
  html.no-js body main .statement.reveal::after { transform: none; }
}

@keyframes hm-up   { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hm-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hm-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: no-preference) {
  .hero-eyebrow,
  .hm-s, .hm-kw, .hm-m {
    animation: hm-up 1.45s cubic-bezier(.22, .61, .36, 1) both;
  }
  .hero-eyebrow { animation-delay: .1s; }
  .hm-label     { animation: hm-down 1.9s cubic-bezier(.22, .61, .36, 1) .4s both; }
  .hm-s         { animation-delay: .55s; }
  .hm-kw        { animation-delay: .95s; }
  .hm-m         { animation-delay: 1.5s; }
  .hm-line      { transform-origin: left center;
                  animation: hm-draw 1.75s cubic-bezier(.22, .61, .36, 1) 2.15s both; }

  .hero-statement, .hero-consult, .hero-offer, .hero-visual {
    animation: hm-fade 1.2s cubic-bezier(.22, .61, .36, 1) 1.7s both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hm-label, .hm-s, .hm-kw, .hm-m, .hm-line,
  .hero-statement, .hero-consult, .hero-offer, .hero-visual { animation: none !important; }
}

@media (max-width: 900px) {
  html body .hero-visual img { object-position: 100% 50%; }
}

html body .hero-visual { position: relative; isolation: isolate; margin-right: 22px; }
html body .hero-visual img {
  border: 0; padding: 0; background: none;
  position: relative; z-index: 1;
  box-shadow: 0 18px 40px -28px rgba(60, 45, 15, .35);
}
html body .hero-visual::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 22px; left: 22px; right: -22px; bottom: -22px;

  background: linear-gradient(135deg, #F1E7D0 0%, #E8DAB8 100%);
}
html body .hero-visual::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  top: -12px; left: -12px; width: 72px; height: 72px;
  border-top: 1px solid var(--c-gold-line);
  border-left: 1px solid var(--c-gold-line);
}
@media (max-width: 900px) {
  html body .hero-visual { margin-right: 12px; }
  html body .hero-visual::before { top: 12px; left: 12px; right: -12px; bottom: -12px; }
  html body .hero-visual::after { top: -8px; left: -8px; width: 44px; height: 44px; }
}

html body .issue-photo { position: relative; isolation: isolate; margin-right: 22px; }
html body .issue-photo img {
  border: 0; padding: 0; background: none;
  position: relative; z-index: 1;
  object-position: 50% 50%;
  box-shadow: 0 18px 40px -28px rgba(60, 45, 15, .35);
}
html body .issue-photo::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 22px; left: 22px; right: -22px; bottom: -22px;
  background: linear-gradient(135deg, #F1E7D0 0%, #E8DAB8 100%);
}
html body .issue-photo::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  top: -12px; left: -12px; width: 72px; height: 72px;
  border-top: 1px solid var(--c-gold-line);
  border-left: 1px solid var(--c-gold-line);
}
@media (max-width: 900px) {
  html body .issue-photo { margin-right: 12px; }
  html body .issue-photo img { object-position: 50% 50%; }
  html body .issue-photo::before { top: 12px; left: 12px; right: -12px; bottom: -12px; }
  html body .issue-photo::after { top: -8px; left: -8px; width: 44px; height: 44px; }
}

html body .issue-photo img[src*="service-hp"] { outline: 1px solid #D6CBB6; outline-offset: -1px; }

html body .process-band img[src*="process"] { object-position: 50% 57%; }

html body .sign-photo { position: relative; isolation: isolate; }
html body .sign-photo img { position: relative; z-index: 1; }
html body .sign-photo::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  top: 12px; left: 12px; right: -12px; bottom: -12px;
  background: linear-gradient(135deg, var(--c-gold-line) 0%, var(--c-gold-text) 100%);
}
html body .sign-photo::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  top: -8px; left: -8px; width: 44px; height: 44px;
  border-top: 1px solid var(--c-gold-dark, #C9A646);
  border-left: 1px solid var(--c-gold-dark, #C9A646);
}
@media (min-width: 901px) {
  html body .section-message .sign-photo { width: calc(100% - 22px); }
  html body .sign-photo::before { top: 22px; left: 22px; right: -22px; bottom: -22px; }
  html body .sign-photo::after { top: -12px; left: -12px; width: 72px; height: 72px; }
  html body .section-message .message-signrow { gap: 36px; }
}

/* サービス別ページのいちばん下「ほかのサービス」（黒い地）：線を減らす。区切りはごく薄く、リンクの下線は外し、見出しと矢印は金に */
html body.svc-page #consult:last-of-type .svc-rel { border-top-color: rgba(242, 241, 236, .14); }
html body.svc-page #consult:last-of-type .svc-rel li { border-bottom-color: rgba(242, 241, 236, .10); }
html body.svc-page #consult:last-of-type .svc-rel-title { color: var(--c-gold-dark, #C9A646); }
html body.svc-page #consult:last-of-type .svc-rel a.link { border-bottom: 0; text-decoration: none; background-image: none; }
html body.svc-page #consult:last-of-type .svc-rel a.link:hover,
html body.svc-page #consult:last-of-type .svc-rel a.link:focus-visible { text-decoration: underline; text-decoration-color: var(--c-gold-dark, #C9A646); text-underline-offset: 6px; }
html body.svc-page #consult:last-of-type .svc-rel li::after { color: var(--c-gold-dark, #C9A646); }
