/*
  Light theme for the public pages (top, pricing, products, booking, contact, news, legal pages).
  Loaded after style.css / shared.css and each page's own <style>, so it wins on equal
  specificity. GoodTable pages do not load it and keep their own look.
  Clean and bright: white and pale-blue surfaces, navy text, a few faint shapes behind, and
  small corner radii.
*/

:root {
  --bg-dark: #f6f9fc;
  --bg-card: #ffffff;
  --primary: #0284c7;
  --primary-glow: rgba(2, 132, 199, 0.18);
  --accent: #6366f1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --glass-bg: rgba(255, 255, 255, 0.92);
  --radius-lg: 8px;
  --radius-md: 6px;
  --light-ink: #0f172a;
  --light-muted: #475569;
  --light-line: #e2e8f0;
  --light-soft: #e0f2fe;
}

/* The page colour sits on html only: a body background would paint over the shapes behind. */
html { background: var(--bg-dark); }
body { background: transparent !important; }
body { color: var(--light-ink); }
::selection { background: var(--light-soft); color: var(--light-ink); }

/* ---- the faint shapes behind (as on the products page, in pale blue) ---- */
#plexus-canvas { display: none !important; }
.bg-shapes .shape { background: rgba(2, 132, 199, 0.07); border-color: rgba(2, 132, 199, 0.22); backdrop-filter: none; }
.bg-shapes .shape-outline { background: transparent !important; border-color: rgba(2, 132, 199, 0.24) !important; }
.bg-shapes .shape-line { background: rgba(2, 132, 199, 0.28); }
.bg-shapes .shape-triangle { background: rgba(99, 102, 241, 0.05); }
.bg-shapes .shape-square { border-radius: 6px; }

