/* www.tryit.co.jp */
:root {
  --blue: #1f5fa8;
  --blue-dark: #153f73;
  --navy: #0f2540;
  --red: #e60012;
  --ink: #1f2933;
  --muted: #5b6770;
  --line: #dde3ea;
  --bg: #f5f7fa;
  --white: #fff;
  --radius: 10px;
  --w: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.container { width: min(100% - 40px, var(--w)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 8px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: .7em 1.6em; border-radius: 999px; font-weight: 700;
  text-decoration: none; line-height: 1.4; border: 2px solid transparent; transition: .2s;
  cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: #e8f0fa; color: var(--blue-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--blue-dark); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-ghost:hover { background: var(--blue); color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.brand { margin: 0; line-height: 1; flex: none; }
.brand img { width: 120px; height: auto; display: block; }
.tagline { margin: 0; font-size: .72rem; color: var(--muted); line-height: 1.4; flex: none; white-space: nowrap; }
.gnav { margin-left: auto; }
.gnav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.gnav > ul > li { position: relative; }
.gnav > ul > li > a:not(.btn) {
  display: block; padding: 24px 14px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
  border-bottom: 3px solid transparent;
}
.gnav > ul > li > a:not(.btn):hover, .gnav a.is-current { color: var(--blue); border-bottom-color: var(--blue); }
.gnav-sub {
  position: absolute; left: 0; top: 100%; min-width: 230px; list-style: none; margin: 0; padding: 8px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 12px 24px rgba(15,37,64,.12); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.has-sub:hover .gnav-sub, .has-sub:focus-within .gnav-sub { opacity: 1; visibility: visible; transform: none; }
.gnav-sub a { display: block; padding: 8px 18px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.gnav-sub a:hover { background: var(--bg); color: var(--blue); }
.gnav-contact { margin-left: 10px; }
.gnav-contact .btn { padding: .55em 1.3em; font-size: .9rem; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin-bottom: 6px; transition: .2s; }
.nav-toggle span:last-child { margin-bottom: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(88,166,255,.45), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(230,0,18,.18), transparent 60%),
    linear-gradient(135deg, var(--navy) 0%, #17406f 55%, var(--blue) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
  -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
}
.hero .container { position: relative; padding: 96px 0 104px; }
.hero-eyebrow { margin: 0 0 18px; font-size: .9rem; letter-spacing: .12em; color: #b9d4f3; font-weight: 600; }
.hero h2 { margin: 0; font-size: clamp(1.8rem, 4.6vw, 3.1rem); line-height: 1.4; font-weight: 800; letter-spacing: .02em; }
.hero h2 em { font-style: normal; color: #ffd84a; }
.hero-lead { margin: 26px 0 36px; max-width: 40em; font-size: 1.08rem; color: #e3edf8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .en { display: block; color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .2em; margin-bottom: 6px; }
.section-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.5; }
.section-head p { margin: 14px auto 0; max-width: 44em; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  transition: .2s; display: flex; flex-direction: column;
}
.card:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(31,95,168,.14); transform: translateY(-2px); }
.card h3 { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.5; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.8; }
.card .more { margin-top: auto; padding-top: 16px; color: var(--blue); font-weight: 700; font-size: .9rem; }
.card .more::after { content: " →"; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; background: #e8f0fa; color: var(--blue); display: grid; place-items: center; margin-bottom: 18px; }
.card-icon svg { width: 28px; height: 28px; }
.card-num { font-size: .78rem; font-weight: 700; color: var(--blue); letter-spacing: .14em; margin-bottom: 6px; }

.worries { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.worries li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 14px 18px; font-weight: 600; }
.message { max-width: 50em; margin-inline: auto; }
.message p { margin: 0 0 1.2em; }
.message .sign { text-align: right; color: var(--muted); }
.lead-strong { font-size: 1.12rem; font-weight: 700; color: var(--navy); border-left: 5px solid var(--red); padding-left: 16px; line-height: 1.7; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.steps li::before { content: "STEP " counter(step); display: block; color: var(--blue); font-weight: 800; font-size: .8rem; letter-spacing: .12em; margin-bottom: 6px; }
.steps strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.steps span { color: var(--muted); font-size: .92rem; line-height: 1.75; display: block; }

/* ---------- news ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: grid; grid-template-columns: 6.2em 8.2em 1fr; gap: 6px 14px; align-items: start; padding: 16px 4px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.news-list time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .92rem; padding-top: 2px; }
.tag { display: inline-block; text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .06em; border-radius: 4px; padding: 3px 0; line-height: 1.5; margin-top: 3px; }
.tag-information { background: var(--navy); color: #fff; }
.tag-news { background: #e8f0fa; color: var(--blue-dark); }
.news-body p { margin: 0 0 .5em; }
.news-body p:last-child { margin-bottom: 0; }
.news-more { text-align: center; margin-top: 32px; }
.news-filter { display: flex; gap: 10px; margin: 0 0 24px; flex-wrap: wrap; }
.news-filter button { font: inherit; font-size: .9rem; font-weight: 700; padding: .45em 1.3em; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.news-filter button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- lower pages ---------- */
.page-head { background: linear-gradient(120deg, var(--navy), var(--blue)); color: #fff; padding: 46px 0 42px; }
.page-head-en { margin: 0 0 4px; font-size: .78rem; letter-spacing: .22em; color: #b9d4f3; font-weight: 700; text-transform: uppercase; }
.page-head h1 { margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.45; }
.breadcrumb-wrap { border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { list-style: none; margin: 0; padding: 10px 0; display: flex; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin: 0 .6em; color: #b3bcc5; }
.breadcrumb a { color: var(--muted); }

.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding: 56px 0 80px; align-items: start; }
.layout-single { padding: 56px 0 80px; }
.layout-single .content { max-width: 860px; margin-inline: auto; }
.side { position: sticky; top: 100px; }
.side-title { margin: 0; font-weight: 700; border-bottom: 2px solid var(--blue); padding-bottom: 8px; }
.side-title a { color: var(--ink); text-decoration: none; }
.side ul { list-style: none; margin: 0; padding: 0; }
.side li a { display: block; padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .93rem; }
.side li a:hover { background: var(--bg); color: var(--blue); }
.side li a[aria-current="page"] { background: #e8f0fa; color: var(--blue-dark); font-weight: 700; }

.content > :first-child { margin-top: 0; }
.content h2 { font-size: 1.45rem; line-height: 1.5; margin: 2.4em 0 .9em; padding: 0 0 .45em; border-bottom: 2px solid var(--line); position: relative; }
.content h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 2px; background: var(--blue); }
.content h3 { font-size: 1.15rem; line-height: 1.5; margin: 2em 0 .7em; padding-left: 12px; border-left: 4px solid var(--blue); }
.content h4 { font-size: 1.02rem; margin: 1.6em 0 .5em; color: var(--blue-dark); }
.content p { margin: 0 0 1.2em; }
.content ul, .content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.content li { margin-bottom: .35em; }
.content .cards, .content .steps { padding-left: 0; }
.content .steps { grid-template-columns: repeat(2, 1fr); }
.content .note { color: var(--muted); font-size: .9rem; }
.content figure { margin: 1.6em 0; }
.content figure img { border: 1px solid var(--line); border-radius: var(--radius); }
.content figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.diagram { text-align: center; background: var(--bg); border-radius: var(--radius); padding: 24px 16px; }
.diagram img { border: 0 !important; max-height: none; width: min(100%, 640px); }
.check { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; }
.check li { position: relative; padding-left: 1.7em; margin: 0; }
.check li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .8em; height: .45em; border-left: 3px solid var(--blue); border-bottom: 3px solid var(--blue); transform: rotate(-45deg); }
.box { background: var(--bg); border-radius: var(--radius); padding: 22px 26px; margin: 0 0 1.4em; }
.box > :last-child { margin-bottom: 0; }
.link-list { list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.link-list .card { padding: 22px 24px; }

table.def { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; }
table.def th, table.def td { border-bottom: 1px solid var(--line); padding: 16px 14px; text-align: left; vertical-align: top; }
table.def th { width: 11em; background: var(--bg); font-weight: 700; white-space: nowrap; }
.partners { list-style: none; padding: 0 !important; columns: 2; column-gap: 40px; }
.partners > li { break-inside: avoid; padding: 10px 0; border-bottom: 1px dashed var(--line); margin: 0; }
.partners small { display: block; color: var(--muted); font-size: .85rem; padding-left: 1em; }
.map { position: relative; padding-top: 56%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.access-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: start; }
.access-grid figure { margin: 0; }
.philosophy { display: grid; gap: 20px; }
.philosophy section { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.philosophy h3 { border: 0; padding: 0; margin: 0 0 4px; font-size: 1.5rem; color: var(--blue); font-family: Georgia, "Times New Roman", serif; }
.philosophy .jp { font-weight: 700; margin-bottom: .6em; }
.philosophy p:last-child { margin-bottom: 0; }
.related-banner img { border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- form ---------- */
.form { display: grid; gap: 22px; }
.form label { display: block; font-weight: 700; margin-bottom: 6px; }
.form .req { background: var(--red); color: #fff; font-size: .68rem; border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: 2px; }
.form .opt { background: #8794a1; color: #fff; font-size: .68rem; border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: 2px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea, .form select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #b9c3cd; border-radius: 8px; background: #fff; color: var(--ink);
}
.form textarea { min-height: 200px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--blue); outline: 3px solid rgba(31,95,168,.2); }
.form .agree { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.form .agree input { margin-top: .55em; width: 18px; height: 18px; flex: none; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { text-align: center; }
.form-actions .btn { min-width: 240px; padding: .9em 2em; }
.form-actions .btn[disabled] { opacity: .6; cursor: wait; }
.form-msg { border-radius: 8px; padding: 16px 20px; margin: 0 0 24px; display: none; }
.form-msg.ok { display: block; background: #e7f6ec; border: 1px solid #7cc79a; color: #14532d; }
.form-msg.ng { display: block; background: #fdecea; border: 1px solid #f1a29b; color: #7f1d1d; }

/* ---------- CTA / footer ---------- */
.cta { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 52px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.5; }
.cta p { margin: 0; color: #dbe8f6; }
.cta-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-tel { color: #fff; text-decoration: none; font-size: 1.7rem; font-weight: 800; line-height: 1.2; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.cta-tel small { display: block; font-size: .72rem; font-weight: 600; color: #dbe8f6; letter-spacing: .08em; }
.cta-tel:hover { color: #fff; opacity: .85; }
.site-footer { background: var(--navy); color: #c7d3e0; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 300px 1fr; gap: 48px; padding: 56px 0 40px; }
.footer-logo { width: 130px; filter: invert(1) hue-rotate(180deg); margin-bottom: 14px; }
.footer-company p { margin: 0; line-height: 1.9; }
.site-footer a { color: #c7d3e0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-nav p { margin: 0 0 10px; font-weight: 700; color: #fff; }
.footer-nav p a { color: #fff; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin-bottom: 6px; }
.copyright { margin: 0; text-align: center; padding: 18px 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .78rem; color: #93a4b6; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .tagline { display: none; }
  .gnav > ul > li > a:not(.btn) { padding: 24px 10px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-inner { min-height: 64px; }
  .gnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); max-height: calc(100vh - 64px); overflow: auto; box-shadow: 0 16px 24px rgba(15,37,64,.12); }
  .gnav.is-open { display: block; }
  .gnav > ul { display: block; padding: 8px 20px 20px; }
  .gnav > ul > li > a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .gnav-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 14px; min-width: 0; }
  .gnav-sub a { padding: 9px 4px; color: var(--muted); }
  .gnav-contact { margin: 18px 0 0; }
  .gnav-contact .btn { display: block; text-align: center; padding: .8em; }
  .cards, .cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .layout-side { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 64px; }
  .side { position: static; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero .container { padding: 64px 0 72px; }
  .section { padding: 52px 0; }
  .cards, .cards.cols-2, .cards.cols-4, .worries, .steps, .check { grid-template-columns: 1fr; }
  .news-list li { grid-template-columns: 6.2em 8.2em; }
  .news-list .news-body { grid-column: 1 / -1; }
  table.def th, table.def td { display: block; width: 100%; }
  table.def th { border-bottom: 0; padding-bottom: 8px; }
  .partners { columns: 1; }
  .access-grid { grid-template-columns: 1fr; }
  .access-grid figure { max-width: 240px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .map { padding-top: 80%; }
}
@media print {
  .site-header, .cta, .site-footer, .side, .breadcrumb-wrap { display: none; }
}
