/*
Theme Name: Rayzeon SCALE ONE Original
Theme URI: https://www.one-mk.net/
Author: ONE-MK DESIGN
Author URI: https://www.one-mk.net/
Description: 株式会社Rayzeon「SCALE ONE」のHTMLビジュアルを忠実にWordPress化したオリジナルテーマ。トップページのサービスカードは静的ビジュアルとして再現し、サービス投稿タイプは搭載していません。お知らせ・FAQ・固定ページ・テーマ設定を独自実装し、CURE由来のアニメーションは搭載していません。
Version: 2.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: rayzeon
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --navy: #171c61;
  --navy-deep: #111756;
  --blue: #265699;
  --hero-blue: #172a88;
  --gold: #c3934c;
  --background: #f6f9fd;
  --text: #171c61;
  --muted: #898989;
  --white: #ffffff;
  --container: 1184px;
  --card-shadow: 0 5px 14px rgba(25, 39, 77, .22), 0 1px 5px rgba(25, 39, 77, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--background);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", system-ui, -apple-system, sans-serif;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.layout-container { width: min(calc(100% - 96px), var(--container)); margin-inline: auto; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .015em;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px rgba(19, 30, 87, .18); filter: brightness(1.035); }
.button:active { transform: translateY(0); }
.button svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button--navy { color: #fff; background: var(--navy); }
.button--gold { color: #fff; background: var(--gold); }
.button--white { color: var(--navy); background: #fff; }
.button--outline-gold { color: #fff; background: transparent; border-color: var(--gold); }

/* Header */
.site-header {
  position: absolute;
  z-index: 50;
  inset: 0 0 auto;
  height: 86px;
  transition: height .22s ease, background-color .22s ease, box-shadow .22s ease, backdrop-filter .22s ease;
}
.site-header.is-scrolled {
  position: fixed;
  height: 72px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 4px 18px rgba(17, 34, 83, .12);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(calc(100% - 60px), 1220px);
  height: 100%;
  display: flex;
  align-items: center;
}
.brand { width: 267px; flex: 0 0 267px; margin-left: 15px; }
.brand img { width: 100%; height: auto; }
.global-nav { margin-left: 56px; }
.nav-links { display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.nav-links a { position: relative; font-size: 10px; font-weight: 600; letter-spacing: -.01em; }
.nav-links a::after, .footer-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -7px;
  height: 1px;
  background: var(--gold);
  transition: left .18s ease, right .18s ease;
}
.nav-links a:hover::after, .footer-nav a:hover::after { left: 0; right: 0; }
.header-actions { display: flex; gap: 14px; margin-left: auto; }
.header-actions .button { width: 180px; flex: 0 0 180px; }
.mobile-nav-actions, .menu-button { display: none; }

/* Hero */
.hero {
  position: relative;
  height: 720px;
  overflow: hidden;
  background: #edf4fa url("assets/images/hero.webp") center top / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.72) 0%, rgba(255,255,255,.56) 38%, rgba(255,255,255,.13) 68%, rgba(255,255,255,.04) 100%);
}
.hero-inner { position: relative; z-index: 2; height: 100%; padding-top: 109px; }
.hero-copy { width: 555px; }
.hero-kicker {
  margin: 0 0 3px 2px;
  color: var(--blue);
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: -.035em;
}
.hero h1 { margin: 0; color: var(--hero-blue); font-weight: 500; letter-spacing: -.035em; }
.hero-title-line { display: block; white-space: nowrap; }
.hero-title-line--first { font-size: 56.5px; line-height: 1.29; }
.hero-title-line--second { font-size: 66.8px; line-height: 1.34; }
.hero-description {
  margin: 24px 0 0 2px;
  color: var(--blue);
  font-size: 15.5px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: -.02em;
}
.hero-actions { display: flex; gap: 19px; margin-top: 39px; }
.button--hero { width: 240px; min-height: 48px; font-size: 10px; }

