:root {
  --main-blue: #2f80c9;
  --main-blue-dark: #2569a5;
  --soft-blue: #eef7ff;
  --soft-yellow: #fff7d6;
  --soft-pink: #fff1f4;
  --soft-green: #effaf2;
  --text-dark: #000000;
  --text-gray: #000000;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text-dark);
  background: #fffefc;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.section {
  padding: 20px 0;
}

.mini-title {
  text-align: center;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  color: var(--main-blue);
  font-weight: bold;
  margin-bottom: 10px;
}

.photo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto 40px;
}

.photo-item {
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

@media screen and (max-width: 768px) {
  .photo-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .photo-item {
    height: auto;
  }

  .photo-item img {
    width: 100%;
    height: auto;
  }
}


.section-heading h2 {
  text-align: center;
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 14px;
  color: var(--text-dark);
}

.section-text {
  text-align: center;
  color: var(--text-gray);
  max-width: 760px;
  margin: 0 auto;
}

.logo-box {
  width: 200px;
  height: 200px;
  margin: 0 auto 18px;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  padding: 6px;
    border: none;
  outline: none;
  box-shadow: none;
  box-shadow: 0 4px 12px rgba(255, 250, 250, 0.1);
}

.site-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
    border: none;
  outline: none;
  box-shadow: none;
}

@media (max-width: 768px) {
  .logo-box {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    padding: 5px;
    margin: 0 auto 14px;
  }
}

@media (max-width: 480px) {
  .logo-box {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    padding: 4px;
    margin: 0 auto 12px;
  }
}


/* --------------------
   HERO
-------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.02);
}

.slide.active {
  opacity: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(45, 79, 120, 0.82);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1000px, 92%);
  text-align: center;
  padding: 24px;
  color: var(--white);
}

.logo-mark {
  letter-spacing: 0.2em;
  font-size: 1rem;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.95);
}

.hero h1 {
  font-size: clamp(1.82rem, 4.2vw, 3.64rem);
  line-height: 1.35;
  font-weight: 800;
  margin-bottom: 24px;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

.nowrap {
  white-space: nowrap;
}

.lead {
  font-size: 1.18rem;
  max-width: 760px;
  margin: 0 auto 38px;
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------
   BUTTON
-------------------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn.primary {
  background: #ffffff;
  color: #4f7197;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.btn.primary:hover {
  background: #f3f7fb;
  color: #3f6288;
  transform: translateY(-2px);
}

.btn.secondary {
  border: 2px solid rgba(255, 255, 255, 0.95);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* --------------------
   SERVICES
-------------------- */
.services-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft-blue) 100%);
}

.card-grid {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid rgba(47, 128, 201, 0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.card-icon {
  font-size: 2rem;
  padding: 24px 28px 0;
}

.card-body {
  padding: 14px 28px 28px;
}

.card h3 {
  font-size: 1.35rem;
  color: var(--main-blue-dark);
  margin-bottom: 10px;
}

.card-age {
  display: inline-block;
  background: var(--soft-yellow);
  color: #a36a00;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.95rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-gray);
}

/* --------------------
   NEWS
-------------------- */
.notice-section {
  background: linear-gradient(180deg, var(--soft-pink) 0%, #ffffff 100%);
}

.notice-box {
  margin-top: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 28px;
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
}

.notice-box::-webkit-scrollbar {
  width: 10px;
}

.notice-box::-webkit-scrollbar-track {
  background: #f2f2f2;
  border-radius: 999px;
}

.notice-box::-webkit-scrollbar-thumb {
  background: #b7c7d9;
  border-radius: 999px;
}

.news-list {
  list-style: none;
}

.news-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid #eeeeee;
}

.news-list li:last-child {
  border-bottom: none;
}

.news-date {
  min-width: 110px;
  color: var(--main-blue);
  font-weight: bold;
}

.news-text {
  color: var(--text-dark);
}

/* --------------------
   INSTAGRAM
-------------------- */
.instagram-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft-green) 100%);
}

.instagram-box {
  background:  #fffceb 100%;
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 60px 24px;
  text-align: center;
}

/* --------------------
   FOOTER
-------------------- */
.footer {
  background: #5f7ea3;
  padding: 28px 20px;
  color: #fff;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-top {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  font-size: 18px;
  margin-bottom: 10px;
}

.footer-message {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.service-list,
.flow-list {
  margin: 20px 0;
  padding-left: 1.5em;
  line-height: 1.9;
}

.price-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 20px;
  margin: 20px 0;
}

.note {
  font-size: 0.9rem;
  color: #181818;
  line-height: 1.8;
}

.flyer-wrap {
  margin: 24px 0;
  text-align: center;
}

.flyer-img {
  display: block;
  max-width: 70%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}


