/* ============================================================
   DESIGN K — BENTO
   Asymmetric rounded-tile "bento" layout. EVERY rule is scoped
   under the .K wrapper. Brand colors come only from theme vars
   (never hardcoded hex); greys / white / near-black literals and
   rgba(black|white) are ok. Half-transparent brand via color-mix.
   ============================================================ */

.K {
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans-jp);
  padding-top: 0;                /* control bar removed (now bottom-right FAB) */
}
.K a { color: inherit; }

/* shared section head */
.K .K-sec-head { max-width: 1200px; margin: 0 auto 22px; padding: 0 24px; }
.K .K-eyebrow {
  font-family: var(--display); font-size: 13px; font-weight: 500;
  letter-spacing: .26em; color: var(--accent);
}
.K .K-sec-head h2 {
  font-family: "Shippori Mincho", var(--serif-jp); font-weight: 600;
  font-size: 30px; letter-spacing: .04em; margin-top: 6px; color: var(--text);
}

/* base tile ---------------------------------------------------- */
.K .K-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 26px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, .05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.K .K-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(20, 30, 50, .12); }
.K .K-tile.line { border-color: var(--brand-line); }

/* big number / caption primitives */
.K .t-num {
  font-family: var(--display); font-weight: 600; font-size: 54px;
  line-height: 1; letter-spacing: .01em; color: var(--brand);
}
.K .t-num small { font-size: 20px; font-weight: 500; margin-left: 3px; }
.K .t-cap { margin-top: 10px; font-size: 12.5px; letter-spacing: .1em; color: var(--text-soft); }

/* ---------- header ------------------------------------------- */
.K .K-head {
  max-width: 1200px; margin: 0 auto 6px; padding: 15px 22px;
  display: flex; align-items: center; gap: 24px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 22px; box-shadow: 0 10px 30px rgba(20, 30, 50, .06);
}
.K .K-brand { display: flex; align-items: center; gap: 12px; color: var(--brand); }
.K .K-brand-name {
  font-family: var(--serif-jp); font-weight: 600; font-size: 19px;
  letter-spacing: .03em; line-height: 1.1; color: var(--text);
}
.K .K-brand-name small {
  display: block; font-family: var(--display); font-size: 9px;
  letter-spacing: .34em; color: var(--text-soft); margin-top: 3px; font-weight: 500;
}
.K .K-nav { display: flex; gap: 26px; margin-left: auto; }
.K .K-nav a { font-size: 13.5px; color: var(--text-soft); transition: .2s; }
.K .K-nav a:hover { color: var(--brand); }
.K .K-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--brand); color: var(--on-brand);
  padding: 11px 20px; border-radius: 999px; font-size: 13px; transition: .25s;
}
.K .K-pill:hover { background: var(--brand-2); transform: translateY(-1px); }

/* ---------- hero bento --------------------------------------- */
.K .K-hero { padding: 20px 24px 34px; }
.K .K-bento {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(150px, auto); gap: 16px;
}
.K .t-hero  { grid-column: span 2; grid-row: span 2; justify-content: center; padding: 40px; }
.K .t-photo { grid-column: span 2; grid-row: span 1; padding: 0; }
.K .t-stat  { grid-column: span 1; grid-row: span 1; }
.K .t-icon  { grid-column: span 1; grid-row: span 1; }
.K .t-why   { grid-column: span 2; grid-row: span 1; }
.K .t-stat2 { grid-column: span 1; grid-row: span 1; }
.K .t-stat3 { grid-column: span 1; grid-row: span 1; }
.K .t-stat, .K .t-icon, .K .t-why, .K .t-stat2, .K .t-stat3 { justify-content: center; }

/* hero catch */
.K .t-eyebrow {
  font-family: var(--display); font-size: 12px; font-weight: 500;
  letter-spacing: .28em; color: var(--accent);
}
.K .t-hero h1 {
  font-family: "Shippori Mincho", var(--serif-jp); font-weight: 600;
  font-size: 33px; line-height: 1.55; letter-spacing: .02em;
  margin-top: 16px; color: var(--text);
}
.K .t-hero h1 em { font-style: normal; color: var(--brand); }
.K .t-hero p { margin-top: 18px; font-size: 14px; line-height: 1.95; color: var(--text-soft); max-width: 46ch; }
.K .t-hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

