/* ============================================================
   DESIGN J — もみき風 (office-momiki.com near-clone / 税理士版)
   Scoped entirely under .J. Classic dense shigyo layout:
   white centered header, brand-overlay hero + 3 gradient bubbles,
   pill global nav, 2-column body (≈300px sidebar + ≈840px main),
   text-nav footer + brand-ink copyright band.
   Every brand color is a theme var, so navy→green re-skins it.
   Neutral grays / white / near-black hairlines use literals.
   ============================================================ */

.J {
  --mk-wrap: 1180px;
  background: #fff;
  color: var(--text);
  font-family: var(--sans-jp);
  padding-top: 0;                /* control bar removed (now bottom-right FAB) */
  overflow-x: hidden;
  font-size: 14px;
  line-height: 1.8;
}

.J a { color: inherit; text-decoration: none; }

/* generic small chevron badge */
.J .mk-chev {
  display: inline-flex; align-items: center; justify-content: center;
  color: currentColor; flex: none;
}

/* ================= header ================= */
.J .mk-header { background: #fff; border-bottom: 1px solid #ececec; }
.J .mk-head-in {
  max-width: var(--mk-wrap); margin: 0 auto;
  padding: 18px 30px;
  display: flex; align-items: center; gap: 26px;
}
.J .mk-logo {
  display: flex; align-items: center; gap: 13px;
  color: var(--brand); flex: none;
}
.J .mk-logo-txt { display: flex; flex-direction: column; line-height: 1.2; }
.J .mk-cred {
  font-size: 11px; letter-spacing: .16em; color: var(--text-soft);
  margin-bottom: 3px;
}
.J .mk-name {
  font-size: 27px; font-weight: 700; letter-spacing: .06em;
  color: var(--brand);
}
.J .mk-head-addr {
  margin-left: auto; align-self: flex-end;
  font-size: 12px; color: #8a8f97; letter-spacing: .02em;
  padding-bottom: 4px;
}
.J .mk-head-tel { display: flex; align-items: center; gap: 12px; flex: none; }
.J .mk-tel-ic { color: var(--brand); display: inline-flex; }
.J .mk-tel-body { display: flex; flex-direction: column; line-height: 1.3; }
.J .mk-tel-num {
  font-family: var(--display); font-weight: 600;
  font-size: 30px; letter-spacing: .02em; color: var(--brand); line-height: 1.05;
}
.J .mk-tel-hrs { font-size: 12px; color: var(--text-soft); letter-spacing: .04em; }
.J .mk-tel-note { font-size: 12px; color: var(--brand); letter-spacing: .02em; font-weight: 500; }

/* ================= hero ================= */
.J .mk-hero {
  position: relative; width: 100%; height: 470px; overflow: hidden;
}
.J .mk-hero .ph { position: absolute; inset: 0; height: 100%; width: 100%; }
.J .mk-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg,
      color-mix(in srgb, var(--brand-ink) 34%, transparent),
      color-mix(in srgb, var(--brand) 58%, transparent) 60%,
      color-mix(in srgb, var(--brand-ink) 46%, transparent));
}
.J .mk-hero-in {
  position: relative; height: 100%;
  max-width: var(--mk-wrap); margin: 0 auto; padding: 0 30px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.J .mk-hero-catch {
  color: var(--on-brand); font-weight: 700;
  font-size: 34px; line-height: 1.7; letter-spacing: .06em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.J .mk-bubbles {
  margin-top: 40px; display: flex; gap: 32px; flex-wrap: wrap; justify-content: center;
}
.J .mk-bubble {
  width: 154px; height: 154px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .34), transparent 44%),
    radial-gradient(circle at 62% 74%, color-mix(in srgb, var(--brand-ink) 40%, transparent), transparent 72%),
    color-mix(in srgb, var(--brand) 62%, transparent);
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .28), inset 0 2px 10px rgba(255, 255, 255, .25);
}
.J .mk-bubble span {
  color: #fff; font-size: 15px; font-weight: 600; line-height: 1.55; letter-spacing: .04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

/* ================= global nav band ================= */
.J .mk-gnav {
  background:
    linear-gradient(180deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 55%, #fff));
  border-bottom: 1px solid var(--brand-line);
  padding: 14px 30px;
}
.J .mk-gnav-in {
  max-width: var(--mk-wrap); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
}
.J .mk-pill {
  display: inline-flex; align-items: center;
  padding: 8px 18px; font-size: 13px; letter-spacing: .04em; color: var(--brand);
  background: linear-gradient(180deg, #fff, #f4f6f2);
  border: 1px solid var(--brand-line); border-radius: 4px;
  transition: background .22s, color .22s, box-shadow .22s;
}
.J .mk-pill:hover {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: var(--on-brand); box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

/* ================= body / 2 columns ================= */
.J .mk-body { background: #fff; padding: 40px 30px 64px; }
.J .mk-body-in {
  max-width: var(--mk-wrap); margin: 0 auto;
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start;
}

/* ------- sidebar ------- */
.J .mk-side { display: flex; flex-direction: column; gap: 20px; }

.J .mk-callbox {
  border: 1px solid var(--brand-line); border-radius: 6px; overflow: hidden;
  background: #fff;
}
.J .mk-callbox-h {
  background: var(--brand-soft); color: var(--brand);
  font-weight: 700; font-size: 15px; letter-spacing: .04em;
  padding: 11px 16px; border-bottom: 1px solid var(--brand-line); text-align: center;
}
.J .mk-callbox-b { display: flex; align-items: center; gap: 12px; padding: 16px; }
.J .mk-callbox-ic { color: var(--brand); display: inline-flex; flex: none; }
.J .mk-callbox-num {
  font-family: var(--display); font-weight: 600; font-size: 26px;
  color: var(--brand); line-height: 1.1; letter-spacing: .01em;
}
.J .mk-callbox-hrs { font-size: 12px; color: var(--text-soft); }
.J .mk-callbox-note { font-size: 11.5px; color: var(--brand); font-weight: 500; }

.J .mk-formbtn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 6px; color: var(--on-brand);
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  box-shadow: 0 6px 14px rgba(0, 0, 0, .14);
  transition: filter .22s, transform .22s;
}
.J .mk-formbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.J .mk-formbtn-ic { display: inline-flex; color: var(--on-brand); flex: none; }
.J .mk-formbtn-txt { display: flex; flex-direction: column; line-height: 1.3; flex: 1; }
.J .mk-formbtn-txt b { font-size: 15px; font-weight: 700; letter-spacing: .03em; }
.J .mk-formbtn-txt small { font-size: 11px; opacity: .85; }
.J .mk-formbtn .mk-chev { color: var(--on-brand); }

.J .mk-side-h {
  font-size: 16px; font-weight: 700; color: var(--brand); letter-spacing: .06em;
  padding: 4px 0 2px 12px; position: relative; margin-top: 4px;
}
.J .mk-side-h::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; background: var(--brand); border-radius: 2px;
}
.J .mk-side-nav { display: flex; flex-direction: column; gap: 8px; }
.J .mk-side-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 14px; border-radius: 5px; color: var(--on-brand);
  font-size: 14px; font-weight: 600; letter-spacing: .03em;
  background: linear-gradient(180deg, var(--brand-3), var(--brand-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  transition: filter .22s, padding-left .22s;
}
.J .mk-side-btn:hover { filter: brightness(1.08); padding-left: 18px; }
.J .mk-side-btn .mk-chev { color: var(--accent-2); }

.J .mk-side-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.J .mk-side-card {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--brand-line); border-radius: 6px; padding: 12px 14px;
  background: var(--surface); transition: border-color .22s, background .22s;
}
.J .mk-side-card:hover { border-color: var(--brand); background: #fff; }
.J .mk-side-card-ic {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand);
}
.J .mk-side-card-ic svg { width: 24px; height: 24px; }
.J .mk-side-card-txt { display: flex; flex-direction: column; line-height: 1.35; }
.J .mk-side-card-txt b { font-size: 14px; font-weight: 700; color: var(--brand); }
.J .mk-side-card-txt small { font-size: 11.5px; color: var(--text-soft); }

/* ------- main ------- */
.J .mk-main { display: flex; flex-direction: column; gap: 40px; min-width: 0; }

.J .mk-h2 {
  font-size: 22px; font-weight: 700; color: var(--brand); letter-spacing: .08em;
  padding-left: 14px; position: relative; margin-bottom: 20px;
}
.J .mk-h2::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 5px; background: var(--brand); border-radius: 2px;
}

/* greeting */
.J .mk-greet-in { display: grid; grid-template-columns: 1fr 232px; gap: 28px; align-items: start; }
.J .mk-greet-txt p { font-size: 14px; line-height: 2.05; color: var(--text-soft); margin-bottom: 16px; }
.J .mk-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--brand);
}
.J .mk-more:hover { text-decoration: underline; }
.J .mk-greet-fig { margin: 0; }
.J .mk-portrait {
  border: 1px solid var(--brand-line); padding: 6px; background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .1);
}
.J .mk-portrait .ph { width: 100%; height: 250px; }
.J .mk-greet-fig figcaption {
  margin-top: 10px; text-align: center; font-size: 13px; color: var(--brand); font-weight: 600;
  letter-spacing: .06em;
}

