:root {
  /* 配色設定 (ご指定の色) */
  --color-primary: #043e80; /* ネイビー */
  --color-accent: #f5b500;  /* イエロー */
  --color-accent-hover: #d49c00;
  
  --color-text: #333333;
  --color-text-light: #666666;
  --color-bg-light: #f8f9fa; /* 薄いグレー（ほぼ白） */
  --color-white: #ffffff;
  
  --font-main: "Yu Gothic", "YuGothic", "Noto Sans JP", "Montserrat", sans-serif;
  
  --width-container: 1000px;
  --header-height: 70px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: hidden;
  width: 100%;
  scroll-padding-top: var(--header-height); /* スクロール時のヘッダー被り防止 */
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-width: 100%;
  max-width: 100vw;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
a { color: inherit; text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }

/* Typography & Colors */
.text-center { text-align: center; }
.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }

.text-primary { color: var(--color-primary) !important; }
.text-accent { color: var(--color-accent) !important; }
.text-white { color: var(--color-white) !important; }
.bg-primary { background-color: var(--color-primary); color: var(--color-white); }
.bg-light { background-color: var(--color-bg-light); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--color-primary);
  display: inline-block;
  position: relative;
  padding-bottom: 10px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-accent);
}
.text-center .section-title::after { left: 50%; transform: translateX(-50%); }
.text-white.section-title { color: var(--color-white); }

/* Animation (Scroll Fade) */
.js-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--color-primary);
  box-shadow: 0 1px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-inner {
  width: 100%;
  max-width: var(--width-container);
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header-inner .logo {
  display: flex;
  align-items: center;
  height: 100%;
}
.header-inner img {
  height: 50px; /* ヘッダー高さ(70px)に対して調整 */
  width: auto;
  /* filter: brightness(0) invert(1); 白ロゴ化を解除 */
}
.header-inner .header-icon-img {
  height: 50px;
  margin-right: 15px;
  position: relative;
  top: 5px; /* アイコンを少し下に調整 */
}

/* Global Nav */
.global-nav ul {
  display: flex;
  gap: 30px;
}
.global-nav a {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}
.global-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 100%; height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: 0.3s;
  transform-origin: left;
}
.global-nav a:hover::after {
  transform: scaleX(1);
}

/* Hamburger */
.hamburger { display: none; }