.K .K-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: var(--on-brand);
  padding: 13px 22px; border-radius: 999px; font-size: 13.5px; transition: .25s;
}
.K .K-btn:hover { background: var(--brand-2); }
.K .K-btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand-line); }
.K .K-btn.ghost:hover { background: var(--brand-soft); }

/* photo tile */
.K .t-photo .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.K .t-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, color-mix(in srgb, var(--brand-ink) 40%, transparent));
}

/* colored tiles */
.K .t-stat.brand { background: var(--brand); border-color: transparent; color: var(--on-brand); }
.K .t-stat.brand .t-num { color: var(--on-brand); }
.K .t-stat.brand .t-cap { color: color-mix(in srgb, var(--on-brand) 82%, transparent); }

.K .t-icon.accent { background: var(--accent-soft); border-color: transparent; align-items: flex-start; }
.K .t-icon .t-ic { color: var(--brand); }
.K .t-icon .t-cap { margin-top: 14px; font-size: 14px; letter-spacing: .02em; color: var(--text); font-weight: 500; }

.K .t-why.soft { background: var(--brand-soft); border-color: transparent; }
.K .t-mini-en { font-family: var(--display); font-size: 12px; font-weight: 500; letter-spacing: .24em; color: var(--brand-2); }
.K .t-why p {
  margin-top: 12px; font-family: "Shippori Mincho", var(--serif-jp);
  font-size: 18px; line-height: 1.7; color: var(--brand); font-weight: 500;
}

/* ---------- services ----------------------------------------- */
.K .K-serv { padding: 38px 24px 12px; }
.K .K-serv-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(190px, auto); gap: 16px;
}
.K .K-sv {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, .05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.K .K-sv:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(20, 30, 50, .12); }
.K .K-sv.sv-1 { grid-column: span 2; grid-row: span 2; background: var(--brand); border-color: transparent; color: var(--on-brand); padding: 42px; }
.K .K-sv .sv-ic { color: var(--brand); }
.K .K-sv.sv-1 .sv-ic { color: #fff; }
.K .K-sv h3 { font-family: "Shippori Mincho", var(--serif-jp); font-weight: 600; font-size: 20px; margin-top: 18px; color: var(--text); }
.K .K-sv.sv-1 h3 { font-size: 26px; color: #fff; }
.K .K-sv .en { font-family: var(--display); font-size: 12px; letter-spacing: .18em; color: var(--accent); margin-top: 6px; }
.K .K-sv.sv-1 .en { color: var(--accent-2); }
.K .K-sv p { margin-top: 14px; font-size: 13.5px; line-height: 1.9; color: var(--text-soft); }
.K .K-sv.sv-1 p { font-size: 14.5px; color: rgba(255, 255, 255, .82); max-width: 44ch; }
.K .K-sv .sv-more {
  margin-top: auto; padding-top: 20px;
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--brand);
}
.K .K-sv.sv-1 .sv-more { color: #fff; }
.K .K-sv .sv-more svg { transition: transform .25s; }
.K .K-sv:hover .sv-more svg { transform: translateX(4px); }

/* ---------- reasons ------------------------------------------ */
.K .K-why { padding: 34px 24px 12px; }
.K .K-why-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.K .K-reason { padding: 30px; }
.K .K-reason .r-no { font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1; color: var(--accent); }
.K .K-reason h4 { font-family: "Shippori Mincho", var(--serif-jp); font-weight: 600; font-size: 17px; margin-top: 12px; color: var(--text); }
.K .K-reason p { margin-top: 10px; font-size: 13px; line-height: 1.9; color: var(--text-soft); }

/* ---------- news --------------------------------------------- */
.K .K-news { padding: 34px 24px 12px; }
.K .K-news-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(160px, auto); gap: 16px;
}
.K .K-nt { padding: 26px; }
.K .K-nt .n-top { display: flex; align-items: center; gap: 12px; }
.K .K-nt .n-date { font-family: var(--display); font-size: 14px; letter-spacing: .04em; color: var(--text-soft); }
.K .K-nt .n-cat {
  font-size: 11px; letter-spacing: .06em; padding: 4px 11px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
}
.K .K-nt .n-ttl { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--text); }
.K .K-nt .n-more {
  margin-top: auto; padding-top: 18px;
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--brand);
}
.K .K-nt .n-more svg { transition: transform .25s; }
.K .K-nt:hover .n-more svg { transform: translateX(4px); }

