/* =========================================================
   LOWER PAGES — additional components
   ========================================================= */
/* generic article / rich text */
.c-article { max-width: 46em; }
.c-article h2 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; margin: 2.6em 0 .9em; padding-top: .9em; border-top: 1px solid var(--line); }
.c-article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.c-article p + p { margin-top: 1em; }
.c-article ol { list-style: decimal; padding-left: 1.6em; margin: .8em 0; }
.c-article ul { padding-left: 0; margin: .8em 0; }
.c-article ul li { position: relative; padding-left: 20px; }
.c-article ul li::before { content: ""; position: absolute; left: 2px; top: .95em; width: 8px; height: 1px; background: currentColor; }
.c-article li + li { margin-top: .3em; }
.c-article .c-sign { margin-top: 3em; text-align: right; font-size: 13px; color: var(--muted); }

/* stacked kanji cards (company philosophy) */
.p-philo__wrap { display: grid; grid-template-columns: 1fr 1.35fr; gap: var(--gutter); align-items: start; }
.p-philo__side { position: sticky; top: calc(var(--header-h) + 48px); }
.p-philo__side .c-h2 { margin: 24px 0 28px; }
.p-philo__logo { width: min(260px, 70%); margin: 32px 0 20px; }
.p-philo__cards { display: grid; gap: 32px; }
.p-philo__card {
  position: sticky; top: calc(var(--header-h) + 48px + var(--i, 0) * 22px);
  background: var(--ink); color: var(--on-dark); border-radius: var(--radius);
  padding: clamp(28px, 3.6vw, 52px); min-height: 340px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px 32px; align-content: start;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .10);
}
.p-philo__card:nth-child(2) { background: #434645; }
.p-philo__card:nth-child(3) { background: #4A4D4C; }
.p-philo__card:nth-child(4) { background: #525554; }
.p-philo__card .c-num { grid-column: 1 / -1; }
.p-philo__kanji { font-size: clamp(64px, 8vw, 112px); font-weight: 500; line-height: 1; letter-spacing: .04em; }
.p-philo__en { font-family: var(--f-en); font-size: 13px; letter-spacing: .16em; color: var(--on-dark-muted); text-transform: uppercase; align-self: end; writing-mode: vertical-rl; }
.p-philo__text { grid-column: 1 / -1; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; margin-top: auto; }
@media (max-width: 900px) { .p-philo__wrap { grid-template-columns: 1fr; } .p-philo__side { position: static; } .p-philo__card { min-height: 280px; } }

/* statement */
.p-state { text-align: center; }
.p-state__text { font-size: clamp(20px, 2.6vw, 34px); font-weight: 700; line-height: 1.9; letter-spacing: .08em; }

/* overview table */
.c-dl { border-top: 1px solid var(--line); }
.c-dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 12px 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.c-dl dt { font-weight: 700; }
.c-dl dd ul li { padding-left: 1.2em; text-indent: -1.2em; }
@media (max-width: 767px) { .c-dl > div { grid-template-columns: 1fr; gap: 4px; padding: 16px 0; } }

/* business index */
.p-bizlist .p-biz__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1080px) { .p-bizlist .p-biz__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .p-bizlist .p-biz__grid { grid-template-columns: 1fr; } }

/* service card with description */
.p-svc__grid--4 { grid-template-columns: repeat(4, 1fr); }
.p-svc__desc { font-size: 14px; line-height: 1.9; color: var(--muted); margin-bottom: 18px; }
@media (max-width: 1080px) { .p-svc__grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .p-svc__grid--4 { grid-template-columns: 1fr; } }

/* split rows */
.c-rows { border-top: 1px solid var(--line); }
.c-row { display: grid; grid-template-columns: 1fr 1.2fr 2fr; gap: 16px var(--gutter); padding: clamp(28px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--line); }
.c-row__en { font-family: var(--f-en); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: .4em; }
.c-row__text p + p { margin-top: .8em; }
.s--dark .c-rows, .s--dark .c-row { border-color: var(--line-dark); }
.s--dark .c-row__en { color: var(--on-dark-muted); }
@media (max-width: 900px) { .c-row { grid-template-columns: 1fr; gap: 8px; } }

/* video works grid */
.p-vworks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(16px, 2vw, 28px); }
.p-vworks__desc { margin-top: 10px; font-size: 13px; line-height: 1.9; color: var(--on-dark-muted); }
@media (max-width: 1080px) { .p-vworks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .p-vworks { grid-template-columns: 1fr; } }

/* web works gallery */
.p-wworks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px clamp(16px, 2vw, 28px); }
.p-wworks__img { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--ink-card); }
.p-wworks__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.p-wworks__client { margin-top: 14px; font-size: 13px; color: var(--on-dark-muted); }
.p-wworks__title { font-weight: 700; }
@media (max-width: 1080px) { .p-wworks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .p-wworks { grid-template-columns: 1fr; } }

