:root {
  --bg-image: url("img/bg.png");
  --white: #ffffff;
  --text-main: #253765;
  --text-sub: #6d7fa3;
  --blue-main: #4e61a5;
  --blue-link: #3359aa;
  --blue-white: #f3f7ff;
  --blue-pale: #e8edf9;
  --blue-light: #e2e5f0;
  --blue-soft: #d6e0f0;
  --blue-mid: #cdd9ec;
  --blue-deep-muted: #a9bad2;
  --line-main: #c0cde9;
  --line-dark: #a0b1d0;
  --button-border: #9aaec4;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --shadow-soft: rgba(70, 100, 140, 0.14);
  --radius: 14px;
  --radius-small: 8px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);font-family: "Michroma", "M PLUS 1 Code", monospace;
  font-size: 14px;
  background: var(--blue-light);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  opacity: 0.34;
}

a {
  color: var(--blue-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img,
iframe {
  max-width: 100%;
}

.window-frame {
  width: min(920px, calc(100% - 24px));
  margin: 18px auto;
  overflow: hidden;
  border: 1px solid var(--line-main);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(70, 100, 140, 0.18);
}

.window-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 7px 14px;
  color: var(--blue-main);
  font-family: "Michroma", "M PLUS 1 Code", sans-serif;
  font-size: 13px;
  background: linear-gradient(to bottom, var(--white), var(--blue-pale));
  border-bottom: 1px solid var(--line-main);
}

.layout {
  display: grid;
  grid-template-columns: 180px 1fr;
}

.sidebar {
  padding: 22px 12px;
  border-right: 1px solid var(--line-main);
  background: rgba(232, 237, 249, 0.74);
}

.sidebar ul {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sidebar a {
  display: block;
  padding: 7px 10px;
  color: var(--blue-main);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-pill);
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.7);
}

.main {
  padding: 28px 30px 46px;
  background: rgba(255, 255, 255, 0.66);
}

.profile-card,
.content-section {
  border: 1px solid var(--line-main);
  border-radius: var(--radius);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.86), rgba(243, 247, 255, 0.86));
  box-shadow: 0 5px 16px var(--shadow-soft);
}

.profile-card {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
}

.avatar {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--blue-pale);
}

.profile-text h1 {
  margin: 0 0 6px;
  color: var(--blue-main);
  font-family: "Michroma", "M PLUS 1 Code", sans-serif;
  font-size: 20px;
}

.profile-text p,
.text-small,
.note-text {
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.8;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.quick-links a,
.copy-button,
.glass-button,
.gallery-close,
.terms-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  max-width: 100%;
  padding: 6px 14px;
  border: 1px solid var(--button-border);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-family: "M PLUS 1 Code", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(232, 237, 249, 0.78));
  box-shadow: inset 0 1px 0 var(--white), 0 2px 5px rgba(70, 100, 140, 0.16);
  cursor: pointer;
  white-space: nowrap;
}

.quick-links a:hover,
.copy-button:hover,
.glass-button:hover,
.gallery-close:hover,
.terms-nav a:hover {
  background: linear-gradient(to bottom, var(--white), var(--blue-soft));
}

.content-section {
  margin-top: 18px;
  padding: 20px;
}

h2 {
  margin: 0 0 15px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line-dark);
  color: var(--blue-main);
  font-family: "Michroma", "M PLUS 1 Code", sans-serif;
  font-size: 18px;
}

h3 {
  margin: 18px 0 8px;
  color: var(--blue-main);
  font-size: 15px;
}

p {
  margin: 0 0 12px;
  line-height: 1.85;
}

ul,
ol {
  margin: 8px 0 0;
  padding-left: 1.4em;
  line-height: 1.85;
}

li + li {
  margin-top: 5px;
}

.lead-text {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.85;
}

.info-layout-vertical {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.info-layout-vertical .info-image {
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.price-line {
  display: inline-block;
  margin: 6px 0 12px;
  padding: 6px 12px;
  border: 1px solid var(--line-main);
  border-radius: var(--radius-pill);
  color: var(--blue-main);
  background: var(--blue-white);
  font-weight: 700;
}

.notice-box,
.credit-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line-main);
  border-radius: var(--radius-small);
  background: rgba(243, 247, 255, 0.76);
}

