:root {
  --color-black: #000000;
  --color-white: #ffffff;
  --color-accent-red: #ef1800;
  --color-deep-red: #b70a0a;
  --color-burgundy: #832d2d;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: var(--color-white);
  color: var(--color-black);
  line-height: 1.6;
  letter-spacing: 0.05em;
}

.font-mincho {
  font-family: "Noto Sans JP", sans-serif;
}

/* フォントウェイト */
.fw-light {
  font-weight: 200;
}

.fw-regular {
  font-weight: 300;
}

.fw-bold {
  font-weight: 500;
}

/* メインコンテナ */
.main-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  background-color: var(--color-white);
}

/* =============== ヘッダー =============== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 30px 60px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.16) 12.65%,
    rgba(0, 0, 0, 0) 46.88%
  );
}

.logo {
  display: flex;
  align-items: center;
}

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

/* SP用ロゴ */
.logo-sp {
  display: none;
  align-items: center;
}

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

/* ハンバーガーメニュー */
.hamburger-menu {
  display: none;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.hamburger-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  transition: all 0.3s ease;
}

.hamburger-menu.scrolled span {
  background-color: var(--color-black);
}

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.language-switch {
  display: flex;
  gap: 24px;
  align-items: center;
}

.language-switch span {
  font-size: 16px;
  color: var(--color-white);
  line-height: 1.2;
  text-align: center;
  font-weight: 200;
}

.language-switch .active {
  font-weight: 500;
}

.language-divider {
  width: 1px;
  height: 16px;
  background-color: var(--color-white);
}

.nav-menu {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: flex-end;
}

.nav-item {
  color: var(--color-white);
  text-decoration: none;
  font-size: 20px;
  font-weight: 200;
  line-height: 1.2;
  padding-bottom: 8px;
  transition: opacity 0.3s ease;
}

.nav-item:hover {
  opacity: 0.8;
}

.nav-item.active {
  font-weight: 500;
  border-bottom: 2px solid var(--color-white);
}

/* モバイルナビゲーション オーバーレイ */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 199;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* モバイルナビゲーション パネル */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 332px;
  height: 100vh;
  max-height: 852px;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: none;
  z-index: 200;
  transform: translateX(100%);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.mobile-nav.open {
  transform: translateX(0);
  box-shadow: -4px 0px 6px 0px rgba(0, 0, 0, 0.25);
}

.mobile-nav-close {
  position: absolute;
  top: 44px;
  right: 17px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-close::before,
.mobile-nav-close::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: var(--color-black);
}

.mobile-nav-close::before {
  transform: rotate(45deg);
}

.mobile-nav-close::after {
  transform: rotate(-45deg);
}

.mobile-nav-content {
  position: absolute;
  left: 29px;
  top: 176px;
  display: flex;
  flex-direction: column;
  gap: 160px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.mobile-nav-links a {
  display: inline-block;
  color: var(--color-black);
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.2;
  padding-bottom: 8px;
  transition: opacity 0.3s ease;
}

.mobile-nav-links a.active {
  color: var(--color-deep-red);
  font-weight: 600;
  border-bottom: 2px solid var(--color-deep-red);
}

.mobile-nav-links a:hover {
  opacity: 0.8;
}

.mobile-nav-language {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.mobile-nav-language span {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--color-black);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.mobile-nav-language span.active {
  font-weight: 600;
}

.mobile-nav-language span:hover {
  opacity: 0.8;
}

/* =============== ヒーローセクション =============== */
.hero-section {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  padding: 0 60px;
}

.fv-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: auto;
}

.fv-text-pc {
  display: block;
  left: 270px;
  height: 100%;
}

.fv-text-sp {
  display: none;
}

.hero-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.hero-images .fv-pc {
  display: block;
}

.hero-images .fv-sp {
  display: none;
}

/* FVスライドショーアニメーション */
.fv-slide {
  opacity: 0;
  animation: fvFade 18s infinite;
}

/* 最初の画像は即座に表示 */
.fv-slide.fv-first {
  opacity: 1;
  animation: fvFade 18s infinite;
}

.fv-pc.fv-slide:nth-of-type(1) {
  animation-delay: 0s;
}

.fv-pc.fv-slide:nth-of-type(2) {
  animation-delay: 6s;
}

.fv-pc.fv-slide:nth-of-type(3) {
  animation-delay: 12s;
}

.fv-sp.fv-slide:nth-of-type(4) {
  animation-delay: 0s;
}

.fv-sp.fv-slide:nth-of-type(5) {
  animation-delay: 6s;
}

.fv-sp.fv-slide:nth-of-type(6) {
  animation-delay: 12s;
}

@keyframes fvFade {
  0% {
    opacity: 0;
  }
  5.56% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
  }
  38.89% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* =============== セクション共通 =============== */
.section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 0 120px 80px;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.section-title {
  font-family: "Noto Serif JP", serif;
  font-size: 40px;
  font-weight: 400;
  color: var(--color-black);
  text-align: center;
  line-height: 1.2;
}

.section-divider {
  width: 100%;
  height: 2px;
  background-color: #cf2e2d;
}

.section-text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 200;
  line-height: 2;
  text-align: center;
  color: var(--color-black);
}

