/*
Theme Name: 松木りょう 選挙応援サイト
Theme URI:
Author:
Author URI:
Description: 松木りょう様の選挙応援サイト用オリジナルテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ryo-matsuki
*/

/*
 * ==========================================================================
 * メインスタイルシート
 * ==========================================================================
 * このファイルはWordPressテーマとして認識させるために必要です。
 * 主要なスタイルはこのファイルに記述します。
 * 
 * CSS記法: BEM記法 / Google Style Guide準拠
 * ==========================================================================
 */

/* ==========================================================================
   フォント定義
   ========================================================================== */

/**
 * DIN 2014 フォント定義
 * 
 * Adobe Fontsを使用する場合:
 * 1. fonts.adobe.com にアクセスしてログイン
 * 2. DIN 2014を検索してプロジェクトに追加
 * 3. Webプロジェクトを作成して埋め込みコードを取得
 * 4. functions.php でAdobe FontsのCSSを読み込む
 * 
 * ローカルフォントファイルを使用する場合:
 * フォントファイルを fonts/ フォルダに配置して、以下の@font-face定義を有効化してください。
 */
/* 
@font-face {
  font-family: 'DIN 2014';
  src: url('fonts/DIN2014-Regular.woff2') format('woff2'),
    url('fonts/DIN2014-Regular.woff') format('woff'),
    url('fonts/DIN2014-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DIN 2014';
  src: url('fonts/DIN2014-Bold.woff2') format('woff2'),
    url('fonts/DIN2014-Bold.woff') format('woff'),
    url('fonts/DIN2014-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}
*/

/* ==========================================================================
   リセットCSS
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', '源ノ角ゴシック', 'Source Han Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   共通アニメーション
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 32px, 0);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 既存の位置調整transformを使っている要素は、その位置を保ったまま表示する */
.fv-section__slogan.reveal-on-scroll {
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(-24px, calc(-50% + 72px), 0) scale(0.96);
  transition:
    opacity 1.2s ease,
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.2s ease;
}

.fv-section__slogan.reveal-on-scroll.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, -50%, 0) scale(1);
}

.fv-section__portrait.reveal-on-scroll {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(18px, calc(-60% + 110px), 0) scale(0.84);
  transition:
    opacity 1.3s ease,
    transform 1.3s cubic-bezier(0.18, 0.9, 0.22, 1),
    filter 1.3s ease;
}

.fv-section__portrait.reveal-on-scroll.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, -60%, 0) scale(1);
}

/* メッセージ周りは跳ねずに、下からスッと表示 */
.fv-section__message-btn.reveal-on-scroll,
.fv-section__message-text.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition:
    opacity 0.75s ease-out,
    transform 0.75s ease-out;
}

