/* =========================================================
   1. CSS Variables
   ========================================================= */
:root {
  --blue: #0076b8;
  --navy: #06334c;
  --pale: #eef9fc;
  --line: #06c755;
  --text: #27343a;
  --border: #dce9ee;
  --font-ja: "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
  --font-en: "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
}

/* =========================================================
   2. Reset / Base
   ========================================================= */
* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; }
body { margin: 0; padding-top: 76px; overflow-x: hidden; color: var(--text); font-family: var(--font-ja); font-size: 16px; line-height: 1.9; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0 0 15px; }
h2, h3 { color: var(--navy); }
h3 { margin: 8px 0 12px; font-size: 18px; line-height: 1.6; }

/* =========================================================
   3. Layout
   ========================================================= */
.inner { width: min(1120px, calc(100% - 48px)); margin: auto; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.section { padding: 105px 0; }
.section:nth-of-type(even) { background: #f8fbfc; }

/* =========================================================
   4. Header / Navigation
   ========================================================= */
.site-header { position: fixed; top: 0; left: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 76px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); background: #fff; border-bottom: 1px solid #e7eef1; }
.brand { color: var(--navy); font-family: var(--font-en); font-size: 21px; font-weight: 700; line-height: 1; letter-spacing: .04em; white-space: nowrap; }
.brand span { color: var(--blue); }
.brand small { display: block; margin-top: 3px; font-family: var(--font-en); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: .16em; text-align: right; }
.global-nav { display: flex; align-items: center; gap: 20px; font-family: var(--font-en); font-size: 16px; font-weight: 600; line-height: 1; }
.nav-line { padding: 12px 17px; color: #fff; background: var(--line); border-radius: 4px; }
.nav-toggle { display: none; padding: 8px; background: transparent; border: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--navy); }
.nav-toggle b { color: var(--navy); font-family: var(--font-en); font-size: 16px; font-weight: 600; line-height: 1; }
.menu-open { overflow: hidden; }

/* =========================================================
   5. First View
   ========================================================= */
.hero { position: relative; min-height: 570px; height: min(760px, calc(100svh - 76px)); overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 35, 57, .8), rgba(2, 35, 57, .42) 53%, rgba(2, 35, 57, .18)), url("../img/generated/a_bright_airy_modern_japanese_style_living_room.png") center / cover; }
.hero-content { position: relative; padding-top: clamp(90px, 13vh, 155px); }
.hero h1 { margin: 0 0 24px; font-size: clamp(32px, 4.2vw, 60px); font-weight: 500; line-height: 1.35; letter-spacing: .03em; }
.hero h1 strong { color: #8ee1f5; }
.hero-lead { max-width: 610px; margin-bottom: 31px; color: #f3fbff; font-size: 16px; line-height: 2; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 22px; font-size: 16px; font-weight: 700; line-height: 1.5; transition: .2s; }
.button i { font-size: 20px; font-style: normal; }
.button-line { color: #fff; background: var(--line); box-shadow: 0 8px 24px #0003; }
.button-line span { padding: 3px 5px; color: var(--line); background: #fff; border-radius: 3px; font-family: var(--font-en); font-size: 16px; font-weight: 700; line-height: 1; }

/* =========================================================
   6. Common Section Heading
   ========================================================= */
.eyebrow { margin: 0 0 11px; color: var(--blue); font-family: var(--font-en); font-size: 36px; font-weight: 600; line-height: 1; letter-spacing: .08em; }
.eyebrow.light { color: #8ee1f5; }
.section h2, .contents h2 { margin: 0 0 24px; color: var(--navy); font-size: clamp(34px, 3.6vw, 46px); line-height: 1.4; }
.section-heading { width: 100%; max-width: none; margin-bottom: 48px; }
.section-heading.center { margin-right: auto; margin-left: auto; }

/* =========================================================
   7. Contents Menu
   ========================================================= */
.contents { padding: 40px 0; background: var(--pale); }
.contents-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.contents-grid a { padding: 14px 17px; background: #fff; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 16px; line-height: 1.6; }
.contents-grid b { margin-right: 9px; color: var(--blue); font-family: var(--font-en); font-size: 16px; font-weight: 600; line-height: 1; }

/* =========================================================
   8. Problem / PBS
   ========================================================= */
.problem { background: linear-gradient(#fff, #f3fbfd); }
.problem-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 28px; margin: 30px 0; padding: 0; text-align: left; list-style: none; }
.problem-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: start; padding: 9px 0; border-bottom: 1px solid #d7e8ee; font-size: 16px; line-height: 1.9; }
.problem-list li::before { color: var(--blue); content: "◆"; }
.down-arrow { margin: 24px; color: var(--blue); font-size: 32px; line-height: 1; }
.solution { font-size: 19px; }

/* =========================================================
   9. Service
   ========================================================= */
.service-grid, .reason-grid, .case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.image-card { background: #fff; box-shadow: 0 8px 25px #092c3910; }
.image-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.image-card div { padding: 20px; }
.image-card span, .case-item > b, .reason-item > b { color: var(--blue); font-family: var(--font-en); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: .1em; }
.image-card p, .reason-item p, .case-item p { margin: 0; font-size: 16px; line-height: 1.85; }

/* =========================================================
   10. Reason
   ========================================================= */
.reason { color: #d9eff5; background: var(--navy) !important; }
.reason h2, .reason h3 { color: #fff; }
.reason .eyebrow, .reason-item > b { color: #75d8ed; }
.reason-grid { border-top: 1px solid #ffffff44; }
.reason-item { padding: 0 0 24px; border-right: 1px solid #ffffff44; overflow: hidden; }
.reason-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.reason-item > b, .reason-item > h3, .reason-item > p { display: block; margin-right: 22px; margin-left: 22px; }
.reason-item > b { margin-top: 23px; }
.reason-item:last-child { border-right: 0; }

/* =========================================================
   11. Case
   ========================================================= */
.case-item { padding: 0 0 28px; overflow: hidden; background: #fff; border-top: 3px solid #7dd6e7; }
.case-item img { width: 100%; aspect-ratio: 4 / 3; margin-bottom: 24px; object-fit: cover; }
.case-item > b, .case-item > h3, .case-item > p { display: block; margin-right: 28px; margin-left: 28px; }

/* =========================================================
   12. Profile
   ========================================================= */
.profile-wrap { display: grid; grid-template-columns: 39% 1fr; align-items: start; gap: 7%; }
.profile-photo { position: relative; }
.profile-photo img { aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; }
.profile-copy p { font-size: 16px; line-height: 2; }
.profile-name { font-size: 17px !important; }
.profile-name strong { color: var(--navy); font-size: 24px; }

/* =========================================================
   13. News
   ========================================================= */
.instagram-feed { width: 100%; margin-top: 32px; }
.instagram-follow { margin-top: 20px; color: #fff; background: var(--navy); }

/* =========================================================
   14. Company
   ========================================================= */
.company-table { margin: 0; border-top: 1px solid var(--border); font-size: 16px; }
.company-table div { display: grid; grid-template-columns: 230px 1fr; border-bottom: 1px solid var(--border); }
.company-table dt { padding: 18px 22px; background: #f3f8fa; font-weight: 600; }
.company-table dd { margin: 0; padding: 18px 25px; }
.company-table a, .contact-tel a { color: var(--blue); font-weight: 700; }

/* =========================================================
   15. Access / Contact
   ========================================================= */
.contact { background: #f3fafc !important; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; }
.contact-info h3, .flow h3 { font-size: 23px; }
.line-box { display: flex; align-items: center; gap: 16px; margin: 25px 0; padding: 18px; }
.line-box .button { padding: 11px 13px; font-size: 16px; }
.contact-tel small { display: block; color: #69777b; font-size: 16px; }
.map-wrap { background: transparent; }
.map-wrap iframe { width: 100%; height: 350px; border: 0; }
.map-wrap p { margin: 0; padding: 10px 15px; font-size: 16px; }

/* =========================================================
   16. Flow
   ========================================================= */
.flow { margin: 65px 0 35px; padding: 28px; background: #fff; }
.flow h3 { text-align: center; }
.flow ol { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: flow; }
.flow li { counter-increment: flow; font-size: 16px; line-height: 1.6; text-align: center; }
.flow li::before { display: block; margin-bottom: 4px; color: var(--blue); content: "0" counter(flow); font-family: var(--font-en); font-size: 20px; font-weight: 600; line-height: 1; }

/* =========================================================
   17. Fixed Contact / Page Top
   ========================================================= */
.fixed-contact { position: fixed; top: 45%; right: 0; z-index: 10; opacity: 0; transform: translateX(100%); transition: .25s; }
.fixed-contact.is-visible { opacity: 1; transform: none; }
.fixed-contact a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 142px; padding: 12px 9px; color: #fff; font-size: 10px; line-height: 1.45; text-align: center; }
.fixed-contact a:nth-child(1) { background: var(--line); }
.fixed-contact a:nth-child(2) { background: #c445a0; }
.fixed-contact a:nth-child(3) { background: var(--blue); }
.fixed-contact-title { display: flex; align-items: center; gap: 5px; }
.fixed-contact svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.fixed-contact b { font-family: var(--font-en); font-size: 16px; font-weight: 600; line-height: 1; letter-spacing: .08em; }
.fixed-contact-copy { margin-top: 8px; }
.page-top { position: fixed; right: 20px; bottom: 20px; z-index: 15; display: grid; width: 46px; height: 46px; color: #fff; background: var(--navy); border-radius: 50%; opacity: 0; font-size: 16px; pointer-events: none; place-items: center; transition: .2s; }
.page-top.is-show { opacity: 1; pointer-events: auto; }

/* =========================================================
   18. Footer
   ========================================================= */
.site-footer { padding: 55px 0 18px; color: #d4e2e7; background: #052d45; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.footer-brand { display: inline-block; margin-bottom: 18px; color: #fff; }
.footer-brand span, .site-footer a { color: #fff; }
.footer-brand span { color: #8ee1f5; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.copyright { width: min(1120px, calc(100% - 48px)); margin: 40px auto 0; padding-top: 16px; border-top: 1px solid #ffffff33; font-family: var(--font-en); font-size: 16px; font-weight: 400; line-height: 1.4; letter-spacing: .08em; }

/* =========================================================
   19. Scroll Fade
   Protected KSH standard. Keep this block intact.
   ========================================================= */
.js-fadein { opacity: 0 !important; transition-property: opacity, transform !important; transition-duration: 1.05s !important; transition-timing-function: cubic-bezier(.22, 1, .36, 1) !important; will-change: opacity, transform; }
.u-fadein, .u-fadeinUp { transform: translateY(64px) !important; }
.u-fadeinLeft { transform: translateX(-96px) !important; }
.u-fadeinRight { transform: translateX(96px) !important; }
.js-fadein.is-active { opacity: 1 !important; transform: translate(0, 0) !important; }
.fade-delay-1 { transition-delay: .18s !important; }
.fade-delay-2 { transition-delay: .36s !important; }
.fade-delay-3 { transition-delay: .54s !important; }
.fade-delay-4 { transition-delay: .72s !important; }
.fade-delay-5 { transition-delay: .90s !important; }

/* =========================================================
   20. Responsive
   ========================================================= */
@media (max-width: 760px) {
  .inner { width: calc(100% - 32px); }
  .site-header { height: 63px; padding: 0 16px; }
  body { padding-top: 63px; }
  .brand { font-size: 18px; }
  .brand small { font-size: 16px; }
  .global-nav { position: absolute; top: 63px; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; width: 100%; padding: 18px; background: #fff; box-shadow: 0 8px 15px #0002; }
  .global-nav.is-open { display: flex; }
  .global-nav a { padding: 12px; }
  .nav-toggle { display: block; }
  .hero { min-height: 0; height: 650px; }
  .hero-bg { background: linear-gradient(90deg, rgba(2, 35, 57, .83), rgba(2, 35, 57, .35)), url("../img/generated/a_bright_airy_modern_japanese_style_living_room.png") 59% center / cover; }
  .hero-content { padding-top: 75px; }
  .hero h1 { font-size: 28px; }
  .hero-lead { font-size: 16px; line-height: 1.9; }
  .eyebrow { font-size: 28px; }
  .section h2, .contents h2 { font-size: 34px; }
  .contents { padding: 28px 0; }
  .contents-grid { grid-template-columns: repeat(2, 1fr); }
  .contents-grid a { padding: 12px; font-size: 14px; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 30px; }
  .problem-list { grid-template-columns: 1fr; gap: 0; margin: 23px 0; }
  .service-grid, .reason-grid, .case-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid { gap: 16px; }
  .reason-grid { gap: 0; }
  .reason-item { padding: 0 0 23px; border-right: 0; border-bottom: 1px solid #ffffff44; }
  .reason-item > b, .reason-item > h3, .reason-item > p { margin-right: 5px; margin-left: 5px; }
  .reason-item > b { margin-top: 18px; }
  .case-grid { gap: 12px; }
  .profile-wrap { grid-template-columns: 1fr; gap: 25px; }
  .profile-photo { position: static; aspect-ratio: 3 / 4; }
  .profile-photo img { width: 100%; height: 100%; aspect-ratio: auto; }
  .company-table div { grid-template-columns: 1fr; }
  .company-table dt { padding: 10px 14px; }
  .company-table dd { padding: 12px 14px; }
  .line-box { gap: 10px; padding: 12px; }
  .map-wrap iframe { height: 280px; }
  .flow { margin: 40px 0 25px; padding: 22px 15px; }
  .flow ol { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .fixed-contact { top: auto; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(3, 1fr); transform: translateY(100%); }
  .fixed-contact.is-visible { transform: none; }
  .fixed-contact a { gap: 3px; width: auto; min-height: 68px; padding: 6px 4px; font-size: 10px; }
  .fixed-contact-title { gap: 3px; }
  .fixed-contact svg { width: 18px; height: 18px; }
  .fixed-contact b { font-size: 12px; letter-spacing: .03em; }
  .fixed-contact-copy { margin-top: 1px; }
  .page-top { right: 13px; bottom: 70px; width: 40px; height: 40px; }
  .site-footer { padding-bottom: 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer nav { grid-template-columns: 1fr; }
  .u-fadeinLeft, .u-fadeinRight { transform: translateY(56px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .js-fadein { opacity: 0 !important; transform: none !important; transition: opacity .35s ease !important; }
  .js-fadein.is-active { opacity: 1 !important; transform: none !important; }
}

/* PROFILE heading size override */
#profile .section-heading .eyebrow,
#profile .eyebrow { font-size: 36px; }

@media (max-width: 760px) {
  #profile .section-heading .eyebrow,
  #profile .eyebrow { font-size: 28px; }
}
