:root {
  --ink: #292923;
  --muted: #686861;
  --line: #deddd7;
  --paper: #fff;
  --soft: #f4f4f0;
  --hero: #f8f5e7;
  --accent: #e5bd2d;
  --accent-dark: #6e5700;
  --sidebar: 292px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; }

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

button, summary { font: inherit; }

h1, h2, h3 {
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: normal;
  text-wrap: balance;
}

p, li, summary, td, th {
  line-break: strict;
  word-break: auto-phrase;
  overflow-wrap: normal;
  text-wrap: pretty;
}

.title-phrase {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 8px 14px;
  background: #fff;
  color: #111;
  border: 2px solid #111;
}

.skip-link:focus { top: 12px; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: var(--sidebar);
  overflow-y: auto;
  border-right: 1px solid #e7e3d6;
  background: #fff;
  color: var(--ink);
}

.brand-panel {
  display: flex;
  height: 200px;
  align-items: center;
  justify-content: center;
  padding: 44px 34px;
  background: var(--accent);
}

.brand-panel img {
  width: 218px;
  height: auto;
  max-height: 88px;
  object-fit: contain;
  filter: brightness(0);
}

.global-nav { padding: 26px 26px 12px; }

.global-nav a {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
}

.global-nav a span:last-child {
  color: var(--accent-dark);
  font-family: Inter, sans-serif;
}

.global-nav a:hover,
.global-nav a:focus-visible { color: var(--accent-dark); }

.sidebar-meta { padding: 24px 26px 40px; }

