.portrait small { color: var(--muted); font-size: 12px; line-height: 1.7; }
    .message-text p { margin: 0 0 18px; color: var(--sub); }
    .signature {
      margin-top: 24px;
      font-weight: 700;
    }
    .signature small {
      display: block;
      color: var(--muted);
      font-weight: 500;
    }

    .glossary-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--line);
      border: 1px solid var(--line);
    }
    .term {
      min-height: 150px;
      padding: 20px;
      background: #fff;
    }
    .term b {
      display: block;
      font-family: var(--font-sans);
      font-size: 19px;
      line-height: 1.4;
    }
    .term small { color: var(--accent); }
    .term p { margin: 10px 0 0; color: var(--sub); font-size: 13px; line-height: 1.7; }

    .cta {
      position: relative;
      padding: 78px 0 86px;
      overflow: hidden;
      background:
        linear-gradient(rgba(72, 45, 6, .86), rgba(72, 45, 6, .86)),
        url("../images/isj-office-hero.jpg") center 44% / cover no-repeat;
      color: #fff;
      text-align: center;
    }
    .cta-inner {
      position: relative;
      z-index: 1;
      width: min(960px, calc(100% - 40px));
      margin: 0 auto;
    }
    .cta-copy {
      margin: 0 auto 42px;
      text-align: center;
    }
    .cta h2 {
      margin: 0;
      font-family: var(--font-serif);
      font-size: 32px;
      line-height: 1.55;
    }
    .cta h2 em {
      color: var(--accent);
      font-style: normal;
    }
    .cta-copy p {
      margin: 18px 0 0;
      color: rgba(255, 255, 255, .88);
      font-size: 16px;
      line-height: 2;
    }
    .cta-contact {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 54px;
      align-items: start;
    }
    .cta-block {
      display: grid;
      justify-items: center;
      gap: 22px;
      min-width: 0;
    }
    .cta-title {
      margin: 0;
      font-family: var(--font-sans);
      font-size: 18px;
      font-weight: 800;
      line-height: 1.5;
      letter-spacing: .02em;
    }
    .cta-phone {
      color: #fff;
      font-family: var(--font-serif);
      font-size: clamp(38px, 4vw, 48px);
      font-weight: 400;
      line-height: 1;
      white-space: nowrap;
    }
    .cta-message,
    .cta-note,
    .cta-hours {
      margin: 0;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      line-height: 1.8;
    }
    .cta-note { white-space: nowrap; }
    .cta-hours {
      display: grid;
      gap: 4px;
      margin-top: 8px;
      font-size: 15px;
      font-weight: 600;
    }
    .cta-hours b {
      font-weight: 700;
    }
    .cta-reserve {
      min-height: 60px;
      min-width: min(100%, 340px);
      padding: 15px 30px;
      border: 0;
      border-radius: 999px;
      background: #ff4b4f;
      box-shadow: 0 9px 18px rgba(0, 0, 0, .18);
      color: #fff;
      font-size: 18px;
      font-weight: 800;
      line-height: 1.35;
    }
    .cta-reserve:hover {
      background: #e93f43;
    }

    .site-footer {
      padding: 42px 0;
      background: #222;
      color: rgba(255,255,255,.76);
      font-size: 13px;
    }
    .footer-inner {
      width: min(1060px, calc(100% - 40px));
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      gap: 32px;
    }
    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 10px 18px;
    }

    @media (max-width: 900px) {
      .site-header { display: none; }
      main { padding-top: 0; }
      .hero {
        min-height: auto;
        height: auto;
        padding-top: 120px;
      }
      .hero::before { inset: 0 0 auto 0; height: 330px; }
      .hero::after {
        background:
          linear-gradient(180deg, rgba(242,243,244,.12) 0, var(--soft) 220px),
          linear-gradient(180deg, rgba(255,255,255,0), rgba(0,0,0,.04));
      }
      .hero-inner { padding: 46px 0 66px; }
      .risk .section-inner,
      .worry-list,
      .compare-layout,
      .case-grid,
      .price-layout,
      .cta-contact,
      .message {
        grid-template-columns: 1fr;
      }
      .cta-copy { margin-bottom: 38px; }
      .cta-contact { gap: 42px; }
      .cta-title { font-size: 17px; }
      .cta-phone { font-size: clamp(38px, 11vw, 48px); }
      .cta-message,
      .cta-note {
        font-size: 14px;
        white-space: normal;
      }
      .cta-reserve {
        min-width: 0;
        width: min(100%, 360px);
        font-size: 19px;
      }
      .risk-list { columns: 1; }
      .glossary-grid { grid-template-columns: repeat(2, 1fr); }
    }

    @media (max-width: 560px) {
      .header-inner,
      .hero-inner,
      .section-inner,
      .footer-inner {
        width: calc(100% - 28px);
        margin-left: auto;
        margin-right: auto;
      }
      .brand { width: min(220px, 62vw); }
      .hero-copy,
      .hero-lead,
      .worry-list,
      .worry-item,
      .worry-problem,
      .worry-solution {
        width: 100%;
        max-width: 100%;
      }
      .hero h1 {
        font-size: 32px;
        line-height: 1.45;
        overflow-wrap: anywhere;
        word-break: break-all;
      }
      .section h2 {
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
		font-size: 24px
        line-height: 1.7;
      }
		
		.reason h3, .timeline h3, .price h3 {
			font-size: 20px;
		}
		
		.cta h2 {
			font-size: 26px !important;
		}
      .lead { max-width: none; margin-left: 0; margin-right: 0; }
      .section-head,
      .section h2,
      .worry-q,
      .worry-a,
      .lead,
      .hero-lead {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-all;
      }
      .worry-item {
        display: block;
      }
      .worry-problem { min-height: auto; }
      .worry-q { font-size: 17px; line-height: 1.8; }
      .lead,
      .worry-a,
      .hero-lead { font-size: 14px; }
      .button { width: 100%; }
      .reason,
      .timeline li {
        grid-template-columns: 1fr;
        gap: 10px;
      }
      .timeline::before { left: 33px; }
      .timeline li { padding: 22px 18px 22px 70px; }
      .timeline b {
        left: 12px;
        width: 40px;
        height: 40px;
      }
      .glossary-grid { grid-template-columns: 1fr; }
      .footer-inner { display: grid; }
      .footer-nav { justify-content: flex-start; }
    }

