/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* スムーズスクロール */
html {
  scroll-behavior: smooth;
}

:root {
  --gold: #FFD700;
  --gold-dark: #daba27;
  --sage-green: #a2b5a0;
  --sumi: #333333;
  --light-gray: #f8f8f8;
  --white: #ffffff;
  --font-noto-serif-jp: "Noto Serif JP", serif;
}

body {
  font-family: var(--font-noto-serif-jp);
  line-height: 1.6;
  color: var(--sumi);
  background-image: url('../images/washi-background.png');
}

/* ヘッダー */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  opacity: 1;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(181, 159, 108, 0.2);
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  position: relative;
  background-image: url('../images/washi-background.png');
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--sumi);
  font-family: var(--font-noto-serif-jp);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--gold-dark);
  background-color: rgba(255, 215, 0, 0.1);
}

.nav-link.active {
  color: var(--gold-dark);
  background-color: rgba(255, 215, 0, 0.15);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle-line {
  width: 25px;
  height: 1.8px;
  background-color: var(--sumi);
  transition: all 0.3s ease;
}


@media (max-width: 768px) {
  .nav-container {
    justify-content: center;
    padding: 0;
  }

  .nav-menu {
    gap: 7px;
    justify-content: center;
  }

  .nav-link {
    font-size: 9px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(162, 181, 160, 0.4);
  }
}

section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* レイアウト */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* メインコンテナ */
.main-container {
  background-image: url('../images/washi-background.png');
  background-position: center;
  background-attachment: fixed;
  background-blend-mode: multiply;
}


/* ヒーローセクション */
.hero-section {
  padding: 4rem 0;
  text-align: center;
  margin-top: 70px;
}

.hero-title {
  font-family: var(--font-noto-serif-jp);
  font-size: 3rem;
  font-weight: 500;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.hero-subtitle {
  font-family: var(--font-noto-sans-jp);
  font-size: 1.2rem;
  color: var(--sage-green);
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* 紹介文セクション */
.intro-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-text {
  font-family: var(--font-noto-serif-jp);
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--sumi);
  margin-bottom: 3rem;
  letter-spacing: 0.2em;
}

.intro-text:last-child {
  margin-bottom: 0;
}

.intro-text-gold {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: 0.3em;
}

.intro-text-conviction {
  font-family: var(--font-noto-serif-jp);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.8;
  color: var(--sage-green);
  margin-bottom: 3rem;
  letter-spacing: 0.2em;
}

.intro-text-conviction:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .intro-text{
    font-size: 1rem;
  }

  .intro-text-gold {
    font-size: 1.2rem;
  }

  .intro-text-conviction {
    font-size: 1.1rem;
  }
}

/* Before After セクション */
.before-after-section {
  padding: 10rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-noto-serif-jp);
  font-size: 2.5rem;
  font-weight: 500;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  letter-spacing: 0.2em;
}

.section-description {
  font-family: var(--font-noto-serif-jp);
  font-size: 1.2rem;
  color: var(--sumi);
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .section-description {
    font-size: 1rem;
  }
}


.before-after-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.before-after-item {
  text-align: center;
}

.before-after-title {
  font-family: var(--font-noto-serif-jp);
  font-size: 1.1rem;
  color: var(--sage-green);
  margin-bottom: 1rem;
  font-weight: 500;
}

.before-after-image {
  width: 100%;
  max-width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 8px 25px rgba(181, 159, 108, 0.2);
  transition: transform 0.3s ease;
}

.before-after-image:hover {
  transform: scale(1.02);
}

.before-after-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}

.before-label,
.after-label {
  font-family: var(--font-noto-serif-jp);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
}

.before-label {
  color: white;
  background-color: var(--sage-green);
  border: none;
}

.after-label {
  color: white;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  border: none;
}

/* プログラムの流れセクション */
.program-flow-section {
  padding: 10rem 0;
}

.program-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.program-card {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid rgba(181, 159, 108, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(181, 159, 108, 0.2);
}

.program-phase {
  font-family: var(--font-noto-serif-jp);
  font-size: 0.9rem;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.program-title {
  font-family: var(--font-noto-serif-jp);
  font-size: 1.3rem;
  color: var(--sumi);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.program-period {
  font-family: var(--font-noto-serif-jp);
  font-size: 1rem;
  color: var(--sage-green);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.program-description {
  font-family: var(--font-noto-serif-jp);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sumi);
}

/* 実績セクション */
.achievements-section {
  padding: 10rem 0;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.achievement-item {
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(181, 159, 108, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.achievement-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(181, 159, 108, 0.2);
}

.achievement-number {
  font-family: var(--font-noto-serif-jp);
  font-size: 3rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.achievement-label {
  font-family: var(--font-noto-serif-jp);
  font-size: 1.2rem;
  color: var(--sage-green);
  font-weight: 600;
  margin-bottom: 1rem;
}

.achievement-description {
  font-family: var(--font-noto-serif-jp);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--sumi);
}

/* 申込セクション */
.application-section {
  padding: 10rem 0;
}

.application-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.application-text {
  margin-bottom: 3rem;
}

.application-description {
  font-family: var(--font-noto-serif-jp);
  font-size: 1.3rem;
  line-height: 1.8;
  color: var(--sumi);
  margin-bottom: 2rem;
  letter-spacing: 0.02em
}

.application-note {
  font-family: var(--font-noto-serif-jp);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--sage-green);
  font-style: italic;
}

.application-button-container {
  text-align: center;
}

.application-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: white;
  padding: 1.2rem 3rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.application-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.application-button i {
  font-size: 1.4rem;
}

/* フッター */
.footer {
  background-image: url('../images/washi-background.png');
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-contact {
  text-align: center;
}

.footer-link {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}

.footer-link:hover {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo {
  text-align: center;
}

.footer-logo-img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.footer-copyright {
  font-family: var(--font-noto-sans-jp);
  color: var(--sage-green);
  font-size: 0.75rem;
}

.line-icon {
  position: static !important;
  bottom: auto !important;
  right: auto !important;
  z-index: auto !important;
}

/* FAB (Floating Action Button) */
.fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.fab-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .before-after-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5rem;
  }

  .before-after-image {
    max-width: 300px;
    height: 300px;
  }

  .program-flow-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .program-card {
    padding: 1.5rem;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .achievement-number {
    font-size: 2.5rem;
  }

  .application-description {
    font-size: 1.1rem;
  }

  .application-button {
    padding: 1rem 2rem;
    font-size: 1.1rem;
  }

  .fab {
    bottom: 1rem;
    right: 1rem;
  }

  .fab-button {
    width: 50px;
    height: 50px;
  }
}