/* ③ top pages (Kitai Shoji): parts shared by the four patterns. Each pattern adds t-<pattern>.css. */
:root {
  --orange: #e4670f; --orange-d: #c95608;
  --kp-font: var(--jp); --kp-en: var(--en);
  --kp-cta: var(--orange); --kp-cta-deep: var(--orange-d);
  --kp-ink: var(--ink); --kp-ink2: var(--sub);
}
main { display: block; overflow-x: clip; }
.ph { display: inline-block; }
img { height: auto; }
/* Japanese lines: break between phrases, and no 1–2 character last line */
main p, main h2, main h3,
.ta-sv__d, .tb-sv__d, .ra-jb__d, .rb-jb__d, .ta-sv__t, .tb-sv__t, .ra-jb__t, .rb-jb__t { text-wrap: pretty; }
main h2, main h3, .ra-fq__qt, .rb-fq__qt, .nw__t, .wn__t { word-break: auto-phrase; }

/* logo: the round mark and the name as text (white on dark areas) */
.kp-logo .lg { display: grid; margin-left: 10px; font: 900 21px/1.12 var(--jp); letter-spacing: .08em; white-space: nowrap; }
.kp-logo .lg small { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; }
.k-saiyo .kp-logo .lg small { font-family: var(--en); font-weight: 700; letter-spacing: .24em; }
.kp-ft__logo .kp-logo img { height: 44px; }
@media (max-width: 1079px) { .kp-logo .lg { margin-left: 8px; font-size: 18px; } .kp-logo .lg small { font-size: 9.5px; } }
@media (max-width: 374px) { .kp-logo .lg { margin-left: 6px; font-size: 15px; } .kp-logo .lg small { font-size: 8.5px; letter-spacing: .12em; } }

/* sections */
.sec { padding: clamp(88px, 9vw, 136px) var(--gut); }
.sh { display: grid; justify-items: center; text-align: center; }
.sh__ja { word-break: auto-phrase; }
.sh__lead { margin-top: 18px; font-size: 15.5px; line-height: 1.9; letter-spacing: .08em; }
.more { display: flex; justify-content: center; margin-top: clamp(44px, 4.4vw, 60px); }

/* news rows (thumbnail, date, kind, title) */
.nw { display: grid; }
.nw a { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center; gap: 26px; padding: 18px 6px; border-bottom: 1px solid var(--line); transition: background-color .3s ease; }
.nw li:first-child a { border-top: 1px solid var(--line); }
.nw__ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.nw__meta { display: flex; align-items: center; gap: 14px; }
.nw__d { font: 600 14px/1 var(--en); letter-spacing: .1em; color: var(--sub); }
.nw__c { padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .06em; }
.nw__t { display: block; margin-top: 8px; font-size: 16px; font-weight: 700; line-height: 1.7; }
.nw .kp-arw { width: 18px; height: 18px; transition: transform .3s ease; }
.nw a:hover .kp-arw { transform: translateX(4px); }

/* service area chips and work names */
.area { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.area li { padding: 6px 15px; border-radius: 999px; font-size: 14px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; }
.wn li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.wn__t { font-size: 15px; font-weight: 700; line-height: 1.6; letter-spacing: .04em; }
.wn__a { flex: none; padding: 2px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; line-height: 1.6; }

/* FAQ: open and close */
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* closing band: the phone number large */
.kp-band__tel-n { font-size: clamp(32px, 3.4vw, 44px); }
.kp-band__lead { letter-spacing: .06em; }

/* contact / entry page */
.kp-ct__notes li { text-align: justify; word-break: normal; }

@media (max-width: 900px) {
  .nw a { grid-template-columns: 112px minmax(0, 1fr) auto; gap: 18px; }
}
@media (max-width: 640px) {
  .sec { padding: 72px 20px 84px; }
  .sh__lead { font-size: 14.5px; }
  .nw a { grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 16px 0; }
  .nw .kp-arw { display: none; }
  .nw__meta { gap: 10px; }
  .nw__d { font-size: 13px; }
  .nw__t { margin-top: 6px; font-size: 15px; line-height: 1.6; }
  .area li { padding: 5px 12px; font-size: 13px; }
  .wn__t { font-size: 14px; }
  /* form button: the label stays on one line */
  .kp-form .kp-btn__face { padding-left: 18px; padding-right: 18px; }
  html[data-cta="2"] .kp-form .kp-btn__face { padding: 10px 60px 10px 20px; }
  html[data-cta="6"] .kp-form .kp-btn__face { padding: 16px 56px 16px 20px; }
  html[data-cta="6"] .kp-form .kp-btn__ic { right: 20px; }
}
@media (max-width: 374px) {
  .nw a { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; }
  .nw__t { font-size: 14px; }
  .wn__t { font-size: 13px; letter-spacing: .02em; }
  html[data-cta="6"] .kp-form .kp-btn__face { padding: 16px 48px 16px 16px; }
  html[data-cta="6"] .kp-form .kp-btn__ic { right: 16px; }
  html[data-cta="6"] .kp-form .kp-btn__t { font-size: 17px; }
}
