:root {
  --ut-blue: #0b8bee;
  --ut-blue-deep: #005fa8;
  --ut-light-blue: #5bdeff;
  --ut-yellow: #ffcd00;
  --ink: #111827;
  --muted: #52616f;
  --paper: #ffffff;
  --wash: #f2f9ff;
  --soft: #f6f7f9;
  --line: #d9e8f5;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Noto Sans JP", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 232, 245, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: #00172b;
  background: linear-gradient(135deg, var(--ut-yellow) 0 42%, var(--ut-blue) 42% 100%);
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  line-height: 1.25;
  white-space: nowrap;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 8px;
  padding: 9px 13px;
  color: #22303d;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ut-blue-deep);
  background: var(--wash);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span[aria-hidden="true"] {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: var(--ut-blue-deep);
  box-shadow: 0 10px 24px rgba(0, 95, 168, 0.18);
}

.btn-primary:hover {
  background: #004d8a;
}

.btn-accent {
  color: #111827;
  background: var(--ut-yellow);
  box-shadow: 0 14px 28px rgba(255, 205, 0, 0.25);
}

.btn-accent:hover {
  background: #f1c000;
}

.btn-ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(0, 27, 48, 0.18);
}

.btn-ghost:hover {
  background: rgba(0, 27, 48, 0.3);
}

.btn-small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.full {
  width: 100%;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72vh;
  overflow: hidden;
  color: #ffffff;
  background: #06243f url("../assets/hero-study-consulting.png") center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 26, 46, 0.86) 0%, rgba(0, 44, 78, 0.62) 44%, rgba(0, 65, 110, 0.16) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 98px 0 76px;
}

.hero h1 {
  max-width: 760px;
  margin: 10px 0 18px;
  font-family: "Noto Serif SC", "Noto Serif JP", Georgia, serif;
  font-size: 4rem;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 710px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 44px 0 0;
}

.hero-points div {
  min-width: 128px;
  border-left: 3px solid var(--ut-yellow);
  padding: 4px 16px 6px 12px;
  background: rgba(255, 255, 255, 0.09);
  border-radius: 0 8px 8px 0;
}

.hero-points dt {
  font-weight: 800;
}

.hero-points dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(11, 139, 238, 0.1), rgba(91, 222, 255, 0.18)),
    var(--wash);
  border-bottom: 1px solid var(--line);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 7%;
  bottom: -54px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 34px solid rgba(255, 205, 0, 0.34);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding: 82px 0 72px;
}

