@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Zen+Kaku+Gothic+New:wght@400;500;700;900&display=swap');

:root {
  --paper: #fbf8f2;
  --paper-deep: #f2ece2;
  --ink: #242c2b;
  --muted: #68716d;
  --line: rgba(36, 44, 43, 0.14);
  --berry: #7e3d4c;
  --berry-deep: #5f2e3b;
  --sakura: #e8a0ad;
  --sky: #b8d8e6;
  --leaf: #65795d;
  --gold: #e5ac58;
  --white: #fffdf9;
  --shadow: 0 22px 70px rgba(82, 55, 43, 0.11);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 11px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 8%, rgba(232, 160, 173, 0.17), transparent 25rem),
    radial-gradient(circle at 90% 19%, rgba(184, 216, 230, 0.28), transparent 25rem),
    var(--paper);
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(36, 44, 43, 0.09);
  background: rgba(251, 248, 242, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner, .footer-inner {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(126, 61, 76, 0.32);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 5px 14px rgba(126, 61, 76, 0.12);
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.brand-copy { display: grid; line-height: 1.08; }
.brand-name { font-size: 1.05rem; }
.brand-kicker { margin-top: 4px; color: var(--berry); font-size: 0.56rem; letter-spacing: 0.14em; }

.nav { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 0.84rem; font-weight: 700; }
.nav a { transition: color 160ms ease, transform 160ms ease; }
.nav a:hover { color: var(--berry); transform: translateY(-1px); }
.nav .nav-cta { padding: 9px 15px; color: var(--white); border-radius: 999px; background: var(--berry); }
.nav .nav-cta:hover { color: var(--white); background: var(--berry-deep); }

.hero, .page-hero, .section, .page-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.82fr);
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  padding: 88px 0 100px;
}

.eyebrow, .section-label {
  color: var(--berry);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1, .page-hero h1 {
  max-width: 760px;
  margin: 20px 0 24px;
  font-size: clamp(2.5rem, 6.2vw, 5.5rem);
  line-height: 1.08;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.hero h1 span { color: var(--berry); }
.hero-lead, .page-lead { max-width: 610px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.17rem); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(78, 51, 45, 0.12); }
.button-primary { color: var(--white); border-color: var(--berry); background: var(--berry); }
.button-primary:hover { background: var(--berry-deep); }
.button-secondary { background: rgba(255, 253, 249, 0.62); }

.hero-art {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
}

.hero-art::before, .hero-art::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(126, 61, 76, 0.21);
  border-radius: 50%;
  transform: rotate(-12deg);
}
.hero-art::before { width: 92%; height: 58%; border-left-color: transparent; border-right-color: transparent; }
.hero-art::after { width: 66%; height: 88%; border-top-color: transparent; border-bottom-color: transparent; transform: rotate(27deg); }

.hero-card {
  position: relative;
  z-index: 1;
  width: min(100%, 405px);
  padding: 18px;
  border: 1px solid rgba(126, 61, 76, 0.18);
  border-radius: 42px;
  background: linear-gradient(145deg, rgba(255, 253, 249, 0.95), rgba(242, 228, 224, 0.72));
  box-shadow: var(--shadow);
  transform: rotate(3deg);
}
.hero-card img { border-radius: 29px; }
.hero-card figcaption { display: flex; justify-content: space-between; gap: 15px; padding: 14px 4px 1px; color: var(--berry); font-family: "Space Grotesk", sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }

.floating-note {
  position: absolute;
  z-index: 2;
  right: 1%;
  bottom: 10%;
  max-width: 185px;
  padding: 15px 17px;
  border: 1px solid rgba(36, 44, 43, 0.14);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.9);
  box-shadow: 0 15px 35px rgba(82, 55, 43, 0.12);
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.55;
  transform: rotate(-5deg);
}
.floating-note strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 0.88rem; }

.section { padding: 82px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.section h2, .page-shell h2 { margin: 10px 0 0; font-size: clamp(1.8rem, 3vw, 2.7rem); line-height: 1.15; letter-spacing: -0.055em; }
.section-intro { max-width: 560px; color: var(--muted); }

.feature-grid, .link-grid, .faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-card, .link-card, .faq-card, .manual-card, .content-panel, .contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.7);
}
.feature-card { min-height: 260px; padding: 27px; display: flex; flex-direction: column; justify-content: space-between; }
.feature-card:nth-child(2) { background: linear-gradient(160deg, rgba(184, 216, 230, 0.35), rgba(255, 253, 249, 0.72)); }
.feature-card:nth-child(3) { background: linear-gradient(160deg, rgba(232, 160, 173, 0.23), rgba(255, 253, 249, 0.72)); }
.feature-index { color: var(--berry); font-family: "Space Mono", monospace; font-size: 0.72rem; }
.feature-card h3 { margin: 22px 0 8px; font-size: 1.35rem; letter-spacing: -0.04em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.91rem; }
.feature-link { color: var(--berry); font-size: 0.82rem; font-weight: 700; }

