/* ==============================================
   マルタおやこ留学ラボ — Main Stylesheet (Rev 2)
   ============================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: #2c2c2c;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol {
  list-style: none;
}

p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ---------- Layout ---------- */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only {
  display: none;
}

@media (min-width: 768px) {
  .pc-only {
    display: inline;
  }
}

/* sp-only: visible on mobile, hidden on tablet/PC */
.sp-only {
  display: inline;
}

@media (min-width: 768px) {
  .sp-only {
    display: none;
  }
}

/* ---------- Section Base ---------- */
.section {
  padding: 72px 0;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: #1a3a4a;
  margin-bottom: 28px;
}

.section-title--center {
  text-align: center;
}

.section-lead {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a3a4a;
  margin-bottom: 20px;
}

/* ---------- CTA Button ---------- */
.btn-line {
  display: inline-block;
  background-color: #06c755;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 4px;
  text-align: center;
  transition: background-color 0.2s ease, transform 0.1s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn-line:hover {
  background-color: #05b04c;
  transform: translateY(-1px);
}

.btn-line:active {
  transform: translateY(0);
}

.btn-line--hero {
  font-size: 1.1rem;
  padding: 16px 40px;
  margin-bottom: 16px;
}

.btn-line--large {
  font-size: 1.1rem;
  padding: 18px 48px;
}

.btn-line--header {
  font-size: 0.82rem;
  padding: 8px 16px;
  white-space: nowrap;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

.cta-note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: #666;
  text-align: center;
}

/* QR Code near CTA */
.cta-qr {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.line-qr-img {
  width: 120px;
  height: 120px;
  border: 1px solid #e0dbd5;
  border-radius: 4px;
}

.qr-label {
  font-size: 0.78rem;
  color: #888;
  margin: 0;
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  border-bottom: 1px solid #e8e4df;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
}

.header-logo a {
  display: block;
  line-height: 1;
}

.logo-img {
  height: 52px;
  width: auto;
}

/* Header right: LINE CTA + hamburger */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Nav — always hamburger dropdown */
.site-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background-color: #fff;
  border-bottom: 1px solid #e8e4df;
  padding: 16px 24px 24px;
  gap: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.site-nav.is-open {
  display: flex;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-link {
  display: block;
  padding: 12px 0;
  font-size: 0.95rem;
  color: #2c2c2c;
  border-bottom: 1px solid #f0ece8;
  transition: color 0.15s;
}

.nav-link:hover {
  color: #2a7fa5;
}

/* Hamburger — always visible */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #2c2c2c;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    min-height: 660px;
    align-items: center;
  }
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 768px) {
  .hero-img {
    object-position: center center;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 30, 50, 0.70) 0%,
    rgba(10, 30, 50, 0.30) 50%,
    rgba(10, 30, 50, 0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  color: #fff;
  width: 100%;
}

.hero-lead {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.65;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.45);
}

@media (min-width: 768px) {
  .hero-lead {
    font-size: 1.45rem;
    line-height: 1.6;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .hero-lead {
    font-size: 1.6rem;
  }
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 28px;
  opacity: 0.95;
}

@media (min-width: 768px) {
  .hero-desc {
    font-size: 1rem;
  }
}

.hero-note {
  font-size: 0.82rem;
  opacity: 0.85;
  margin-top: 12px;
  line-height: 1.7;
}

/* ---------- TWO COLUMN ---------- */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.two-col__img img {
  width: 100%;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .two-col {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .two-col__img {
    flex: 0 0 42%;
  }

  .two-col__text {
    flex: 1;
  }

  .two-col--img-right {
    flex-direction: row-reverse;
  }

  .two-col__img--small {
    flex: 0 0 34%;
  }
}

.section-photo {
  border-radius: 6px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.section-photo--rounded {
  border-radius: 6px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
}

/* ---------- REALITY ---------- */
.section--reality {
  background-color: #f8f5f2;
}

/* ---------- MALTA ---------- */
.section--malta {
  background-color: #fff;
}

.malta-text {
  margin-bottom: 40px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.malta-photos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.malta-photo-tile {
  flex: 1;
  overflow: hidden;
  border-radius: 6px;
}

.malta-photo-tile img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.malta-photo-tile img:hover {
  transform: scale(1.02);
}

@media (min-width: 640px) {
  .malta-photos {
    flex-direction: row;
  }

  .malta-photo-tile img {
    height: 200px;
  }
}

@media (min-width: 768px) {
  .malta-photo-tile img {
    height: 220px;
  }
}

/* ---------- RECOMMEND ---------- */
.section--recommend {
  background-color: #f8f5f2;
}

.recommend-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.recommend-list li {
  padding: 16px 0;
  border-bottom: 1px solid #e0dbd5;
  padding-left: 20px;
  position: relative;
  line-height: 1.75;
}

.recommend-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  width: 6px;
  height: 6px;
  background-color: #2a7fa5;
  border-radius: 50%;
}

.recommend-list li:last-child {
  border-bottom: none;
}

/* ---------- CONSULT ---------- */
.section--consult {
  background-color: #fff;
}

.consult-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 760px;
  margin: 0 auto 8px;
}

.tag {
  display: inline-block;
  background-color: #edf4f8;
  color: #1a3a4a;
  font-size: 0.875rem;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid #c8dde8;
  line-height: 1.4;
  white-space: nowrap;
}

/* ---------- VALUES ---------- */
.section--values {
  background-color: #f8f5f2;
}

.values-image-wrap {
  margin-bottom: 48px;
  border-radius: 6px;
  overflow: hidden;
  max-height: 260px;
}

.values-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 6px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 40px;
  }
}

.values-item {
  border-left: 3px solid #2a7fa5;
  padding-left: 18px;
}

.values-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a3a4a;
  margin-bottom: 10px;
  line-height: 1.4;
}