.page-hero h1 {
  margin: 8px 0 12px;
  font-family: "Noto Serif SC", "Noto Serif JP", Georgia, serif;
  font-size: 3rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ut-blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta-band .eyebrow {
  color: var(--ut-yellow);
}

.section {
  padding: 84px 0;
}

.section-tight {
  padding-top: 68px;
}

.band {
  background: linear-gradient(180deg, var(--wash), #ffffff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2,
.split h2,
.contact-layout h2,
.cta-band h2 {
  margin: 0 0 12px;
  font-size: 2.15rem;
  line-height: 1.24;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.split p,
.contact-layout p,
.cta-band p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.feature,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 24px;
}

.info-card h3,
.feature h3,
.contact-panel h2 {
  margin: 10px 0 8px;
  line-height: 1.32;
}

.info-card p,
.feature p,
.contact-panel p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #1b2938;
  background: rgba(255, 205, 0, 0.38);
  font-size: 0.82rem;
  font-weight: 800;
}

.number {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #00172b;
  background: var(--ut-yellow);
  font-weight: 900;
}

.service-card {
  min-height: 236px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 48px;
  align-items: center;
}

.image-split {
  align-items: stretch;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: start;
}

.story-copy {
  max-width: 760px;
}

.story-copy h2,
.profile-note h2 {
  margin: 0 0 14px;
  font-size: 2.15rem;
  line-height: 1.24;
  letter-spacing: 0;
}

.story-copy p {
  margin: 0 0 16px;
  color: var(--muted);
}

.story-copy p:last-child,
.profile-note p:last-child {
  margin-bottom: 0;
}

.profile-note {
  border: 1px solid var(--line);
  border-top: 5px solid var(--ut-yellow);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 26px;
}

.profile-note p {
  margin: 0;
  color: var(--muted);
}

.soft-note {
  border-top-color: var(--ut-blue);
  background: var(--wash);
  box-shadow: none;
}

.photo-frame {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--ut-blue-deep);
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-row {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px 18px;
}

.service-row strong {
  color: var(--ut-blue-deep);
}

.service-row span {
  color: #253341;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  border-top: 4px solid var(--ut-blue);
}

.feature:nth-child(even) {
  border-top-color: var(--ut-yellow);
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list p {
  position: relative;
  margin: 0;
  border-left: 4px solid var(--ut-yellow);
  border-radius: 0 8px 8px 0;
  background: var(--soft);
  padding: 14px 16px;
  color: #253341;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline.compact {
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 22px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 24px;
}

.timeline-item > span {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 8px;
  color: #00172b;
  background: linear-gradient(135deg, var(--ut-yellow), #ffe681);
  font-weight: 900;
}

.timeline-item h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px 20px;
}

.faq-list summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 42px;
  align-items: start;
}

.contact-panel {
  position: sticky;
  top: 102px;
  box-shadow: var(--shadow);
}

.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted);
}

.contact-lines a,
.modal-panel a {
  color: var(--ut-blue-deep);
  font-weight: 700;
}

.site-footer a {
  color: var(--ut-light-blue);
  font-weight: 700;
}

.cta-band {
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 69, 119, 0.96), rgba(0, 95, 168, 0.92)),
    var(--ut-blue-deep);
  padding: 58px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-inner p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.cta-inner h2 {
  color: #ffffff;
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #071d31;
  padding: 42px 0 24px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-grid strong {
  color: #ffffff;
}

.footer-grid p {
  margin: 8px 0 0;
}

.footer-grid > div:last-child {
  display: grid;
  gap: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 16, 27, 0.62);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 30px;
}

.modal-panel h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.25;
}

.modal-panel p {
  color: var(--muted);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}

.modal-contact {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 22px;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.08) 12px, transparent 12px) 0 0 / 24px 24px,
    linear-gradient(rgba(17, 24, 39, 0.08) 12px, transparent 12px) 0 0 / 24px 24px,
    #ffffff;
  text-align: center;
}

.qr-placeholder.has-image {
  aspect-ratio: auto;
  overflow: hidden;
  padding: 0;
  background: #ffffff;
}

.qr-placeholder span {
  display: block;
  color: var(--ut-blue-deep);
  font-weight: 900;
  font-size: 2rem;
}

.qr-placeholder small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.qr-placeholder img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  background: #ffffff;
}

@media (max-width: 960px) {
  .card-grid.three,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split,
  .contact-layout,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
    padding: 12px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-links .btn {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 68vh;
    background-position: 60% center;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(0, 26, 46, 0.9), rgba(0, 44, 78, 0.68));
  }

  .hero-inner {
    padding: 74px 0 54px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .page-hero .container {
    padding: 62px 0 54px;
  }

  .page-hero h1 {
    font-size: 2.35rem;
  }

  .section {
    padding: 62px 0;
  }

  .section-heading h2,
  .split h2,
  .story-copy h2,
  .profile-note h2,
  .contact-layout h2,
  .cta-band h2 {
    font-size: 1.85rem;
  }

  .cta-inner,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .brand-text strong {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-points {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .card-grid.three,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 14px;
    align-items: end;
  }

  .modal-panel {
    max-height: calc(100vh - 28px);
    padding: 24px;
  }

  .modal-contact {
    grid-template-columns: 1fr;
  }

  .qr-placeholder {
    max-width: 190px;
    width: 100%;
  }
}