/* ---- header ---- */
header, site-header header { color: var(--light-ink); }
header.scrolled { background: rgba(255, 255, 255, 0.92); border-bottom: 1px solid var(--light-line); box-shadow: 0 1px 12px rgba(15, 23, 42, 0.05); }
.logo, .logo a, header .logo { color: var(--light-ink) !important; }
.logo span { color: var(--primary) !important; }
.nav-links a { color: var(--light-muted); }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links { background: transparent; }
@media (max-width: 768px) {
  .nav-links { background: #ffffff !important; border-bottom: 1px solid var(--light-line); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); }
}
.menu-toggle span, .hamburger span, .nav-toggle span { background: var(--light-ink) !important; }

/* ---- type ---- */
h1, h2, h3, h4, h5 { color: var(--light-ink); }
p, li, dd, td { color: inherit; }
.hero-content p, .section-title + p, .pricing-subtitle, .news-date, .step-content p, .pricing-desc, .muted, .lead { color: var(--light-muted) !important; }
.hero-content h1 { color: var(--light-ink); }
.breadcrumbs, .breadcrumbs a { color: var(--light-muted); }
a { color: inherit; }

/* ---- surfaces ---- */
.glass, .card, .pricing-card, .pricing-options-wrap, .news-item, .tech-badge, .product-card, .app-card, .policy-content, .legal-content, .contact-form, .booking-form, .form-card {
  background: #ffffff !important;
  border: 1px solid var(--light-line) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--light-ink);
}
.glass, .card, .pricing-card, .pricing-options-wrap, .product-card, .app-card, .policy-content, .legal-content, .contact-form, .booking-form, .form-card { border-radius: 8px !important; }
.news-item, .tech-badge { border-radius: 6px !important; }
.news-item:hover, .pricing-card:hover, .glass:hover { border-color: #bae6fd !important; }
.pricing-card.featured { border: 2px solid var(--primary) !important; box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12); }
.pricing-badge { background: var(--primary) !important; color: #fff !important; border-radius: 4px !important; }
.pricing-amount, .pricing-plan-name, .pricing-price { color: var(--light-ink) !important; }
.pricing-features li::before { color: var(--primary) !important; }
.pricing-options-table th, .pricing-options-table td { border-color: var(--light-line) !important; color: var(--light-ink); }
.pricing-options-table th { background: #f1f5f9 !important; color: var(--light-muted) !important; }
.news-label { border-radius: 4px !important; }
.news-label.update { background: var(--light-soft) !important; color: var(--primary) !important; }
.news-label.info { background: #eef2ff !important; color: #4f46e5 !important; }

/* ---- buttons ---- */
.btn { border-radius: 6px !important; }
.btn-primary { background: var(--primary) !important; color: #ffffff !important; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.22) !important; }
.btn-primary:hover { background: #0369a1 !important; }
.btn-outline { background: #ffffff !important; color: var(--light-ink) !important; border: 1.5px solid #cbd5e1 !important; }
.btn-outline:hover { border-color: var(--primary) !important; color: var(--primary) !important; }

/* ---- forms ---- */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]), select, textarea {
  background: #ffffff !important;
  color: var(--light-ink) !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px var(--light-soft) !important; outline: none; }
input::placeholder, textarea::placeholder { color: #94a3b8 !important; }
label { color: var(--light-ink); }

/* ---- top page details ---- */
.section-nav .nav-dot { border-color: rgba(15, 23, 42, 0.25); }
.section-nav .nav-dot.active { background: var(--primary); border-color: var(--primary); }
.scroll-node { box-shadow: 0 0 0 6px var(--light-soft); }
.step-number { background: #ffffff !important; }
.gallery-item { border-radius: 8px !important; overflow: hidden; }
.gallery-overlay { background: linear-gradient(to top, rgba(15, 23, 42, 0.78), transparent) !important; }
.gallery-info h4, .gallery-info p { color: #ffffff !important; }
.cta-spotlight { background: transparent !important; }

/* ---- footer ---- */
footer { background: #ffffff !important; border-top: 1px solid var(--light-line) !important; color: var(--light-ink); }
footer a, footer p, footer li { color: var(--light-muted); }
footer a:hover { color: var(--primary); }
footer h3, footer h4, footer .footer-title { color: var(--primary); }
footer .logo { color: var(--light-ink) !important; }
.footer-bottom { border-top: 1px solid var(--light-line) !important; color: var(--light-muted); }

/* ---- page parts that set their own dark colours ---- */
.bg-shapes .shape { opacity: 1; }

/* pricing */
.pricing-note { background: var(--light-soft) !important; border-color: #bae6fd !important; color: #075985 !important; border-radius: 6px !important; }
.price-section h3, .term-card strong, .support-card strong { color: var(--light-ink) !important; }
.price-table-wrap { background: #ffffff !important; border: 1px solid var(--light-line) !important; border-radius: 8px !important; }
.price-table th, .price-table td { border-bottom-color: var(--light-line) !important; color: var(--light-ink); }
.price-table th { background: #f1f5f9 !important; color: var(--light-muted) !important; }
.price-table td:last-child, .price-table th:last-child { color: var(--light-ink) !important; }
.term-card, .support-card, .price-item { background: #ffffff !important; border: 1px solid var(--light-line) !important; border-radius: 8px !important; }
.support-card .fee { color: var(--primary) !important; }
.cta-panel { background: #ffffff !important; border: 1px solid #bae6fd !important; border-radius: 8px !important; box-shadow: 0 8px 24px rgba(2, 132, 199, 0.08); }

/* products */
.product-icon { background: #f1f5f9 !important; border-color: var(--light-line) !important; border-radius: 8px !important; }
.platform-tag { background: #f1f5f9 !important; border: 1px solid var(--light-line) !important; color: var(--light-ink) !important; border-radius: 4px !important; padding: 2px 10px; }
.status-badge { background: #eef2ff !important; color: #4f46e5 !important; border-radius: 4px !important; }
.product-card:hover { border-color: #bae6fd !important; }

/* booking */
.form-group select, .form-group select option, select option { background-color: #ffffff !important; color: var(--light-ink) !important; }
.cal-nav:hover { background: #f1f5f9 !important; color: var(--light-ink) !important; }
.cal-day.disabled, .cal-day.disabled.sat { color: #cbd5e1 !important; }
.cal-day.sun { color: #dc2626 !important; }
.calendar, .booking-calendar, .slot-list, .time-slots, .booking-card { background: #ffffff !important; border-color: var(--light-line) !important; }

/* payment methods, terms of sale */
.method-card, .payment-card { background: #ffffff !important; border: 1px solid var(--light-line) !important; border-radius: 8px !important; }

/* sections: no dark veil over the light background */
.portfolio-home section:not(.hero) { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* Top page: white and pale-blue bands in turn, so the page is not one flat white. */
.portfolio-home main > section.node-container:nth-of-type(odd):not(.final-cta) { background: rgba(255, 255, 255, 0.78) !important; border-top: 1px solid var(--light-line); border-bottom: 1px solid var(--light-line); }
.pricing-card:hover { box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important; }
.pricing-card.featured { background: #ffffff !important; }
.featured-product img, .profile-image img, .zig-zag img { border-radius: 8px; }

/* The connector line and dot between sections ran over titles and text; the light design
   separates sections with bands instead. */
.node-container::before,
.node-container::after,
.node-container .scroll-node,
.scroll-path { display: none !important; }

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.85rem; }
}

/* ---- member site button in the header ---- */
.nav-content { gap: 24px; }
.nav-member {
  margin-left: 8px; padding: 8px 18px; border-radius: 6px;
  background: var(--primary); color: #ffffff !important; font-size: 0.9rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
}
.nav-member:hover { background: #0369a1; }
@media (max-width: 768px) {
  .nav-member { margin-left: auto; padding: 7px 14px; font-size: 0.85rem; }
}

/* ---- top page colour ---- */
.hero-bg {
  background:
    radial-gradient(ellipse 55% 50% at 18% 28%, rgba(56, 189, 248, 0.22), transparent 70%),
    radial-gradient(ellipse 50% 45% at 82% 72%, rgba(99, 102, 241, 0.16), transparent 70%),
    radial-gradient(ellipse 40% 35% at 70% 18%, rgba(45, 212, 191, 0.12), transparent 70%) !important;
}
.final-cta, #final-cta {
  background: linear-gradient(135deg, #e0f2fe 0%, #eef2ff 55%, #f0fdfa 100%) !important;
  border-top: 1px solid #bae6fd;
}
.section-title { position: relative; }
.portfolio-home .section-title::after {
  content: ""; display: block; width: 40px; height: 3px; margin: 14px auto 0;
  background: linear-gradient(90deg, var(--primary), #6366f1); border-radius: 2px;
}

/* ---- news badges: 重要, the app, the category in its own colour ---- */
.news-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* 日付だけを 1 段目に置き、チップは 2 段目にまとめる（チップが途中で折り返して段がずれないように） */
.news-meta .news-date { flex-basis: 100%; }
.news-label { text-transform: none !important; display: inline-flex; align-items: center; padding: 2px 10px; font-size: 0.75rem; font-weight: 700; line-height: 1.6; border: 1px solid transparent; border-radius: 4px !important; white-space: nowrap; }
.news-important { background: #dc2626 !important; color: #ffffff !important; border-color: #dc2626 !important; }
.news-app { background: #f1f5f9 !important; color: #475569 !important; border-color: var(--light-line) !important; }
.news-cat--notice { background: #e0f2fe !important; color: #0369a1 !important; border-color: #bae6fd !important; }
.news-cat--media { background: #f3e8ff !important; color: #7e22ce !important; border-color: #e9d5ff !important; }
.news-cat--profile { background: #ccfbf1 !important; color: #0f766e !important; border-color: #99f6e4 !important; }
.news-cat--update { background: #dcfce7 !important; color: #15803d !important; border-color: #bbf7d0 !important; }
.news-cat--maintenance { background: #fef3c7 !important; color: #b45309 !important; border-color: #fde68a !important; }
.news-cat--guide { background: #e0e7ff !important; color: #4338ca !important; border-color: #c7d2fe !important; }
.news-cat--mobile { background: #fae8ff !important; color: #a21caf !important; border-color: #f5d0fe !important; }
.news-cat--design { background: #fce7f3 !important; color: #be185d !important; border-color: #fbcfe8 !important; }
.news-cat--works { background: #ede9fe !important; color: #6d28d9 !important; border-color: #ddd6fe !important; }
.news-cat--photo { background: #ffedd5 !important; color: #c2410c !important; border-color: #fed7aa !important; }
.news-cat--tips { background: #cffafe !important; color: #0e7490 !important; border-color: #a5f3fc !important; }
.news-cat--service { background: #dbeafe !important; color: #1d4ed8 !important; border-color: #bfdbfe !important; }
.news-cat--case { background: #d1fae5 !important; color: #047857 !important; border-color: #a7f3d0 !important; }
.news-cat--other { background: #f1f5f9 !important; color: #475569 !important; border-color: var(--light-line) !important; }

/* ---- About: a CSS drawing in place of a photo ---- */
.about-visual { position: relative; width: 100%; max-width: 520px; aspect-ratio: 5 / 4; margin: 0 auto; }
.av-glow { position: absolute; border-radius: 50%; filter: blur(30px); }
.av-glow--a { width: 60%; height: 60%; left: -6%; top: 2%; background: rgba(56, 189, 248, 0.35); }
.av-glow--b { width: 55%; height: 55%; right: -4%; bottom: -2%; background: rgba(129, 140, 248, 0.28); }
.av-window {
  position: absolute; left: 4%; top: 10%; width: 78%;
  background: #0f172a; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.12);
  animation: av-float 7s ease-in-out infinite;
}
.av-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #1e293b; }
.av-bar i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.av-bar i:nth-child(2) { background: #fbbf24; }
.av-bar i:nth-child(3) { background: #34d399; }
.av-bar span { margin-left: 10px; color: #94a3b8; font: 600 12px/1 "Inter", "Segoe UI", sans-serif; }
.av-code {
  margin: 0; padding: 18px 20px 22px; color: #e2e8f0; white-space: pre;
  font: 500 clamp(10px, 1.25vw, 13.5px)/1.75 "JetBrains Mono", "SFMono-Regular", Consolas, monospace; overflow: hidden;
}
.av-code .k { color: #c084fc; }
.av-code .v { color: #7dd3fc; }
.av-code .p { color: #fda4af; }
.av-code .s { color: #86efac; }
.av-code .f { color: #fcd34d; }
.av-code .c { color: #64748b; }
.av-caret { display: inline-block; width: 7px; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: #38bdf8; animation: av-blink 1.1s steps(1) infinite; }
.av-timetable {
  position: absolute; right: 2%; bottom: 6%; width: 34%; padding: 12px; background: #ffffff;
  border: 1px solid var(--light-line); border-radius: 10px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14); animation: av-float 8s ease-in-out -2s infinite;
}
.av-timetable b { display: block; margin-bottom: 8px; color: var(--light-ink); font-size: 12px; }
.av-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.av-grid i { height: 18px; border-radius: 4px; }
.av-grid .t1 { background: #7dd3fc; } .av-grid .t2 { background: #fca5a5; } .av-grid .t3 { background: #86efac; }
.av-grid .t4 { background: #fcd34d; } .av-grid .t5 { background: #c4b5fd; }
.av-chip {
  position: absolute; padding: 7px 14px; border-radius: 999px; background: #ffffff; color: var(--light-ink);
  font-size: 13px; font-weight: 700; white-space: nowrap; border: 1px solid var(--light-line);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1); animation: av-float 6s ease-in-out infinite;
}
.av-chip::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 1px; }
.av-chip--web { right: 4%; top: 2%; animation-delay: -1s; }
.av-chip--web::before { background: #0284c7; }
.av-chip--app { left: 2%; top: 0; animation-delay: -3s; }
.av-chip--app::before { background: #6366f1; }
.av-chip--it { left: 8%; bottom: 4%; animation-delay: -4.5s; }
.av-chip--it::before { background: #14b8a6; }
@keyframes av-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes av-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .av-window, .av-timetable, .av-chip, .av-caret { animation: none; }
}
@media (max-width: 480px) {
  .about-visual { aspect-ratio: 1 / 1; }
  .av-window { width: 92%; left: 0; }
  .av-chip { font-size: 11px; padding: 5px 10px; }
}
.av-code { text-align: left; }

/* News rows: date and badges on one line, the title on its own line below. */
.news-item { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
.news-item .news-title { display: block; width: 100%; line-height: 1.6; }

/* Footer blurb: one line per sentence on wide screens; on phones it breaks at 、。 only. */
.footer-info p { max-width: none !important; word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 769px) {
  .footer-info { flex-shrink: 0; }
  .footer-info p { white-space: nowrap; }
}

/* Payment methods: the bank and konbini icons are drawn in white; on the light page draw them dark. */
img[src$="/payment-methods/bank.svg"], img[src$="/payment-methods/konbini.svg"] { filter: brightness(0) invert(28%); }

/* News post body: images uploaded from the editor fit the column. */
.post-content-body img { max-width: 100%; height: auto; display: block; margin: 1.2em auto; }

/* ---- News post body: formatting made in the editor ---- */
.post-content-body { font-weight: 400; }
.post-content-body p { margin: 0 0 .35em; }
.post-content-body h1 { font-size: 1.5rem; font-weight: 700; margin: 1.6em 0 .5em; }
.post-content-body h2 { font-size: 1.3rem; font-weight: 700; margin: 1.8em 0 .6em; padding-bottom: .3em; border-bottom: 2px solid var(--light-line); }
.post-content-body h3 { font-size: 1.1rem; font-weight: 700; margin: 1.4em 0 .4em; }
.post-content-body > :first-child { margin-top: 0; }
.post-content-body ul, .post-content-body ol { margin: .3em 0 .9em 1.4em; padding: 0; white-space: normal; }
.post-content-body li { margin: .15em 0; }
.post-content-body ul li { list-style: disc; }
.post-content-body ol li { list-style: decimal; }
.post-content-body blockquote { margin: 1em 0; padding: .6em 1em; border-left: 4px solid #bae6fd; background: #f0f9ff; color: var(--light-muted); }
.post-content-body a { color: var(--primary); text-decoration: underline; }
.post-content-body .ql-align-center { text-align: center; }
.post-content-body .ql-align-right { text-align: right; }
.post-content-body .ql-align-justify { text-align: justify; }
.post-content-body li[data-list="bullet"] { list-style: disc; }
.post-content-body li[data-list="ordered"] { list-style: decimal; }

/* ---- phone menu (site-light.js adds .nav-toggle; header.nav-open shows the links) ---- */
.nav-toggle { display: none; }
@media (max-width: 768px) {
  .nav-content { gap: 8px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 0 10px; flex-shrink: 0;
    border: 1px solid var(--light-line); border-radius: 6px; background: #ffffff; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 2px; border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
  header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  header.nav-open { background: #ffffff; border-bottom: 1px solid var(--light-line); }
  header.nav-open .nav-links {
    display: flex !important; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    padding: 4px 24px 16px; max-height: calc(100vh - var(--header-height)); overflow-y: auto;
  }
  header.nav-open .nav-links a { display: block; padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--light-line); }
  header.nav-open .nav-links a:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-toggle span { transition: none; }
}

/* ---- top page: sections as tall as their content (only the first view fills the screen) ---- */
.site-top main > section:not(.hero) { min-height: 0 !important; padding-top: 112px !important; padding-bottom: 112px !important; }
@media (max-width: 768px) {
  .site-top main > section:not(.hero) { padding-top: 72px !important; padding-bottom: 72px !important; }
}
/* Long sentences read left-aligned on phones too. */
@media (max-width: 992px) {
  .site-top #profile p { text-align: left; }
}

/* ---- top page: news link under the list, phone mockups lift on hover (was inline onmouseover) ---- */
.site-top .news-more { margin: 32px 0 0; text-align: center; }
.site-top .news-more a { color: var(--primary); font-weight: 700; text-decoration: none; }
.site-top .news-more a:hover { text-decoration: underline; }
.site-top .app-mockups { transition: transform .5s ease; }
.site-top .app-mockups:hover { transform: translateY(-10px); }
@media (prefers-reduced-motion: reduce) {
  .site-top .app-mockups, .site-top .app-mockups:hover { transition: none; transform: none; }
}
