:root {
  --page: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f4f8fb;
  --text: #17263a;
  --text-muted: #526275;
  --line: #dfe7ee;
  --line-strong: #cbd8e3;
  --accent: #0a63ad;
  --accent-dark: #084c83;
  --accent-soft: #e9f4fc;
  --footer: #0759a4;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.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; top: 8px; left: 8px; z-index: 999; padding: 10px 14px; background: #fff; border: 2px solid var(--accent); border-radius: 6px; transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(10, 99, 173, .35); outline-offset: 3px; }

.site-header { background: rgba(255,255,255,.98); border-bottom: 1px solid rgba(223,231,238,.75); position: relative; z-index: 20; }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { display: block; flex: 0 0 auto; }
.brand-logo { display: block; width: 120px; height: auto; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1.25; }
.brand-copy strong { font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
.brand-copy small { margin-top: 3px; font-size: 10px; color: var(--text-muted); letter-spacing: .02em; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { position: relative; padding: 27px 0 24px; color: #25364b; font-size: 14px; font-weight: 650; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: center; transition: transform .18s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--accent); }
.menu-button { display: none; flex-shrink: 0; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; border-radius: 6px; }
.menu-button > span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--text); transition: transform .18s ease, opacity .18s ease; }

.hero { min-height: 440px; display: grid; align-items: center; background-color: #eaf6ff; background-image: url('/assets/images/hero-wakayama-v2.jpg?v=20260830'); background-repeat: no-repeat; background-position: center; background-size: cover; overflow: hidden; }
.hero-inner { padding-block: 56px; }
.hero-copy { width: min(100%, 690px); }
.hero h1 { margin: 0; font-size: clamp(2.25rem, 4.1vw, 4rem); line-height: 1.25; letter-spacing: -.035em; }
.hero p { margin: 26px 0 0; max-width: 560px; font-size: 1.08rem; line-height: 2; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 22px; border: 1px solid var(--accent); border-radius: 8px; font-size: 15px; font-weight: 700; transition: background .16s ease, color .16s ease, transform .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: rgba(255,255,255,.8); color: var(--accent-dark); }
.button.secondary:hover { background: #fff; }
.button.dark { background: #111; border-color: #111; color: #fff; }
.button.dark[aria-disabled="true"] { cursor: default; opacity: .9; }

.section { padding-block: 70px; }
.section-muted { background: var(--surface-muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; padding-bottom: 12px; position: relative; font-size: clamp(1.7rem, 2.7vw, 2.35rem); letter-spacing: -.025em; }
.section-heading h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--accent); }
.section-heading p { margin: 0; color: var(--text-muted); }
.section-heading-link { transition: color .16s ease; }
.section-heading-link:hover { color: var(--accent); }
.section-index-link { flex: 0 0 auto; font-size: .9rem; white-space: nowrap; }
.text-link { color: var(--accent); font-weight: 700; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.app-list-toolbar { display: flex; align-items: end; justify-content: flex-end; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.app-list-field { display: grid; gap: 6px; }
.app-list-toolbar label { font-size: .9rem; font-weight: 700; }
.app-list-select { min-width: 210px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); background: var(--surface); }
.app-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.app-card { display: grid; min-height: 330px; grid-template-columns: 76px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 16px; align-items: start; padding: 26px; background: transparent; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; overflow-wrap: anywhere; }
.app-card:last-child { border-right: 0; }
.app-card:nth-child(4n) { border-right: 0; }
.app-grid:not(.home-app-grid) .app-card:nth-child(n+5) { border-top: 1px solid var(--line); }
.app-card-icon { grid-column: 1; grid-row: 1; border-radius: 18px; box-shadow: 0 8px 18px rgba(22, 51, 79, .12); }
.app-card h3 { grid-column: 1 / -1; grid-row: 2; margin: 20px 0 8px; font-size: 1.25rem; line-height: 1.35; transition: color .18s ease; }
.app-card:hover h3 { color: var(--app-accent); }
.app-card p { grid-column: 1 / -1; grid-row: 3; margin: 0; color: var(--text-muted); font-size: .94rem; line-height: 1.75; }
.app-card-meta { display: grid; grid-column: 2; grid-row: 1; gap: 4px; padding-top: 3px; font-size: .78rem; color: var(--text-muted); }
.app-card-meta span { white-space: normal; }
.app-card-meta strong { color: var(--app-accent); font-weight: 700; }
.app-card .text-link { grid-column: 1 / -1; grid-row: 4; margin-top: 20px; justify-self: end; font-size: .9rem; color: var(--app-accent); }
.home-app-heading { margin-bottom: 16px; }
.home-app-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-bottom: 12px; }
.home-app-pagination[hidden] { display: none; }
.home-app-page-button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--accent); background: transparent; cursor: pointer; }
.home-app-page-button:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); }
.home-app-page-button:disabled { color: var(--text-muted); cursor: default; opacity: .38; }
.home-app-page-status { min-width: 48px; color: var(--text-muted); font-size: .82rem; text-align: center; font-variant-numeric: tabular-nums; }
.home-app-grid .app-card[hidden] { display: none; }
.home-app-grid .app-card.is-page-end { border-right: 0; }
.home-app-page-button:focus-visible, .home-app-grid .app-card:focus-visible, .menu-button:focus-visible { outline-color: var(--accent); }