/* 3 service boxes */
.J .mk-serv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.J .mk-serv-card {
  position: relative; background: #fff; border: 1px solid var(--brand-line);
  border-left: 4px solid var(--brand); border-radius: 4px;
  padding: 22px 18px 20px 22px; overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.J .mk-serv-card::before {
  content: ""; position: absolute; left: 0; top: 0;
  border-style: solid; border-width: 14px 14px 0 0;
  border-color: var(--brand) transparent transparent transparent;
}
.J .mk-serv-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(0, 0, 0, .12); }
.J .mk-serv-title { font-size: 16px; font-weight: 700; color: var(--brand); line-height: 1.5; letter-spacing: .03em; }
.J .mk-serv-note { margin-top: 8px; font-size: 12.5px; color: var(--text-soft); line-height: 1.7; }

/* 2 wide boxes */
.J .mk-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.J .mk-wide-card {
  position: relative; border-radius: 5px; padding: 22px 22px 22px 30px;
  border: 1px solid var(--brand-line); overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.J .mk-wide-card::before {
  content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  border-style: solid; border-width: 7px 0 7px 9px;
  border-color: transparent transparent transparent var(--brand);
}
.J .mk-wide-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0, 0, 0, .12); }
.J .mk-wide-body { display: flex; flex-direction: column; gap: 4px; }
.J .mk-wide-body b { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.J .mk-wide-body small { font-size: 12.5px; }
.J .mk-wide-person { background: var(--accent-soft); }
.J .mk-wide-person .mk-wide-body b { color: var(--brand); }
.J .mk-wide-person .mk-wide-body small { color: var(--text-soft); }
.J .mk-wide-corp {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  border-color: var(--brand);
}
.J .mk-wide-corp::before { border-left-color: var(--on-brand); }
.J .mk-wide-corp .mk-wide-body b { color: var(--on-brand); }
.J .mk-wide-corp .mk-wide-body small { color: rgba(255, 255, 255, .85); }

/* news / blog panels */
.J .mk-panel { border: 1px solid var(--brand-line); border-radius: 6px; overflow: hidden; background: #fff; }
.J .mk-panel-h {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: var(--on-brand); font-weight: 700; font-size: 15px; letter-spacing: .06em;
  padding: 11px 16px;
}
.J .mk-panel-chev { color: var(--accent-2); }

.J .mk-news { padding: 4px 16px; }
.J .mk-news-row {
  display: flex; align-items: baseline; gap: 20px;
  padding: 13px 2px; border-bottom: 1px solid #ececec;
  transition: background .2s, padding-left .2s;
}
.J .mk-news-row:last-child { border-bottom: 0; }
.J .mk-news-row:hover { background: var(--surface); padding-left: 8px; }
.J .mk-news-date {
  font-family: var(--display); font-size: 14px; letter-spacing: .04em;
  color: var(--text-soft); min-width: 92px; flex: none;
}
.J .mk-news-ttl { font-size: 13.5px; color: var(--text); }

.J .mk-blog { padding: 6px 16px; }
.J .mk-blog-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 15px 2px; border-bottom: 1px solid #ececec;
}
.J .mk-blog-row:last-child { border-bottom: 0; }
.J .mk-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: none;
  border: 2px solid var(--brand-line);
}
.J .mk-avatar .ph { width: 100%; height: 100%; }
.J .mk-blog-body { min-width: 0; }
.J .mk-blog-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.J .mk-blog-date { font-family: var(--display); font-size: 13px; color: var(--text-soft); }
.J .mk-cat {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font-size: 11px; letter-spacing: .03em;
}
.J .mk-blog-au { font-size: 12px; color: var(--text-soft); }
.J .mk-blog-ttl { font-size: 13.5px; color: var(--text); line-height: 1.7; }
.J .mk-blog-row:hover .mk-blog-ttl { color: var(--brand); }