.sidebar-meta p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.sidebar-meta .meta-label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.line-button {
  display: block;
  padding: 13px 12px;
  border: 1px solid var(--accent-dark);
  color: var(--ink);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.line-button:hover,
.line-button:focus-visible { border-color: var(--ink); color: var(--accent-dark); }

.social-row { display: flex; gap: 18px; margin-top: 22px; }
.social-row a { color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 4px; }
.social-row a:hover, .social-row a:focus-visible { color: var(--accent-dark); }

.site-main { margin-left: var(--sidebar); overflow: hidden; }

.hero {
  position: relative;
  display: grid;
  min-height: 760px;
  grid-template-columns: minmax(520px, .94fr) 1.06fr;
  background: var(--hero);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 84px 3.6vw 104px;
  color: var(--ink);
}

.hero-copy .hero-number { color: var(--accent-dark); }

.hero-number {
  margin: 0 0 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 64px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.22;
  text-wrap: balance;
}

.hero h1 > span { display: block; }

.hero h1 .hero-title-small {
  margin-bottom: 6px;
  font-size: clamp(30px, 2.8vw, 43px);
  letter-spacing: -.045em;
  white-space: nowrap;
}

.hero-lead {
  max-width: 600px;
  margin: 36px 0 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  width: min(100%, 390px);
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding: 18px 22px;
  background: var(--accent);
  border: 2px solid var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  background: #fff;
  border-color: var(--accent-dark);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  background: #fff;
}

.hero-visual::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(112deg, rgba(255,255,255,.05), rgba(255,255,255,.88) 82%);
  content: "";
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.concept { display: grid; min-height: 720px; grid-template-columns: 1fr 1fr; }
.concept-photo { min-height: 720px; overflow: hidden; }
.concept-photo img { width: 100%; height: 100%; object-fit: cover; }
.concept-copy { display: flex; flex-direction: column; justify-content: center; padding: 72px 4vw; background: #f2f2ed; color: var(--ink); }
.concept-copy h2 { margin: 0 0 36px; font-size: clamp(30px, 3vw, 48px); line-height: 1.45; letter-spacing: -.03em; }
.concept-copy h2 .title-phrase { margin: 0; color: inherit; font: inherit; letter-spacing: inherit; }
.concept-copy > p { margin: 0 0 18px; color: var(--muted); }
.text-link { display: inline-flex; align-self: flex-start; gap: 60px; margin-top: 18px; font-weight: 600; }
.text-link:hover, .text-link:focus-visible { color: var(--accent-dark); }

.principles, .cases, .faq { padding: 108px 4vw 120px; }
.section-heading { display: grid; grid-template-columns: max-content minmax(0, 420px); align-items: end; justify-content: start; gap: clamp(24px, 3vw, 48px); margin-bottom: 58px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 56px); line-height: 1.15; letter-spacing: -.04em; text-wrap: balance; }
.section-heading > p:last-child { justify-self: start; max-width: 420px; margin: 0; color: var(--muted); }

.principle-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.principle-list article { padding: 34px 20px 42px; border-right: 1px solid var(--line); }
.principle-list article:last-child { border: 0; }
.principle-list h3 { margin: 0 0 24px; font-size: 19px; line-height: 1.65; }
.principle-list span { color: var(--muted); font-size: 15px; }

.services { padding: 108px 4vw 124px; background: #f3f2ec; color: var(--ink); }
.section-heading--dark > p:last-child { color: var(--muted); }

.service-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; outline: 2px solid transparent; outline-offset: -2px; background: #fff; }
.service-card:not(:last-child) { margin-bottom: 30px; }
.service-card--reverse { grid-template-columns: 1fr 1fr; }
.service-card--reverse .service-image { order: 2; }
.service-card:hover, .service-card:focus-visible { outline-color: var(--accent); }
.service-image { overflow: hidden; }
.service-image img { width: 100%; height: 100%; object-fit: cover; }
.service-image,
.service-copy { min-width: 0; }
.service-copy { display: flex; flex-direction: column; justify-content: center; padding: 50px 3vw; }
.service-copy > p { margin: 0 0 20px; color: var(--muted); font-size: clamp(17px, 1.35vw, 19px); font-weight: 700; line-height: 1.6; }
.service-copy h3 { margin: 0; font-size: clamp(27px, 3vw, 43px); line-height: 1.4; }
.service-copy span { display: block; margin-top: 26px; color: var(--muted); }
.service-copy b { display: block; align-self: flex-start; margin-top: 34px; color: var(--ink); font-size: 14px; }
.service-card:hover .service-copy b, .service-card:focus-visible .service-copy b { color: var(--accent-dark); }

.case-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.case-list a { position: relative; min-height: 320px; padding: 30px 24px; background: #fff; }
.case-no { color: var(--accent-dark); font-size: 14px; font-weight: 700; line-height: 1.6; }
.case-list strong { display: block; margin-top: 22px; font-size: 20px; line-height: 1.65; }
.case-list small { display: block; margin-top: 18px; color: var(--muted); }
.case-list b { position: absolute; right: 28px; bottom: 24px; color: var(--accent-dark); }
.case-list a:hover, .case-list a:focus-visible { background: var(--soft); }
.wide-link { display: flex; justify-content: space-between; margin-top: 32px; padding: 18px 0; font-weight: 700; }
.wide-link:hover, .wide-link:focus-visible { color: var(--accent-dark); }

.faq { background: var(--soft); }
.section-heading--compact { grid-template-columns: 1fr; }
.faq-list details { margin-bottom: 8px; background: #fff; }
.faq-list summary { display: grid; grid-template-columns: 50px 1fr 26px; align-items: center; min-height: 88px; padding: 0 20px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; justify-self: end; color: var(--accent-dark); font: 600 24px/1 Inter, sans-serif; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary span, .faq-list details div > span { color: var(--accent-dark); font: 800 18px/1 Inter, sans-serif; }
.faq-list details div { display: grid; grid-template-columns: 50px 1fr; padding: 0 20px 30px; }
.faq-list details p { max-width: 860px; margin: 0; color: var(--muted); }

.closing-cta { position: relative; padding: 128px 6vw 136px; overflow: hidden; background: var(--accent); color: var(--ink); }
.closing-cta h2 { max-width: 1080px; margin: 0; font-size: clamp(38px, 5vw, 70px); line-height: 1.35; letter-spacing: -.045em; }
.closing-text { margin: 28px 0 0; }
.closing-cta a { display: flex; width: min(100%, 420px); justify-content: space-between; margin-top: 44px; padding: 19px 22px; background: #fff; border: 2px solid var(--ink); color: var(--ink); font-weight: 700; }
.closing-cta a:hover, .closing-cta a:focus-visible { border-color: var(--accent-dark); color: var(--accent-dark); }

.footer { display: grid; grid-template-columns: 1.2fr 2fr; gap: 36px; padding: 66px 5vw 28px; background: #efeee8; color: var(--ink); }
.footer img { width: 210px; height: auto; object-fit: contain; }
.footer > div p { color: var(--muted); font-size: 12px; }
.footer nav { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 14px 30px; }
.footer nav a { font-size: 12px; }
.footer nav a:hover, .footer nav a:focus-visible { color: var(--accent-dark); }
.copyright { grid-column: 1 / -1; margin: 44px 0 0; padding-top: 20px; color: var(--muted); font: 600 10px/1 Inter, sans-serif; letter-spacing: .08em; }

.mobile-menu { display: none; }

@media (max-width: 1180px) {
  :root { --sidebar: 252px; }
  .brand-panel { height: 210px; padding: 36px 28px; }
  .brand-panel img { width: 190px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-copy { padding-inline: 3vw; }
}

@media (max-width: 980px) {
  :root { --sidebar: 0px; }
  .site-main { margin-left: 0; }
  .sidebar {
    width: min(88vw, 340px);
    transform: translateX(-105%);
    transition: transform .25s ease;
  }
  body.menu-open .sidebar { transform: translateX(0); }
  .brand-panel { height: 190px; }
  .mobile-menu {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 40;
    display: flex;
    width: 54px;
    height: 54px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
    background: var(--accent);
    border: 0;
  }
  .mobile-menu > span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  body.menu-open .mobile-menu > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .mobile-menu > span:nth-child(2) { opacity: 0; }
  body.menu-open .mobile-menu > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { min-height: 630px; padding: 96px 24px 80px; }
  .hero-visual { min-height: 440px; }
  .hero h1 { font-size: clamp(34px, 9vw, 52px); }
  .hero h1 .hero-title-small { font-size: 32px; }
  .concept { grid-template-columns: 1fr; }
  .concept-photo { min-height: 440px; }
  .concept-copy { padding: 66px 24px 74px; }
  .principles, .cases, .faq, .services { padding: 78px 24px 88px; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .section-heading > p:last-child { justify-self: start; }
  .principle-list, .case-list { grid-template-columns: 1fr; }
  .principle-list article, .case-list a { border-right: 0; }
  .service-card, .service-card--reverse { grid-template-columns: 1fr; }
  .service-card--reverse .service-image { order: 0; }
  .service-image { min-height: 330px; }
  .service-copy { padding: 42px 6px 52px; }
  .footer { grid-template-columns: 1fr; padding: 58px 24px 24px; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .hero-copy { min-height: 590px; }
  .hero h1 { font-size: clamp(29px, 8.2vw, 36px); }
  .hero h1 .hero-title-small { font-size: clamp(27px, 7.6vw, 32px); }
  .hero-lead { overflow-wrap: anywhere; }
  .hero-visual { min-height: 360px; }
  .concept-photo { min-height: 340px; }
  .section-heading { display: block; }
  .section-heading > p:last-child { margin-top: 18px; }
  .service-image { min-height: 250px; }
  .service-copy h3 { font-size: 28px; }
  .faq-list summary { grid-template-columns: 38px 1fr 20px; font-size: 15px; line-height: 1.6; padding: 16px 0; }
  .faq-list details div { grid-template-columns: 38px 1fr; }
  .closing-cta { padding: 92px 24px 108px; }
  .closing-cta h2 { font-size: 36px; }
  .footer nav { display: grid; grid-template-columns: 1fr 1fr; }
}

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