:root {
  --navy: #0d3559;
  --navy-deep: #082944;
  --navy-soft: #e9f0f3;
  --cream: #f8f4e9;
  --paper: #fffdf7;
  --ink: #183044;
  --muted: #5f6d73;
  --green: #647d69;
  --green-pale: #e7ede5;
  --vermilion: #c85035;
  --line: #d9d8cf;
  --white: #fff;
  --shadow: 0 20px 60px rgba(13, 53, 89, .12);
  --radius: 24px;
  --layout: min(1120px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .035em;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #e5755d; outline-offset: 4px; }
.layout { width: var(--layout); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 8px 16px; color: var(--white); background: var(--navy); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(13, 53, 89, .1); background: rgba(255, 253, 247, .94); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 32px; }
.brand, .footer-brand { display: inline-flex; align-items: center; color: var(--navy); text-decoration: none; }
.brand img { width: 58px; margin: -8px 4px -8px -8px; }
.brand span { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.35rem; font-weight: 700; letter-spacing: .12em; }
.global-nav { display: flex; align-items: center; gap: 32px; font-size: .88rem; font-weight: 700; }
.global-nav a { position: relative; text-decoration: none; }
.global-nav a:not(.nav-contact)::after { position: absolute; right: 0; bottom: -.35em; left: 0; height: 1px; content: ""; background: var(--vermilion); transform: scaleX(0); transition: transform .2s ease; }
.global-nav a:hover::after, .global-nav a:focus-visible::after { transform: scaleX(1); }
.nav-contact { padding: 10px 20px; border: 1px solid var(--navy); border-radius: 99px; transition: color .2s, background .2s; }
.nav-contact:hover { color: var(--white); background: var(--navy); }
.nav-toggle { display: none; }
.back-link { font-size: .9rem; font-weight: 700; }

.hero { position: relative; min-height: min(760px, calc(100vh - 82px)); overflow: hidden; background: var(--cream); }
.hero::after { position: absolute; right: -8%; bottom: -55%; width: 75%; aspect-ratio: 1; border: 1px solid rgba(100, 125, 105, .24); border-radius: 50%; content: ""; }
.hero-inner { position: relative; z-index: 2; display: grid; min-height: inherit; align-items: center; grid-template-columns: 1.08fr .92fr; gap: 48px; padding-block: 72px; }
.eyebrow, .section-label, .service-kicker { margin: 0 0 18px; color: var(--vermilion); font-size: clamp(.94rem, 1.2vw, 1rem); font-weight: 800; letter-spacing: .13em; line-height: 1.7; }
.eyebrow, .section-label { display: flex; align-items: center; gap: 10px; }
.eyebrow::before, .section-label::before { display: block; width: 26px; height: 1px; margin: 0; content: ""; background: currentColor; flex: 0 0 26px; }
.hero h1, .section h2, .policy-heading h1 { margin: 0; color: var(--navy); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-weight: 600; letter-spacing: .08em; line-height: 1.48; text-wrap: balance; }
.hero h1 { font-size: clamp(2.15rem, 5.2vw, 3.8rem); }
.hero h1 em { display: inline-block; color: var(--navy); font-size: .82em; font-style: normal; white-space: nowrap; background: linear-gradient(transparent 77%, rgba(200, 80, 53, .18) 0); }
.hero-description { max-width: 620px; margin: 28px 0 0; color: #394e5c; font-size: 1rem; line-height: 2.05; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 26px; border: 1px solid transparent; border-radius: 99px; font-weight: 700; line-height: 1.5; text-decoration: none; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--navy); }
.button-primary:hover { background: var(--navy-deep); }
.button-secondary { border-color: var(--navy); color: var(--navy); background: transparent; }
.button-secondary:hover { color: var(--white); background: var(--navy); }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.logo-frame { position: relative; width: min(100%, 510px); padding: 38px; border-radius: 46% 54% 48% 52% / 53% 42% 58% 47%; background: rgba(255, 255, 255, .62); box-shadow: var(--shadow); }
.logo-frame::before { position: absolute; inset: -14px; border: 1px solid rgba(13, 53, 89, .16); border-radius: inherit; content: ""; transform: rotate(5deg); }
.hero-shape { position: absolute; border-radius: 50%; }
.hero-shape-one { top: -130px; left: -160px; width: 380px; height: 380px; border: 58px solid rgba(13, 53, 89, .04); }
.hero-shape-two { top: 12%; right: 43%; width: 18px; height: 18px; background: var(--vermilion); box-shadow: 28px 22px 0 -5px rgba(200, 80, 53, .45); }

.section { padding-block: 112px; }
.section h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.heading-line { display: block; white-space: nowrap; }
.about { background: var(--paper); }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 7%; align-items: start; }
.about-grid h2 { margin: 0; }
.about-copy .lead { margin: 0 0 20px; font-size: 1.06rem; line-height: 2; }
.about-copy > p:last-child { margin: 0; color: var(--muted); }
.about-values { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-values > h3 { margin: 0 0 24px; color: var(--navy); font-size: .9rem; font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.values li { display: flex; align-items: baseline; gap: 14px; }
.values li + li { border-left: 1px solid var(--line); padding-left: 28px; }
.values span { color: var(--vermilion); font-size: .9rem; font-weight: 800; letter-spacing: .06em; }
.values h4 { margin: 0 0 10px; color: var(--navy); font-size: 1rem; font-weight: 600; }
.values p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.9; }
@media (max-width: 900px) {
  .values { grid-template-columns: 1fr; gap: 22px; }
  .values li + li { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
  .about-values { margin-top: 32px; }
}

.business-summary { padding-block: 68px; background: var(--cream); }
.business-summary-inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: 9%; }
.business-summary h2 { margin: 0; color: var(--navy); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 600; letter-spacing: .08em; }
.business-list { margin: 0; border-top: 1px solid var(--line); }
.business-list div { display: grid; padding: 13px 2px; border-bottom: 1px solid var(--line); grid-template-columns: 120px 1fr; gap: 18px; }
.business-list dt { color: var(--muted); font-size: .82rem; font-weight: 700; }
.business-list dd { margin: 0; font-weight: 600; }

.home-apps { background: #e9eef1; }
.home-app-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.home-app-card { display: flex; align-items: center; flex-direction: column; min-width: 0; padding: 24px 16px 22px; border: 1px solid rgba(100, 125, 105, .2); border-radius: var(--radius); background: var(--paper); text-align: center; text-decoration: none; box-shadow: 0 6px 18px rgba(13, 53, 89, .04); transition: border-color .2s ease, box-shadow .2s ease; }
.home-app-card:hover, .home-app-card:focus-visible { border-color: var(--green); box-shadow: 0 12px 32px rgba(13, 53, 89, .12); }
.home-app-card:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.home-app-display { display: grid; width: 100%; min-height: 184px; margin-bottom: 16px; border-radius: 16px; background: var(--white); place-items: center; }
.home-app-icon { width: 164px; height: 164px; object-fit: contain; border-radius: 24px; }
.home-app-card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.35rem; line-height: 1.4; }
.home-app-description { margin: 0 0 16px; color: var(--ink); font-size: .875rem; line-height: 1.85; letter-spacing: .01em; }
.home-app-os { margin: auto 0 18px; color: var(--muted); font-size: .75rem; letter-spacing: 0; }
.home-app-more { display: flex; justify-content: space-between; align-items: center; width: 100%; padding-top: 14px; border-top: 1px solid var(--line); color: var(--navy); font-size: .8rem; font-weight: 700; }
@media (max-width: 1000px) {
  .home-app-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .home-app-list { gap: 14px; }
  .home-app-card { padding: 16px 12px; border-radius: 18px; }
  .home-app-display { min-height: 130px; margin-bottom: 14px; }
  .home-app-icon { width: 112px; height: 112px; border-radius: 18px; }
  .home-app-card h3 { font-size: 1.08rem; }
  .home-app-description { font-size: .8125rem; }
  .home-app-description br { display: none; }
  .home-app-os { font-size: .75rem; }
}
@media (max-width: 350px) {
  .home-app-list { grid-template-columns: 1fr; }
}

.section.services { padding-block: 88px; background: var(--navy); }
.services .section-label { color: #ef907a; }
.services h2 { color: var(--white); }
.section-intro { max-width: 690px; margin: 22px 0 48px; }
.services .section-intro { color: #c9d5dd; }
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.service-card { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); }
.service-discover { background: var(--cream); }
.service-solve { background: var(--green-pale); }
.service-number { position: absolute; top: -20px; right: 20px; color: rgba(13, 53, 89, .07); font-family: Georgia, serif; font-size: 9rem; line-height: 1; }
.service-kicker { position: relative; margin-bottom: 10px; }
.service-card h3 { position: relative; margin: 0 0 18px; color: var(--navy); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.4rem, 2.7vw, 2rem); line-height: 1.6; text-wrap: initial; }
.service-heading-line { display: block; }
.service-card > p:not(.service-kicker) { margin-bottom: 24px; color: #465861; }
.service-list { margin: 30px 0 0; padding: 0; border-top: 1px solid rgba(13, 53, 89, .18); list-style: none; }
.service-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(13, 53, 89, .18); line-height: 1.5; }
.service-list strong { font-size: .92rem; }
.service-list span { flex: 0 0 auto; padding: 4px 9px; border-radius: 99px; color: var(--muted); background: rgba(255, 255, 255, .7); font-size: .69rem; font-weight: 700; }
.service-list .available { color: #355f42; background: #fff; }

.audience { padding-block: 70px; background: var(--cream); }
.audience-inner { display: grid; align-items: center; grid-template-columns: .8fr 1.2fr; gap: 9%; }
.audience-inner > p { margin: 0; line-height: 2.1; }

.flow { background: var(--paper); }
.flow-list { display: grid; margin: 54px 0 0; padding: 0; grid-template-columns: repeat(4, 1fr); list-style: none; }
.flow-list li { position: relative; padding: 0 28px; border-left: 1px solid var(--line); }
.flow-list li:last-child { border-right: 1px solid var(--line); }
.flow-step { display: block; margin-bottom: 18px; color: var(--vermilion); font-size: 1rem; font-weight: 800; letter-spacing: .05em; }
.flow-list h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.08rem; }
.flow-list p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.85; }

.contact { background: #e8efec; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7%; }
.contact-copy > p:not(.section-label) { margin-top: 22px; }
.notice { margin-top: 32px; padding: 18px 20px; border-left: 3px solid var(--vermilion); background: rgba(255, 255, 255, .66); }
.notice strong { color: var(--navy); }
.notice p { margin: 5px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.contact-form { padding: clamp(24px, 4vw, 42px); border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 40px rgba(13, 53, 89, .07); }
.form-status { margin: 0 0 22px; padding: 10px 14px; border-radius: 6px; color: #78522f; background: #fff4df; font-size: .82rem; font-weight: 700; }
.form-status-ready { color: #355f42; background: #edf5eb; }
.field { margin-bottom: 22px; }
.field label { display: block; margin-bottom: 7px; color: var(--navy); font-size: .9rem; font-weight: 700; }
.field label span { margin-left: 5px; color: var(--vermilion); font-size: .68rem; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #a9b4b7; border-radius: 6px; color: var(--ink); background: var(--white); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(13, 53, 89, .1); outline: 0; }
.check-field { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 24px; font-size: .85rem; }
.check-field input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--navy); }
.button-disabled { width: 100%; color: #6b7375; background: #d9dddc; cursor: not-allowed; }
.form-submit { width: 100%; border: 0; cursor: pointer; }
.botcheck { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.thanks-main { display: grid; min-height: calc(100vh - 82px); padding-block: 80px; background: var(--cream); place-items: center; }
.thanks-card { max-width: 720px; padding: clamp(32px, 7vw, 70px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.thanks-mark { display: grid; width: 64px; height: 64px; margin: 0 auto 24px; border-radius: 50%; color: var(--white); background: var(--green); font-size: 1.65rem; font-weight: 800; place-items: center; }
.thanks-card h1 { margin: 0; color: var(--navy); font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.5; }
.thanks-card p { margin: 22px 0 30px; }

.site-footer { padding-block: 44px; color: #dfe8ed; background: var(--navy-deep); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { gap: 12px; color: var(--white); }
.footer-brand img { width: 68px; padding: 3px; border-radius: 50%; background: var(--cream); }
.footer-brand span { display: flex; flex-direction: column; }
.footer-brand strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 1.15rem; letter-spacing: .1em; }
.footer-brand small { color: #b8c7d1; font-size: .66rem; }
.footer-meta { text-align: right; }
.footer-meta a, .footer-meta small { color: #c6d2d9; font-size: .76rem; }
.footer-meta p { margin: 8px 0 0; }

.policy-main { padding: 86px 0 110px; background: var(--cream); }
.policy-heading { max-width: 850px; }
.policy-heading h1 { font-size: clamp(2rem, 5vw, 3.6rem); }
.policy-heading > p:not(.section-label, .policy-note) { margin-top: 28px; }
.policy-note { margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--vermilion); background: rgba(255, 255, 255, .7); font-size: .87rem; }
.policy-body { max-width: 850px; margin-top: 50px; padding: 44px clamp(22px, 6vw, 70px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.policy-body section { padding-block: 28px; border-bottom: 1px solid var(--line); }
.policy-body section:first-child { padding-top: 0; }
.policy-body h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 14px; color: var(--navy); font-size: 1.18rem; }
.policy-body h2 span { color: var(--vermilion); font-size: 1.125rem; font-weight: 800; }
.policy-body p { margin: 0 0 12px; }
.policy-body p:last-child { margin-bottom: 0; }
.policy-body li::marker { color: var(--vermilion); }
.policy-date { margin: 30px 0; color: var(--muted); font-size: .82rem; text-align: right; }

@media (max-width: 840px) {
  :root { --layout: min(100% - 32px, 680px); }
  .header-inner { min-height: 72px; }
  .nav-toggle { display: flex; align-items: center; gap: 9px; padding: 8px; border: 0; color: var(--navy); background: transparent; cursor: pointer; }
  .nav-toggle-label { font-size: .73rem; font-weight: 700; }
  .nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { display: block; width: 22px; height: 2px; content: ""; background: currentColor; transition: transform .2s; }
  .nav-toggle-lines { position: relative; }
  .nav-toggle-lines::before { position: absolute; top: -7px; }
  .nav-toggle-lines::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }
  .global-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; padding: 18px max(20px, calc((100% - 680px) / 2)); border-top: 1px solid var(--line); background: var(--paper); box-shadow: 0 14px 24px rgba(13, 53, 89, .1); flex-direction: column; gap: 0; }
  .nav-toggle[aria-expanded="true"] + .global-nav { display: flex; }
  .global-nav a { padding: 11px 4px; }
  .nav-contact { margin-top: 8px; text-align: center; }
  .hero { min-height: auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 44px; padding-block: 62px 72px; }
  .hero-visual { order: -1; width: min(68vw, 350px); margin-inline: auto; }
  .logo-frame { padding: 24px; }
  .hero-copy { text-align: center; }
  .eyebrow { justify-content: center; }
  .eyebrow::before { display: none; }
  .hero-description { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .section { padding-block: 80px; }
  .about-grid, .business-summary-inner, .audience-inner, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card > p:not(.service-kicker) { min-height: 0; }
  .flow-list { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .flow-list li:nth-child(3) { border-left: 1px solid var(--line); }
  .flow-list li:nth-child(2) { border-right: 1px solid var(--line); }
  .policy-main { padding-top: 62px; }
}

@media (max-width: 540px) {
  :root { --layout: calc(100% - 28px); --radius: 18px; }
  body { font-size: 15px; }
  .brand img { width: 52px; }
  .brand span { font-size: 1.15rem; }
  .back-link { font-size: .74rem; }
  .hero-inner { gap: 22px; padding-block: 28px 40px; }
  .hero-visual { width: min(48vw, 190px); }
  .hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); line-height: 1.5; }
  .hero-description { text-align: left; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .section { padding-block: 68px; }
  .section h2 { font-size: 1.85rem; }
  .service-card { padding: 28px 22px; }
  .service-list li { align-items: flex-start; flex-direction: column; }
  .flow-list { grid-template-columns: 1fr; gap: 0; }
  .flow-list li, .flow-list li:nth-child(2), .flow-list li:nth-child(3), .flow-list li:last-child { display: grid; padding: 23px 0; border: 0; border-top: 1px solid var(--line); grid-template-columns: 45px 1fr; }
  .flow-list li:last-child { border-bottom: 1px solid var(--line); }
  .flow-step { margin: 2px 0 0; }
  .contact-form { padding: 24px 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .footer-meta { text-align: left; }
  .policy-body { margin-top: 34px; padding: 28px 20px; }
}

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


/* The homepage footer groups business details without changing shared footers. */
.home-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; align-items: start; gap: 36px; }
.home-footer-grid > * { min-width: 0; }
.footer-business h2 { margin: 0 0 14px; color: var(--white); font-size: .85rem; font-weight: 600; }
.footer-business dl { margin: 0; font-size: .8rem; }
.footer-business dl > div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; margin-top: 8px; }
.footer-business dt { color: #b8c7d1; white-space: nowrap; }
.footer-business dd { margin: 0; }
.footer-business dd span { display: inline-block; }
.home-footer-links { display: flex; align-items: flex-start; flex-direction: column; gap: 12px; }
.home-footer-links a { color: #dfe8ed; font-size: .8rem; text-underline-offset: .25em; }
.home-footer-copyright { margin: 30px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); color: #b8c7d1; }
@media (max-width: 1000px) {
  .home-footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

.home-app-status { display: block; width: fit-content; margin: 8px auto 0; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: inherit; font-size: .75rem; font-weight: 500; line-height: 1.6; }
.service-card { display: flex; flex-direction: column; }
.service-card .service-list { margin-top: auto; padding-top: 8px; }

/* Outer spacing follows content density; card and form spacing stay intact. */
.section.home-apps, .section.flow { padding-block: 88px; }
.section.contact { padding-block: 96px; }
@media (max-width: 840px) {
  .section.home-apps, .section.services, .section.flow { padding-block: 64px; }
  .section.contact { padding-block: 72px; }
}
@media (max-width: 540px) {
  .section.home-apps, .section.services, .section.flow { padding-block: 52px; }
  .section.contact { padding-block: 60px; }
}