/* =============== 合気道とはセクション =============== */
.aikido-section .circle-image {
  width: 384px;
  height: 384px;
  border-radius: 50%;
  overflow: hidden;
}

.aikido-section .circle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============== 鈴木道場についてセクション =============== */
.about-section {
  padding-bottom: 0;
}

/* =============== 道場帯画像 =============== */
.dojo-banner {
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.dojo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* =============== 情報セクション =============== */
.info-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 240px;
}

.info-block-header {
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.info-block-title {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--color-black);
  line-height: 2;
}

.info-block-subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 200;
  color: var(--color-black);
  line-height: 2;
  margin-left: 1em;
}

.info-divider {
  width: 100%;
  height: 1px;
  background-color: var(--color-black);
}

.info-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 8px 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 200;
  line-height: 2;
  color: var(--color-black);
}

.info-row.first {
  padding-top: 8px;
  padding-bottom: 0;
}

.info-row.small {
  font-size: 20px;
  padding-top: 0;
  padding-bottom: 8px;
}

.info-location {
  font-weight: 500;
  color: var(--color-deep-red);
}

.info-label {
  width: 150px;
}

.info-label-wide {
  width: 230px;
}

.info-price {
  font-weight: 500;
  text-align: right;
}

.info-note {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 200;
  padding: 8px 0;
  color: var(--color-black);
  line-height: 2;
}

/* =============== ギャラリー画像 =============== */
.gallery-banner {
  width: 100%;
  height: 70vh;
  overflow: hidden;
  position: relative;
}

.gallery-banner img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ギャラリースライドショーアニメーション */
.gallery-slide {
  opacity: 0;
  animation: galleryFade 18s infinite;
}

.gallery-slide:nth-child(1) {
  animation-delay: 0s;
}

.gallery-slide:nth-child(2) {
  animation-delay: 6s;
}

.gallery-slide:nth-child(3) {
  animation-delay: 12s;
}

@keyframes galleryFade {
  0% {
    opacity: 0;
  }
  5.56% {
    opacity: 1;
  }
  33.33% {
    opacity: 1;
  }
  38.89% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

/* =============== 「和」の武道セクション =============== */
.harmony-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  padding: 0 120px 80px;
}

.harmony-section .section-text {
  font-size: 20px;
}

.harmony-section .section-text .note {
  font-size: 16px;
  display: block;
  margin-top: 2.5em;
  line-height: 1.6;
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  height: 80px;
  border: 1px solid #832d2d;
  border-radius: 40px;
  background-color: transparent;
  color: #832d2d;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 2;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: #832d2d;
  color: var(--color-white);
}