.link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.link-card { min-height: 145px; padding: 20px; transition: transform 160ms ease, box-shadow 160ms ease; }
.link-card:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(82, 55, 43, 0.11); }
.link-card h3 { margin: 12px 0 5px; font-size: 1rem; }
.link-card p { margin: 0; color: var(--muted); font-size: 0.77rem; line-height: 1.55; }
.link-icon { color: var(--berry); font-family: "Space Grotesk", sans-serif; font-size: 1.35rem; font-weight: 700; }

.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
  padding: 23px 25px;
  border: 1px solid rgba(126, 61, 76, 0.2);
  border-radius: var(--radius-md);
  background: rgba(232, 160, 173, 0.13);
}
.notice-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--berry); font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.notice h3 { margin: 0 0 4px; font-size: 1rem; }
.notice p { margin: 0; color: var(--muted); font-size: 0.88rem; }

.page-hero { padding: 86px 0 58px; }
.page-hero h1 { max-width: 830px; font-size: clamp(2.6rem, 6vw, 5rem); }
.page-hero .page-lead { max-width: 680px; }
.breadcrumb { display: flex; gap: 8px; margin-top: 22px; color: var(--muted); font-size: 0.75rem; }
.breadcrumb a { color: var(--berry); font-weight: 700; }

.faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.faq-card { padding: 0 22px; }
.faq-card details { border-bottom: 1px solid var(--line); }
.faq-card details:last-child { border-bottom: 0; }
.faq-card summary { padding: 21px 24px 21px 0; cursor: pointer; list-style: none; font-weight: 700; position: relative; }
.faq-card summary::-webkit-details-marker { display: none; }
.faq-card summary::after { content: "+"; position: absolute; right: 0; color: var(--berry); font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; font-weight: 500; }
.faq-card details[open] summary::after { content: "−"; }
.faq-card details p { margin: -5px 0 20px; color: var(--muted); font-size: 0.9rem; }

.manual-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; align-items: start; }
.manual-nav { position: sticky; top: 110px; padding: 18px; border-left: 2px solid var(--berry); }
.manual-nav p { margin: 0 0 10px; color: var(--berry); font-family: "Space Grotesk", sans-serif; font-size: 0.69rem; font-weight: 700; letter-spacing: 0.14em; }
.manual-nav a { display: block; padding: 5px 0; color: var(--muted); font-size: 0.82rem; }
.manual-nav a:hover { color: var(--berry); }
.manual-card { display: grid; grid-template-columns: 62px 1fr; gap: 18px; margin-bottom: 16px; padding: 25px; scroll-margin-top: 110px; }
.manual-number { color: var(--berry); font-family: "Space Mono", monospace; font-size: 1.05rem; font-weight: 700; }
.manual-card h2 { margin: 0 0 8px; font-size: 1.3rem; }
.manual-card p { margin: 0 0 12px; color: var(--muted); font-size: 0.91rem; }
.manual-card ul { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 0.88rem; }
.manual-card li + li { margin-top: 4px; }

.content-panel { padding: 30px; }
.content-panel + .content-panel { margin-top: 16px; }
.content-panel h2 { margin: 0 0 12px; font-size: 1.35rem; }
.content-panel h3 { margin: 24px 0 5px; font-size: 1rem; }
.content-panel p, .content-panel li { color: var(--muted); font-size: 0.9rem; }
.content-panel p { margin: 0; }
.content-panel ul { margin: 10px 0 0; padding-left: 1.3em; }
.content-panel li + li { margin-top: 4px; }
.content-panel strong { color: var(--ink); }

.contact-card { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; padding: 34px; }
.contact-card h2 { margin: 0 0 12px; }
.contact-card p { color: var(--muted); font-size: 0.91rem; }
.mail-link { display: inline-flex; margin-top: 10px; padding: 13px 18px; border-radius: 12px; color: var(--white); background: var(--berry); font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.contact-meta { padding: 22px; border-radius: 15px; background: var(--paper-deep); }
.contact-meta dt { margin-top: 13px; color: var(--berry); font-size: 0.72rem; font-weight: 700; }
.contact-meta dt:first-child { margin-top: 0; }
.contact-meta dd { margin: 2px 0 0; color: var(--muted); font-size: 0.86rem; }

.site-footer { margin-top: 70px; padding: 32px 0 42px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.footer-brand { font-size: 0.95rem; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.footer-brand .brand-mark img { border-radius: 7px; }
.footer-nav { display: flex; gap: 18px; color: var(--muted); font-size: 0.75rem; }
.footer-nav a:hover { color: var(--berry); }
.copyright { justify-self: end; color: var(--muted); font-family: "Space Grotesk", sans-serif; font-size: 0.68rem; }
.source-note { margin-top: 24px; color: var(--muted); font-size: 0.72rem; }
.source-note a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }

.portal-logo {
  width: 126px;
  display: inline-flex;
  align-items: center;
}

.portal-logo img {
  width: 100%;
  height: auto;
}

.portal-footer .portal-logo { width: 108px; }

.portal-hero { min-height: 620px; }
.portal-hero h1 { max-width: 680px; }
.portal-hero h1 span { color: var(--berry); }
.portal-hero .hero-art::before { width: 94%; height: 53%; }
.portal-hero .hero-art::after { width: 62%; height: 84%; }
.portal-card { padding: 22px; border-radius: 28px; background: linear-gradient(145deg, rgba(255, 253, 249, 0.95), rgba(184, 216, 230, 0.38)); }
.portal-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 3px 15px; color: var(--berry); font-family: "Space Grotesk", sans-serif; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.portal-card-top span:last-child { padding: 5px 9px; border-radius: 999px; color: var(--ink); background: rgba(255, 253, 249, 0.75); font-size: 0.58rem; letter-spacing: 0.08em; }
.portal-card img { border-radius: 21px; }
.portal-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 3px 1px; }
.portal-card-foot strong { font-family: "Space Grotesk", sans-serif; font-size: 1rem; }
.portal-card-foot small { display: block; color: var(--muted); font-size: 0.71rem; }
.portal-card-arrow { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--white); background: var(--berry); font-family: "Space Grotesk", sans-serif; font-size: 1.2rem; }