/* ---------- contact CTA tile --------------------------------- */
.K .K-contact { padding: 34px 24px 56px; }
.K .t-contact {
  max-width: 1200px; margin: 0 auto; border-radius: 28px; padding: 48px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 34px; align-items: center;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--brand) 24%, transparent);
}
.K .t-contact.brand { background: var(--brand); color: var(--on-brand); }
.K .K-eyebrow2 { font-family: var(--display); font-size: 13px; font-weight: 500; letter-spacing: .24em; color: var(--accent-2); }
.K .K-ct-l h2 { font-family: "Shippori Mincho", var(--serif-jp); font-weight: 600; font-size: 28px; line-height: 1.5; margin-top: 10px; color: #fff; }
.K .K-ct-l p { margin-top: 16px; font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .82); }
.K .K-ct-actions { display: flex; flex-direction: column; gap: 14px; }
.K .K-tel {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 16px; padding: 18px 22px; transition: .25s;
}
.K .K-tel:hover { background: rgba(255, 255, 255, .14); }
.K .K-tel-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.K .K-tel .num { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: .02em; color: #fff; display: block; }
.K .K-tel .hrs { font-size: 11px; letter-spacing: .06em; color: rgba(255, 255, 255, .72); }
.K .K-formbtn {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; color: var(--brand); border-radius: 16px; padding: 18px 22px; transition: .25s;
}
.K .K-formbtn:hover { background: var(--accent-soft); }
.K .K-formbtn .fb-l { display: flex; align-items: center; gap: 14px; }
.K .K-formbtn .fb-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.K .K-formbtn .lab { font-size: 14.5px; font-weight: 500; display: block; }
.K .K-formbtn .sub { font-size: 11px; letter-spacing: .04em; color: var(--text-soft); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .K .K-bento { grid-template-columns: repeat(2, 1fr); }
  .K .t-hero, .K .t-photo, .K .t-why { grid-column: span 2; grid-row: auto; }
  .K .t-photo { min-height: 220px; }
  .K .K-serv-grid { grid-template-columns: repeat(2, 1fr); }
  .K .K-sv.sv-1 { grid-column: span 2; grid-row: auto; }
  .K .K-why-grid, .K .K-news-grid { grid-template-columns: 1fr 1fr; }
  .K .t-contact { grid-template-columns: 1fr; gap: 26px; }
}

/* phone (≤720px): single column, no horizontal scroll */
@media (max-width: 720px) {
  .K { padding-top: 0; }
  .K .K-head { flex-wrap: wrap; gap: 12px 16px; padding: 14px 16px; border-radius: 18px; margin-bottom: 4px; }
  .K .K-nav { width: 100%; margin-left: 0; gap: 14px 18px; flex-wrap: wrap; order: 3; }
  .K .K-nav a { font-size: 12.5px; }
  .K .K-pill { margin-left: auto; }

  .K .K-hero, .K .K-serv, .K .K-why, .K .K-news { padding-left: 16px; padding-right: 16px; }
  .K .K-sec-head { padding: 0 16px; }
  .K .K-contact { padding: 28px 16px 44px; }

  /* collapse every bento grid to one column */
  .K .K-bento, .K .K-serv-grid, .K .K-why-grid, .K .K-news-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .K .K-bento > *, .K .K-serv-grid > *, .K .K-why-grid > *, .K .K-news-grid > * { grid-column: auto; grid-row: auto; }

  .K .t-hero { padding: 32px 24px; }
  .K .t-hero h1 { font-size: 27px; line-height: 1.55; }
  .K .t-photo { min-height: 210px; }
  .K .t-why.soft { padding: 26px; }
  .K .K-sv.sv-1 { padding: 32px 26px; }
  .K .K-sv.sv-1 h3 { font-size: 22px; }

  .K .K-sec-head h2 { font-size: 26px; }
  .K .t-num { font-size: 48px; }

  .K .t-contact { padding: 30px 22px; border-radius: 22px; }
  .K .K-ct-l h2 { font-size: 24px; }
  .K .K-tel .num { font-size: 26px; }
}

@media (max-width: 400px) {
  .K .K-brand-name { font-size: 17px; }
  .K .t-hero h1 { font-size: 24px; }
  .K .t-num { font-size: 42px; }
  .K .K-nav { gap: 10px 14px; }
}