/* EC options */
.p-opt__q { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 16px var(--gutter); padding: 28px 0; border-top: 1px solid var(--line); align-items: start; }
.p-opt__q:last-of-type { border-bottom: 1px solid var(--line); }
.p-opt__no { font-family: var(--f-en); font-size: 28px; font-weight: 500; line-height: 1; }
.p-opt__yes { font-size: 12px; font-family: var(--f-en); letter-spacing: .14em; color: var(--muted); margin-top: 14px; }
.p-opt__alt { background: var(--paper); border-radius: 10px; padding: 18px 22px; font-size: 14px; }
.p-opt__alt strong { display: block; margin-bottom: 4px; }
.p-opt__alt em { font-style: normal; font-family: var(--f-en); font-size: 11px; letter-spacing: .14em; color: var(--muted); display: block; margin-bottom: 6px; }
.p-opt__extra { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.p-opt__extra > div { background: var(--paper); border-radius: 10px; padding: 24px 28px; }
.p-opt__extra em { font-style: normal; font-family: var(--f-en); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.p-opt__extra strong { display: block; margin: 6px 0 8px; }
.p-opt__result { margin-top: 32px; text-align: center; font-weight: 700; font-size: 18px; }
.p-opt__result small { display: block; font-family: var(--f-en); font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-bottom: 6px; }
@media (max-width: 900px) { .p-opt__q { grid-template-columns: 1fr; gap: 12px; } .p-opt__extra { grid-template-columns: 1fr; } }

/* before / after */
.p-ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p-ba__col { border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.p-ba__col--before { background: var(--mist-2); }
.p-ba__col--after { background: var(--ink); color: var(--on-dark); }
.p-ba__col h3 { font-family: var(--f-en); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.p-ba__col li { padding: 10px 0 10px 22px; border-top: 1px solid var(--line); position: relative; font-size: 14px; }
.p-ba__col--after li { border-color: var(--line-dark); }
.p-ba__col li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }
.p-ba__note { grid-column: 1 / -1; margin-top: 8px; color: var(--muted); font-size: 14px; }
@media (max-width: 767px) { .p-ba { grid-template-columns: 1fr; } }

/* media cards */
.p-media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.p-media__card { display: grid; grid-template-columns: 220px 1fr; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.p-media__img { aspect-ratio: 1 / 1; }
.p-media__img img { width: 100%; height: 100%; object-fit: cover; }
.p-media__body { padding: 24px 28px; }
.p-media__body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.p-media__body p { font-size: 14px; line-height: 1.9; color: var(--muted); }
@media (max-width: 1080px) { .p-media { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .p-media__card { grid-template-columns: 1fr; } .p-media__img { aspect-ratio: 16 / 9; } }

/* pillars */
.p-pillar { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gutter); align-items: center; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.p-pillar:last-child { border-bottom: 1px solid var(--line); }
.p-pillar:nth-child(even) .p-pillar__img { order: 2; }
.p-pillar__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.p-pillar__img img { width: 100%; height: 100%; object-fit: cover; }
.p-pillar__en { font-family: var(--f-en); font-size: clamp(28px, 3.4vw, 44px); font-weight: 500; line-height: 1; letter-spacing: -.01em; text-transform: uppercase; }
.p-pillar__sub { margin-top: 8px; font-size: 13px; color: var(--muted); }
.p-pillar__title { margin-top: 24px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; }
.p-pillar__text { margin-top: 14px; }
.p-pillar .c-arrow { margin-top: 28px; }
@media (max-width: 900px) { .p-pillar { grid-template-columns: 1fr; } .p-pillar:nth-child(even) .p-pillar__img { order: 0; } }

/* member cards */
.p-member { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.p-member__img { aspect-ratio: 680 / 940; border-radius: 10px; overflow: hidden; background: var(--mist-2); }
.p-member__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.p-member a:hover img { transform: scale(1.04); }
.p-member__name { margin-top: 14px; font-weight: 700; font-size: 14px; line-height: 1.6; }
.p-member__role { font-family: var(--f-en); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.p-member__text { margin-top: 6px; font-size: 12px; line-height: 1.8; color: var(--muted); }
@media (max-width: 1080px) { .p-member { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .p-member { grid-template-columns: repeat(2, 1fr); } }

/* reports by genre */
.p-genre + .p-genre { margin-top: clamp(56px, 7vw, 96px); }
.p-genre__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.p-genre__no { font-family: var(--f-en); font-size: 32px; font-weight: 400; line-height: 1; }
.p-genre__en { font-family: var(--f-en); font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.p-genre__ja { font-size: 20px; font-weight: 700; margin-left: auto; }
.p-genre .p-rep__grid { grid-template-columns: repeat(3, 1fr); }
.p-genre .p-rep__card a { border: 1px solid var(--line); }
.p-rep__desc { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.p-rep__cities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.p-rep__cities a { font-size: 12px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 6px; transition: background .3s, color .3s; }
.p-rep__cities a:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.p-rep__wide { grid-column: 1 / -1; }
.p-rep__wide > div { display: grid; grid-template-columns: 1fr 2fr; gap: 24px var(--gutter); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; }
.p-rep__note { margin-top: 40px; font-size: 12px; color: var(--muted); }
@media (max-width: 1080px) { .p-genre .p-rep__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .p-genre .p-rep__grid { grid-template-columns: 1fr; } .p-rep__wide > div { grid-template-columns: 1fr; } .p-genre__ja { margin-left: 0; width: 100%; } .p-genre__head { flex-wrap: wrap; } }

/* problems */
.p-prob { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-prob__card { background: var(--paper); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.p-prob__card h3 { font-size: 17px; font-weight: 700; margin: 10px 0 12px; }
.p-prob__card p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.p-prob--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .p-prob { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .p-prob { grid-template-columns: 1fr; } }
.p-lead-center { text-align: center; max-width: 40em; margin: clamp(40px, 5vw, 64px) auto 0; font-size: clamp(15px, 1.4vw, 18px); font-weight: 700; line-height: 2; }
.p-lead-center strong { border-bottom: 2px solid currentColor; }

/* item cards */
.p-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-items--4 { grid-template-columns: repeat(4, 1fr); }
.p-items--2 { grid-template-columns: repeat(2, 1fr); }
.p-item { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.p-item__img { aspect-ratio: 4 / 3; background: var(--mist-2); }
.p-item__img img { width: 100%; height: 100%; object-fit: cover; }
.p-item__body { padding: 22px 24px 26px; }
.p-item__tag { font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.p-item__body h3 { font-size: 17px; font-weight: 700; margin: 4px 0 10px; }
.p-item__body p { font-size: 13px; line-height: 1.9; color: var(--muted); }
.p-item__body strong { color: var(--text); }
.p-items:has(.p-item--wide) { container-type: inline-size; }
.p-item--wide { grid-column: span 2; }
.p-item--wide .p-item__img { aspect-ratio: 8 / 3; height: calc((100cqw - 32px) / 3 * .75); }
.p-item--wide .p-item__body p { max-width: 44em; }
@media (max-width: 1080px) { .p-items, .p-items--4 { grid-template-columns: repeat(2, 1fr); } .p-item--wide .p-item__img { height: calc((100cqw - 16px) / 2 * .75); } }
@media (max-width: 560px) { .p-items, .p-items--4, .p-items--2 { grid-template-columns: 1fr; } .p-item--wide { grid-column: auto; } .p-item--wide .p-item__img { height: auto; } }

/* callout */
.c-callout { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); }
.c-callout h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.c-callout .c-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.c-callout .c-tags span { padding: 6px 14px; border-radius: 6px; background: var(--ink); color: var(--on-dark); font-size: 13px; font-weight: 700; }

/* compare table */
.c-compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.c-compare th, .c-compare td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.7; }
.c-compare thead th { font-family: var(--f-en); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--ink); font-weight: 500; }
.c-compare thead th.is-hl { color: var(--ink); }
.c-compare td.is-hl { font-weight: 700; background: var(--paper); }
.c-compare td.is-dim { color: var(--muted); }
@media (max-width: 640px) { .c-compare { font-size: 12px; } .c-compare th, .c-compare td { padding: 12px 8px; } }

/* solutions */
.p-sol { display: grid; grid-template-columns: 1fr 1fr; gap: 40px var(--gutter); align-items: start; padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.p-sol:last-child { border-bottom: 1px solid var(--line); }
.p-sol__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.p-sol__img img { width: 100%; height: 100%; object-fit: cover; }
.p-sol__no { font-family: var(--f-en); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.p-sol__title { margin: 10px 0 14px; font-size: clamp(20px, 2vw, 26px); font-weight: 700; line-height: 1.6; }
.p-sol__lists { display: grid; gap: 20px; margin-top: 24px; }
.p-sol__lists h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); }
.p-sol__lists li { font-size: 14px; padding: 6px 0 6px 20px; position: relative; border-bottom: 1px solid var(--line); }
.p-sol__lists li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }
@media (max-width: 900px) { .p-sol { grid-template-columns: 1fr; } }

/* formula */
.p-formula { display: grid; grid-template-columns: 1fr auto 1fr auto 1.3fr; gap: 16px; align-items: center; text-align: center; }
.p-formula > div { background: var(--paper); border-radius: var(--radius); padding: 28px 20px; border: 1px solid var(--line); }
.p-formula > div strong { display: block; font-size: 18px; margin-bottom: 4px; }
.p-formula > div small { color: var(--muted); font-size: 12px; }
.p-formula > span { font-family: var(--f-en); font-size: 28px; }
.p-formula > div.is-dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.p-formula > div.is-dark small { color: var(--on-dark-muted); }
@media (max-width: 900px) { .p-formula { grid-template-columns: 1fr; } }

/* numbered reasons */
.p-reason { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-reason__card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); }
.p-reason__card:nth-child(2) { background: #454847; }
.p-reason__card:nth-child(3) { background: #4E5150; }
.p-reason__no { font-family: var(--f-en); font-size: 48px; font-weight: 400; line-height: 1; color: var(--on-dark-muted); }
.p-reason__card h3 { font-size: 18px; font-weight: 700; margin: 20px 0 12px; line-height: 1.6; }
.p-reason__card p { font-size: 14px; line-height: 1.9; color: var(--on-dark-muted); }
@media (max-width: 900px) { .p-reason { grid-template-columns: 1fr; } }

/* flow steps */
.p-flow { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 16px; }
.p-flow__step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.p-flow__no { font-family: var(--f-en); font-size: 13px; letter-spacing: .14em; color: var(--muted); }
.p-flow__step h3 { font-size: 17px; font-weight: 700; margin: 12px 0 10px; }
.p-flow__step p { font-size: 13px; line-height: 1.9; color: var(--muted); }
@media (max-width: 1080px) { .p-flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .p-flow { grid-template-columns: 1fr; } }

/* pricing */
.p-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.p-plan__card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 48px); }
.p-plan__card.is-rec { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.p-plan__badge { position: absolute; top: 20px; right: 20px; font-family: var(--f-en); font-size: 11px; letter-spacing: .14em; padding: 4px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.p-plan__no { font-family: var(--f-en); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.is-rec .p-plan__no { color: var(--on-dark-muted); }
.p-plan__card h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 700; margin: 8px 0 10px; }
.p-plan__desc { font-size: 14px; line-height: 1.9; color: var(--muted); }
.is-rec .p-plan__desc { color: var(--on-dark-muted); }
.p-plan__price { margin: 28px 0 6px; font-family: var(--f-en); font-size: clamp(36px, 3.6vw, 48px); font-weight: 500; line-height: 1; }
.p-plan__price small { font-family: var(--f-ja); font-size: 12px; font-weight: 400; margin-left: 8px; letter-spacing: 0; }
.p-plan__note { font-size: 12px; color: var(--muted); }
.is-rec .p-plan__note { color: var(--on-dark-muted); }
.p-plan__list { margin: 28px 0; }
.p-plan__list li { font-size: 14px; padding: 10px 0 10px 22px; border-top: 1px solid var(--line); position: relative; }
.is-rec .p-plan__list li { border-color: var(--line-dark); }
.p-plan__list li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; }
.p-plan__list li small { display: block; color: var(--muted); font-size: 11px; }
.p-plan__foot { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.is-rec .c-pill--light { border-color: var(--paper); }
@media (max-width: 900px) { .p-plan { grid-template-columns: 1fr; } }

/* faq */
.p-faq { border-top: 1px solid var(--line); }
.p-faq details { border-bottom: 1px solid var(--line); }
.p-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr 40px; gap: 16px; align-items: center; padding: 22px 0; font-weight: 700; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary::before { content: "Q"; font-family: var(--f-en); font-size: 20px; color: var(--muted); }
.p-faq summary::after { content: ""; width: 12px; height: 12px; justify-self: end; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat; transition: transform .3s; }
.p-faq details[open] summary::after { transform: rotate(45deg); }
.p-faq__a { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 0 0 24px; font-size: 14px; line-height: 2; color: var(--muted); }
.p-faq__a::before { content: "A"; font-family: var(--f-en); font-size: 20px; color: var(--ink); line-height: 1.4; }

/* form */
.c-form { display: grid; gap: 22px; max-width: 760px; }
.c-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.c-form label small { font-weight: 400; color: var(--muted); margin-left: 8px; font-size: 12px; }
.c-form input[type="text"], .c-form input[type="email"], .c-form input[type="tel"], .c-form textarea {
  width: 100%; font: inherit; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--text); line-height: 1.6;
}
.c-form textarea { min-height: 200px; resize: vertical; }
.c-form input:focus, .c-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.c-form__submit { justify-self: start; margin-top: 8px; height: 60px; padding: 0 40px; border-radius: 999px; background: var(--ink); color: var(--on-dark); font-weight: 700; letter-spacing: .1em; transition: background .3s; }
.c-form__submit:hover { background: var(--ink-card-2); }
.c-form__note { font-size: 12px; color: var(--muted); }
.p-contact__intro { max-width: 46em; margin-bottom: clamp(40px, 5vw, 64px); }

/* post */
.p-post__meta { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--on-dark-muted); }
.p-post__meta .p-news__cat { border-color: var(--line-dark); }
.p-post__title { margin-top: 20px; font-size: clamp(24px, 3vw, 40px); font-weight: 700; line-height: 1.6; }
.p-post__eyecatch { border-radius: var(--radius); overflow: hidden; aspect-ratio: 715 / 410; margin-bottom: clamp(32px, 4vw, 56px); max-width: 760px; }
.p-post__eyecatch img { width: 100%; height: 100%; object-fit: cover; }
.p-post__body { max-width: 46em; }
.p-post__body p + p { margin-top: 1em; }
.p-post__nav { display: flex; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); font-size: 14px; max-width: 760px; }
.p-post__nav a { display: flex; flex-direction: column; gap: 4px; max-width: 46%; }
.p-post__nav a small { font-family: var(--f-en); font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.p-post__nav a + a { text-align: right; margin-left: auto; }

/* sitemap */
.p-sitemap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px var(--gutter); }
.p-sitemap h2 { font-family: var(--f-en); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; margin-bottom: 16px; }
.p-sitemap li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.p-sitemap li li a { padding-left: 20px; color: var(--muted); }
@media (max-width: 900px) { .p-sitemap { grid-template-columns: 1fr; } }

/* hero variants */
.p-hero--short .p-hero__title { font-size: clamp(48px, 9vw, 140px); }
.p-hero__lead { margin-top: 32px; max-width: 40em; color: var(--on-dark-muted); }

/* 3D ring carousel (company philosophy) */
.p-ring { position: relative; --card-w: min(400px, 100%); --card-h: 250px; padding-top: 24px; }
.p-ring__stage { position: relative; height: var(--card-h); perspective: 1400px; perspective-origin: 78% 40%; }
.p-ring__ring { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateX(12%) translateZ(calc(-1 * var(--rz, 300px))) rotateY(-22deg) rotateY(var(--rot, 0deg)); }
.p-ring__card {
  position: absolute; left: 50%; top: 0; width: var(--card-w); height: var(--card-h); margin-left: calc(var(--card-w) / -2);
  transform: rotateY(calc(var(--i) * var(--step, 90deg))) translateZ(var(--rz, 300px));
  background: var(--ink); color: var(--on-dark); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px) clamp(24px, 3vw, 36px); display: grid; grid-template-columns: 1fr auto; gap: 12px 32px; align-content: start;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .12), inset 0 0 0 999px rgba(49, 52, 51, calc(var(--dim, 0) * .5)); will-change: transform;
}
.p-ring__card > * { opacity: var(--txt, 1); transition: opacity .15s linear; }
.p-ring__card .p-philo__kanji { font-size: clamp(48px, 5.6vw, 72px); }
.p-ring__card .p-philo__text { font-size: clamp(14px, 1.2vw, 16px); }
.p-ring__card:nth-child(4n+2) { background: #434645; }
.p-ring__card:nth-child(4n+3) { background: #4A4D4C; }
.p-ring__card:nth-child(4n+4) { background: #525554; }
.p-ring__card .c-num { grid-column: 1 / -1; }
.p-ring__card .p-philo__text { grid-column: 1 / -1; margin-top: auto; }
.p-ring__nav { position: relative; z-index: 2; display: flex; justify-content: flex-end; gap: 10px; margin-top: 40px; }
.p-ring { cursor: grab; user-select: none; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%); mask-image: linear-gradient(to right, transparent 0, #000 14%); }
.p-ring.is-dragging { cursor: grabbing; }
@media (max-width: 900px) { .p-ring { --card-h: 230px; --card-w: min(320px, 86%); } }

/* hero with background image (lower pages) */
.p-hero--bg { position: relative; }
.p-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.p-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.p-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(60,63,62,.66) 0%, rgba(60,63,62,.5) 45%, rgba(49,52,51,.86) 100%); }
.p-hero--bg.s--grid::before { z-index: -1; }
.p-hero__intro { margin-top: clamp(56px, 8vw, 120px); }
.p-hero__intro .p-intro__title { color: var(--on-dark); }
.p-hero__intro .p-intro__sub { color: var(--on-dark-muted); }
.p-hero--bg .p-hero__lead { color: var(--on-dark); }

/* custom report callout */
@media (max-width: 767px) { .p-rep__request { grid-template-columns: 1fr !important; } }

/* Contact Form 7 (inside theme form) */
.c-form--cf7 .wpcf7-form p, .c-form--cf7 .wpcf7-form > div { margin: 0 0 22px; }
.c-form--cf7 .wpcf7-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.c-form--cf7 .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance) { width: 100%; font: inherit; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--text); line-height: 1.6; }
.c-form--cf7 textarea.wpcf7-form-control { min-height: 200px; resize: vertical; }
.c-form--cf7 .wpcf7-form-control:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.c-form--cf7 .wpcf7-submit { height: 60px; padding: 0 40px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-dark); font: inherit; font-weight: 700; letter-spacing: .1em; cursor: pointer; transition: background .3s; }
.c-form--cf7 .wpcf7-submit:hover { background: var(--ink-card-2); }
.c-form--cf7 .wpcf7-not-valid-tip { font-size: 12px; color: #b0403a; margin-top: 6px; }
.c-form--cf7 .wpcf7-response-output { margin: 24px 0 0; padding: 14px 18px; border: 1px solid var(--line) !important; border-radius: 8px; font-size: 14px; }
.c-form--cf7 .wpcf7-spinner { margin-left: 12px; }
/* WordPress post content */
.p-post__body img { border-radius: 10px; margin: 1.2em 0; }
.p-post__body a { text-decoration: underline; }
.p-post__body h2 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; margin: 2em 0 .8em; }
.p-post__body ul { padding-left: 1.4em; list-style: disc; }