/* =============== フッター =============== */
.footer {
  width: 100%;
  height: 360px;
  background-color: var(--color-burgundy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 24px 480px;
}

.footer-nav {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: flex-end;
}

.footer-nav-item {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-bottom: 8px;
}

.footer-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 200;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.footer-nav a.current {
  opacity: 0.3;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-copyright {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 200;
  color: var(--color-white);
  line-height: 1.2;
  text-align: center;
}

/* PC版のみ表示する改行 */
.pc-br {
  display: inline;
}

/* SP版のみ表示する改行（単語の途中で折り返さないため） */
.sp-br {
  display: none;
}

/* =============== レスポンシブ - タブレット =============== */
@media (max-width: 1280px) {
  .info-block {
    padding: 0 120px;
  }

  .footer {
    padding: 50px 120px 20px;
  }
}

@media (max-width: 1024px) {
  .header {
    padding: 20px;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-item {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-text {
    font-size: 20px;
    padding: 0 40px;
  }

  .info-block {
    padding: 0 60px;
  }

  .footer {
    padding: 24px 60px;
    height: auto;
    gap: 40px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

/* =============== レスポンシブ - スマートフォン（SP版） =============== */
@media (max-width: 768px) {
  /* PC版のみ改行を非表示 */
  .pc-br {
    display: none;
  }

  /* SP版のみ表示する改行 */
  .sp-br {
    display: inline;
  }

  /* SP版のみ改行を表示 */
  .sp-br {
    display: inline;
  }

  .main-container {
    gap: 80px; /* SP版は80pxのまま */
  }

  /* ヘッダー SP */
  .header {
    padding: 24px 25px;
    background: transparent;
  }

  .logo {
    display: none;
  }

  .logo-sp {
    display: flex;
  }

  .nav-container {
    display: none;
  }

  .hamburger-menu {
    display: flex;
  }

  /* ヒーローセクション SP */
  .hero-section {
    height: 760px;
    padding: 0;
  }

  .fv-text-pc {
    display: none;
  }

  .fv-text-sp {
    display: block;
    left: 66px;
    height: 100%;
  }

  .hero-images .fv-pc {
    display: none;
  }

  .hero-images .fv-sp {
    display: block;
  }

  /* セクション SP */
  .section {
    gap: 80px;
    padding: 0 25px 80px;
  }

  .section-header {
    gap: 24px;
  }

  .section-title {
    font-size: 34px;
    letter-spacing: 3.4px;
  }

  .section-text {
    font-size: 19px;
    line-height: 2;
    padding: 0;
    /* 日本語の読みやすい改行（2〜3文字の孤立を防ぐ） */
    text-wrap: pretty;
  }

  /* 合気道とはセクション SP */
  .aikido-section .circle-image {
    width: 240px;
    height: 240px;
  }

  /* 鈴木道場についてセクション SP */
  .about-section .section-text {
    font-size: 19px;
    text-wrap: pretty;
  }

  /* 道場帯画像 SP */
  .dojo-banner {
    height: 240px;
  }

  /* 情報セクション SP */
  .info-block {
    padding: 0 25px;
  }

  .info-block-header {
    flex-wrap: wrap;
  }

  .info-block-title {
    font-size: 23px;
  }

  .info-block-subtitle {
    font-size: 19px;
  }

  .info-row {
    font-size: 19px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .info-row.small {
    font-size: 19px;
  }

  .info-location {
    width: 100%;
    font-size: 19px;
    line-height: 1.2;
  }

  .info-label {
    width: 90px;
  }

  .info-label-wide {
    width: 90px;
  }

  .info-price {
    text-align: right;
  }

  .info-note {
    font-size: 19px;
  }

  /* 稽古案内の個別調整 */
  .info-row .day {
    flex-shrink: 0;
  }

  .info-row .time {
    flex-shrink: 0;
  }

  /* ギャラリー画像 SP */
  .gallery-banner {
    height: 304px;
  }

  /* 「和」の武道セクション SP */
  .harmony-section {
    gap: 80px;
    padding: 0 40px 80px;
  }

  .harmony-section .section-text {
    font-size: 19px;
    text-wrap: pretty;
    max-width: 400px;
    margin: 0 auto;
  }

  .harmony-section .section-text .note {
    font-size: 14px;
    margin-top: 0.5em;
    line-height: 1.6;
  }

  .contact-button {
    width: 100%;
    height: 64px;
    font-size: 19px;
  }

  /* フッター SP */
  .footer {
    height: 360px;
    padding: 40px 25px 25px;
  }

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

  .footer-nav a {
    font-size: 17px;
  }
}
