/* ===== グローバルスタイルとリセット ===== */
:root {
  --color-primary: #C8102E;
  --color-secondary: #DDC477;
  --color-dark: #111111;
  --color-light: #FDFBF8;
  --color-text: #333333;
  --color-text-light: #F1F5F9;
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Inter', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-serif);
  color: var(--color-text);
  background-color: var(--color-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

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

/* ===== レイアウト ===== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ===== ヘッダー ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-img {
  height: 1.6rem;
}

/* ===== スマートフォン表示のロゴサイズ調整 ===== */
@media (max-width: 768px) {
  .logo-img {
    /* 現在の高さ(2.5rem)から小さくします */
    max-height: 1.0rem;
    /* 32px */
  }
}

.nav-pc {
  display: none;
}

@media (min-width: 1024px) {
  .nav-pc {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .nav-pc a:hover {
    color: var(--color-primary);
  }
}

.menu-btn-wrapper {
  display: block;
}

@media (min-width: 1024px) {
  .menu-btn-wrapper {
    display: none;
  }
}

.menu-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.mobile-menu a {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  transition: background-color 0.3s, color 0.3s;
}

.mobile-menu a:hover {
  background-color: var(--color-primary);
  color: white;
}

.hidden {
  display: none;
}

.menu-btn svg {
  /* アイコンの線の色を黒系統の色に指定します */
  stroke: #1f2737;
}

/* ===== ヒーローセクション ===== */
.hero-section {
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-content {
  text-align: center;
  position: relative;
}

.hero-logo {
  width: 16rem;
  /* 256px */
  margin: auto;
}

@media (min-width: 640px) {
  .hero-logo {
    width: 20rem;
    /* 320px */
  }
}

@media (min-width: 768px) {
  .hero-logo {
    width: 24rem;
    /* 384px */
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }

  40% {
    transform: translate(-50%, -15px);
  }

  60% {
    transform: translate(-50%, -5px);
  }
}


/* ===== 装飾用の線（新方式） ===== */
.line-container {
  /* 線を水平方向の中央に配置します */
  display: flex;
  justify-content: center;
  margin-bottom: 0rem;
  position: relative;
  z-index: 10;
}

.decorative-line {
  width: 1px;
  height: 7.5rem;
  /* 120px */
  background-color: #333333;
}

/* ===== 私たちの使命セクション ===== */
.mission-section {
  padding: 4rem 1.5rem;
  /* 64px 24px */
  overflow: hidden;
  /* PC表示ではみ出す要素に対応 */
  position: relative;
  /* テキストの絶対配置の基準にする */
}

/* PC表示用の新しいコンテナスタイル */
@media (min-width: 1024px) {
  .mission-section {
    /* 縦の余白を増やして元のデザインの高さに近づけます */
    padding: 12rem 1.5rem;
    /* 192px 24px */
  }

  /* Gridレイアウトでタイトルの配置を制御します */
  .mission-container-pc {
    display: grid;
    grid-template-columns: 1fr;
    /* タイトルを中央に置くため1列にする */
    max-width: 1152px;
    margin: 0 auto;
  }
}

.mission-title {
  font-size: 2.25rem;
  /* 36px */
  font-weight: 400;
  color: #1f2737;
  letter-spacing: 1.0em;
  /* 元のCSSのline-heightを再現するための文字間調整 */
  writing-mode: vertical-rl;
  /* 縦書き */
  margin: 0 auto 2rem;
  /* 0 auto 32px */
  height: 24rem;
  /* 384px */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .mission-title {
    margin: 0;
    /* Gridコンテナ内で中央に配置 */
    justify-self: center;
  }
}

.mission-text-wrapper {
  text-align: center;
}

@media (min-width: 1024px) {
  .mission-text-wrapper {
    text-align: left;
    max-width: 480px;
    /* テキストの最大幅を設定 */
    position: absolute;
    /* 通常の配置から切り離す */
    right: 1.5rem;
    /* セクションの右パディングに合わせる */
    bottom: 4rem;
    /* セクションの下パディングに合わせる */
  }
}

.mission-text-wrapper h3 {
  font-size: 1.5rem;
  /* 24px */
  font-weight: 400;
  color: #1f2737;
  margin-bottom: 1rem;
  /* 16px */
}

.mission-text-wrapper p {
  font-size: 1rem;
  /* 16px */
  line-height: 1.75;
  /* 28px */
  color: #000000;
}



.mission-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .mission-subtitle {
    font-size: 1.875rem;
  }
}

.mission-paragraph {
  font-size: 1rem;
  line-height: 1.75;
}

@media (min-width: 768px) {
  .mission-paragraph {
    font-size: 1.125rem;
  }
}

/* ===== イメージバナー ===== */
.image-banner {
  height: 16rem;
  /* 256px */
  width: 100%;
  background-image: url('image-90.png');
  background-size: cover;
  background-position: center;
}

@media (min-width: 768px) {
  .image-banner {
    height: 24rem;
    /* 384px */
  }
}

/* ===== 共通セクションスタイル ===== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
}

.section-strip-icon {
  width: 5rem;
  height: auto;
  margin: 0 auto 1.5rem;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-eng-title {
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ===== 事業内容セクション ===== */
.services-section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .services-section {
    padding: 8rem 0;
  }
}

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

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: white;
}

.service-card.bg-black {
  background-color: var(--color-dark);
}

.service-card.bg-red {
  background-color: var(--color-primary);
}

.service-card.bg-gold {
  background-color: var(--color-secondary);
}

.service-card.text-dark {
  color: var(--color-text);
}

.service-card-icon {
  width: 7rem;
  height: 7rem;
  margin-bottom: 1.5rem;
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  min-height: 4rem;
}

.service-card-subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card-description {
  font-size: 0.875rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card .service-card-description {
  color: #d1d5db;
  /* gray-300 */
}

.service-card.text-dark .service-card-description {
  color: #374151;
  /* gray-700 */
}

.service-card-link {
  margin-top: auto;
  font-size: 1.125rem;
  font-weight: 700;
  transition: opacity 0.3s;
}

.service-card-link:hover {
  opacity: 0.8;
}

/* ===== 殺陣教室 & その他セクション ===== */
#tate-class,
#experience-tour,
#works {
  max-width: 1152px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3rem;
  margin-bottom: 3rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

@media (min-width: 768px) {

  #tate-class,
  #experience-tour,
  #works {
    margin-top: 5rem;
    margin-bottom: 5rem;
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

#tate-class {
  background-color: #111111;
  color: #E5E7EB;
}

#experience-tour {
  background-color: #C8102E;
  color: white;
}

#works {
  background-color: #E3D093;
}