/* ================= footer ================= */
.J .mk-footer { border-top: 3px solid var(--brand); background: #fff; }
.J .mk-foot-in { max-width: var(--mk-wrap); margin: 0 auto; padding: 28px 30px 22px; }
.J .mk-foot-nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 0;
}
.J .mk-foot-nav a {
  font-size: 13px; color: var(--text); padding: 2px 16px; position: relative;
  transition: color .2s;
}
.J .mk-foot-nav a:hover { color: var(--brand); }
.J .mk-foot-nav a:not(:last-child)::after {
  content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 12px; background: var(--brand-line);
}
.J .mk-foot-sub { margin-top: 12px; }
.J .mk-foot-sub a { font-size: 12px; color: var(--text-soft); }
.J .mk-copy {
  background: var(--brand-ink); color: rgba(255, 255, 255, .9);
  text-align: center; font-size: 12px; letter-spacing: .06em; padding: 14px 20px;
}

/* ================= responsive: ≤1120 (1280 tier) ================= */
@media (max-width: 1120px) {
  .J .mk-body-in { grid-template-columns: 260px 1fr; gap: 28px; }
  .J .mk-serv { grid-template-columns: 1fr 1fr; }
  .J .mk-head-in { gap: 18px; }
  .J .mk-head-addr { font-size: 11.5px; }
  .J .mk-greet-in { grid-template-columns: 1fr 200px; }
}

