@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root {
  --ink: #252b2e;
  --deep: #182226;
  --muted: #607078;
  --line: #d9e2e5;
  --fog: #eff5f7;
  --pale: #f8fbfc;
  --blue: #47778a;
  --blue-deep: #24566a;
  --white: #ffffff;
  --cedar: #a77446;
  --display: "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --shadow: 0 16px 45px rgba(26, 42, 48, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--display); font-size: 16px; line-height: 1.85; letter-spacing: 0; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button, input, textarea, select { font: inherit; }

.demo-ribbon { background: var(--deep); color: #dce9ed; font-size: 11px; line-height: 1.55; padding: 7px 20px; text-align: center; }
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(217,226,229,.85); position: sticky; top: 0; z-index: 30; }
.header-inner { align-items: center; display: flex; height: 82px; justify-content: space-between; margin: 0 auto; max-width: 1240px; padding: 0 32px; }
.brand { align-items: center; display: inline-flex; gap: 12px; line-height: 1.2; }
.brand-mark { align-items: center; background: var(--deep); color: white; display: grid; font-family: var(--mono); font-size: 14px; height: 35px; letter-spacing: .08em; place-items: center; width: 35px; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .08em; }
.brand-sub { color: var(--muted); display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; margin-top: 4px; }
.primary-nav { align-items: center; display: flex; gap: 25px; }
.primary-nav a { color: #36434a; font-size: 13px; font-weight: 600; position: relative; }
.primary-nav a::after { background: var(--blue); bottom: -8px; content: ""; height: 2px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .2s; width: 100%; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { background: var(--blue-deep); color: white !important; padding: 11px 16px; }
.header-cta::after { display: none; }
.nav-toggle { background: var(--deep); border: 0; color: white; cursor: pointer; display: none; height: 44px; place-items: center; width: 44px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { background: currentColor; content: ""; display: block; height: 1px; transition: .2s; width: 19px; }
.nav-toggle span { margin: 5px 0; }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.hero { background: var(--deep); color: white; min-height: 650px; overflow: hidden; position: relative; }
.hero::after { background: linear-gradient(90deg, rgba(17,29,33,.84) 0%, rgba(17,29,33,.56) 40%, rgba(17,29,33,.04) 77%); content: ""; inset: 0; position: absolute; }
.hero img { height: 100%; inset: 0; object-fit: cover; position: absolute; }
.hero-content { margin: 0 auto; max-width: 1240px; padding: 145px 32px 90px; position: relative; z-index: 1; }
.eyebrow { align-items: center; color: #c4dbe4; display: flex; font-family: var(--mono); font-size: 11px; gap: 10px; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { background: currentColor; content: ""; height: 1px; width: 28px; }
h1 { font-size: clamp(37px, 5vw, 65px); font-weight: 600; letter-spacing: .05em; line-height: 1.32; margin: 20px 0 22px; max-width: 780px; }
.hero p { color: #e8f0f2; font-size: 16px; margin: 0; max-width: 530px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 35px; }
.button { align-items: center; background: var(--blue-deep); color: white; display: inline-flex; font-size: 14px; font-weight: 600; gap: 15px; justify-content: center; min-height: 54px; padding: 12px 20px; transition: background .2s, transform .2s; }
.button::after { content: "→"; font-family: var(--mono); font-size: 17px; line-height: 1; }
.button:hover { background: var(--blue); transform: translateY(-2px); }
.button-outline { background: transparent; border: 1px solid rgba(255,255,255,.72); }
.button-outline:hover { background: rgba(255,255,255,.12); }
.hero-meta { bottom: 35px; color: #c4dbe4; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; position: absolute; right: 32px; z-index: 1; }

.section { padding: 112px 32px; }
.section-tight { padding: 82px 32px; }
.section-fog { background: var(--fog); }
.container { margin: 0 auto; max-width: 1180px; }
.section-heading { align-items: end; display: flex; gap: 25px; justify-content: space-between; margin-bottom: 46px; }
.section-kicker { color: var(--blue); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; margin: 0 0 8px; text-transform: uppercase; }
h2 { color: var(--deep); font-size: clamp(28px, 3vw, 42px); font-weight: 600; letter-spacing: .04em; line-height: 1.42; margin: 0; }
h3 { font-size: 20px; letter-spacing: .04em; line-height: 1.55; margin: 0; }
.section-lead { color: var(--muted); font-size: 15px; line-height: 2; margin: 17px 0 0; max-width: 670px; }
.text-link { border-bottom: 1px solid #9fb3bb; color: var(--blue-deep); font-family: var(--mono); font-size: 12px; letter-spacing: .05em; padding-bottom: 5px; white-space: nowrap; }
.text-link::after { content: "  →"; }

.intro-grid { display: grid; gap: 70px; grid-template-columns: .82fr 1.18fr; }
.intro-label { border-left: 2px solid var(--blue); color: var(--blue-deep); font-family: var(--mono); font-size: 13px; letter-spacing: .1em; padding-left: 16px; }
.intro-copy { color: var(--deep); font-size: clamp(22px, 2.3vw, 31px); font-weight: 500; letter-spacing: .05em; line-height: 1.75; margin: 0; }
.intro-body { color: var(--muted); margin: 22px 0 0; }

.service-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.service-card { background: white; border-right: 1px solid var(--line); min-height: 520px; overflow: hidden; padding-bottom: 31px; position: relative; }
.service-card:first-child { border-radius: 3px 0 0 3px; }
.service-card:last-child { border-radius: 0 3px 3px 0; border-right: 0; }
.service-card .card-image { aspect-ratio: 1.3; overflow: hidden; }
.service-card .card-image img { height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover img { transform: scale(1.045); }
.service-card-body { padding: 26px 28px 0; }
.card-no { color: var(--blue); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; }
.service-card h3 { margin-top: 11px; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 13px 0 0; }
.card-link { bottom: 27px; color: var(--blue-deep); font-family: var(--mono); font-size: 12px; left: 28px; position: absolute; }
.card-link::after { content: " →"; }

.works-feature { display: grid; gap: 43px; grid-template-columns: 1.12fr .88fr; }
.works-feature-image { min-height: 520px; overflow: hidden; }
.works-feature-image img { height: 100%; object-fit: cover; }
.works-feature-content { align-self: center; }
.case-tag { border: 1px solid #9fb7c1; color: var(--blue-deep); display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; padding: 5px 8px; }
.case-title { font-size: clamp(27px, 3vw, 38px); font-weight: 500; letter-spacing: .04em; line-height: 1.5; margin: 21px 0 18px; }
.case-data { border-top: 1px solid var(--line); margin: 27px 0; }
.case-data div { border-bottom: 1px solid var(--line); display: grid; font-size: 13px; gap: 18px; grid-template-columns: 92px 1fr; padding: 12px 0; }
.case-data dt { color: var(--muted); }
.case-data dd { margin: 0; }
.case-copy { color: var(--muted); font-size: 14px; }

.category-grid { display: grid; gap: 1px; grid-template-columns: repeat(3,1fr); }
.category { background: var(--white); border: 1px solid var(--line); min-height: 208px; padding: 30px; transition: background .2s, color .2s; }
.category:hover { background: var(--deep); color: white; }
.category:hover h3, .category:hover p, .category:hover .category-no { color: inherit; }
.category-no { color: var(--blue); font-family: var(--mono); font-size: 11px; }
.category h3 { margin: 20px 0 10px; }
.category p { color: var(--muted); font-size: 13px; line-height: 1.75; margin: 0; }

.reason-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.reason { border-left: 1px solid var(--line); padding: 0 31px; }
.reason:first-child { border-left: 0; padding-left: 0; }
.reason:last-child { padding-right: 0; }
.reason-number { color: var(--blue); font-family: var(--mono); font-size: 13px; }
.reason h3 { margin: 16px 0 14px; }
.reason p { color: var(--muted); font-size: 14px; margin: 0; }

.flow { display: grid; grid-template-columns: repeat(4,1fr); }
.flow-step { border-left: 1px solid var(--line); min-height: 210px; padding: 0 25px; }
.flow-step:first-child { border-left: 0; padding-left: 0; }
.flow-step span { color: var(--blue); display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; margin-bottom: 20px; }
.flow-step p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 12px 0 0; }

.news-list { border-top: 1px solid var(--line); }
.news-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 20px; grid-template-columns: 105px 100px 1fr 20px; padding: 20px 0; transition: color .2s; }
.news-item:hover { color: var(--blue-deep); }
.news-date { color: var(--muted); font-family: var(--mono); font-size: 11px; }
.news-category { border: 1px solid #b8c9cf; color: var(--blue-deep); font-size: 10px; padding: 3px 6px; text-align: center; }
.news-title { font-size: 14px; font-weight: 500; }

.cta-panel { background: var(--blue-deep); color: white; overflow: hidden; padding: 70px 76px; position: relative; }
.cta-panel::before { border: 1px solid rgba(255,255,255,.22); border-radius: 50%; content: ""; height: 420px; position: absolute; right: -110px; top: -235px; width: 420px; }
.cta-panel .section-kicker, .cta-panel h2 { color: white; position: relative; }
.cta-panel p { color: #dceaf0; max-width: 630px; position: relative; }
.cta-panel .button { background: white; color: var(--blue-deep); position: relative; }
.cta-panel .button:hover { background: #e5f2f7; }
.cta-contact-meta { display: flex; flex-wrap: wrap; gap: 25px; margin-top: 30px; position: relative; }
.cta-contact-meta span { align-items: center; color: #dceaf0; display: flex; font-family: var(--mono); font-size: 12px; gap: 9px; }

.page-hero { background: var(--fog); border-bottom: 1px solid var(--line); padding: 78px 32px; }
.page-hero .container { align-items: end; display: flex; justify-content: space-between; }
.breadcrumb { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.page-hero h1 { color: var(--deep); font-size: clamp(34px, 4.2vw, 53px); margin: 14px 0 0; }
.page-hero p { color: var(--muted); font-size: 14px; max-width: 390px; }
.subnav { background: white; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 26px; overflow-x: auto; padding: 14px 0; }
.subnav a { color: var(--muted); flex: 0 0 auto; font-size: 12px; }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--blue-deep); font-weight: 600; }
.detail-grid { align-items: start; display: grid; gap: 68px; grid-template-columns: .78fr 1.22fr; }
.detail-grid img { aspect-ratio: 4/3; object-fit: cover; }
.aside-title { color: var(--blue); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; margin: 0 0 16px; }
.content-prose h2 { font-size: 31px; }
.content-prose h3 { border-left: 2px solid var(--blue); margin-top: 40px; padding-left: 14px; }
.content-prose p { color: var(--muted); font-size: 15px; margin: 16px 0 0; }
.check-list { border-top: 1px solid var(--line); list-style: none; margin: 26px 0 0; padding: 0; }
.check-list li { border-bottom: 1px solid var(--line); font-size: 14px; padding: 13px 0 13px 25px; position: relative; }
.check-list li::before { color: var(--blue); content: "✓"; left: 0; position: absolute; }
.service-tile-grid { display: grid; gap: 24px; grid-template-columns: repeat(2,1fr); }
.service-tile { background: var(--pale); padding: 30px; }
.service-tile h3 { margin-top: 14px; }
.service-tile p { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.service-tile .tile-tag { color: var(--blue); font-family: var(--mono); font-size: 11px; }

.works-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-button { background: white; border: 1px solid var(--line); color: var(--muted); cursor: pointer; font-size: 12px; padding: 9px 14px; }
.filter-button:hover, .filter-button.is-active { background: var(--deep); border-color: var(--deep); color: white; }
.work-grid { display: grid; gap: 25px; grid-template-columns: repeat(3,1fr); }
.work-card { background: white; box-shadow: 0 6px 24px rgba(35,52,60,.06); transition: transform .2s, box-shadow .2s; }
.work-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.work-card.is-hidden { display: none; }
.work-card-image { aspect-ratio: 1.25; overflow: hidden; }
.work-card-image img { height: 100%; object-fit: cover; transition: transform .5s; }
.work-card:hover img { transform: scale(1.04); }
.work-card-body { padding: 20px; }
.work-card h3 { font-size: 17px; margin: 10px 0; }
.work-card p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 0; }
.work-card-meta { color: var(--blue); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; }
.case-hero-image { aspect-ratio: 16/7; overflow: hidden; }
.case-hero-image img { height: 100%; object-fit: cover; }
.case-story { display: grid; gap: 80px; grid-template-columns: .75fr 1.25fr; }
.case-story aside { border-top: 2px solid var(--blue); padding-top: 16px; }
.case-story aside p { color: var(--muted); font-size: 13px; }
.case-story h2 { font-size: 30px; }
.case-story h3 { font-size: 17px; margin-top: 34px; }
.case-story p { color: var(--muted); font-size: 14px; }
.case-quote { background: var(--fog); border-left: 2px solid var(--blue); font-size: 18px; line-height: 1.8; margin-top: 35px; padding: 26px 29px; }

.table { border-collapse: collapse; width: 100%; }
.table th, .table td { border-bottom: 1px solid var(--line); font-size: 14px; padding: 15px 12px; text-align: left; vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; width: 31%; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-button { align-items: center; background: none; border: 0; cursor: pointer; display: flex; font-weight: 600; gap: 16px; justify-content: space-between; min-height: 72px; padding: 16px 0; text-align: left; width: 100%; }
.faq-button::before { color: var(--blue); content: "Q"; font-family: var(--mono); font-size: 15px; }
.faq-button span { flex: 1; }
.faq-button i { color: var(--blue); font-size: 20px; font-style: normal; font-weight: 400; }
.faq-answer { color: var(--muted); display: none; font-size: 14px; padding: 0 35px 25px 48px; }
.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-button i { transform: rotate(45deg); }

.contact-layout { display: grid; gap: 70px; grid-template-columns: .75fr 1.25fr; }
.contact-aside { background: var(--deep); color: white; padding: 42px; }
.contact-aside h2 { color: white; font-size: 29px; }
.contact-aside p { color: #d5e2e6; font-size: 14px; }
.contact-aside a { border-bottom: 1px solid rgba(255,255,255,.45); display: block; font-family: var(--mono); font-size: 17px; margin: 30px 0 10px; padding-bottom: 8px; }
.form-note { background: var(--fog); color: var(--blue-deep); font-size: 12px; margin: 0 0 22px; padding: 12px 15px; }
.form-row { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; margin: 0 0 22px; }
.field label { font-size: 13px; font-weight: 600; }
.field label em { color: var(--blue); font-family: var(--mono); font-size: 10px; font-style: normal; margin-left: 7px; }
.field input, .field textarea, .field select { background: white; border: 1px solid #b7c6cc; border-radius: 0; min-height: 49px; padding: 10px 12px; }
.field textarea { min-height: 150px; resize: vertical; }
.form-button { background: #9cadb5; border: 0; color: white; cursor: not-allowed; font-weight: 600; min-height: 54px; padding: 12px 22px; }

.site-footer { background: var(--deep); color: #d6e0e3; padding-top: 0; }
.footer-grid { display: grid; gap: 45px; grid-template-columns: 1.3fr .8fr .8fr; padding: 64px 32px 42px; }
.site-footer .brand-name { color: white; }
.site-footer .brand-sub { color: #9fb2b9; }
.footer-address { color: #bfcdd2; font-size: 13px; margin-top: 23px; }
.footer-contact { color: white; display: inline-block; font-family: var(--mono); font-size: 18px; margin-top: 17px; }
.footer-heading { color: white; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; margin: 0 0 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 9px 0; }
.footer-links a { color: #bfcdd2; font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); color: #8fa3aa; display: flex; font-family: var(--mono); font-size: 10px; justify-content: space-between; margin: 0 32px; max-width: 1170px; padding: 18px 0; }
.footer-demo { background: #0c1519; color: #bad0d7; font-size: 11px; line-height: 1.55; padding: 9px 20px; text-align: center; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .header-inner { height: 71px; padding: 0 20px; }
  .primary-nav { background: white; border-bottom: 1px solid var(--line); box-shadow: 0 14px 25px rgba(26,42,48,.08); display: none; flex-direction: column; gap: 0; left: 0; padding: 12px 20px 22px; position: absolute; top: 71px; width: 100%; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { border-bottom: 1px solid var(--line); font-size: 14px; padding: 14px 0; width: 100%; }
  .primary-nav a::after { display: none; }
  .primary-nav .header-cta { border: 0; margin-top: 12px; padding: 13px; text-align: center; }
  .nav-toggle { display: grid; }
  .hero { min-height: 610px; }
  .hero::after { background: linear-gradient(90deg, rgba(17,29,33,.83), rgba(17,29,33,.22)); }
  .hero-content { padding: 125px 24px 90px; }
  .section { padding: 78px 24px; }
  .section-tight { padding: 62px 24px; }
  .intro-grid, .detail-grid, .contact-layout, .case-story { gap: 38px; grid-template-columns: 1fr; }
  .service-grid { gap: 12px; grid-template-columns: 1fr; }
  .service-card { border: 0; display: grid; grid-template-columns: .92fr 1.08fr; min-height: 250px; padding: 0; }
  .service-card:first-child, .service-card:last-child { border-radius: 0; }
  .service-card .card-image { aspect-ratio: auto; }
  .service-card-body { padding: 24px; }
  .card-link { bottom: 22px; left: auto; right: 24px; }
  .works-feature { gap: 0; grid-template-columns: 1fr; }
  .works-feature-image { min-height: auto; }
  .works-feature-content { background: white; padding: 34px 25px; }
  .category-grid, .reason-grid, .flow, .work-grid { grid-template-columns: 1fr 1fr; }
  .category { min-height: 180px; padding: 23px; }
  .reason { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0; }
  .reason:first-child { border-top: 0; padding-top: 0; }
  .flow-step { border-left: 0; border-top: 1px solid var(--line); min-height: 0; padding: 23px 0; }
  .flow-step:first-child { border-top: 0; padding-top: 0; }
  .cta-panel { padding: 50px 30px; }
  .page-hero { padding: 56px 24px; }
  .page-hero .container { display: block; }
  .page-hero p { margin-top: 20px; }
  .subnav .container { padding-left: 24px; padding-right: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 55px 24px 38px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { margin: 0 24px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .demo-ribbon, .footer-demo { font-size: 10px; }
  .brand-name { font-size: 14px; }
  .brand-mark { font-size: 12px; height: 31px; width: 31px; }
  .hero { min-height: 580px; }
  .hero img { object-position: 67% center; }
  h1 { font-size: 35px; }
  .hero p { font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .button { width: 100%; }
  .hero-meta { bottom: 24px; font-size: 8px; right: 24px; }
  .section-heading { align-items: start; display: block; margin-bottom: 32px; }
  .section-heading .text-link { display: inline-block; margin-top: 20px; }
  h2 { font-size: 27px; }
  .intro-copy { font-size: 21px; }
  .service-card { display: block; min-height: 0; padding-bottom: 58px; }
  .service-card .card-image { aspect-ratio: 1.4; }
  .category-grid, .reason-grid, .flow, .work-grid, .service-tile-grid, .form-row { grid-template-columns: 1fr; }
  .work-grid { gap: 17px; }
  .works-feature-image { aspect-ratio: 1.1; }
  .case-data div { grid-template-columns: 75px 1fr; }
  .news-item { gap: 9px 13px; grid-template-columns: 94px 72px 1fr; }
  .news-title { font-size: 12px; grid-column: 1 / -1; }
  .news-item > :last-child { display: none; }
  .cta-panel { padding: 40px 23px; }
  .cta-panel::before { height: 260px; right: -115px; top: -135px; width: 260px; }
  .footer-grid { gap: 30px; grid-template-columns: 1fr; }
  .footer-bottom { display: block; line-height: 1.8; }
  .footer-bottom span { display: block; }
  .contact-aside { padding: 31px 27px; }
  .faq-answer { padding-left: 0; }
}
