/* === 全体レイアウト === */
* {
  box-sizing: border-box;
}

body {
  padding-top: 150px;
  margin: 0;
  font-family: 'Kiwi Maru', serif;
  line-height: 1.6;
  color: #333;
}

.container {
  padding-top: 40px;
  padding-bottom: 240px;
}

.fixed-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  transform: scale(1.05); 
  z-index: -1;
}

.content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 900px;
  margin: auto;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  border-radius: 8px;
}

/* === ヘッダー === */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  position: relative;
}

.logo {
  height: 60px;
  width: auto;
}

.hamburger {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
}

/* === モバイルメニュー === */
.mobile-nav {
  display: none;
  background-color: #fff;
  padding: 10px 20px;
  border-top: 1px solid #ccc;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  margin: 10px 0;
}

.mobile-nav a {
  color: #0073e6;
  text-decoration: none;
  font-weight: bold;
}

/* === フッター === */
.fixed-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #002147;
  color: white;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.footer-inner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.footer-icons {
  display: flex;
  gap: 15px;
}

.footer-icons a img {
  width: 30px;
  height: 30px;
}

.footer-text {
  font-size: 14px;
  text-align: center;
  flex-grow: 1;
}

.footer-cta {
  background-color: #0073e6;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin: 20px 0;
}

.footer-cta:hover {
  background-color: #005bb5;
}

/* === タイポグラフィ === */
h1, h2, h3 {
  text-align: left;
  color: #222;
  font-family: 'Kiwi Maru', serif;
  font-weight: bold;
}

h2::before {
  content: "●";
  color: #0073e6;
  margin-right: 0.5em;
}

.emphasis {
  color: #e63946;
  font-weight: bold;
}

img.kv {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0px 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button.cta {
  background-color: #0073e6;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  margin: 20px 0;
}

button.cta:hover {
  background-color: #005bb5;
}

section {
  margin-bottom: 40px;
  padding-left: 10%;
  padding-right: 10%;
  line-height: 1.8;
}

ul, ol {
  padding-left: 20px;
}

ol li {
  break-inside: avoid;
}

.annotation {
  font-size: 0.8em;
  color: #666;
}

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

section[id] {
  scroll-margin-top: 200px;
}

/* === TikTokカルーセル調整 === */
#tiktok-carousel .carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 8px;
  padding: 0 4px;
  scroll-snap-type: x mandatory;
}

#tiktok-carousel .carousel blockquote {
  flex: 0 0 auto;
  scroll-snap-align: start;
  margin: 0;
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* === スマホ対応 === */
@media screen and (max-width: 768px) {
  .fixed-header {
    height: 90px;
    padding: 8px 0;
  }

  body {
    padding-top: 60px !important;
  }

  .container {
    padding-top: 40px !important;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px;
    max-width: 100%;
  }

  .logo {
    height: 32px;
    max-width: 80px;
    flex-shrink: 0;
  }

  .fixed-header h1 {
    font-size: 12px;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    word-break: break-word;
    text-align: left;
  }

  .hamburger {
    font-size: 28px;
    padding: 4px 8px;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

   .footer-text {
    font-size: 12px;
    line-height: 1.2;
    margin: 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
  }

  .footer-icons {
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .footer-cta {
    font-size: 14px;
    padding: 6px 12px; /* 上下の余白を詰める */
    margin: 8px 0;
  }

  #tiktok-carousel .carousel {
    gap: 6px;
  }

  #tiktok-carousel .carousel blockquote {
    max-width: 200px;
  }
}

/* === PC用スタイル === */
@media screen and (min-width: 769px) {
  .header-inner {
    position: relative;
  }

  .mobile-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: fit-content;
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  .mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-nav li {
    margin: 8px 0;
  }

  .mobile-nav a {
    color: #0073e6;
    font-weight: bold;
    padding: 4px 8px;
  }

  .mobile-nav a:hover {
    text-decoration: underline;
  }

  #tiktok-carousel .carousel blockquote {
    max-width: 260px;
  }
}