/* ================= responsive: mobile ≤720 (1 column) ================= */
@media (max-width: 720px) {
  .J { padding-top: 0; }

  .J .mk-head-in { flex-wrap: wrap; gap: 12px; padding: 14px 18px; }
  .J .mk-name { font-size: 22px; }
  .J .mk-head-addr { margin-left: 0; width: 100%; order: 3; align-self: flex-start; padding-bottom: 0; }
  .J .mk-head-tel { margin-left: auto; }
  .J .mk-tel-num { font-size: 24px; }

  .J .mk-hero { height: auto; min-height: 420px; }
  .J .mk-hero-in { padding: 54px 20px; }
  .J .mk-hero-catch { font-size: 23px; line-height: 1.75; }
  .J .mk-bubbles { margin-top: 30px; gap: 14px; }
  .J .mk-bubble { width: 108px; height: 108px; }
  .J .mk-bubble span { font-size: 12px; }

  .J .mk-gnav { padding: 12px 16px; }
  .J .mk-pill { padding: 7px 13px; font-size: 12px; }

  .J .mk-body { padding: 28px 16px 48px; }
  /* single column — main first, sidebar drops below */
  .J .mk-body-in { grid-template-columns: 1fr; gap: 34px; }
  .J .mk-main { order: 1; gap: 32px; }
  .J .mk-side { order: 2; }

  .J .mk-greet-in { grid-template-columns: 1fr; gap: 22px; }
  .J .mk-greet-fig { max-width: 260px; margin: 0 auto; }
  .J .mk-portrait .ph { height: 280px; }

  .J .mk-serv { grid-template-columns: 1fr; gap: 12px; }
  .J .mk-wide { grid-template-columns: 1fr; }

  .J .mk-news-row { flex-wrap: wrap; gap: 2px 16px; }
  .J .mk-news-date { min-width: 84px; }
  .J .mk-news-ttl { flex: 1 1 100%; }

  .J .mk-foot-in { padding: 22px 18px 18px; }
  .J .mk-foot-nav a { padding: 2px 12px; }
}
