/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --color-primary: #0a1f44; /* Navy */
  --color-primary-light: #163673;
  --color-accent: #e21c34; /* スポーティーなアクセント（レッド） */
  --color-accent-hover: #c41328;
  --color-white: #ffffff;
  --color-bg-light: #f5f7fa; /* bg-gray */
  --color-text-main: #333333;
  --color-text-muted: #666666;
  
  --font-family-base: 'Noto Sans JP', sans-serif;
  --container-width: 1000px;
  
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-base);
  color: var(--color-text-main);
  background-color: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.bg-gray {
  background-color: var(--color-bg-light);
}

.bg-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.placeholder {
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777;
}

/* ボタン共通 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  border: none;
}

.btn--header {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn--header:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 16px 40px;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(226, 28, 52, 0.3);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(226, 28, 52, 0.4);
}

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

.btn--submit {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
}

/* ==========================================================================
   Layouts / Components
   ========================================================================== */

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 100;
  backdrop-filter: blur(5px);
}

.header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.header__logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 60px; /* 画像サイズを大きく変更 */
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* 白背景を透過 */
  opacity: 0.8; /* ヘッダーに近い透明度にする */
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
}

.header__list {
  display: flex;
  gap: 24px;
}

.header__list a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.header__list a:hover {
  color: var(--color-accent);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  margin-top: 70px; /* Header height offset roughly */
  background-color: var(--color-primary);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary-light);
  /* TODO: AI画像が入る箇所。現在は仮のグラデーション */
  background-image: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  opacity: 0.8;
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-width);
  margin: 0 auto;
  width: 100%;
  color: var(--color-white);
  animation: fadeIn 1s ease-out;
}

.hero__catchcopy {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero__lead {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 40px;
  line-height: 1.8;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 共通セクション設定 */
.section {
  padding: 100px 20px;
}

.section__inner {
  max-width: var(--container-width);
  margin: 0 auto;
}

.section__title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.section__title--white {
  color: var(--color-white);
}

.section__subtitle {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.section__subtitle--white {
  color: rgba(255, 255, 255, 0.8);
}

/* Scroll Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Philosophy */
.philosophy__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.philosophy__main {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 30px;
}

.philosophy__text {
  font-size: 1.1rem;
  line-height: 2;
}

/* Features */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--color-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card__num {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-bg-light);
  -webkit-text-stroke: 1px var(--color-primary);
  margin-bottom: 15px;
  line-height: 1;
}

.feature-card__title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: left;
}

/* Coach */
.coach__content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--color-primary);
}

.coach__profile {
  display: flex;
  align-items: center;
  gap: 40px;
}

.coach__photo-wrapper {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 4px solid var(--color-bg-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coach__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.3);
}

.coach__name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 15px;
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.coach__position {
  font-size: 0.9rem;
  color: var(--color-accent);
  background-color: rgba(226, 28, 52, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}

.coach__career {
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* Theme */
.theme__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-white);
  padding: 50px;
  border-radius: 12px;
  border-left: 6px solid var(--color-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.theme__main {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.theme__text {
  font-size: 1.05rem;
}

/* Access */
.access__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  background: var(--color-white);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px 0;
}

.info-list dt {
  font-weight: 700;
  color: var(--color-primary);
  border-bottom: 1px solid var(--color-bg-light);
  padding-bottom: 20px;
}

.info-list dd {
  border-bottom: 1px solid var(--color-bg-light);
  padding-bottom: 20px;
  color: var(--color-text-main);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background-color: var(--color-bg-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 20px;
}

/* Contact */
.contact {
  padding: 100px 20px;
}

.contact__text {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.9);
}

.contact__form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 50px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.required {
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 10px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10, 31, 68, 0.1);
}

/* Footer */
.footer {
  background-color: #051024;
  color: var(--color-white);
  padding: 60px 20px 30px;
  text-align: center;
}

.footer__logo {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 30px;
  line-height: 1.2;
}

.footer__logo span {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
}

.footer__copyright {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 40px;
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
/* ハンバーガーボタン（デフォルト非表示） */
.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  width: 30px;
  height: 24px;
  position: relative;
  margin-left: auto;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  transition: all var(--transition-normal);
}

.header__hamburger span:nth-child(1) { top: 0; }
.header__hamburger span:nth-child(2) { top: 11px; }
.header__hamburger span:nth-child(3) { bottom: 0; }

.header__hamburger.is-active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}
.header__hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.header__hamburger.is-active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .header__hamburger {
    display: block;
  }
  
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right var(--transition-normal);
    padding-top: 80px;
    z-index: 100;
  }

  .header__nav.is-active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    gap: 0;
  }

  .header__list li {
    border-bottom: 1px solid var(--color-bg-light);
  }

  .header__list a {
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem;
  }

  .header__inner {
    padding: 10px 15px;
  }

  .btn--header {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  .hero__catchcopy {
    font-size: 2.2rem;
  }

  .hero__lead {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .section {
    padding: 60px 20px;
  }

  .section__title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .coach__profile {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .coach__name {
    justify-content: center;
    flex-wrap: wrap;
  }

  .access__grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 30px 20px;
  }

  .info-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  .info-list dt {
    border-bottom: none;
    padding-bottom: 5px;
  }

  .contact__form {
    padding: 30px 20px;
  }
}

/* SNS Card Interaction */
.sns-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.sns-card h3 {
  transition: color 0.3s ease;
}

.sns-card:hover h3 {
  opacity: 0.8;
}