/* Hero Section */
.hero-section {
  position: relative;
  height: 85vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: var(--header-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover; /* 背景画像は全体を覆う */
  background-position: center;
  animation: zoomOut 20s infinite alternate;
}

/* Load Animations */
@keyframes fadeInUpDesktopPerson {
  0% { opacity: 0; transform: translateX(-50%) translateY(30px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes fadeInUpLogo {
  0% { opacity: 0; transform: translate(-50%, -50%) translateY(30px); }
  100% { opacity: 1; transform: translate(-50%, -50%) translateY(0); }
}
@keyframes fadeInUpMobilePerson {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero-person-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  z-index: 20;
  animation: fadeInUpDesktopPerson 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.hero-logo-img {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  height: auto;
  opacity: 0;
  animation: fadeInUpLogo 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
  z-index: 30; /* 人物(z-index:20)より手前に表示 */
}
.hero-kokumin-img {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 240px;
  height: auto;
  z-index: 30;
}
@media (max-width: 768px) {
  .hero-kokumin-img {
    top: 20px;
    left: 20px;
    width: 150px;
  }
}
.hero-tagline-img {
  position: absolute;
  top: 85%; /* ロゴ(70%)より下に配置 */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 700px;
  height: auto;
  opacity: 0;
  animation: fadeInUpLogo 1.5s cubic-bezier(0.25, 1, 0.5, 1) 0.6s forwards; /* ロゴより少し遅れて出現 */
  z-index: 30;
}
.hero-person {
  position: absolute;
  inset: 0;
  background-size: contain; /* 人物は全体を収める */
  background-repeat: no-repeat;
  background-position: center bottom;
  z-index: 20;
}
@keyframes zoomOut { 0% { transform: scale(1.1); } 100% { transform: scale(1.0); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  /* background: linear-gradient(...) removed */
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 0;
  padding-top: 15vh;
}
.hero-content { color: var(--color-white); text-shadow: 0 2px 5px rgba(0,0,0,0.3); text-align: center; }
.hero-main-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  padding: 0 20px; /* 左右にマージン（余白）を追加 */
}
.hero-sub { font-size: 1.2rem; font-weight: 500; margin-bottom: 1rem; }
.hero-content h1 { font-size: 4rem; font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
.text-highlight { color: var(--color-accent); border-bottom: 6px solid var(--color-accent); display: inline-block; }
.hero-name { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.1em; }

/* Social Bar */
.social-bar { 
  padding: 80px 0; 
  background: var(--color-bg-light); 
  border-bottom: 1px solid #eee; 
  position: relative;
}
.social-message {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 30px;
  letter-spacing: 0.05em;
  position: relative;
  display: inline-block;
}
.social-message::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--color-accent);
}
.social-icons { 
  display: flex; 
  justify-content: center; 
  gap: 20px; 
  margin-bottom: 50px;
}
.social-icons a {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}
.social-icons a:hover {
  transform: translateY(-5px);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.social-catchphrase-wrapper {
  margin-top: 40px;
  text-align: center;
}
.social-catchphrase-img {
  max-width: 400px;
  width: 90%;
  height: auto;
}
/* リンクがないアイコンは無効化 */
.social-icons a[href=""] {
  pointer-events: none;
  opacity: 0.6;
}
.social-icons a:hover { transform: translateY(-2px); color: #fff; }
.icon-fb:hover { background: #1877f2; border-color: #1877f2; }
.icon-insta:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; }
.icon-x:hover { background: #000; border-color: #000; }
.icon-yt:hover { background: #ff0000; border-color: #ff0000; }
.icon-tiktok:hover { background: #000; border-color: #000; }
.icon-line:hover { background: #00c300; border-color: #00c300; }

/* Social Images Layout (Modern & Clean) */
.social-images-container {
  display: flex;
  justify-content: center;
  align-items: center; /* 横並びの時は中央揃え */
  gap: 40px;
  margin-top: 40px;
}
.social-img-item {
  flex: 1;
  display: flex;
  justify-content: center;
}
.social-photo-img, .social-catchphrase-img {
  border-radius: 12px;
  width: 100%;
  height: auto;
  box-shadow: none; /* シャドウ(影)を完全に削除 */
}
.social-photo-img {
  max-width: 480px; /* PCサイズをさらに拡大 */
}
.social-catchphrase-img {
  max-width: 580px; /* PCサイズをさらに拡大 */
}

@media (max-width: 768px) {
  .social-bar { padding: 60px 0; }
  .social-images-container {
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
  }
  .social-img-item {
    width: 100%;
  }
  .social-photo-img, .social-catchphrase-img {
    max-width: 100%; /* 横幅を container の 100% に揃える */
    width: 100%;
    box-shadow: none; /* スマホではフラットに */
  }
}

/* Layouts */
.section { padding: 80px 0; }
.container { width: 100%; max-width: var(--width-container); margin: 0 auto; padding: 0 20px; }

/* Greeting */
.greeting-section { padding-bottom: 0; }
.greeting-layout { display: flex; gap: 60px; align-items: flex-end; }
.greeting-img { flex: 1; max-width: 550px; }
.greeting-img img { border-radius: 8px 8px 0 0; width: 100%; display: block; }
.greeting-text { flex: 1.5; padding-bottom: 80px; }
.lead-text {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.6;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
  /* border-bottom は削除 */
}
.lead-text span {
  background: linear-gradient(transparent 60%, rgba(245, 181, 0, 0.4) 60%);
  padding-bottom: 3px;
}
.greeting-sign { margin-top: 2rem; text-align: right; }
.greeting-sign p { font-size: 0.85rem; margin: 0; color: var(--color-text-light); }
.greeting-sign h3 { font-size: 1.5rem; margin: 0; }

/* Bio (Split Layout - No Cards) */
.bio-section { padding-bottom: 0; }
.bio-row {
  display: flex;
  align-items: stretch;
}
.bio-row:last-child { border-bottom: none; }
.bio-img { flex: 1; min-height: 350px; }
.bio-img img { width: 100%; height: 100%; object-fit: cover; }
.bio-content { flex: 1; padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.bio-row.reverse { flex-direction: row-reverse; }
.bio-heading { font-size: 1.5rem; color: var(--color-accent); margin-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.3); padding-bottom: 10px; display: inline-block; }

/* Timeline Style Bio List */
.bio-list {
  border-left: 3px solid rgba(255,255,255,0.3);
  padding-left: 30px;
  margin-left: 10px;
  padding-bottom: 10px; /* 少し余白を持たせる */
}
.bio-list li {
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 0;
  line-height: 1.6;
}
.bio-list li:last-child {
  margin-bottom: 0;
}
/* Timeline Dot */
.bio-list li::before {
  content: '';
  position: absolute;
  left: -39.5px; /* 30(pad) + 1.5(border-half) + 8(dot-half) */
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--color-primary); /* 背景色と同じ色で縁取りして、線の上に浮いているように見せる */
}
.bio-date { display: block; font-weight: 700; color: var(--color-accent); margin-bottom: 0.3rem; font-size: 1.1rem; }
.bio-extra-info { margin-top: 2.5rem; border-top: 1px dashed rgba(255,255,255,0.3); padding-top: 1.5rem; }
.bio-extra-item { margin-bottom: 1.5rem; }
.bio-extra-item h4 { font-size: 1.1rem; margin-bottom: 0.5rem; font-weight: 700; }
.bio-extra-item h4 i { margin-right: 8px; width: 20px; text-align: center; }

/* Personal Info */
.personal-inner { display: inline-flex; align-items: center; gap: 30px; margin-top: 40px; }
.personal-img img { width: 300px; max-width: 100%; height: auto; border-radius: 10px; }
.personal-data { text-align: left; font-size: 1.1rem; font-weight: 700; color: var(--color-primary); }

/* District */
.district-flex { display: flex; gap: 40px; align-items: center; justify-content: center; }
.district-map { flex: 1; max-width: 400px; }
.district-list { flex: 1.5; text-align: center; }
.area-block h3 {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  /* border-left: 5px solid var(--color-accent); */
  /* padding-left: 15px; */
  border-bottom: 2px solid var(--color-accent); /* 下線に変更 */
  padding-bottom: 10px;
  display: inline-block;
}
.area-block.sub h4 { font-size: 1rem; color: var(--color-text-light); margin-bottom: 0.5rem; }
.area-block.sub p { font-size: 0.9rem; color: var(--color-text-light); }

/* Policy (Editorial List Style - No Cards) */
.policy-wrapper { max-width: 900px; margin: 0 auto; }
.policy-block { margin-bottom: 4rem; }
.policy-head {
  text-align: center; padding: 15px; font-size: 1.3rem; border-radius: 4px; margin-bottom: 30px;
  position: relative;
}
/* 矢印でつなぐ演出 */
.policy-head::after {
  content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%);
  border-top: 15px solid var(--color-primary); border-left: 15px solid transparent; border-right: 15px solid transparent;
}

.policy-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.two-col { grid-template-columns: 1fr 1fr; }

.policy-item h4 {
  font-size: 1.2rem; color: var(--color-primary); margin-bottom: 15px;
  border-bottom: 2px solid #eee; padding-bottom: 10px;
}
.policy-item ul { font-size: 0.95rem; }
.policy-item li { margin-bottom: 8px; }

/* Volunteer (Clean Icons) */
.volunteer-flex { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.v-item { text-align: center; width: 220px; }
.v-icon {
  font-size: 2.5rem; color: var(--color-accent); margin-bottom: 15px;
  background: #fff; width: 80px; height: 80px; line-height: 80px; border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.v-item h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.v-item p { font-size: 0.9rem; color: var(--color-text-light); }

/* Buttons */
.btn {
  display: inline-flex; justify-content: center; align-items: center;
  padding: 16px 40px; font-weight: 700; border-radius: 50px;
  transition: all 0.3s; position: relative; overflow: hidden;
  font-size: 1.1rem;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover {
  background: var(--color-accent);
  color: #000;
  box-shadow: none;
  transform: none;
}

.btn-yellow { background: var(--color-accent); color: #000; }
.btn-yellow:hover { background: var(--color-accent-hover); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(245,181,0,0.4); }

.btn-outline { border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--color-primary); }

.btn-arrow i { margin-left: 10px; font-size: 0.9em; transition: transform 0.3s; }
.btn-arrow:hover i { transform: translateX(8px); }
.cta-grid { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.site-footer { padding: 60px 0 20px; background: var(--color-bg-light); border-top: 1px solid #eee; }
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
  max-width: var(--width-container);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.footer-info {
  flex: 1;
  min-width: 280px;
}
.footer-logo {
  width: 220px;
  margin-bottom: 20px;
  opacity: 1;
}
.footer-address {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 20px;
  margin-left: 12px;
}
.footer-address a {
  display: inline-block;
  position: relative;
}
.footer-address a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: 0.3s;
  transform-origin: left;
}
.footer-address a:hover::after {
  transform: scaleX(1);
}

.footer-nav {
  flex: 1;
  min-width: 200px;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-nav a {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  position: relative;
  display: inline-block;
  transition: color 0.3s;
}
.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform 0.3s;
  transform-origin: left;
}
.footer-nav a:hover {
  color: var(--color-primary);
}
.footer-nav a:hover::after {
  transform: scaleX(1);
}

.footer-social-section {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.footer-catchphrase {
  margin-top: 30px;
  text-align: right;
}
.footer-catchphrase .social-catchphrase-img {
  max-width: 250px;
}
@media (max-width: 768px) {
  .footer-catchphrase {
    text-align: center;
  }
}
/* 既存の .social-icons を利用するが、ここでは少し小さめにするなどの調整も可能 */
.footer-social-section .social-icons a {
  width: 45px; height: 45px; font-size: 1.4rem;
}

.copyright {
  border-top: 1px solid #ddd;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #999;
  text-align: center;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }
  .footer-nav { width: 100%; }
  .footer-nav ul { 
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
  }
  .footer-social-section {
    align-items: center;
    margin-top: 0;
  }
  .footer-address {
    margin-left: 0;
  }
}

/* Go Top */
.go-to-top {
  position: fixed; bottom: 20px; right: 20px;
  width: 50px; height: 50px; background: var(--color-primary); color: #fff;
  border: none; border-radius: 50%; cursor: pointer;
  opacity: 0; transition: 0.3s; pointer-events: none; z-index: 99;
}
.go-to-top.show { opacity: 1; pointer-events: auto; }
.go-to-top:hover { background: var(--color-accent); }

/* Responsive */
@media (max-width: 768px) {
  /* Header Logo adjustment for SP */
  .header-inner img {
    height: 42px;
  }
  .header-inner .header-icon-img {
    height: 42px;
    margin-right: 10px;
    top: 2px;
  }

  .container {
    padding: 0 20px;
  }
  .hero-section {
    height: auto;
    min-height: auto;
    width: 100%;
    display: block;
  }
  .hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
  }
  .hero-person-img {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 100%;
    left: auto;
    transform: none;
    display: block;
    object-fit: cover;
    margin: 0 auto;
    animation-name: fadeInUpMobilePerson; /* スマホ用アニメーションに切り替え */
  }
  .hero-person {
    background-size: cover; /* スマホ時は人物を大きく表示 */
  }
  .hero-content h1 { font-size: 2.5rem; }
  .lead-text { font-size: 1.8rem; margin-bottom: 2rem; }
  .social-icons a { width: 45px; height: 45px; font-size: 1.4rem; }
  .greeting-layout, .district-flex, .bio-row, .bio-row.reverse { flex-direction: column; }
  .greeting-layout { align-items: center; }
  .greeting-section { padding-bottom: 80px; }
  .greeting-text { padding-bottom: 0; }
  .greeting-img img { border-radius: 8px; }
  .greeting-img, .district-map { max-width: 100%; }
  .bio-content { padding: 40px 0; }
  .bio-img { min-height: 250px; }
  .personal-inner { flex-direction: column; gap: 15px; }
  .policy-items.two-col { grid-template-columns: 1fr; }
  .cta-grid { flex-direction: column; }
  /* .btn { width: 100%; } PCと同じくコンテンツ幅へ */

  /* Mobile Nav */
  .hamburger {
    display: block;
    position: relative;
    z-index: 1100;
    width: 30px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
  }
  .hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: 0.3s;
    left: 0;
  }
  .hamburger span:nth-child(1) { top: 0; }
  .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .hamburger span:nth-child(3) { bottom: 0; }
  
  .hamburger.active span:nth-child(1) { top: 50%; transform: rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { top: 50%; transform: rotate(-45deg); width: 100%; bottom: auto; }

  .global-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: auto;
    background: var(--color-primary);
    display: block;
    padding: 20px 0;
    
    /* アニメーション変更: ヘッダーの下からカーテンのように降りてくる */
    clip-path: inset(0 0 100% 0); /* 下端を100%カットして隠す */
    transition: clip-path 0.4s ease-in-out, visibility 0.4s;
    
    z-index: 900;
    visibility: hidden;
  }
  .global-nav.active {
    clip-path: inset(0 0 0 0); /* カットなし */
    visibility: visible;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  .global-nav ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    padding: 20px;
  }
  .global-nav a {
    font-size: 1.2rem;
  }
}
.sp-only { display: none; }
@media (max-width: 480px) { .sp-only { display: block; } }
/* Screen Reader Only (SEO: h1隠し用) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Extra Edition */
.extra-edition-section {
  padding-bottom: 80px;
}
.extra-edition-images {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.extra-img-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}
.extra-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Tweets Container */
.twitter-tweet {
  margin-top: 0 !important;
  margin-bottom: 30px !important;
}

/* =========================================
   X (Twitter) Timeline Horizontal Scroll (Auto)
   ========================================= */
.x-timeline-wrapper {
  width: 100%;
  overflow: hidden; /* Hide scrollbar for auto-scroll */
  position: relative;
  padding: 10px 0;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

#x-posts-container {
  display: flex;
  flex-wrap: nowrap; /* Horizontal layout */
  align-items: flex-start;
  gap: 16px; /* Gap between columns */
  width: max-content; /* Allow container to grow horizontally */
  --scroll-distance: -25%;
  --scroll-duration: 240s;
  will-change: transform; /* GPU acceleration hint */
  
  /* Animation removed initially */
  /* animation: scroll-left 240s linear infinite; */

  /* Fade in */
  /* visibility: hidden; を削除し、opacityとpointer-eventsで制御することでTwitter Widgetのレンダリングスキップを回避 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

#x-posts-container.is-loaded {
  opacity: 1;
  pointer-events: auto;
}

#x-posts-container.start-animation {
  animation: scroll-left var(--scroll-duration, 240s) linear infinite;
}

.tweet-column {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Gap between tweets in a column */
  min-width: 330px;
}


/* Keyframes for sliding left */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(var(--scroll-distance, -25%)); } 
  /* Assuming content is duplicated 4x. Moving 25% means moving 1 full set. 
     If the loop isn't smooth, check the duplication count. */
}

/* Override default Twitter widget styles within this container */
#x-posts-container .twitter-tweet {
  width: 320px !important;
  min-width: 320px !important;
  margin: 0 !important;
  /* Ensure tweets don't break the layout */
  break-inside: avoid;
  background: white;
  border-radius: 12px;
  /* Optional: Add shadow to make them look like precise cards aka "puzzle pieces" */
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #x-posts-container {
    height: 1500px; /* Reduced height for mobile */
    gap: 12px;
    width: max-content;
  }
  .tweet-column {
    min-width: min(85vw, 280px);
  }
  #x-posts-container .twitter-tweet {
    width: min(85vw, 280px) !important;
    min-width: min(85vw, 280px) !important;
  }
}

@media (max-width: 480px) {
  #x-posts-container {
    height: 1300px;
    gap: 10px;
    width: max-content;
  }
  .tweet-column {
    min-width: min(92vw, 250px);
    gap: 16px;
  }
  #x-posts-container .twitter-tweet {
    width: min(92vw, 250px) !important;
    min-width: min(92vw, 250px) !important;
  }
}