/* WordPress / SWELL integration */
body.page-template-template-isj-souzoku-top,
body.page-template-page-sozoku-top {
  background: var(--paper);
}
@media (min-width: 901px) {
  body.page-template-template-isj-souzoku-top .l-header,
  body.page-template-template-isj-souzoku-top #header,
  body.page-template-template-isj-souzoku-top .p-spMenu,
  body.page-template-template-isj-souzoku-top .p-fixBtnWrap,
  body.page-template-page-sozoku-top .l-header,
  body.page-template-page-sozoku-top #header,
  body.page-template-page-sozoku-top .p-spMenu,
  body.page-template-page-sozoku-top .p-fixBtnWrap {
    display: none !important;
  }
}
body.page-template-template-isj-souzoku-top .l-mainContent,
body.page-template-template-isj-souzoku-top .l-content,
body.page-template-template-isj-souzoku-top .post_content,
body.page-template-page-sozoku-top .l-mainContent,
body.page-template-page-sozoku-top .l-content,
body.page-template-page-sozoku-top .post_content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
body.page-template-template-isj-souzoku-top .l-footer,
body.page-template-template-isj-souzoku-top #footer,
body.page-template-page-sozoku-top .l-footer,
body.page-template-page-sozoku-top #footer {
  display: none !important;
}
body.admin-bar.page-template-template-isj-souzoku-top .site-header,
body.admin-bar.page-template-page-sozoku-top .site-header {
  top: 32px;
}
@media (max-width: 900px) {
  body.admin-bar.page-template-template-isj-souzoku-top .site-header,
  body.admin-bar.page-template-page-sozoku-top .site-header {
    top: 0;
  }
}