/* --------------------
   RESPONSIVE
-------------------- */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 3.2rem;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 70px 0;
  }

  .hero-content {
    padding: 20px 14px;
  }

  .logo-mark {
    font-size: 0.9rem;
    margin-bottom: 18px;
  }

  .hero h1 {
    font-size: 2.4rem;
    line-height: 1.45;
  }

  .lead {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .nowrap {
    white-space: normal;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .news-list li {
    flex-direction: column;
    gap: 6px;
  }

  .news-date {
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .section-heading h2 {
    font-size: 1.8rem;
  }

  .card-body {
    padding: 12px 22px 24px;
  }

  .notice-box {
    padding: 14px 20px;
  }

  .instagram-box {
    padding: 44px 18px;
  }
}

/* --------------------
   SUB PAGE HERO
-------------------- */
.sub-hero {
  background: linear-gradient(180deg, rgba(45, 79, 120, 0.95) 0%, rgba(78, 110, 148, 0.95) 100%);
  color: #ffffff;
  padding: 110px 0 80px;
  text-align: center;
}

.sub-hero-inner {
  width: min(900px, 92%);
  margin: 0 auto;
}

.page-label {
  letter-spacing: 0.18em;
  font-size: 0.95rem;
  margin-bottom: 16px;
  opacity: 0.95;
}

.sub-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 18px;
}

.sub-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.back-link {
  display: inline-block;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  padding-bottom: 2px;
}

.back-link2-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.back-link2 {
  display: inline-block;
  color: #181818 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.back-link2:hover {
  opacity: 0.7;
}

/* --------------------
   COMMON SUB PAGE
-------------------- */
.two-column {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

.text-block h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.text-block p {
  color: var(--text-gray);
  margin-bottom: 16px;
}

.image-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feature-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft-blue) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.feature-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.10);
}

.feature-card h3 {
  color: var(--main-blue-dark);
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.feature-card p {
  color: var(--text-gray);
}

.info-section {
  background: linear-gradient(180deg, var(--soft-pink) 0%, #ffffff 100%);
}

.info-table {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-top: 36px;
}

.info-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid #eeeeee;
}

.info-row:last-child {
  border-bottom: none;
}

.info-title {
  background: #f8fbff;
  padding: 20px 24px;
  font-weight: bold;
  color: var(--main-blue-dark);
}

.info-text {
  padding: 20px 24px;
  color: var(--text-dark);
}

.first-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft-yellow) 100%);
}

.guide-box {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
  margin-top: 36px;
}

.guide-list {
  padding-left: 1.2em;
}

.guide-list li {
  margin-bottom: 12px;
  color: var(--text-dark);
}

.guide-list li:last-child {
  margin-bottom: 0;
}

.faq-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--soft-green) 100%);
}

.faq-list {
  margin-top: 36px;
}

.faq-list details {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin-bottom: 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: bold;
  color: var(--main-blue-dark);
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin-top: 14px;
  color: var(--text-gray);
}

.contact-section {
  background: #fffefc;
}

.contact-box {
  background: #fffceb 100%;
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 56px 24px;
  text-align: center;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.contact-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 18px 28px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.blue-border {
 background: #2f80c9;
  color: #ffffff;
  border: 2px solid #2f80c9;
  box-shadow: 0 8px 18px rgba(47, 128, 201, 0.28);
}

.blue-border:hover {
  background: #2569a5;
  border-color: #2569a5;
  transform: translateY(-2px);
}

.photo-gallery {
  max-width: 920px;
  margin: 60px auto;
  padding: 30px 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  background: #fff;
  box-shadow: 0 8px 22px rgba(95, 126, 163, 0.18);
}

@media screen and (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media screen and (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}



/* --------------------
   PUBLIC PAGE
-------------------- */
.public-page {
  background: #fefbe8;
}

.pdf-group {
  margin-bottom: 56px;
}

.group-title {
  display: inline-flex;
  align-items: stretch;
  background: #ffffff;
  padding: 0 24px 0 0;
  margin-bottom: 18px;
}

.group-title h2 {
  font-size: 1.9rem;
  color: #111111;
  margin: 0;
  padding: 14px 0;
  display: flex;
  align-items: center;
}

.group-color {
  width: 26px;
  min-height: 54px;
  display: block;
  margin-right: 14px;
}

.company-title .group-color {
  background: #44c21f;
}

.local-title .group-color {
  background: #f2a100;
}

.essay-title .group-color {
  background: #17b9d9;
}

.sub-group-title {
  font-size: 1.35rem;
  margin: 12px 0 14px;
  color: #111111;
}

.pdf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-bottom: 22px;
}

.pdf-link {
  display: inline-block;
  background: #8b8b8b;
  color: #ffffff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 0.98rem;
  transition: 0.2s ease;
}

.pdf-link:hover {
  background: #666666;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .group-title {
    display: flex;
    width: 100%;
    padding: 12px 16px 12px 0;
  }

  .group-title h2 {
    font-size: 1.5rem;
  }

  .group-color {
    width: 18px;
    height: 46px;
    margin-right: 12px;
  }

  .sub-group-title {
    font-size: 1.15rem;
  }

  .pdf-link {
    font-size: 0.92rem;
    padding: 9px 12px;
  }
}


.public-link-wrap {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
}

.public-link-button {
  display: inline-block;
  background: #ec9e5a;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: bold;
  box-shadow: 0 8px 18px rgba(217, 138, 67, 0.25);
  transition: 0.3s ease;
}

.public-link-button:hover {
  background: #f4ae71;
  transform: translateY(-2px);
}



.payment-button-wrap {
  margin-top: 24px;
  text-align: center;
}

.payment-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: #416187;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.payment-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.payment-button:visited {
  color: #fff;
}



/* --------------------
   RESPONSIVE SUB PAGE
-------------------- */
@media (max-width: 900px) {
  .two-column,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .info-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sub-hero {
    padding: 90px 0 64px;
  }

  .sub-hero h1 {
    font-size: 2.2rem;
  }

  .sub-lead {
    font-size: 1rem;
  }

  .text-block h2 {
    font-size: 1.7rem;
  }

  .feature-card,
  .guide-box,
  .faq-list details,
  .contact-box {
    padding: 22px;
  }

  .info-title,
  .info-text {
    padding: 16px 18px;
  }
}