.home-notice { padding-top: 28px; }
.notice-band { padding: 22px 0; background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.notice-heading-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 10px; }
.notice-band h2 { margin: 0; font-size: clamp(1.7rem, 2.7vw, 2.35rem); letter-spacing: -.025em; }
.notice-index-link { flex: 0 0 auto; font-size: .86rem; }
.notice-list { display: grid; margin: 0; padding: 0; list-style: none; color: #34475d; font-size: .88rem; }
.notice-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 8px 0; }
.notice-list li[hidden] { display: none; }
.notice-list li + li { border-top: 1px solid var(--line); }
.notice-list time { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.page-title.news-page-title { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.news-list { max-width: 900px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .95rem; }
.news-list li { padding-block: 14px; }
.news-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; max-width: 900px; margin-top: 28px; }
.news-pagination[hidden] { display: none; }
.news-page-button { min-width: 76px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); background: var(--surface); font: inherit; }
.news-page-button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.news-page-button:disabled { cursor: default; opacity: .45; }
.news-page-status { min-width: 52px; color: var(--text-muted); font-size: .86rem; text-align: center; font-variant-numeric: tabular-nums; }

.page-hero { padding-block: 42px 34px; border-bottom: 1px solid var(--line); background: #fbfdff; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; color: #758295; font-size: .78rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #a7b2bf; }
.breadcrumbs a:hover { color: var(--accent); }
.page-title { margin: 0; font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.25; letter-spacing: -.035em; }
.page-lead { max-width: 700px; margin: 15px 0 0; color: var(--text-muted); font-size: 1.03rem; }

.app-hero { padding-block: 46px 58px; }
.app-hero-grid { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.45fr); align-items: center; gap: 46px; }
.app-title-row { display: flex; align-items: center; gap: 18px; }
.app-title-row img { width: 90px; height: 90px; border-radius: 22px; box-shadow: 0 10px 26px rgba(25, 58, 91, .14); }
.app-title-row h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.1; letter-spacing: -.035em; }
.app-summary > p { margin: 22px 0 0; color: #3b4b5e; font-size: 1.02rem; }
.platform-line { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.platform-label { display: inline-flex; padding: 4px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text-muted); font-size: .8rem; }
.status-text { color: var(--app-accent, var(--accent)); font-weight: 700; font-size: .9rem; }
.store-area { margin-top: 24px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 7px 16px; border-radius: 8px; background: #0b0b0c; color: #fff; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: grid; line-height: 1.15; }
.store-badge small { font-size: .65rem; opacity: .8; }
.store-badge strong { font-size: 1rem; }
.app-showcase { width: 100%; display: block; }

.feature-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-item { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 30px 24px; border-right: 1px solid var(--line); }
.feature-item:last-child { border-right: 0; }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--app-accent, var(--accent)); background: var(--app-soft, var(--accent-soft)); border-radius: 50%; }
.feature-icon svg { width: 24px; height: 24px; }
.feature-item h2 { margin: 0 0 5px; font-size: .95rem; }
.feature-item p { margin: 0; color: var(--text-muted); font-size: .78rem; line-height: 1.65; }