.app-list { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr); gap: 18px; }
.app-card { display: grid; grid-template-columns: 118px 1fr; gap: 25px; align-items: center; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 253, 249, 0.74); }
.app-card-icon { width: 118px; height: 118px; padding: 4px; border-radius: 28px; background: linear-gradient(145deg, var(--sakura), var(--sky)); box-shadow: 0 12px 26px rgba(126, 61, 76, 0.14); }
.app-card-icon-link { display: block; transition: transform 160ms ease; }
.app-card-icon-link:hover, .app-card-icon-link:focus-visible { transform: translateY(-2px); }
.app-card-icon img { width: 100%; height: 100%; border-radius: 23px; object-fit: cover; }
.app-status { display: inline-flex; align-items: center; gap: 6px; color: var(--berry); font-family: "Space Grotesk", sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.app-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); }
.app-card h3 { margin: 7px 0 4px; font-size: 1.6rem; letter-spacing: -0.05em; }
.app-card h3 a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.16em; transition: color 160ms ease, text-decoration-color 160ms ease; }
.app-card h3 a:hover, .app-card h3 a:focus-visible { color: var(--berry); text-decoration-color: currentColor; }
.app-card p { margin: 0; color: var(--muted); font-size: 0.87rem; }
.app-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.app-links a { padding: 7px 12px; border: 1px solid rgba(126, 61, 76, 0.22); border-radius: 999px; color: var(--berry); font-size: 0.75rem; font-weight: 700; }
.app-links a:hover { color: var(--white); background: var(--berry); }
.portal-note { padding: 27px; border-radius: var(--radius-lg); background: var(--paper-deep); }
.portal-note .section-label { color: var(--leaf); }
.portal-note h3 { margin: 12px 0 8px; font-size: 1.25rem; letter-spacing: -0.04em; }
.portal-note p { margin: 0; color: var(--muted); font-size: 0.87rem; }
.portal-note a { display: inline-flex; margin-top: 18px; color: var(--berry); font-size: 0.8rem; font-weight: 700; }

.portal-footer .footer-brand { font-size: 1rem; }

@media (max-width: 820px) {
  .header-inner { min-height: 74px; }
  .nav { gap: 12px; font-size: 0.72rem; }
  .nav a:nth-child(-n+2) { display: none; }
  .nav .nav-cta { padding: 8px 12px; }
  .hero { min-height: 0; grid-template-columns: 1fr; padding-top: 65px; }
  .hero-art { min-height: 390px; order: -1; }
  .hero-card { width: min(78vw, 360px); }
  .floating-note { right: 2%; bottom: 3%; }
  .feature-grid, .faq-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-layout { grid-template-columns: 1fr; gap: 18px; }
  .manual-nav { position: static; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 0 0 12px 15px; }
  .manual-nav p { width: 100%; margin-bottom: 0; }
  .manual-nav a { padding: 0; }
  .contact-card { grid-template-columns: 1fr; }
  .app-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 15px; }
  .footer-nav { flex-wrap: wrap; }
  .copyright { justify-self: start; }
}

@media (max-width: 520px) {
  .header-inner, .footer-inner, .hero, .page-hero, .section, .page-shell { width: min(calc(100% - 32px), var(--max)); }
  .brand-kicker { display: none; }
  .hero h1, .page-hero h1 { font-size: clamp(2.35rem, 13vw, 3.8rem); }
  .hero-art { min-height: 330px; }
  .hero-card { width: min(78vw, 300px); border-radius: 30px; }
  .hero-card img { border-radius: 21px; }
  .floating-note { max-width: 150px; padding: 11px 12px; font-size: 0.69rem; }
  .section, .page-hero { padding-top: 58px; padding-bottom: 44px; }
  .section-head { display: block; }
  .section-intro { margin-top: 12px; }
  .link-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .link-card { min-height: 130px; padding: 15px; }
  .manual-card { grid-template-columns: 1fr; gap: 5px; padding: 21px; }
  .content-panel, .contact-card { padding: 22px; }
  .app-card { grid-template-columns: 1fr; gap: 17px; padding: 21px; }
  .app-card-icon { width: 94px; height: 94px; border-radius: 23px; }
  .app-card-icon img { border-radius: 19px; }
}

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