/* ③ top pages of Tainetsu Chemical (shared by A and C). Loaded after the kit and the MV styles. */
:root {
  --kp-main: #2b3036;
  --kp-deep: #1e2227;
  --kp-soft: #f3f4f5;
  --kp-ink: #1e2227;
  --kp-cta: #e94818;
  --kp-cta-deep: #c9370c;
  --kp-cta-ink: #fff;
  --kp-font: "Noto Sans JP", system-ui, sans-serif;
  --kp-en: "Barlow Condensed", "Noto Sans JP", sans-serif;
  --hd-h: var(--kp-hd-h);
  --soft: #f3f4f5;
}
body { font-size: 16px; }
.kp-hd__logo .kp-logo img { height: 30px; }
.kp-ft__logo .kp-logo img { height: 34px; }
@media (max-width: 767px) {
  .kp-hd__logo .kp-logo img { height: 22px; }
}
@media (max-width: 359px) {
  .kp-hd__logo .kp-logo img { height: 19px; }
}

/* closing band: small English line over the Japanese heading */
.kp-band__en { padding-left: .24em; font: 600 15px/1 var(--kp-en) !important; letter-spacing: .24em !important; }
.kp-band__ttl { margin-top: 14px; }

/* contact page: small English line, corners 8px */
.kp-ct__en { padding-left: .24em !important; color: var(--ver) !important; font: 600 15px/1 var(--kp-en) !important; letter-spacing: .24em !important; }
.kp-ct__ttl { margin-top: 2px !important; }
.kp-ct__tel, .kp-ct__notes, .kp-ct__main, html[data-ct="c"] .kp-kind span { border-radius: 8px !important; }
@media (max-width: 640px) {
  .kp-kinds .kp-kind:first-child { grid-column: 1 / -1; }
}

/* sections: white and a light steel grey in turn */
.sec { position: relative; padding: clamp(80px, 9vw, 124px) var(--kp-gutter); background: #fff; }
.sec--soft { background: var(--soft); }
.sec > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.ph { display: inline-block; }
.nw { white-space: nowrap; }

/* section title: small English + Japanese heading, centred */
.sh { margin-bottom: clamp(40px, 4.4vw, 60px); text-align: center; }
.sh__en { padding-left: .24em; color: var(--ver); font: 600 15px/1 var(--kp-en); letter-spacing: .24em; }
.sh__ja { margin-top: 14px; padding-left: .06em; font-size: clamp(27px, 2.6vw, 36px); font-weight: 700; line-height: 1.45; letter-spacing: .06em; }
.sh__lead { margin-top: 18px; color: var(--ink-2); font-size: 16px; line-height: 1.9; }
.more { margin-top: clamp(40px, 4.4vw, 56px); text-align: center; }

/* appear while scrolling: soft, no bounce */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 1.3s ease var(--d, 0s), transform 1.3s ease var(--d, 0s); }
.rv.is-v, html.still .rv { opacity: 1; transform: none; transition: none; }

/* news rows */
.nl { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.nl li { border-bottom: 1px solid var(--line); }
.nl a { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; padding: 22px 10px; transition: background-color .3s ease; }
.nl a:hover { background: rgba(43, 48, 54, .04); }
.nl__d { color: var(--steel); font-size: 17px; font-weight: 500; }
.nl__c { display: inline-flex; justify-content: center; min-width: 86px; padding: 3px 12px; border-radius: 999px; background: #fbeee8; color: var(--ver-d); font-size: 13px; font-weight: 700; line-height: 1.6; white-space: nowrap; }
.nl__t { font-weight: 500; line-height: 1.7; }
.nl .kp-arw { width: 18px; height: 18px; color: var(--ver); transition: transform .3s ease; }
.nl a:hover .kp-arw { transform: translateX(4px); }

/* cards (column) */
.cards { display: grid; gap: 28px; margin: 0 auto; padding: 0; list-style: none; }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 8px; background: #fff; box-shadow: 0 10px 30px rgba(20, 24, 28, .07); transition: box-shadow .4s ease; }
.card:hover { box-shadow: 0 16px 40px rgba(20, 24, 28, .12); }
.card__ph { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #e9ecef; }
.card__ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.card:hover .card__ph img { transform: scale(1.04); }
.card__tx { display: grid; gap: 10px; padding: 20px 20px 24px; }
.card__c { justify-self: start; padding: 2px 12px; border-radius: 999px; background: #fbeee8; color: var(--ver-d); font-size: 13px; font-weight: 700; }
.card__t { font-size: 17px; font-weight: 700; line-height: 1.6; text-wrap: balance; }
.sec--soft .card { background: #fff; }

@media (max-width: 1100px) {
  .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .sh__en { font-size: 13px; }
  .sh__lead { font-size: 15px; }
  .nl a { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; padding: 18px 4px; }
  .nl__d { font-size: 15px; }
  .nl__c { justify-self: start; min-width: 0; }
  .nl__t { grid-column: 1 / 3; grid-row: 2; font-size: 15px; }
  .nl .kp-arw { grid-column: 3; grid-row: 1 / span 2; }
  .cards { gap: 16px; }
  .card__tx { padding: 14px 14px 18px; gap: 8px; }
  .card__t { font-size: 15px; }
  .card__c { font-size: 12px; padding: 1px 10px; }
}
@media (max-width: 479px) {
  .cards--4 { grid-template-columns: minmax(0, 1fr); }
}

/* phones: keep button labels and footer links on one line */
@media (max-width: 767px) {
  .kp-btn__t { white-space: nowrap; }
  .kp-form .kp-btn__t { white-space: normal; }
  .kp-ft__nav li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 374px) {
  html[data-cta="5"] .kp-btn__face { gap: 14px; }
  html[data-cta="5"] .kp-btn__face::before { content: none; }
  html[data-cta="5"] .kp-btn__t { font-size: 18px; }
}
