/* ベーススタイル */
:root {
    --primary-color: #673AB7;
    --primary-light: #9575CD;
    --primary-dark: #4527A0;
    --accent-color: #FFC107;
    --text-color: #212121;
    --light-text: #f5f5f5;
    --bg-light: #f9f9f9;
}

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

body {
    font-family: 'Noto Serif JP', "Yu Mincho", "YuMincho", serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ヘッダー */
.hero {
    position: relative;
    margin-top: 80px; /* ヘッダーの高さに応じて調整（例：60〜100px） */
    height: 100vh;
    background: linear-gradient(rgba(69, 39, 160, 0.7), rgba(103, 58, 183, 0.8)), url('https://source.unsplash.com/random/1920x1080/?politics,japan') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-text);
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* ナビゲーション */
/* ヘッダーを固定して背景を出す（PC表示時） */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--primary-dark); /* ← 透け防止 */
  color: var(--light-text);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.navbar.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light-text);
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a.active {
  color: var(--accent-color); /* オレンジ色（お好みで変更OK） */
  font-weight: bold;
  border-bottom: 2px solid var(--accent-color);
}

/* SNSアイコン */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* カウントダウンタイマー */
.countdown {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    min-width: 80px;
}

.countdown-value {
    font-size: 4.5rem;
    font-weight: 700;
}

.countdown-label {
    font-size: 1.2rem;
    margin-top: 5px;
}

.countdown-item div:first-child,
.countdown-item span:first-child {
    font-size: 2.5rem;  /* ← お好みでサイズUP */
    width: 80px;
    height: 80px;
}


/* セクション共通 */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.2rem;
    color: var(--primary-dark);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* プロフィールセクション */
.profile {
    background-color: var(--bg-light);
}

.profile-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: center;
}

.profile-text {
    flex: 1;
}

.profile-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.profile-text p {
    margin-bottom: 15px;
}

.profile-text ul {
    list-style-type: none;
    margin-bottom: 20px;
}

.profile-text li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.profile-text li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.profile-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.profile-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 経歴セクション */
.career {
    background-color: white;
}

.career-content {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: center;
}

.career-text {
    flex: 1;
}

.career-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.timeline {
    position: relative;
    margin-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-light);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-year {
    font-weight: 700;
    color: var(--primary-dark);
}

.career-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.career-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* 政策セクション */
.policies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
    place-items: center;
    max-width: 960px; 
    margin: 0 auto; 
}

.policy-card {
    background-color: #fcf9f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 300px;
}

.policy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.policy-icon {
    font-size: 2.5rem;
    color: #673AB7;
    margin-bottom: 20px;
}

.policy-card h3 {
    margin-bottom: 15px;
    color: #673AB7;
}


/* SNSセクション */
.sns {
    background-color: var(--bg-light);
}

.sns-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.sns-text {
    flex: 1;
}

.sns-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.sns-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sns-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: white;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sns-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sns-link i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.sns-link-text {
    display: flex;
    flex-direction: column;
}

.sns-link-text strong {
    font-size: 1.1rem;
}

.sns-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sns-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 後援会登録セクション */
.support {
    background-color: white;
}

.support-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* ← 中央寄せ */
  width: 100%;
  max-width: 100%;
  padding: 0 10px;
}

.support-text {
    flex: 1;
    text-align: center;
}

.support-text h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.support-text p {
    margin-bottom: 20px;
}

.google-form {
  width: 100vw;             /* 画面いっぱいに広げる */
  max-width: 100%;          /* 親要素の制限を超えさせない */
  height: 700px;
  border: none;
  border-radius: 10px;
  margin: 0 auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.support-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.support-image img {
    width: 100%;
    height: auto;
    display: block;
}

.portrait-wrapper {
  position: relative;
  display: inline-block;
  margin: 0 auto;
}

.portrait-wrapper-container {
  text-align: center;
}

.portrait {
  width: 350px;     /* ← 好きなサイズに調整！ */
  max-width: 90%;   /* スマホでも崩れないように */
  height: auto;
  display: block;
  border-radius: 8px; /* オプションで角丸も */
}


/* フッター */
footer {
    background-color: var(--primary-dark);
    color: var(--light-text);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--light-text);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.footer-social a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.footer-social a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

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

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

/* .nav-links a.active を無効化 */
.nav-links a.active {
  color: inherit;
  font-weight: normal;
  border-bottom: none;
}


/* レスポンシブデザイン */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .profile-content, 
    .career-content, 
    .sns-content, 
    .support-content {
        flex-direction: column;
    }
    
    .profile-image, 
    .career-image, 
    .sns-image, 
    .support-image {
        order: -1;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 10px;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .profile-text h3, 
    .career-text h3, 
    .sns-text h3, 
    .support-text h3 {
        font-size: 1.3rem;
    }
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  color: var(--light-text);
  cursor: pointer;
  z-index: 1001;
  position: relative;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--primary-dark);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    border-radius: 10px;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 1rem;
    white-space: nowrap;
  }
}


@media (max-width: 992px) {
  .navbar {
    background-color: var(--primary-dark);
  }

  .hamburger {
    display: block;
    position: absolute;
    right: 20px;
    align-self: center;  /* ← 追加！ */
    top: 50%;
    transform: translateY(-50%); /* ← ぴったり中央揃え */
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: var(--primary-dark);
    position: absolute;
    top: 60px;
    right: 20px;
    padding: 10px;
    border-radius: 10px;
    z-index: 999;
  }

  .nav-links.show {
    display: flex !important; /* ← 強制表示 */
  }

  .nav-links a {
    padding: 10px 0;
    font-size: 1rem;
    white-space: nowrap; /* ← 改行防止！ */
  }
}

@media (max-width: 768px) {
  .policy-card {
    width: 90vw;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 992px) {
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
    column-gap: 20px;
    text-align: center;
  }

  .footer-links a {
    font-size: 0.9rem;
    white-space: nowrap; /* ← 改行防止！ */
  }
}
@media (max-width: 768px) {
  .footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    justify-items: center;
    text-align: center;
  }

  .footer-links a {
    font-size: 0.9rem;
    white-space: nowrap; /* 改行防止 */
  }
}
