:root {
  color-scheme: light;
  --ink: #12375c;
  --ink-soft: #49647c;
  --line: #d8e7ef;
  --blue-50: #f3fbff;
  --blue-100: #e3f5fd;
  --blue-200: #c6eaf9;
  --blue-500: #1986bd;
  --blue-700: #0d5f91;
  --mint: #dff8f0;
  --pink: #fff0f4;
  --purple: #f1ecff;
  --white: #ffffff;
  --shadow: 0 16px 38px rgba(24, 77, 112, .09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.7; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.shell { width: min(1120px, calc(100% - 40px)); min-width: 0; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 800; letter-spacing: .03em; }
.brand-fish { font-size: 1.65rem; line-height: 1; color: var(--blue-700); }
.desktop-nav, .footer-inner nav { display: flex; align-items: center; gap: 28px; font-weight: 650; color: var(--ink-soft); }
.desktop-nav a { padding-block: 22px 18px; border-bottom: 3px solid transparent; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--blue-700); border-color: var(--blue-500); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-button span:not(.sr-only) { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }
.mobile-nav { padding-block: 8px 18px; }
.mobile-nav a { display: block; padding: 10px 4px; font-weight: 700; }

.intro { padding-block: 72px 54px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 10px; color: var(--blue-500); font-size: .78rem; font-weight: 800; letter-spacing: .18em; }
.intro h1 { max-width: 100%; margin: 0; overflow-wrap: anywhere; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.2; letter-spacing: .015em; }
.intro > p:last-child { max-width: 100%; margin: 18px 0 0; overflow-wrap: anywhere; color: var(--ink-soft); font-size: 1.06rem; }

.works, .news { padding-block: 62px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: .02em; }
.section-heading p { margin: 0 0 3px; color: var(--ink-soft); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.work-card:focus-visible { outline: 3px solid rgba(15, 143, 145, .35); outline-offset: 4px; }
.work-visual { height: 230px; overflow: hidden; display: grid; place-items: center; }
.icon-visual { background: linear-gradient(145deg, #f0f8ff, #e6efff); }
.icon-visual img { width: 138px; height: 138px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(65,80,185,.17)); }
.calculator-visual { background: linear-gradient(145deg, #e6f6f1, #f4f7f7); padding: 24px; }
.mini-calculator { width: min(260px, 100%); padding: 20px; border: 1px solid #cee9df; border-radius: 15px; background: rgba(255,255,255,.94); box-shadow: 0 13px 30px rgba(8,104,106,.11); }
.mini-calculator span { display: block; color: #087f80; font-weight: 850; margin-bottom: 13px; }
.mini-calculator strong { display: block; font-size: .78rem; color: #4e5971; }
.mini-input { margin: 6px 0 12px; padding: 8px 10px; border: 1px solid #d9dcea; border-radius: 7px; color: #5b6475; background: #fff; }
.mini-button { padding: 8px; border-radius: 7px; text-align: center; color: #fff; background: #087f80; font-weight: 800; font-size: .8rem; }
.screenshot-visual { align-items: start; background: var(--pink); }
.screenshot-visual img { width: 100%; height: auto; transform: translateY(-42px); }
.work-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.tag-row { min-height: 30px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag, .status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; line-height: 1.35; font-weight: 800; }
.tag { color: var(--blue-700); background: var(--blue-100); }
.status-testing { color: #a54d1f; background: #fff0e4; }
.status-live { color: #14715a; background: var(--mint); }
.status-building { color: #67529d; background: var(--purple); }
.work-body h3 { margin: 17px 0 8px; font-size: 1.42rem; line-height: 1.35; }
.work-body p { margin: 0 0 22px; color: var(--ink-soft); }
.text-link, .primary-link { margin-top: auto; min-height: 44px; display: inline-flex; width: fit-content; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 999px; font-weight: 800; }
.text-link { border: 1px solid #bdd6e4; color: var(--blue-700); background: #fff; }
.primary-link { color: #fff; background: var(--blue-700); }
.text-link:hover, .primary-link:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(17,82,120,.14); }

.news { padding-top: 10px; }
.compact-heading { margin-bottom: 18px; }
.news-list { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.news-list article { display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.news-list article:last-child { border-bottom: 0; }
.news-list time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.news-list p { margin: 0; font-weight: 650; }
.news-list span { padding: 2px 9px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: .78rem; font-weight: 800; }

.site-footer { margin-top: 42px; border-top: 1px solid #c9e7f4; background: var(--blue-50); }
.footer-inner { min-height: 160px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-inner strong { display: block; font-size: 1.08rem; }
.footer-inner small { display: block; margin-top: 8px; color: var(--ink-soft); }
.footer-inner nav { font-size: .9rem; }
.footer-inner a:hover { color: var(--blue-700); text-decoration: underline; }

.page-main { padding-block: 58px 78px; }
.breadcrumbs { margin: 0 0 24px; color: var(--ink-soft); font-size: .88rem; }
.breadcrumbs a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.page-title { margin-bottom: 38px; }
.page-title h1 { margin: 0 0 12px; font-size: clamp(2rem, 4.5vw, 3.35rem); line-height: 1.25; }
.page-title p { max-width: 720px; margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 44px; align-items: center; margin-bottom: 52px; }
.detail-copy .tag-row { margin-bottom: 18px; }
.detail-copy h1 { margin: 0 0 14px; font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.12; }
.detail-copy > p { margin: 0; color: var(--ink-soft); font-size: 1.08rem; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.detail-actions .primary-link, .detail-actions .text-link { margin-top: 0; }
.detail-media { min-height: 360px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--blue-50); box-shadow: var(--shadow); }
.detail-media.app-icon img { width: min(230px, 58%); filter: drop-shadow(0 16px 24px rgba(67,76,180,.17)); }
.detail-media.desktop-shot { min-height: 0; display: block; margin: 0; padding: 10px 10px 0; background: #f4f3ff; }
.detail-media.desktop-shot a { display: block; overflow: hidden; border-radius: 16px; }
.detail-media.desktop-shot img { display: block; width: 100%; height: auto; }
.detail-media.desktop-shot figcaption { padding: 10px 8px 12px; color: var(--ink-soft); font-size: .82rem; text-align: center; }
.detail-media.phone-shot { height: 520px; align-items: start; background: var(--pink); }
.detail-media.phone-shot img { width: 100%; transform: translateY(-50px); }
.detail-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.info-card { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.info-card.full { grid-column: 1 / -1; }
.info-card h2 { margin: 0 0 14px; font-size: 1.35rem; }
.info-card h3 { margin: 24px 0 8px; font-size: 1.08rem; }
.info-card p { margin: 0; color: var(--ink-soft); }
.info-card p + p { margin-top: 12px; }
.plain-list { margin: 0; padding-left: 1.25em; color: var(--ink-soft); }
.plain-list li + li { margin-top: 7px; }
.notice-box { margin-top: 24px; padding: 17px 19px; border: 1px solid #eadfac; border-radius: 14px; color: #6b5922; background: #fffbeb; }
.status-panel { display: flex; align-items: flex-start; gap: 13px; margin-top: 24px; padding: 18px; border-radius: 15px; background: var(--blue-50); }
.status-panel strong { display: block; }
.status-panel p { margin: 2px 0 0; color: var(--ink-soft); font-size: .92rem; }
.prose { max-width: 780px; }
.prose h2 { margin: 42px 0 13px; font-size: 1.45rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }
.prose a { color: var(--blue-700); text-decoration: underline; text-underline-offset: 3px; }
.prose .primary-link { color: #fff; text-decoration: none; }
.prose .contact-address { display: inline-flex; margin-top: 8px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--blue-50); font-weight: 750; word-break: break-all; }
.policy-document { max-width: 850px; }
.policy-document h2 { scroll-margin-top: 92px; }
.policy-document .plain-list { margin-top: 14px; }
.guide-steps { list-style: none; padding: 0; counter-reset: steps; }
.guide-steps li { counter-increment: steps; position: relative; padding: 0 0 26px 52px; }
.guide-steps li::before { content: counter(steps); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--blue-100); color: var(--blue-700); font-weight: 850; }

@media (max-width: 760px) {
  .page-main { padding-block: 38px 58px; }
  .detail-hero { grid-template-columns: 1fr; gap: 28px; }
  .detail-media { min-height: 280px; }
  .detail-media.phone-shot { height: 360px; }
  .detail-sections { grid-template-columns: 1fr; }
  .info-card.full { grid-column: auto; }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  .menu-button { display: flex; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-card:last-child { grid-column: 1 / -1; }
  .work-card:last-child .work-visual { height: 300px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 64px; }
  .intro { padding-block: 44px 34px; }
  .intro h1 { font-size: clamp(1.8rem, 9vw, 2.1rem); }
  .works, .news { padding-block: 42px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .work-grid { grid-template-columns: 1fr; gap: 18px; }
  .work-card:last-child { grid-column: auto; }
  .work-visual, .work-card:last-child .work-visual { height: 210px; }
  .screenshot-visual img { transform: translateY(-30px); }
  .work-body { padding: 21px; }
  .news-list article { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 15px 16px; }
  .news-list p { grid-column: 1 / -1; grid-row: 2; }
  .news-list span { grid-column: 2; grid-row: 1; }
  .footer-inner nav { align-items: flex-start; flex-direction: column; gap: 11px; }
}

@media (prefers-reduced-motion: no-preference) {
  .work-card, .text-link, .primary-link { transition: transform .18s ease, box-shadow .18s ease; }
  .work-card:hover { transform: translateY(-3px); box-shadow: 0 19px 44px rgba(24,77,112,.13); }
}