.fv-section__message-btn.reveal-on-scroll.is-visible,
.fv-section__message-text.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .reveal-on-scroll,
  .fv-section__message-btn.reveal-on-scroll,
  .fv-section__message-text.reveal-on-scroll {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .fv-section__slogan.reveal-on-scroll,
  .fv-section__slogan.reveal-on-scroll.is-visible {
    opacity: 1;
    filter: none;
    transform: translateY(-50%);
    transition: none;
  }

  .fv-section__portrait.reveal-on-scroll,
  .fv-section__portrait.reveal-on-scroll.is-visible {
    opacity: 1;
    filter: none;
    transform: translateY(-60%);
    transition: none;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.8;
}

ul,
ol {
  list-style: none;
}

/* ==========================================================================
   共通スタイル
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* LPページではヘッダーを非表示 */
body.lp-page .site-header {
  display: none;
}

/* ==========================================================================
   フッター
   ========================================================================== */

.site-footer {
  background-color: #333;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

/* ==========================================================================
   LP用スタイル
   ========================================================================== */

/* FV（ファーストビュー）セクション */
.fv-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  z-index: 1;
  /* 一番下に堺市の写真を敷く */
  background-image: url('img/sakaishi.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fv-section__inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
}

/* 背景画像は .fv-section に持たせる */
.fv-section__inner::before {
  content: none;
}

/* ==========================================================================
   左側セクション（グラデーション背景）
   ========================================================================== */

.fv-section__left {
  position: relative;
  z-index: 1;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

/* パララックス背景（緑グラデを上から半透明で重ねる） */
.fv-section__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-image: url('img/fv-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: 1;
  transform: translate3d(0, 0, 0);
  opacity: 0.7;
}

/* ヘッダーロゴ */
.fv-section__header-logo {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 10;
}

.fv-section__header-logo-image {
  max-width: 60%;
  height: auto;
  display: block;
}

/* スローガン */
.fv-section__slogan {
  position: absolute;
  left: clamp(1rem, -1rem + 10vw, 11rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.fv-section__slogan-text {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.5rem, 2.1rem + 2vw, 4.5rem);
  font-weight: bold;
  color: #fff;
  line-height: 1.3;
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.15em;
}

.fv-section__slogan-line {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* 候補者ポートレート */
.fv-section__portrait {
  position: absolute;
  right: -30%;
  top: 70%;
  transform: translateY(-60%);
  z-index: 10;
  width: 100%;
  height: 100%;
}

.fv-section__portrait-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 候補者詳細ボックス */
.fv-section__candidate-info {
  position: absolute;
  bottom: 35px;
  left: 0;
  z-index: 10;
  background-color: transparent;
  padding: 15px 60px;
  text-align: center;
}

/* 緑の四角（before要素で後ろに配置） */
.fv-section__candidate-info::before {
  content: '';
  position: absolute;
  top: 0;
  right: -8px;
  bottom: 0;
  left: 8px;
  background-color: #00a73c;
  border-radius: 8px;
  z-index: 0;
}

/* 白の四角（after要素で前面に配置） */
.fv-section__candidate-info::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1;
  pointer-events: none;
}

/* 白の四角のコンテンツを前面に */
.fv-section__candidate-info>* {
  position: relative;
  z-index: 2;
}

.fv-section__candidate-name {
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.fv-section__candidate-title {
  font-size: 0.875rem;
  margin-bottom: 0;
  font-weight: bold;
  position: relative;
  z-index: 2;
}

/* 候補者情報内のSNSアイコン */
.fv-section__candidate-sns {
  display: flex;
  gap: 16px;
  margin-top: 15px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.fv-section__candidate-sns-link {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.fv-section__candidate-sns-link:hover {
  opacity: 0.7;
}

.fv-section__candidate-sns-icon {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

/* sns-noteアイコンはロゴの比率に合わせて表示 */
.fv-section__candidate-sns-icon[alt="note"] {
  width: auto;
  height: 40px;
}

/* SNSアイコン */
.fv-section__sns {
  position: absolute;
  bottom: 20px;
  left: 40px;
  z-index: 10;
  display: flex;
  gap: 16px;
  align-items: center;
}

.fv-section__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #333;
  transition: opacity 0.3s ease;
}

.fv-section__sns-link:hover {
  opacity: 0.7;
}

.fv-section__sns-icon {
  font-size: 0.875rem;
  font-weight: bold;
  color: #333;
  display: block;
}

/* ==========================================================================
   中央セクション（メッセージエリア・白背景）
   ========================================================================== */

.fv-section__center {
  position: absolute;
  left: 50%;
  top: 0;
  width: 30%;
  height: 100%;
  background-color: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  z-index: 5;
  overflow: hidden;
}

/* 中央セクションのスクロール可能エリア */
.fv-section__center-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  /* スクロールバーを非表示 */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE and Edge */
}

.fv-section__center-content::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* メッセージボタン */
.fv-section__message-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #06C755;
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 40px auto 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}



/* メッセージコンテンツ */
.fv-section__message-content {
  padding: 0 30px 20px;
}

.fv-section__message-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #231815;
}

.fv-section__message-text p {
  margin-bottom: 1em;
}

/* ==========================================================================
   ハンバーガーボタン（モバイル用）
   ========================================================================== */

.fv-section__hamburger {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.fv-section__hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 28px;
  height: 28px;
}

.fv-section__hamburger-line {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #231815;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.fv-section__hamburger-text {
  display: block;
  font-size: 0.75rem;
  color: #231815;
  font-weight: normal;
  line-height: 1;
}

/* ハンバーガーボタンが開いている状態 */
.fv-section__hamburger[aria-expanded="true"] .fv-section__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.fv-section__hamburger[aria-expanded="true"] .fv-section__hamburger-line:nth-child(2) {
  opacity: 0;
}

.fv-section__hamburger[aria-expanded="true"] .fv-section__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* ==========================================================================
   モバイルメニュー
   ========================================================================== */

.fv-section__mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background-color: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.fv-section__mobile-nav[aria-hidden="false"] {
  transform: translateX(0);
}

/* モバイルメニューヘッダー */
.fv-section__mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.fv-section__mobile-nav-header-info {
  flex: 1;
}

.fv-section__mobile-nav-header-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #231815;
  margin-bottom: 4px;
  line-height: 1.2;
}

.fv-section__mobile-nav-header-title {
  font-size: 0.875rem;
  color: #231815;
  line-height: 1.4;
}

.fv-section__mobile-nav-close {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.fv-section__mobile-nav-close-icon {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #231815;
  font-weight: normal;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv-section__mobile-nav-close-text {
  display: block;
  font-size: 0.75rem;
  color: #231815;
  font-weight: normal;
  line-height: 1;
}

.fv-section__mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
}

.fv-section__mobile-nav-item {
  list-style: none;
  border-bottom: 1px solid #e0e0e0;
}

.fv-section__mobile-nav-item:last-child {
  border-bottom: none;
}

.fv-section__mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 16px;
  color: #231815;
  font-size: 1rem;
  font-weight: bold;
  text-align: left;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.fv-section__mobile-nav-link:hover {
  background-color: #f5f5f5;
}

.fv-section__mobile-nav-link-text {
  flex: 1;
}

.fv-section__mobile-nav-link-arrow {
  font-size: 1rem;
  color: #231815;
  font-weight: normal;
  margin-left: 8px;
}

/* モバイルメニューのオーバーレイ */
.fv-section__mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fv-section__mobile-nav-overlay.active {
  opacity: 1;
}

/* ==========================================================================
   右側セクション（メニュー・緑背景）
   ========================================================================== */

.fv-section__right {
  position: absolute;
  right: 0;
  top: 0;
  width: 20%;
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  z-index: 5;
  background-color: rgba(80, 180, 110, 0.68);
  overflow: hidden;
}

/* 縦ナビゲーションメニュー */
.fv-section__nav {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.fv-section__nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.fv-section__nav-item {
  list-style: none;
}

.fv-section__nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.94);
  color: #0c4f2b;
  font-size: 0.75rem;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
}

.fv-section__nav-link:hover {
  background-color: #f2fff7;
  color: #083a1f;
  transform: translateY(-2px);
}

/* ==========================================================================
   政策セクション
   ========================================================================== */

/* 政策セクション（白枠の中に表示） */
.policy-section {
  position: relative;
  width: 100%;
  padding: 40px 0;
  background-color: #fff;
}

.policy-section__header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.policy-section__title-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #06C755;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
}

.policy-section__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

.policy-item {
  margin-bottom: 60px;
  text-align: center;
}

.policy-item:last-child {
  margin-bottom: 0;
}

.policy-item__header {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 30px;
  font-weight: bold;
  color: #00a73c;
}

.policy-item__number {
  font-size: clamp(2rem, 1.6rem + 2vw, 4rem);
  font-weight: bold;
  font-family: 'din-2014', 'din2014', 'DIN 2014', 'DIN', 'Arial', sans-serif;
  line-height: 1;
  flex-shrink: 0;
}

.policy-item__title {
  font-size: clamp(1.3rem, 1.26rem + 0.2vw, 1.5rem);
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.4;
}

/* 2行のときは上端揃えにする */
.policy-item__title:has(.policy-item__title-line) {
  align-self: flex-start;
  padding-top: 0.2em;
}

.policy-item__title-line {
  display: block;
}

.policy-item__icon {
  margin: 0px auto;
  max-width: 300px;
}

.policy-item__icon-img {
  width: 100%;
  height: auto;
  display: block;
}

.policy-item__description {
  max-width: 100%;
  margin: 30px auto 0;
  font-size: 0.875rem;
  line-height: 2;
  color: #231815;
  text-align: left;
}

/* ==========================================================================
   SNSセクション（シンプル版）
   ========================================================================== */

.sns-section-simple {
  position: relative;
  width: 100%;
  padding: 40px 30px;
  background-color: #fff;
  text-align: center;
}

.sns-section-simple__inner {
  max-width: 100%;
  margin: 0 auto;
}

.sns-section-simple__title {
  font-size: 1rem;
  font-weight: bold;
  color: #00a73c;
  margin-bottom: 30px;
}

.sns-section-simple__icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.sns-section-simple__link {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.sns-section-simple__link:hover {
  opacity: 0.7;
}

.sns-section-simple__icon {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

/* sns-noteアイコンはロゴの比率に合わせて表示 */
.sns-section-simple__icon[alt="note"] {
  width: auto;
  height: 40px;
}

/* ==========================================================================
   チラシ・PDFセクション（SNSの上・上段1枚中央／下段2列）
   ========================================================================== */

.flyer-section {
  position: relative;
  width: 100%;
  padding: 48px 30px 32px;
  background-color: #fff;
}

.flyer-section__inner {
  max-width: 960px;
  margin: 0 auto;
}

/**
 * 見出し：緑の太字テキスト（政策の円形ボタンとは別デザイン）
 */
.flyer-section__header {
  text-align: center;
  margin-bottom: 28px;
  padding-top: 4px;
}

.flyer-section__title {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #06c755;
  font-size: clamp(1.5rem, 4.2vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
}

/**
 * 縦並び：上段は1枚を下段2枚ブロックと同じ幅で中央配置（下の2枚の中央に乗る）
 */
.flyer-section__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.flyer-section__row--top {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 900px;
}

/**
 * 下段：左に3枚目、右に2枚目（上段と同じ max-width で幅を揃える）
 */
.flyer-section__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  align-items: start;
  width: 100%;
  max-width: 900px;
}

.flyer-section__link {
  display: block;
  width: 100%;
  max-width: 240px;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.flyer-section__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.flyer-section__link:focus-visible {
  outline: 3px solid #00a73c;
  outline-offset: 4px;
}

.flyer-section__thumb {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 768px) {
  .flyer-section {
    padding: 36px 15px 28px;
  }

  .flyer-section__grid {
    gap: 16px;
  }

  .flyer-section__pair {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .flyer-section__row--top,
  .flyer-section__pair {
    max-width: 280px;
  }

  .flyer-section__link {
    max-width: none;
  }
}

/* ==========================================================================
   SNSセクション（詳細版）
   ========================================================================== */

.sns-section {
  position: relative;
  width: 100%;
  padding: 60px 30px 0;
  background-color: #fff;
  text-align: center;
}

.sns-section__inner {
  max-width: 800px;
  margin: 0 auto;
}


.sns-section__title {
  font-size: 1.15rem;
  font-weight: bold;
  color: #231815;
  margin-bottom: 30px;
}

.sns-section__icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.sns-section__link {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.sns-section__link:hover {
  opacity: 0.7;
}

.sns-section__icon-img {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

/* sns-noteアイコンはロゴの比率に合わせて表示 */
.sns-section__icon-img[alt="note"] {
  width: auto;
  height: 40px;
}

/* 候補者情報 */
.sns-section__candidate {
  margin-bottom: 40px;
  text-align: center;
}

.sns-section__candidate-image {
  max-width: 60%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.sns-section__candidate-name-wrapper {
  text-align: center;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 30px;
}

.sns-section__candidate-name-large {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  line-height: 1.2;
}

/* 連絡先情報 */
.sns-section__contact {
  margin: 0 auto 40px;
  max-width: 320px;
  padding: 0;
  background-color: #fff;
  text-align: left;
}

.sns-section__contact-item {
  font-size: 0.95rem;
  color: #333;
}

.sns-section__contact-item:last-child {
  margin-bottom: 0;
}

/**
 * お問合せ: ラベル＋電話・メールの2段（番号とメールの左端を揃える）
 */
.sns-section__contact-item--inquiry {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.35em;
}

.sns-section__inquiry-label {
  flex-shrink: 0;
  line-height: 1.5;
}

.sns-section__inquiry-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2em;
  min-width: 0;
}

.sns-section__inquiry-lines .sns-section__contact-link {
  word-break: break-all;
  line-height: 1.5;
}

.sns-section__contact-link {
  color: #00a73c;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.sns-section__contact-link:hover {
  opacity: 0.7;
}

.sns-section__opinion-link {
  color: #00a73c;
  font-weight: bold;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.sns-section__opinion-link:hover {
  opacity: 0.7;
}

/* フッター */
.sns-section__footer {
  background-color: #8fc31f;
  padding: 20px;
  border-radius: 0;
  text-align: center;
  margin-left: -30px;
  margin-right: -30px;
  margin-bottom: 0;
  width: calc(100% + 60px);
}

.sns-section__footer-text {
  color: #333;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.sns-section__footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.sns-section__footer-link:first-child::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 16px;
  background-color: #ccc;
  margin: 0 12px;
  vertical-align: middle;
}

.sns-section__footer-link {
  color: #0066cc;
  font-size: 0.875rem;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.sns-section__footer-link:hover {
  opacity: 0.7;
}

/* ==========================================================================
   ご意見・ご要望セクション（Googleフォーム）
   ========================================================================== */

.opinion-section {
  position: relative;
  width: 100%;
  padding: 40px 0;
  background-color: #fff;
  text-align: center;
}

.opinion-section__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

.opinion-section__title {
  font-size: 1rem;
  font-weight: bold;
  color: #00a73c;
  margin-bottom: 12px;
}

.opinion-section__text {
  font-size: 0.9rem;
  color: #333;
  margin-bottom: 24px;
  line-height: 1.5;
}

.opinion-section__button {
  display: inline-block;
  padding: 10px 32px;
  background-color: #00a73c;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 0 0 3px #00a73c;
  transition: background-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.opinion-section__button:hover {
  background-color: #3d6523;
}

.policy-item__description p {
  margin-bottom: 1em;
}

/* ==========================================================================
   レスポンシブデザイン
   ========================================================================== */

@media (max-width: 1024px) {
  /* .fv-section__slogan-text {
    font-size: 3rem;
  }
 */
  /* .fv-section__portrait {
    width: 250px;
    height: 350px;
  } */
}

@media (max-width: 768px) {

  /* FVセクションの高さを調整 */
  .fv-section {
    height: auto;
    min-height: 100vh;
    position: relative;
    background-image: none;
  }

  .fv-section__inner {
    flex-direction: column;
    position: relative;
    min-height: 100vh;
    height: auto;
  }

  .fv-section__left {
    width: 100%;
    height: 100vh;
    position: relative;
    background-image: url('img/sakaishi-sp.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  }

  /* 白枠（中央セクション）を非表示にし、コンテンツはページ全体に表示 */
  .fv-section__center {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 0;
    display: block;
  }

  /* 中央セクションのコンテンツをページ全体に表示 */
  .fv-section__center-content {
    overflow-y: visible;
    height: auto;
  }

  /* メニュー（右側セクション）を非表示 */
  .fv-section__right {
    display: none;
  }

  .fv-section__header-logo {
    top: 20px;
    left: 20px;
  }

  .fv-section__slogan {
    top: 40%;
    left: 40px;
  }

  .fv-section__portrait {
    right: -20%;
  }

  /* .fv-section__header-logo-image {
    max-width: 200px;
  } */

  .fv-section__candidate-info {
    bottom: 60px;
    padding: 15px 20px;
  }

  .fv-section__candidate-name {
    font-size: 1.5rem;
  }

  .fv-section__candidate-title {
    font-size: 0.75rem;
  }

  .fv-section__sns {
    bottom: 15px;
    left: 20px;
    gap: 12px;
  }

  /* ハンバーガーボタンを表示 */
  .fv-section__hamburger {
    display: flex;
  }

  /* モバイルメニューを表示可能にする */
  .fv-section__mobile-nav {
    display: block;
  }

  /* モバイルでも緑グラデを薄く重ねる */
  .fv-section__background {
    height: 100%;
    background-image: url('img/fv-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1.;
  }
}

/* ==========================================================================
   プロフィールセクション（2ページ目）
   ========================================================================== */

.profile-section {
  padding: 60px 30px;
  position: relative;
}

.profile-section__inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

/* 共通：セクションアイコン（緑の円形） */
.profile-section__icon,
.profile-section__career-icon,
.episode-section__icon,
.sns-section__icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 40px;
}

/* プロフィール・経歴・エピソードのアイコン（緑 #06C755） */
.profile-section__icon,
.profile-section__career-icon,
.episode-section__icon {
  background-color: #06C755;
}

/* SNSセクションのアイコンも他と同じ緑に統一 */
.sns-section__icon {
  background-color: #06C755;
}

.profile-section__icon-text,
.profile-section__career-icon-text,
.episode-section__icon-text,
.sns-section__icon-text {
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

/* 名前と役職 */
.profile-section__header {
  text-align: center;
  margin-bottom: 40px;
}

.profile-section__name {
  font-size: 2.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.2;
}

.profile-section__title {
  font-size: 1rem;
  color: #333;
  line-height: 1.5;
}

/* 写真 */
.profile-section__photo {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 40px;
  text-align: center;
}

.profile-section__photo-img {
  width: 100%;
  height: auto;
}

/* 自己紹介テキスト */
.profile-section__intro {
  max-width: 500px;
  margin: 0 auto 50px;
}

.profile-section__intro-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  text-align: left;
}

/* 詳細情報テーブル */
.profile-section__details {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 32px;
  background-color: #f7fbf3;
  border: 1px solid #dfeed2;
  border-radius: 16px;
}

.profile-section__details-title {
  margin: 0 0 20px;
  color: #0f8b3a;
  font-size: 1.25rem;
  font-weight: bold;
}

.profile-section__details-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.profile-section__details-item {
  position: relative;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.9;
  text-align: left;
  margin-bottom: 16px;
  padding-left: 1.6em;
}

.profile-section__details-item::before {
  content: '';
  position: absolute;
  top: 1em;
  left: 0;
  width: 0.6em;
  height: 0.6em;
  background-color: #10a63d;
  border-radius: 50%;
  transform: translateY(-50%);
}

.profile-section__details-item:last-child {
  margin-bottom: 0;
}

/* 主な経歴セクション */
.profile-section__career {
  margin-top: 60px;
}


/* 基本情報 */
.profile-section__career-basic {
  text-align: left;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 40px;
}

.profile-section__career-basic-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 8px;
}

.profile-section__career-basic-text:last-child {
  margin-bottom: 0;
}

/* タイムライン */
.profile-section__career-timeline {
  position: relative;
  padding-left: 40px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 40px;
}

/* タイムラインの縦線（黄緑） */
.profile-section__career-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 25px;
  background-color: #dfeed2;
}

/* タイムライン項目 */
.profile-section__career-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 0;
}

.profile-section__career-item:last-child {
  margin-bottom: 0;
}

/* タイムラインのポイント（白い縁の緑の四角） */
.profile-section__career-item::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 0px;
  width: 25px;
  height: 25px;
  background-color: #00a73c;
  border: 2px solid #fff;
  border-radius: 0;
  z-index: 1;
}

/* 日付 */
.profile-section__career-date {
  font-size: 0.95rem;
  font-weight: bold;
  color: #00a73c;
  margin-bottom: 8px;
}

/* 内容 */
.profile-section__career-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
}

/* エピソードセクション（3ページ目） */
.episode-section {
  padding: 60px 30px;
  position: relative;
}

.episode-section__inner {
  max-width: 800px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.96);
  color: #222;
  padding: 32px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}


/* エピソードリスト */
.episode-section__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* エピソード項目 */
.episode-item {
  position: relative;
}

/* エピソードボタン */
.episode-item__button {
  width: 100%;
  padding: 20px 24px;
  background: linear-gradient(to right, #32b45e 0%, #b9e8c3 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
  text-align: left;
}

.episode-item__button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 167, 60, 0.3);
}

.episode-item__button[aria-expanded="true"] {
  border-radius: 8px 8px 0 0;
}

.episode-item__title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
}

.episode-item__icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
  background-color: #06C755;
  border-radius: 50%;
}

.episode-item__button[aria-expanded="true"] .episode-item__icon {
  transform: rotate(180deg);
}

.episode-item__icon svg {
  width: 12px;
  height: 12px;
  color: #fff;
}

/* エピソードコンテンツ */
.episode-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #fff;
  border-radius: 0 0 8px 8px;
}

.episode-item__button[aria-expanded="true"]+.episode-item__content {
  max-height: 2000px;
}

.episode-item__text {
  padding: 24px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: #333;
}

.episode-item__text p {
  margin-bottom: 20px;
}

.episode-item__text p:last-child {
  margin-bottom: 0;
}

.episode-item__image {
  margin-top: 20px;
  text-align: center;
}

.episode-item__image-img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

/* ギター画像のみ45%幅で中央揃え */
.episode-item__image-img[alt="高校時代のギター"] {
  width: 45%;
  margin: 0 auto;
  display: block;
}

.episode-item__images {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.episode-item__images .episode-item__image {
  margin-top: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .episode-section {
    padding: 40px 15px;
  }

  .episode-section__inner {
    padding: 24px 16px;
    border-radius: 16px;
  }


  .episode-section__list {
    gap: 10px;
  }

  .episode-item__button {
    padding: 16px 20px;
  }

  .episode-item__title {
    font-size: 0.9rem;
  }

  .episode-item__icon {
    width: 18px;
    height: 18px;
    margin-left: 12px;
  }

  .episode-item__text {
    padding: 20px;
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .sns-section {
    padding: 40px 15px 0;
  }


  .sns-section__title {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .sns-section__icons {
    gap: 15px;
    margin-bottom: 40px;
  }

  .sns-section__icon-img {
    width: 35px;
    height: 35px;
  }

  /* sns-noteアイコンはロゴの比率に合わせて表示（モバイル） */
  .sns-section__icon-img[alt="note"] {
    width: auto;
    height: 35px;
  }


  .sns-section__candidate-name-large {
    font-size: 1.8rem;
  }

  .sns-section__contact {
    margin: 0 auto 30px;
    max-width: 100%;
    padding: 15px;
  }

  .sns-section__contact-item {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .sns-section__footer {
    padding: 15px;
    margin-left: -15px;
    margin-right: -15px;
    width: calc(100% + 30px);
  }

  .sns-section__footer-text {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .sns-section__footer-links {
    gap: 15px;
  }

  .sns-section__footer-link {
    font-size: 0.8rem;
  }

  .sns-section-simple {
    padding: 30px 15px;
  }

  .sns-section-simple__title {
    font-size: 0.9rem;
    margin-bottom: 25px;
  }

  .sns-section-simple__icons {
    gap: 15px;
  }

  .sns-section-simple__icon {
    width: 35px;
    height: 35px;
  }

  /* sns-noteアイコンはロゴの比率に合わせて表示（モバイル） */
  .sns-section-simple__icon[alt="note"] {
    width: auto;
    height: 35px;
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .profile-section {
    padding: 60px 15px 80px;
  }

  .profile-section__icon {
    width: 100px;
    height: 100px;
    margin-bottom: 30px;
  }

  .profile-section__icon-text {
    font-size: 0.875rem;
  }

  .profile-section__name {
    font-size: 2rem;
  }

  .profile-section__title {
    font-size: 0.875rem;
  }

  .profile-section__intro {
    margin-bottom: 40px;
  }

  .profile-section__intro-text {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .profile-section__details {
    padding: 20px 16px;
  }

  .profile-section__details-title {
    font-size: 1.1rem;
    margin-bottom: 16px;
  }

  .profile-section__details-item {
    font-size: 0.875rem;
    line-height: 1.8;
    margin-bottom: 14px;
  }

  .profile-section__career {
    margin-top: 40px;
  }


  .profile-section__career-basic {
    margin-bottom: 30px;
  }

  .profile-section__career-basic-text {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .profile-section__career-timeline {
    padding-left: 25px;
  }

  .profile-section__career-item {
    margin-bottom: 25px;
    padding-left: 25px;
  }

  .profile-section__career-item::before {
    left: -27px;
  }

  .profile-section__career-date {
    font-size: 0.875rem;
  }

  .profile-section__career-content {
    font-size: 0.875rem;
    line-height: 1.7;
  }

  .episode-section {
    padding: 40px 15px;
  }


  .episode-section__list {
    gap: 10px;
  }

  .episode-item__button {
    padding: 16px 20px;
  }

  .episode-item__title {
    font-size: 0.9rem;
  }

  .episode-item__icon {
    width: 18px;
    height: 18px;
    margin-left: 12px;
  }

  .episode-item__text {
    padding: 20px;
    font-size: 0.875rem;
    line-height: 1.7;
  }
}

/* ==========================================================================
   固定ページ（サイトポリシー・個人情報保護方針）
   ========================================================================== */

.policy-page,
.privacy-page {
  padding: 40px 30px 20px;
}

.policy-page__inner,
.privacy-page__inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.policy-page__title,
.privacy-page__title {
  font-size: 2rem;
  font-weight: bold;
  color: #00a73c;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #00a73c;
}

.policy-page__content,
.privacy-page__content {
  line-height: 1.8;
  color: #333;
}

.policy-page__section,
.privacy-page__section {
  margin-bottom: 40px;
}

.policy-page__section-title,
.privacy-page__section-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #00a73c;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid #00a73c;
}

.policy-page__text,
.privacy-page__text {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1em;
}

.policy-page__list,
.privacy-page__list {
  margin: 20px 0;
  padding-left: 30px;
  list-style-type: disc;
}

.policy-page__list li,
.privacy-page__list li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.policy-page__footer,
.privacy-page__footer {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
  text-align: center;
}

.policy-page__date,
.privacy-page__date {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 5px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

  .policy-page,
  .privacy-page {
    padding: 40px 0;
  }

  .policy-page__inner,
  .privacy-page__inner {
    padding: 0 20px;
  }

  .policy-page__title,
  .privacy-page__title {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .policy-page__section-title,
  .privacy-page__section-title {
    font-size: 1.25rem;
  }

  .policy-page__text,
  .privacy-page__text {
    font-size: 0.9rem;
  }
}