.stats {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 35px;
  width: min(calc(100% - 204px), 1077px);
  transform: translateX(-50%);
}
.stats-panel {
  height: 141px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  overflow: hidden;
  border-radius: 28px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 8px 24px rgba(15, 26, 88, .15);
}
.stat {
  min-width: 0;
  height: 75px;
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 0 31px;
  border-right: 1px solid rgba(255, 255, 255, .45);
}
.stat:last-child { border-right: 0; }
.stat img { width: 52px; max-height: 60px; object-fit: contain; flex: none; }
.stat:nth-child(2) img { width: 54px; }
.stat:nth-child(3) img { width: 54px; }
.stat:nth-child(4) img { width: 60px; }
.stat-copy { min-width: 0; }
.stat strong { display: block; color: #fff; font-size: 26px; line-height: 1; white-space: nowrap; }
.stat strong span { margin-left: 3px; font-size: 14px; }
.stat p { margin: 13px 0 0; color: #fff; font-size: 9px; line-height: 1.35; font-weight: 700; white-space: nowrap; }

/* Main background and headings */
.main-background { background: var(--background); }
.section-heading { text-align: center; }
.section-heading h2 { margin: 0; color: var(--blue); font-size: 31px; line-height: 1.55; font-weight: 400; letter-spacing: .005em; }
.heading-line { display: block; width: 58px; height: 3px; margin: 5px auto 0; background: var(--gold); }
.section-heading p { margin: 14px 0 0; color: var(--blue); font-size: 21px; line-height: 1.6; font-weight: 400; }

/* Problems */
.problems { padding: 44px 0 0; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
  margin-top: 51px;
}
.problem-card {
  height: 218px;
  padding: 19px 12px 17px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--card-shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.problem-icon { height: 99px; display: flex; align-items: center; justify-content: center; }
.problem-icon img { width: auto; max-width: 94px; max-height: 82px; object-fit: contain; }
.problem-card:nth-child(2) .problem-icon img { max-width: 92px; max-height: 86px; }
.problem-card:nth-child(3) .problem-icon img { max-width: 82px; }
.problem-card p { margin: 8px 0 0; color: var(--muted); font-size: 12.25px; line-height: 1.72; font-weight: 400; letter-spacing: -.02em; }

.partner-banner {
  height: 224px;
  margin-top: 47px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 265px 1fr 523px;
  border-radius: 27px;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.partner-logo { display: grid; place-items: center; border-right: 1px solid #e0e4eb; }
.partner-logo img { width: 173px; height: 173px; object-fit: contain; }
.partner-copy { align-self: center; padding: 0 25px 0 40px; }
.partner-copy h2 { margin: 0; color: var(--navy); font-size: 26.3px; line-height: 1.72; font-weight: 700; white-space: nowrap; }
.partner-copy p { margin: 8px 0 0; color: var(--navy); font-size: 10px; line-height: 1.65; font-weight: 700; }
.partner-image {
  position: relative;
  background: url("assets/images/partner.webp") center / cover no-repeat;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}


/* HTML source service visual ------------------------------------------------ */
.services { padding: 42px 0 0; }
.section-heading--services .heading-line { margin-top: 3px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 25px;
  margin-top: 54px;
}
.service-card {
  position: relative;
  height: 126px;
  display: grid;
  grid-template-columns: 42px 63px 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px 24px 11px 20px;
  overflow: hidden;
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.service-number { align-self: start; margin-top: 3px; color: var(--gold); font-size: 20.9px; line-height: 1; font-weight: 400; }
.service-icon { width: 61px; height: 68px; object-fit: contain; }
.service-copy { min-width: 0; align-self: center; }
.service-copy h3 { margin: 0 0 7px; color: var(--blue); font-size: 15.5px; line-height: 1.4; font-weight: 700; white-space: nowrap; }
.service-copy p { margin: 0; color: var(--navy); font-size: 9.95px; line-height: 1.6; font-weight: 700; letter-spacing: -.04em; white-space: nowrap; }
.service-arrow {
  position: absolute;
  right: 13px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #171717;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Reasons */
.reasons { padding: 31px 0 89px; }
.reason-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 60px;
}
.reason-card {
  position: relative;
  height: 221px;
  overflow: hidden;
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--card-shadow);
}
.reason-number { position: absolute; z-index: 2; top: 14px; left: 20px; color: var(--gold); font-size: 20.9px; line-height: 1; font-weight: 400; }
.reason-card > img { width: 100%; height: 80px; object-fit: cover; }
.reason-card > div { padding: 29px 8px 12px; text-align: center; }
.reason-card h3 { margin: 0; color: var(--blue); font-size: 15.5px; line-height: 1.5; font-weight: 700; white-space: nowrap; }
.reason-card p { margin: 11px 0 0; color: var(--blue); font-size: 9.95px; line-height: 1.62; font-weight: 700; white-space: nowrap; }

/* Footer */
.site-footer { height: 267px; color: #fff; background: var(--navy); }
.footer-cta {
  height: 117px;
  display: grid;
  grid-template-columns: 1fr 347px 347px;
  align-items: center;
  gap: 27px;
}
.footer-message h2 { margin: 0; color: #fff; font-size: 18px; line-height: 1.55; font-weight: 700; }
.footer-message p { margin: 3px 0 0; color: #fff; font-size: 9.95px; line-height: 1.55; font-weight: 700; }
.footer-cta-button { min-height: 69px; border-radius: 9px; font-size: 16px; }
.footer-cta-button svg { width: 27px; height: 27px; }
.footer-cta-button.button--gold #unused { display: none; }
.footer-cta-button.button--gold svg { fill: #fff; stroke: #fff; stroke-width: .8; }
.footer-bottom {
  height: 100px;
  display: grid;
  grid-template-columns: 181px 1fr 461px;
  align-items: center;
  gap: 33px;
}
.footer-brand { width: 181px; }
.footer-brand img { width: 100%; height: auto; }
.footer-nav { display: flex; align-items: center; justify-content: center; gap: 22px; white-space: nowrap; }
.footer-nav a { position: relative; color: #fff; font-size: 8.5px; line-height: 1.4; }
.footer-actions { display: grid; grid-template-columns: repeat(2, 218px); gap: 24px; }
.footer-actions .button { min-height: 44px; font-size: 9.5px; }
.footer-actions .button svg { width: 17px; height: 17px; }
.footer-actions .button--gold svg { fill: #fff; stroke: #fff; stroke-width: .8; }
.copyright { height: 50px; margin: 0; display: grid; place-items: center; color: #fff; font-size: 10px; line-height: 1; }

/* Interaction and accessibility */
.problem-card, .service-card, .reason-card, .partner-banner { transition: transform .2s ease, box-shadow .2s ease; }
.problem-card:hover, .service-card:hover, .reason-card:hover, .partner-banner:hover { transform: translateY(-3px); box-shadow: 0 9px 22px rgba(25, 39, 77, .24), 0 2px 7px rgba(25, 39, 77, .12); }
:focus-visible { outline: 3px solid #e7aa49; outline-offset: 4px; }

/* Medium desktop: preserve the 1280px composition while allowing smaller widths */
/* PC first-view text refinement (desktop only) */
@media (min-width: 1025px) {
  .hero-copy {
    width: 585px;
    text-align: left;
  }
  .hero-kicker {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
    letter-spacing: -.02em;
  }
  .hero-description {
    max-width: 575px;
    margin: 20px 0 0;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: -.01em;
  }
  .hero-actions {
    margin-top: 32px;
  }
  .button--hero {
    font-size: 13px;
    letter-spacing: .01em;
  }
}

@media (max-width: 1180px) {
  .layout-container { width: min(calc(100% - 48px), 1040px); }
  .header-inner { width: calc(100% - 40px); }
  .brand { width: 245px; flex-basis: 245px; margin-left: 0; }
  .global-nav { margin-left: 30px; }
  .nav-links { gap: 16px; }
  .header-actions .button { width: 155px; flex-basis: 155px; padding-inline: 12px; }
  .stats { width: calc(100% - 96px); }
  .stat { padding-inline: 20px; gap: 13px; }
  .stat p { font-size: 8px; }
  .problem-grid { gap: 16px; }
  .problem-card { height: 212px; }
  .partner-banner { grid-template-columns: 220px 1fr 390px; }
  .partner-copy { padding-left: 30px; }
  .partner-copy h2 { font-size: 22px; }

  .service-grid { gap: 26px 18px; }
  .service-card { grid-template-columns: 38px 52px 1fr; padding-inline: 15px 20px; gap: 8px; }
  .service-icon { width: 51px; }
  .service-copy h3 { font-size: 13.5px; }
  .service-copy p { font-size: 8.5px; }
  .reason-grid { gap: 18px; }
  .reason-card h3 { font-size: 13.5px; }
  .reason-card p { font-size: 8.8px; }
  .footer-cta { grid-template-columns: 1fr 300px 300px; gap: 20px; }
  .footer-bottom { grid-template-columns: 170px 1fr 400px; gap: 20px; }
  .footer-actions { grid-template-columns: repeat(2, 190px); gap: 20px; }
}

/* Tablet navigation and layout */
@media (max-width: 1024px) {
  .site-header { height: 78px; }
  .site-header.is-scrolled { height: 68px; }
  .brand {
    position: relative;
    z-index: 2;
    width: 248px;
    flex-basis: 248px;
  }
  .header-actions { display: none; }
  .menu-button {
    position: relative;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-content: center;
    gap: 6px;
    color: #fff;
    background: var(--navy);
    cursor: pointer;
  }
  .menu-button span { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* スクロール後もメニューをビューポート全体に固定する */
  body.menu-open {
    overflow: hidden;
    overscroll-behavior: none;
  }
  body.menu-open .site-header {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.menu-open .site-header .header-inner { height: 78px; }
  body.menu-open .site-header.is-scrolled .header-inner { height: 68px; }

  .global-nav {
    position: fixed;
    z-index: 1;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding:
      max(104px, calc(env(safe-area-inset-top) + 88px))
      max(24px, calc((100vw - 560px) / 2))
      max(40px, calc(env(safe-area-inset-bottom) + 24px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    background: #fff;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .site-header.is-scrolled .global-nav { inset: 0; }
  .global-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }
  .nav-links {
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    display: block;
  }
  .nav-links a { display: block; padding: 17px 10px; border-bottom: 1px solid #e7ebf1; font-size: 15px; }
  .nav-links a::after { display: none; }
  .mobile-nav-actions {
    width: 100%;
    max-width: 560px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .mobile-nav-actions .button { min-height: 56px; font-size: 13px; }

  .hero { height: 700px; background-position: 57% top; }
  .hero::after { display: none; }
  .hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.89) 42%, rgba(255,255,255,.24) 72%, rgba(255,255,255,0) 100%); }
  .hero-inner { padding-top: 106px; }
  .hero-copy { width: 540px; }
  .hero-title-line--first { font-size: 53px; }
  .hero-title-line--second { font-size: 62px; }
  .stats { bottom: 24px; width: calc(100% - 48px); }
  .stats-panel { height: 160px; grid-template-columns: repeat(2, 1fr); border-radius: 24px; }
  .stat { height: 65px; border-right: 0; padding-inline: 35px; }
  .stat:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.4); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.3); }

  .problems { padding-top: 50px; }
  .problem-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .problem-card { height: 230px; }
  .partner-banner { height: auto; min-height: 250px; grid-template-columns: 210px 1fr 315px; }
  .partner-logo img { width: 155px; height: 155px; }
  .partner-copy { padding: 30px 25px; }
  .partner-copy h2 { font-size: 20px; line-height: 1.55; white-space: normal; }
  .partner-copy p { font-size: 9.5px; }
  .desktop-break { display: none; }


  .services { padding-top: 45px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .service-card { height: 142px; grid-template-columns: 42px 65px 1fr; padding: 15px 24px 15px 18px; }
  .service-icon { width: 62px; height: 70px; }
  .service-copy h3 { font-size: 15px; }
  .service-copy p { font-size: 9.5px; white-space: normal; }
  .service-copy p br { display: none; }

  .reasons { padding-top: 45px; }
  .reason-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .reason-card { height: 235px; }
  .reason-card h3 { font-size: 15px; }
  .reason-card p { font-size: 10px; }

  .site-footer { height: auto; }
  .footer-cta { height: auto; min-height: 210px; grid-template-columns: 1fr 1fr; padding-block: 32px; }
  .footer-message { grid-column: 1 / -1; text-align: center; }
  .footer-cta-button { min-height: 64px; }
  .footer-bottom { height: auto; min-height: 150px; grid-template-columns: 200px 1fr; padding-block: 24px; }
  .footer-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .copyright { height: 48px; }
}

/* Smartphone */
@media (max-width: 680px) {
  .layout-container, .header-inner { width: min(calc(100% - 32px), 560px); }
  .site-header { height: 72px; }
  .site-header.is-scrolled { height: 64px; }
  .brand { width: 215px; flex-basis: 215px; }
  .menu-button { width: 44px; height: 44px; }
  body.menu-open .site-header .header-inner { height: 72px; }
  body.menu-open .site-header.is-scrolled .header-inner { height: 64px; }
  .global-nav {
    inset: 0;
    padding:
      max(92px, calc(env(safe-area-inset-top) + 78px))
      16px
      max(28px, calc(env(safe-area-inset-bottom) + 20px));
  }
  .site-header.is-scrolled .global-nav { inset: 0; }
  .mobile-nav-actions { grid-template-columns: 1fr; }

  .hero {
    height: auto;
    min-height: 850px;
    background-size: auto 640px;
    background-position: 61% top;
    background-color: #edf4fa;
  }
  .hero::before { background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 52%, rgba(255,255,255,.36) 78%, rgba(255,255,255,.06) 100%); }
  .hero-inner { width: calc(100% - 48px); padding-top: 88px; }
  .hero-copy { width: 100%;
	}
  .hero-kicker { max-width: 340px; font-size: 12px; line-height: 1.65; }
  .hero-title-line { white-space: normal; }
  .hero-title-line--first { font-size: clamp(37px, 11.5vw, 52px); line-height: 1.38; }
  .hero-title-line--second { font-size: clamp(41px, 12.5vw, 58px); line-height: 1.36; }
  .hero-description { max-width: 350px; margin-top: 20px; font-size: 13px; line-height: 1.8; }
  .hero-actions { width: 100%; flex-direction: column; gap: 11px; margin-top: 27px; }
  .button--hero { width: 100%; min-height: 56px; font-size: 13px; }
  .stats { bottom: 22px; width: calc(100% - 32px); }
  .stats-panel { height: 286px; border-radius: 22px; }
  .stat { height: 125px; padding: 12px 9px; flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
  .stat img, .stat:nth-child(n) img { width: auto; max-width: 52px; height: 47px; }
  .stat strong { font-size: 22px; }
  .stat strong span { font-size: 12px; }
  .stat p { margin-top: 7px; font-size: 8px; white-space: normal; }

  .section-heading h2 { font-size: 25px; line-height: 1.5; }
  .heading-line { width: 50px; margin-top: 8px; }
  .section-heading p { margin-top: 13px; font-size: 14px; line-height: 1.7; }

  .problems { padding-top: 52px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 38px; }
  .problem-card { height: 226px; padding-inline: 7px; border-radius: 21px; }
  .problem-card p { font-size: 11px; }
  .partner-banner { margin-top: 40px; grid-template-columns: 1fr; border-radius: 22px; }
  .partner-logo { height: 175px; border-right: 0; border-bottom: 1px solid #e0e4eb; }
  .partner-logo img { width: 140px; height: 140px; }
  .partner-copy { padding: 28px 22px; text-align: center; }
  .partner-copy h2 { font-size: 20px; }
  .partner-copy p { margin-top: 13px; font-size: 11px; line-height: 1.8; }
  .partner-image { height: 180px; clip-path: none; }


  .services { padding-top: 48px; }
  .service-grid { grid-template-columns: 1fr; gap: 17px; margin-top: 35px; }
  .service-card { height: 145px; border-radius: 21px; grid-template-columns: 38px 58px 1fr; padding: 15px 28px 15px 16px; gap: 8px; }
  .service-number { font-size: 19px; }
  .service-icon { width: 55px; height: 65px; }
  .service-copy h3 { font-size: 15px; }
  .service-copy p { font-size: 9.5px; line-height: 1.7; }

  .reasons { padding: 47px 0 65px; }
  .reason-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; }
  .reason-card { height: auto; min-height: 176px; display: grid; grid-template-columns: 42% 1fr; border-radius: 21px; }
  .reason-card > img { height: 100%; min-height: 176px; }
  .reason-card > div { display: flex; flex-direction: column; justify-content: center; padding: 25px 12px; }
  .reason-number { top: 13px; left: 14px; font-size: 19px; }
  .reason-card h3 { font-size: 14px; white-space: normal; }
  .reason-card p { font-size: 9.5px; white-space: normal; }
  .reason-card p br { display: none; }

  .footer-cta { grid-template-columns: 1fr; gap: 14px; padding-block: 35px; }
  .footer-message { grid-column: auto; margin-bottom: 5px; }
  .footer-message h2 { font-size: 18px; }
  .footer-message p { margin-top: 8px; font-size: 10px; line-height: 1.7; }
  .footer-cta-button { width: 100%; min-height: 60px; font-size: 14px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 23px; text-align: center; }
  .footer-brand { width: 205px; margin-inline: auto; }
  .footer-nav { flex-wrap: wrap; gap: 16px 22px; }
  .footer-nav a { font-size: 9px; }
  .footer-actions { grid-column: auto; grid-template-columns: 1fr; gap: 12px; width: 100%; }
  .footer-actions .button { min-height: 50px; font-size: 11px; }
  .copyright { padding-inline: 12px; font-size: 9px; text-align: center; }
}

@media (max-width: 420px) {
  .header-inner { width: calc(100% - 28px); }
  .brand { width: 190px; }
  .hero {
    background-size: cover;
    background-image: url(assets/images/main_sp.jpg)
}
  .hero-inner { width: calc(100% - 34px); }
  .hero-kicker { font-size: 12px; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 14px; }
  .cta { height: 80px; font-size: 17px; }
  .stats-panel { width: calc(100% - 0px); padding: 14px 18px; }
  .stat { padding: 15px 8px; gap: 9px; }
  .stat-icon { width: 37px; height: 37px; }
  .stat strong { font-size: 20px; }
  .stat small { font-size: 7px; }
  .section-heading h2 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}


/* WordPress integration ================================================== */
.skip-link {
  position: fixed;
  z-index: 100000;
  top: 8px;
  left: 8px;
  padding: 12px 18px;
  color: #fff;
  background: var(--navy);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.nav-links,
.footer-nav,
.nav-links ul,
.footer-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links li,
.footer-nav li { margin: 0; padding: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.footer-nav { display: flex; align-items: center; justify-content: center; gap: 22px; white-space: nowrap; }
.nav-links li { position: relative; }
.nav-links .sub-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  width: 230px;
  margin: 0;
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -8px);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-links li:hover > .sub-menu,
.nav-links li:focus-within > .sub-menu { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.nav-links .sub-menu a { display: block; padding: 12px 14px; font-size: 12px; }
.custom-logo-link { display: block; }
.custom-logo { width: 100%; height: auto; }

/* Inner pages ------------------------------------------------------------ */
.rz-inner-page .site-header {
  position: relative;
  background: #fff;
  box-shadow: 0 1px 0 rgba(17, 34, 83, .08);
}
.rz-inner-page .site-header.is-scrolled { position: fixed; }
.rz-page-hero {
  padding: 74px 24px 66px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  text-align: center;
}
.rz-page-hero h1 { margin: 0; color: #fff; font-size: clamp(30px, 5vw, 48px); line-height: 1.35; }
.rz-page-hero p { margin: 13px 0 0; color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.8; }
.rz-breadcrumb {
  padding: 13px 0;
  color: #68728a;
  background: #fff;
  border-bottom: 1px solid #e7ebf1;
  font-size: 12px;
  line-height: 1.6;
}
.rz-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.rz-breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #aeb5c2; }
.rz-breadcrumb a { color: var(--blue); }
.rz-content-area { padding: 72px 0 96px; }
.rz-content-narrow { width: min(calc(100% - 48px), 900px); margin-inline: auto; }
.rz-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 48px; align-items: start; }
.rz-content-layout--wide { grid-template-columns: 1fr; }
.entry-content { color: #333; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { height: auto; border-radius: 16px; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--navy); line-height: 1.5; }
.entry-content h2 { margin: 2.4em 0 .9em; padding-bottom: .4em; border-bottom: 2px solid var(--gold); font-size: 28px; }
.entry-content h3 { margin: 2em 0 .8em; font-size: 22px; }
.entry-featured-image { margin-bottom: 38px; }
.entry-featured-image img { width: 100%; height: auto; border-radius: 22px; }
.entry-meta { margin: 12px 0 0; color: rgba(255,255,255,.82); font-size: 13px; }
.rz-post-footer { margin-top: 54px; padding-top: 28px; border-top: 1px solid #e0e5ee; }
.rz-post-navigation .nav-links { justify-content: space-between; white-space: normal; }
.rz-post-navigation a { color: var(--blue); font-weight: 700; }

/* Lists/cards ------------------------------------------------------------ */
.rz-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.rz-post-card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--card-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rz-post-card:hover { transform: translateY(-3px); box-shadow: 0 9px 22px rgba(25, 39, 77, .24); }
.rz-post-card__link { display: block; height: 100%; }
.rz-post-card__image { aspect-ratio: 16 / 9; overflow: hidden; background: #e9eef7; }
.rz-post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.rz-post-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--blue); font-weight: 700; background: linear-gradient(135deg,#edf3fb,#fff); }
.rz-post-card__body { padding: 23px; }
.rz-post-card__title { margin: 0; color: var(--blue); font-size: 19px; line-height: 1.55; }
.rz-post-card__excerpt { margin: 12px 0 0; color: #555; font-size: 13px; line-height: 1.8; }
.rz-post-card__date { display: block; margin-top: 14px; color: #888; font-size: 12px; }
.rz-pagination { margin-top: 48px; text-align: center; }
.rz-pagination .nav-links { justify-content: center; white-space: normal; }
.rz-pagination .page-numbers { min-width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(25,39,77,.12); }
.rz-pagination .current { color: #fff; background: var(--navy); }

/* FAQ -------------------------------------------------------------------- */
.rz-faq-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 34px; padding: 0; list-style: none; }
.rz-faq-categories a { display: inline-flex; min-height: 42px; align-items: center; padding: 0 18px; border-radius: 999px; color: var(--navy); background: #fff; box-shadow: 0 2px 9px rgba(25,39,77,.12); font-size: 13px; font-weight: 700; }
.rz-faq-list { display: grid; gap: 16px; }
.rz-faq-item { overflow: hidden; border-radius: 16px; background: #fff; box-shadow: var(--card-shadow); }
.rz-faq-item summary { padding: 22px 56px 22px 24px; color: var(--navy); font-weight: 700; cursor: pointer; position: relative; list-style: none; }
.rz-faq-item summary::-webkit-details-marker { display: none; }
.rz-faq-item summary::after { content: "+"; position: absolute; top: 50%; right: 24px; transform: translateY(-50%); color: var(--gold); font-size: 25px; }
.rz-faq-item[open] summary::after { content: "−"; }
.rz-faq-answer { padding: 0 24px 24px; color: #444; line-height: 1.9; }
.rz-faq-answer > *:first-child { margin-top: 0; }
.rz-faq-answer > *:last-child { margin-bottom: 0; }

/* Sidebar/widgets -------------------------------------------------------- */
.widget-area { display: grid; gap: 24px; }
.widget { padding: 24px; border-radius: 18px; background: #fff; box-shadow: var(--card-shadow); }
.widget-title { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--gold); color: var(--navy); font-size: 18px; }
.widget ul { margin: 0; padding: 0; list-style: none; }
.widget li + li { margin-top: 10px; }
.widget a { color: var(--blue); }

/* Forms/comments --------------------------------------------------------- */
.comments-area { margin-top: 60px; padding-top: 36px; border-top: 1px solid #dfe5ee; }
.comment-list { padding-left: 1.2em; }
.comment-form input:not([type="submit"]),
.comment-form textarea,
.search-form input[type="search"] { width: 100%; padding: 13px 14px; border: 1px solid #ccd5e2; border-radius: 8px; background: #fff; }
.comment-form .submit,
.search-submit { min-height: 46px; padding: 0 22px; border: 0; border-radius: 8px; color: #fff; background: var(--navy); cursor: pointer; }



/* WordPress core --------------------------------------------------------- */
.alignwide { width: min(1100px, calc(100vw - 48px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: #777; font-size: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 5px; left: 5px; width: auto; height: auto; padding: 15px 23px 14px; clip: auto !important; color: #21759b; background: #f1f1f1; font-size: 14px; font-weight: 700; }

/* Optional section visibility controlled by theme settings */
.rz-section-hidden { display: none !important; }

@media (max-width: 1024px) {
  .nav-links { display: block; }
  .nav-links .sub-menu { position: static; width: auto; padding: 0 0 0 18px; visibility: visible; opacity: 1; transform: none; box-shadow: none; }
  .nav-links .sub-menu a { font-size: 13px; }
  .rz-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rz-content-layout { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
  body.admin-bar .site-header.is-scrolled { top: 46px; }
  body.admin-bar.menu-open .site-header { top: 0; }
}
@media (min-width: 783px) {
  body.admin-bar .site-header.is-scrolled { top: 32px; }
  body.admin-bar.menu-open .site-header { top: 0; }
}
@media (max-width: 680px) {
  .footer-nav { white-space: normal; }
  .rz-content-area { padding: 52px 0 70px; }
  .rz-content-narrow { width: calc(100% - 32px); }
  .rz-post-grid { grid-template-columns: 1fr; }
  .rz-page-hero { padding: 54px 16px 48px; }
  .entry-content { font-size: 15px; }
  .entry-content h2 { font-size: 23px; }
  .rz-breadcrumb { padding-inline: 16px; }
}

/* Mobile hero kicker: keep the service description on one line */
@media (max-width: 680px) {
  .hero-kicker {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(8px, 2.7vw, 11px);
    letter-spacing: -.04em;
  }
}

/* PC service/reason card readability refinement (requested scope only) */
@media (min-width: 1181px) {
  .service-card {
    grid-template-columns: 35px 55px minmax(0, 1fr);
    gap: 6px;
    padding: 11px 19px 11px 14px;
  }
  .service-icon {
    width: 55px;
    transform: translateX(-2px);
  }
  .service-copy h3 {
    font-size: 16.5px;
  }
  .service-copy p {
    font-size: 11.2px;
    line-height: 1.55;
  }
  .reason-card h3 {
    font-size: 16.5px;
  }
  .reason-card p {
    font-size: 11.2px;
    line-height: 1.58;
  }
}

@media (min-width: 1025px) and (max-width: 1180px) {
  .service-card {
    grid-template-columns: 32px 48px minmax(0, 1fr);
    gap: 5px;
    padding: 11px 16px 11px 12px;
  }
  .service-icon {
    width: 48px;
    transform: translateX(-2px);
  }
  .service-copy h3 {
    font-size: 14.5px;
  }
  .service-copy p {
    font-size: 9.7px;
    line-height: 1.55;
  }
  .reason-card h3 {
    font-size: 14.5px;
  }
  .reason-card p {
    font-size: 9.7px;
    line-height: 1.58;
  }
}