.product-details { padding-block: 48px 76px; background: #f8fafc; }
.detail-panel { display: grid; grid-template-columns: 1.55fr .72fr .72fr; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.detail-column { padding: 28px; }
.detail-column + .detail-column { border-left: 1px solid var(--line); }
.detail-column h2 { margin: 0 0 18px; font-size: 1.08rem; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.screenshot-grid img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.spec-list, .link-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.spec-list li { color: var(--text-muted); font-size: .9rem; }
.spec-list li::before { content: "—"; margin-right: 8px; color: var(--app-accent, var(--accent)); }
.link-list a { color: var(--accent); font-weight: 700; font-size: .9rem; }
.link-list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.content-section { padding-block: 58px 80px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 0; align-items: start; }
.content-card { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.content-grid > .content-card:first-child { padding-right: 36px; }
.content-grid > .content-card + .content-card { padding-left: 36px; border-left: 1px solid var(--line); }
.content-card h2 { margin: 0 0 18px; font-size: 1.25rem; }
.content-card h3 { margin: 28px 0 8px; font-size: 1.05rem; }
.content-card p { margin: 0 0 16px; color: #3f5063; }
.content-card ul { margin: 12px 0 0; padding-left: 1.4em; }
.content-card li + li { margin-top: 6px; }
.callout { margin-bottom: 28px; padding: 10px 0 10px 18px; border-left: 4px solid #d48a24; background: transparent; color: #654817; }
.callout strong { display: block; margin-bottom: 4px; }
.contact-card .contact-email { display: inline-block; margin: 8px 0 14px; color: var(--accent); font-size: 1.08rem; font-weight: 750; overflow-wrap: anywhere; }
.contact-guide { margin-top: 20px; padding: 4px 0 4px 18px; background: transparent; border: 0; border-left: 3px solid var(--accent); border-radius: 0; }
.contact-guide h3 { margin-top: 0; }
.contact-guide h3:not(:first-child) { margin-top: 24px; }
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
details.faq { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
details.faq summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; font-weight: 700; font-size: .93rem; list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq p { margin: 0; padding: 0 34px 18px 0; color: var(--text-muted); font-size: .9rem; }
.support-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.support-intro img { max-width: 520px; justify-self: end; }

.about-list { max-width: 760px; margin: 0; }
.about-list > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.about-list dt { font-weight: 700; }
.about-list dd { margin: 0; color: var(--text-muted); }
.policy-table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: .92rem; }
.policy-table th, .policy-table td { padding: 13px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.policy-table th { width: 170px; background: #f6f9fb; }
.policy-note-list { margin: 10px 0 0; padding-left: 1.4em; }
.policy-note-list li + li { margin-top: 8px; }

.apps-intro { max-width: 760px; margin-bottom: 30px; color: var(--text-muted); }
.empty-note { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: var(--text-muted); }

.site-footer { background: var(--footer); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .7fr 1fr 1.05fr; gap: 48px; padding-block: 46px 38px; }
.site-footer .brand-copy strong, .site-footer .brand-copy small { color: #fff; }
.site-footer .brand-logo { width: 112px; padding: 4px 6px; background: rgba(255,255,255,.96); border-radius: 10px; }
.footer-brand p, .site-footer p { margin: 18px 0 0; color: rgba(255,255,255,.82); font-size: .86rem; }
.site-footer h2 { margin: 0 0 14px; font-size: .95rem; }
.site-footer div > a:not(.brand) { display: block; margin: 8px 0; color: rgba(255,255,255,.9); font-size: .86rem; }
.site-footer div > a:not(.brand):hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { padding-block: 17px; border-top: 1px solid rgba(255,255,255,.18); text-align: center; color: rgba(255,255,255,.78); font-size: .78rem; }

.error-page { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.error-page h1 { margin: 0; font-size: clamp(4rem, 10vw, 8rem); color: var(--accent); }
.error-page p { color: var(--text-muted); }

@media (max-width: 1000px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-card:nth-child(2n) { border-right: 0; }
  .app-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-item:nth-child(2) { border-right: 0; }
  .feature-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .detail-panel { grid-template-columns: 1fr 1fr; }
  .detail-column:first-child { grid-column: 1 / -1; }
  .detail-column:nth-child(2) { border-left: 0; border-top: 1px solid var(--line); }
  .detail-column:nth-child(3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > :last-child { grid-column: 2 / 4; }
}

@media (max-width: 860px) {
  .menu-button { display: block; }
  .site-nav { position: absolute; top: 78px; left: 0; right: 0; display: none; padding: 12px 24px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(25,58,91,.08); }
  .site-nav a { display: block; padding: 13px 0; }
  .site-nav a::after { bottom: 8px; transform-origin: left; }
  body.nav-open .site-nav { display: block; }
  body.nav-open .menu-button > span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .menu-button > span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-button > span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 650px; background-position: 61% center; }
  .hero-inner { align-self: start; padding-top: 62px; }
  .hero-copy { max-width: 570px; }
  .app-hero-grid { grid-template-columns: 1fr; }
  .app-showcase { max-width: 740px; margin-inline: auto; }
  .content-grid, .support-intro { grid-template-columns: 1fr; }
  .content-grid > .content-card:first-child { padding-right: 0; }
  .content-grid > .content-card + .content-card { margin-top: 34px; padding-top: 34px; padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .support-intro img { justify-self: center; order: -1; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 34px, var(--container)); }
  .header-inner { min-height: 70px; }
  .site-nav { top: 70px; }
  .brand { gap: 8px; }
  .brand-logo { width: 84px; height: auto; }
  .brand-copy strong { font-size: 12px; }
  .brand-copy small { font-size: 9px; }
  .hero { min-height: 650px; background-position: 90% bottom; background-size: auto 440px; }
  .hero-inner { padding-block: 38px 260px; }
  .hero h1 { font-size: clamp(1.55rem, 8vw, 2.8rem); }
  .hero p { font-size: .96rem; line-height: 1.9; }
  .button { width: 100%; }
  .section { padding-block: 50px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 14px; }
  .home-app-heading .section-index-link { display: block; margin-top: 12px; text-align: right; }
  .app-list-toolbar { align-items: stretch; justify-content: flex-start; }
  .app-list-field { width: 100%; }
  .app-list-select { width: 100%; min-width: 0; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { min-height: 290px; border-top: 0; border-right: 0; }
  .app-card + .app-card { border-top: 1px solid var(--line); }
  .home-app-grid .app-card.is-page-start { border-top: 0; }
  .notice-heading-row { align-items: flex-start; gap: 16px; }
  .notice-list li { grid-template-columns: 1fr; gap: 2px; padding-block: 10px; }
  .page-hero { padding-block: 30px; }
  .app-title-row { align-items: flex-start; }
  .app-title-row img { width: 74px; height: 74px; border-radius: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-item:nth-child(2) { border-right: 0; }
  .feature-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .feature-item:last-child { border-bottom: 0; }
  .detail-panel { grid-template-columns: 1fr; }
  .detail-column:first-child { grid-column: auto; }
  .detail-column + .detail-column { border-left: 0; border-top: 1px solid var(--line); }
  .screenshot-grid { grid-template-columns: 1fr; }
  .about-list > div { grid-template-columns: 1fr; gap: 4px; }
  .policy-table, .policy-table tbody, .policy-table tr, .policy-table th, .policy-table td { display: block; width: 100%; }
  .policy-table th { border-bottom: 0; }
  .policy-table tr + tr th { margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid > :last-child { grid-column: auto; }
}

/* 2列表示でも、ページを切り替えた直後の先頭行に罫線を重ねない。 */
@media (min-width: 641px) and (max-width: 1000px) {
  .home-app-grid.is-paginated .app-card:nth-child(4n+1),
  .home-app-grid.is-paginated .app-card:nth-child(4n+2) { border-top: 0; }
}

@media (max-width: 360px) {
  .site-header .container { width: calc(100% - 24px); }
  .header-inner { gap: 10px; }
  .site-header .brand-logo { width: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
