/* CryptoLinks Co., Ltd. — site styles */
:root {
  --navy: #13243F;
  --navy-deep: #0E1B30;
  --gold: #C9AB6A;
  --ink: #1D2738;
  --muted: #5B6678;
  --blue: #2457B0;
  --line: #DCE1E9;
  --mist: #F4F6F9;
  --paper: #FFFFFF;
  --green: #2E8B57;
  --wrap: 1040px;
  --gutter: 20px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "YuGothic", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, .hero p, .biz p, .product p { word-break: auto-phrase; }
body { line-break: strict; }
h1, h2, h3 { line-height: 1.45; margin: 0; font-weight: 700; letter-spacing: .02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.nb { display: inline-block; } /* keeps a phrase together when wrapping */

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; padding: 8px 0; }
.brand img { width: 172px; height: auto; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.gnav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.gnav a:hover { border-bottom-color: var(--line); }
.gnav a[aria-current="page"] { border-bottom-color: var(--navy); }

/* Hero (top page) — echoes the navy and gold of the business card */
.hero { background: var(--navy); color: #EEF1F6; position: relative; overflow: hidden; }
.hero .wrap { position: relative; padding-top: 104px; padding-bottom: 112px; }
.hero h1 { font-size: 40px; line-height: 1.5; letter-spacing: .04em; color: #fff; }
.hero p { margin-top: 28px; max-width: 30em; color: #C9D1DE; }
.hero-mark { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 168px; height: auto; pointer-events: none; }
.hero h1, .hero p { position: relative; max-width: 620px; }

/* Page head (sub pages) */
.page-head { background: var(--navy); color: #fff; }
.page-head .wrap { padding-top: 56px; padding-bottom: 56px; }
.page-head h1 { font-size: 30px; }
.page-head p { margin-top: 10px; color: #C9D1DE; font-size: 15px; }

/* Sections */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.alt { background: var(--mist); border-top: 0; }
.section.alt + .section { border-top: 0; }
.section h2 { font-size: 26px; color: var(--navy); }
.section .lead { margin-top: 16px; color: var(--muted); max-width: 40em; }
.more { margin-top: 32px; }
.more a { font-weight: 700; }

/* Business list */
.biz { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.biz li { border-top: 3px solid var(--navy); padding-top: 20px; }
.biz h3 { font-size: 19px; color: var(--navy); }
.biz p { margin-top: 10px; color: var(--muted); font-size: 15px; line-height: 1.85; }

/* Product card (CourtMate is one example, kept small) */
.product { margin-top: 36px; display: grid; grid-template-columns: 72px 1fr; column-gap: 24px; align-items: start; max-width: 680px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 6px; padding: 24px; }
.product img { grid-row: 1 / span 3; width: 72px; height: 72px; border-radius: 16px; }
.product > * { grid-column: 2; }
.product img { grid-column: 1; }
.product .status { justify-self: start; }
.product h3 { font-size: 19px; color: var(--ink); }
.product p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.product .status { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--green); border: 1px solid currentColor; border-radius: 999px; padding: 1px 12px; }

/* Company table */
.profile { width: 100%; margin-top: 36px; border-collapse: collapse; }
.profile th, .profile td { text-align: left; vertical-align: top; padding: 20px 0; border-bottom: 1px solid var(--line); }
.profile tr:first-child th, .profile tr:first-child td { border-top: 1px solid var(--line); }
.profile th { width: 220px; font-weight: 700; color: var(--navy); padding-right: 24px; }
.profile th .en, .profile td .en { display: block; font-weight: 400; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.profile td ul { margin: 0; padding-left: 1.2em; }
.addr { font-style: normal; }

/* Contact */
.contact-box { margin-top: 36px; padding: 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; max-width: 680px; }
.contact-box dl { margin: 0; display: grid; grid-template-columns: 11em 1fr; gap: 12px 16px; align-items: baseline; }
.contact-box dt { font-weight: 700; color: var(--navy); }
.contact-box dd { margin: 0; }
.mail { font-size: 20px; font-weight: 700; }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 20px; margin-top: 48px; color: var(--navy); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 1.4em; }
.prose .date { margin-top: 48px; color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B7C0CF; font-size: 14px; }
.site-footer .wrap { padding-top: 56px; padding-bottom: 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.site-footer img { width: 150px; }
.site-footer .co { margin-top: 18px; color: #fff; font-size: 15px; }
.site-footer address { font-style: normal; margin-top: 6px; line-height: 1.8; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.site-footer a { color: #DCE2EC; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 13px; color: #8C98AC; }

/* 404 */
.notfound { padding: 120px 0; }
.notfound h1 { font-size: 26px; color: var(--navy); }
.notfound p { margin-top: 16px; color: var(--muted); }

/* Mobile */
@media (max-width: 760px) {
  body { font-size: 15px; line-height: 1.85; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 10px; padding-bottom: 4px; min-height: 0; }
  .brand img { width: 150px; }
  .gnav { width: 100%; }
  .gnav ul { gap: 0; justify-content: space-between; }
  .gnav a { display: block; font-size: 14px; padding: 10px 0; }
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .hero h1 { font-size: 26px; }
  .hero p { margin-top: 20px; font-size: 15px; }
  .hero-mark { position: static; transform: none; width: 40px; margin-bottom: 28px; }
  .page-head .wrap { padding-top: 40px; padding-bottom: 40px; }
  .page-head h1 { font-size: 23px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 21px; }
  .biz { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .biz h3 { font-size: 17px; }
  .product { grid-template-columns: 52px 1fr; column-gap: 14px; padding: 18px; }
  .product img { grid-row: 1; width: 52px; height: 52px; border-radius: 12px; }
  .product h3 { align-self: center; }
  .product p, .product .status { grid-column: 1 / -1; }
  .product p { margin-top: 12px; }
  .product h3 { font-size: 17px; }
  .profile th, .profile td { display: block; width: auto; padding: 0; border: 0; }
  .profile th { padding-top: 16px; border-top: 1px solid var(--line); }
  .profile tr:first-child th { border-top: 1px solid var(--line); }
  .profile tr:first-child td { border-top: 0; }
  .profile td { padding: 4px 0 16px; }
  .profile tr:last-child td { border-bottom: 1px solid var(--line); }
  .contact-box { padding: 22px; }
  .contact-box dl { grid-template-columns: 1fr; gap: 2px; }
  .contact-box dd + dt { margin-top: 12px; }
  .mail { font-size: 18px; }
  .prose h2 { font-size: 18px; margin-top: 36px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