.schedule-frame {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line-main);
  border-radius: var(--radius-small);
  background: var(--white);
}

.schedule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line-main);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

.tag-red {
  color: #b83242;
  background: #ffe1e4;
  border-color: #ffc3ca;
}

.tag-green {
  color: #00804f;
  background: #e4fff0;
  border-color: #bdebd3;
}

.tag-blue {
  color: #4e61a5;
  background: #e9f2ff;
  border-color: #c5daf5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-main);
  border-radius: var(--radius-small);
  background: var(--blue-white);
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-item span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 700;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(214, 224, 240, 0.72);
  backdrop-filter: blur(8px);
}

.gallery-modal.is-open {
  display: grid;
}

.gallery-modal-inner {
  position: relative;
  width: min(760px, 96vw);
  max-height: 90vh;
  padding: 12px;
  border: 1px solid var(--line-main);
  border-radius: var(--radius);
  background: var(--blue-white);
}

.gallery-modal-inner img {
  display: block;
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius-small);
  background: var(--white);
}

.gallery-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 34px;
  height: 34px;
  padding: 0;
}

#galleryCaption {
  margin: 10px 0 0;
  color: var(--text-sub);
  font-size: 12px;
  text-align: center;
}

.contact-list {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  align-items: baseline;
}

.contact-label {
  color: var(--blue-main);
  font-weight: 700;
}

textarea {
  width: 100%;
  min-height: 360px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-small);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.86);
  font-family: "M PLUS 1 Code", monospace;
  font-size: 13px;
  line-height: 1.75;
  resize: vertical;
}

.copy-button {
  margin-top: 10px;
}

.flow-timeline {
  display: grid;
  gap: 12px;
}

.flow-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: start;
}

.flow-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-main);
  border-radius: 50%;
  color: var(--blue-main);
  background: var(--blue-white);
  font-weight: 700;
}

.flow-content {
  padding: 12px 14px;
  border: 1px solid var(--line-main);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.56);
}

.flow-content h3 {
  margin-top: 0;
}

.flow-content p:last-child {
  margin-bottom: 0;
}

.credit-text {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid var(--line-main);
  border-radius: var(--radius-pill);
  color: var(--blue-main);
  background: var(--white);
  font-weight: 700;
}

.terms-box {
  border: 1px solid var(--line-main);
  border-radius: var(--radius-small);
  background: #f2f4f8;
}

.terms-nav {
  display: flex;
  gap: 7px;
  padding: 10px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line-main);
}

.terms-scroll {
  max-height: 460px;
  overflow-y: auto;
  padding: 12px 16px 16px;
}

.term-item {
  padding: 12px 0;
}

.term-item + .term-item {
  border-top: 1px solid var(--blue-light);
}

.term-item h3 {
  margin-top: 0;
}

details {
  margin: 10px 0;
  border: 1px solid var(--line-main);
  border-radius: var(--radius-small);
  background: rgba(255, 255, 255, 0.58);
}

summary {
  padding: 12px 14px;
  color: var(--blue-main);
  font-weight: 700;
  cursor: pointer;
}

.detail-body {
  padding: 0 14px 14px;
}

.footer {
  margin-top: 20px;
  color: var(--text-sub);
  font-size: 11px;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .window-frame {
    width: calc(100% - 16px);
    margin: 8px auto;
  }

  .layout {
    display: block;
  }

  .sidebar {
    padding: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line-main);
    overflow-x: auto;
  }

  .sidebar ul {
    display: flex;
    gap: 6px;
    white-space: nowrap;
  }

  .main {
    padding: 16px 12px 30px;
  }

  .profile-card,
  .info-layout,
  .flow-step,
  .contact-list li {
    grid-template-columns: 1fr;
  }

  .profile-card {
    flex-direction: column;
    text-align: center;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-section {
    padding: 16px;
  }

  .terms-scroll {
    max-height: 420px;
  }

  .quick-links a,
  .copy-button,
  .glass-button,
  .gallery-close,
  .terms-nav a {
    white-space: normal;
  }
}