/* 殺陣教室詳細 */
.tate-hero-image {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto 3rem;
  border-radius: 0.5rem;
}

.tate-description {
  max-width: 56rem;
  margin: 0 auto 4rem;
  text-align: center;
  line-height: 1.75;
  font-size: 1.125rem;
}

.instructor-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1024px;
  margin: 0 auto 5rem;
}

@media (min-width: 768px) {
  .instructor-profile {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
}

.instructor-visual-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.instructor-image {
  width: 12rem;
  height: 12rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .instructor-image {
    width: 15rem;
    height: 15rem;
  }
}

.instructor-personal-details {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #d1d5db;
}

.instructor-details {
  text-align: center;
}

@media (min-width: 768px) {
  .instructor-details {
    text-align: left;
  }
}

.instructor-details .label {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.instructor-details .name {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .instructor-details .name {
    font-size: 2.25rem;
  }
}

.instructor-details .bio {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.instructor-activities-details {
  margin-top: 1.5rem;
}

.instructor-activities-details h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #E5E7EB;
  font-size: 0.875rem;
}

.instructor-activities-details .activities {
  font-size: 0.75rem;
  line-height: 1.6;
  color: #9ca3af;
  text-align: left;
}

/* 料金カード */
.pricing-card {
  background-color: white;
  color: var(--color-text);
  padding: 2rem;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.5rem;
}

@media (min-width: 768px) {
  .pricing-card {
    padding: 3rem;
  }
}

.pricing-subtitle {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.pricing-table {
  margin-bottom: 2rem;
  border-top: 1px solid #e5e7eb;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.pricing-row .item {
  font-weight: 700;
}

.pricing-row .price {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.125rem;
}

.schedule-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .schedule-info {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== スケジュール情報 ===== */
.schedule-info {
  /* display: flex; を削除し、ブロック要素として縦に並ぶようにします */
  margin-top: 2rem;
  /* 32px */
  width: 100%;
}

.schedule-item {
  /* 各項目の下に余白を追加 */
  margin-bottom: 1.5rem;
  /* 24px */
}

/* 最後の項目には下の余白は不要 */
.schedule-item:last-child {
  margin-bottom: 0;
}

.schedule-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  /* 8px */
  color: #383838;
}

.schedule-description {
  line-height: 1.6;
  color: #383838;
}

/* ===== 住所リンクのスタイル ===== */
.address-link {
  /* 下線を表示 */
  text-decoration: underline;
  /* 既存のテキストカラーを継承 */
  color: inherit;
  /* ホバー時の色の変化を滑らかに */
  transition: color 0.2s ease-in-out;
  /* アイコンを配置するためにインラインフレックスボックスを指定 */
  display: inline-flex;
  align-items: center;
}

/* リンクにマウスカーソルが乗った時の色をサイトのテーマカラーに変更 */
.address-link:hover {
  color: #C8102E;
  /* 赤色 */
}

/* 地図アイコンをリンクの後ろに追加 */
.address-link::after {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.3em;
  /* SVGアイコンを直接埋め込み */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="24px" height="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .button-group {
    grid-template-columns: 1fr 1fr;
  }
}

/* ボタン */
.btn {
  display: inline-block;
  text-align: center;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: opacity 0.3s;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

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

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}


/* 文化体験セクション */
.experience-card {
  background-color: white;
  color: var(--color-text);
  padding: 1.5rem;
  border-radius: 0.5rem;
  max-width: 1024px;
  margin: auto;
}

@media (min-width: 768px) {
  .experience-card {
    padding: 2.5rem;
  }
}

.experience-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.experience-title {
  font-size: 1.5rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .experience-title {
    font-size: 1.875rem;
  }
}

.experience-subtitle {
  font-size: 1.25rem;
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .experience-content {
    flex-direction: row;
  }
}

.experience-image-wrapper {
  flex: 1;
}

.experience-image {
  border-radius: 0.5rem;
  width: 100%;
  object-fit: cover;
}

.experience-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.experience-description {
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

.highlight-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.highlight-list {
  list-style-type: disc;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.experience-footer {
  text-align: center;
  margin-top: 2.5rem;
}

/* 制作実績セクション */
.works-description {
  max-width: 56rem;
  margin: 1.5rem auto 0;
  color: #4b5563;
  line-height: 1.75;
}

.works-subtitle {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.works-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 896px;
  margin: auto;
}

.work-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .work-card {
    flex-direction: row;
  }
}

.work-image-placeholder {
  background-color: #e5e7eb;
  width: 100%;
  height: 10rem;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .work-image-placeholder {
    width: 33.33%;
    height: auto;
    align-self: stretch;
  }
}

.work-details {
  flex: 1;
}

.work-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.work-category {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.work-description {
  color: #4b5563;
  font-size: 0.875rem;
  line-height: 1.6;
}

.works-note {
  text-align: center;
  font-size: 0.75rem;
  color: #4b5563;
  margin-top: 3rem;
  max-width: 896px;
  margin-left: auto;
  margin-right: auto;
}

/* 会社概要セクション */
.company-section {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .company-section {
    padding: 8rem 0;
  }
}

.company-info-table {
  max-width: 56rem;
  margin: auto;
  border-top: 1px solid #e5e7eb;
}

.info-row {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

@media (min-width: 640px) {
  .info-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1rem;
    padding: 1.25rem 0;
  }
}

.info-row dt {
  font-weight: 500;
  color: #4b5563;
}

.info-row dd {
  margin-top: 0.25rem;
}

@media (min-width: 640px) {
  .info-row dd {
    margin-top: 0;
  }
}

/* お問い合わせセクション */
.contact-section {
  padding: 5rem 0;
  background-color: #f3f4f6;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-section {
    padding: 8rem 0;
  }
}

.contact-description {
  max-width: 42rem;
  margin: 0 auto 2rem;
  color: #4b5563;
}

/* ===== お問い合わせボタンコンテナ ===== */
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  /* スマホでボタンが縦に並ぶように */
  justify-content: center;
  gap: 1.5rem;
  /* 24px ボタン間の余白 */
  margin-top: 2rem;
  /* 32px 上のテキストとの余白 */
}

/* ===== 共通ボタンのスタイル ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  /* 14px 24px */
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.125rem;
  /* 18px */
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  min-width: 280px;
  /* ボタンの最小幅を確保 */
}

.btn:hover {
  opacity: 0.85;
}

/* ボタン内のアイコンのスタイル */
.btn-icon {
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.5em;
}

/* ===== メールボタンのスタイル ===== */
.contact-email {
  background-color: #C8102E;
  /* 赤色 */
  color: #ffffff;
}

/* ===== 電話ボタンのスタイル ===== */
.contact-phone {
  background-color: #ddc477;
  /* 金色 */
  color: #333333;
}

/* フッター */
.footer {
  background-color: black;
  color: white;
  padding: 2rem 0;
}

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

.footer-links {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ===== アニメーション ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ポップアップモーダル ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0s 0.3s;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out, visibility 0s 0s;
}

.modal-content {
  position: relative;
  max-width: 500px;
  max-height: 90vh;
  transform: scale(0.9);
  transition: transform 0.3s ease-in-out;
}

.modal-overlay.visible .modal-content {
  transform: scale(1);
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 0.25rem;
}

.close-btn {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: white;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}

/* パララックス */

.image-banner {
  height: 24rem;
  /* 384px */
  width: 100%;
  background-image: url('image-90.png');
  /* 表示したい画像のパス */
  background-size: cover;
  background-position: center;
  /* background-attachment: fixed; を使うと簡単なパララックスも可能です */
}

@media (max-width: 768px) {
  .image-banner {
    height: 16rem;
    /* 256px */
  }
}