.values-item p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: #444;
}

/* ---------- ABOUT ---------- */
.section--about {
  background-color: #fff;
}

.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

@media (min-width: 640px) {
  .about-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 40px;
  }
}

.about-photo-wrap {
  flex-shrink: 0;
}

.about-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid #e0dbd5;
}

@media (min-width: 640px) {
  .about-photo {
    width: 160px;
    height: 160px;
  }
}

.about-text .section-title {
  margin-bottom: 20px;
}

.about-text p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 12px;
}

/* ---------- FLOW ---------- */
.section--flow {
  background-color: #f0ece8;
}

.flow-image-wrap {
  margin-bottom: 40px;
  border-radius: 6px;
  overflow: hidden;
}

.flow-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
}

@media (min-width: 640px) {
  .flow-img {
    height: 260px;
  }
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.flow-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid #d8d2cb;
  align-items: flex-start;
}

.flow-item:last-child {
  border-bottom: none;
}

.flow-step {
  flex-shrink: 0;
  background-color: #2a7fa5;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 4px;
  margin-top: 4px;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.flow-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a3a4a;
  margin-bottom: 8px;
  line-height: 1.4;
}

.flow-content p {
  font-size: 0.93rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 6px;
}

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

/* ---------- FAQ ---------- */
.section--faq {
  background-color: #fff;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid #e0dbd5;
}

.faq-item:first-child {
  border-top: 1px solid #e0dbd5;
}

.faq-q {
  display: flex;
  align-items: flex-start;
  padding: 18px 4px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a3a4a;
  cursor: pointer;
  list-style: none;
  line-height: 1.55;
  gap: 12px;
  user-select: none;
}

.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q::after {
  content: '+';
  flex-shrink: 0;
  margin-left: auto;
  font-size: 1.3rem;
  font-weight: 400;
  color: #2a7fa5;
  line-height: 1;
  transition: transform 0.2s ease;
}

details[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 4px 8px 20px;
}

.faq-a p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: #444;
}

/* ---------- FINAL / BENEFITS ---------- */
.section--final {
  background-color: #f8f5f2;
}

.benefits-list {
  list-style: none;
  counter-reset: benefits;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin: 0 auto 48px;
}

.benefits-list li {
  counter-increment: benefits;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #e0dbd5;
  font-size: 0.95rem;
  line-height: 1.75;
}

.benefits-list li:last-child {
  border-bottom: none;
}

.benefits-list li::before {
  content: counter(benefits);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: #2a7fa5;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin-top: 2px;
}

.final-image-wrap {
  margin: 0 -24px 48px;
  overflow: hidden;
}

@media (min-width: 860px) {
  .final-image-wrap {
    margin: 0 0 48px;
    border-radius: 6px;
  }
}

.final-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 640px) {
  .final-img {
    height: 320px;
  }
}

.final-text {
  max-width: 660px;
  margin: 0 auto 8px;
}

.final-text p {
  font-size: 0.97rem;
  line-height: 1.9;
  margin-bottom: 14px;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background-color: #1a3a4a;
  color: #ccc;
  padding: 40px 0 32px;
  text-align: center;
}

.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media (min-width: 480px) {
  .footer-nav {
    flex-direction: row;
    justify-content: center;
    gap: 28px;
  }
}

.footer-link {
  font-size: 0.875rem;
  color: #aac4d4;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #fff;
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
