:root {
    --main-color: #d7003a; 
    --sub-color1: #FF6500; 
    --sub-color2: #f5b500;  
    --sub-color3: #043e80;   
    --background-color: #ffffff; 
    --text-color: #222222;   
    --footer-bg: #C40C0C;      
    --highlight-color: #FFC100;
}
html, body {
    height: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    color: var(--text-color);
    background-color: var(--background-color);
      overflow-x: hidden;
       padding-top: 70px; /* ヘッダーの高さ分の余白を追加 */
     min-height: 100vh; /* ビューポートの高さを確保 */
}
/* ヘッダーの基本スタイル */
/* 基本的なスタイル */

/* 初期状態では透明にしておく */
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* 少し下に配置 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* スムーズな遷移 */
}

/* スクロールして表示されたときに適用するクラス */
.fade-in.visible {
    opacity: 1;
    transform: translateY(0); /* 元の位置に戻す */
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--main-color);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      text-align: center;
}

/* ハンバーガーメニューのアイコン */
.hamburger {
    display: none;
    cursor: pointer;
}

/* ロゴ全体のリンク */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
}

/* ロゴ画像 */
.logo-image {
    height: 70px;
    margin-right: 10px;
}

/* ロゴテキスト部分（縦に積む） */
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

/* 日本語タイトル */
.logo-ja {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* 英語サブタイトル */
.logo-en {
    font-size: 0.7rem;
    font-weight: normal;
    color: #fff;
    margin-top: 0.2rem;
}
/* ナビゲーションのスタイル */
.nav {
    display: flex;
    gap: 1.5rem; /* メニュー項目の間隔 */
}

/* ナビゲーションリンクのスタイル */
.nav a {
    color: #fff;

    text-decoration: none; /* 下線を削除 */
    font-size: 1.2rem; /* フォントサイズ */
    font-weight: 600; /* フォントの太さ */
    transition: color 0.3s ease; /* ホバー時のカラー変更にスムーズな遷移を設定 */
    margin: 0 1rem;
 
}

/* ホバー時のリンクスタイル */
.nav a:hover {
    color: var(--highlight-color); /* ホバー時にリンクカラーを変更 */
    
}
/* スライドショー全体 */
.slideshow {
    position: relative;
    width: 100%;
    max-height: 100%;  /* 半角スペースに修正 */
    overflow: hidden;
    margin-bottom: 0; /* ホームセクションとの隙間をなくす */
}

/* スライド画像 */
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%; /* 高さを100%に設定し、親要素の高さを満たすようにする */
}
.sns-cover{
        border-radius: 0 0 0 100%;
    padding: 6rem;
    background: var(--sub-color2);
    position: absolute;
    top: 0px;
    right: 0px; /* 右端に寄せる */
    z-index: 10;
    display: flex;
}
.sns-icons {
    padding: 2rem;
    position: absolute;
    top: 5px;
    right: 0px; /* 右端に寄せる */
    z-index: 10;
    display: flex;
    gap: 20px;
}

.sns-icons a {
    display: inline-block;
    text-decoration: none; /* リンクの下線を除去 */
    margin: 0; /* 余白をリセット */
}

.sns-icons img {
    margin-top: 20px;
    display: block; /* 画像をブロック要素に変更して、下の余白をなくす */
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sns-icons img:hover {
    transform: scale(1.1); /* ホバー時に拡大 */
    opacity: 0.8;
}
/* コントロールボタン */
.controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
}

.controls .prev,
.controls .next {
    color: #fff;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    font-size: 1.5rem;
}

.home {
    color: #fff;
     padding: 2rem;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 200%;
    height: 200px;
     background: rgba(119, 119, 119, 0.4); /* 薄い灰色の背景色 */
    transform: rotate(40deg);
    z-index: 0;
}

.container {
    background: linear-gradient(135deg, var(--sub-color2), var(--main-color), var(--sub-color2));
    width: 100%;
    max-width: 1500px; /* 最大幅を1200pxに制限 */
    margin: 0 auto; /* コンテナを中央揃え */
    padding: 1rem; /* 上下左右に2remのパディング */
    box-sizing: border-box; /* パディングを含めた幅の計算 */
    border-radius: 30px; /* 角を少し丸める（オプション） */
    position: relative; /* 追加 */
    z-index: 1; /* オーバーレイの上に表示 */
}

.home h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem; /* 少し大きめに設定 */
    margin-top: 0.5rem; /* 少し大きめに設定 */
    padding: 0 1rem; /* 左右にパディングを追加 */
}

.home p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 1rem; /* 左右にパディングを追加 */
}
.highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ハイライトの各アイテム */
.highlight {
    padding: 20px;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column; /* アイコンとテキストを縦並びに設定 */
    align-items: center;
    justify-content: center;
    width: 40%; /* 最小幅を180pxに設定 */
    max-height:  80%;
    text-align: center;
    background-size: cover;
    background-position: center;
    border-radius: 30px 30px 0 30px; /* すべての角を丸くする */
    position: relative; /* 擬似要素の位置を親要素に基づかせる */
    overflow: hidden; /* テキストがオーバーレイに隠れないようにする */
    z-index: 1; /* 擬似要素よりもテキストを前面に表示 */
}

/* 擬似要素のオーバーレイ */
.highlight::after {
    content: ""; /* 擬似要素のコンテンツを空にする */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(255, 165, 0, 0.7), rgba(255, 255, 255, 0.9)); /* オレンジから白のグラデーション */
    border-radius: 30px 30px 0 30px; /* すべての角を丸くする */
    z-index: 0; /* 背景として表示させる */
}

/* アイコンとテキストの横並び */
.icon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* アイコンとテキストの間隔 */
    z-index: 1; /* 概要テキストがオーバーレイの上に表示されるように設定 */
}

/* アイコンのスタイル */
.icon-text i {
    font-size: 2rem;
    color: var(--text-color);
}

/* テキストのスタイル */
.icon-text span {
    font-size: 1.5rem;
     color: var(--text-color);
    font-weight: 500;
}
/* 概要テキスト */
.highlight h2 {
    font-size: 1.5rem;
      color: var(--text-color);
}
.highlight p {
    font-size: 1.2rem;
      color: var(--text-color);
    z-index: 1; /* 概要テキストがオーバーレイの上に表示されるように設定 */
}
.school {
    background-image: url('../images/School.png');
}

.bousai {
    background-image: url('../images/Bousai.png');
}

.work {
    background-image: url('../images/work.png');
}
.car {
    background-image: url('../images/car.png');
}
.think-container {
    background-color: var(--main-color);
    padding: 2rem 2rem 0 2rem; /* 上 右 下 左 */
}
/* タイトルテキストと画像を横並び */


.headline-row h2 {
  font-size: 1.8rem;
  margin: 0;
}

.headline-row1 {
  display: flex;
  align-items: center;
  width: 100%; /* 必須：右寄せが効くように幅を持たせる */
}

.headline-row1 {
  display: flex;
  align-items: center; /* 上下中央揃え */
  gap: 0.5rem; /* 画像同士の余白 */
}

.title-image,
.title-image1 {
  max-height: 80px; /* 高さを統一、必要に応じて調整 */
  height: auto;
}
.title-image1 {
  max-height: 80px;
  height: auto;
  margin-left: auto;
}
/* サインとキャラ画像を横並び */
.sign-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.sign-image {
  max-height: 60px;
  height: auto;
}

.character-images {
  display: flex;
  gap: 1rem;
}

.character-images {
  height: 300px; /* サイズ調整可 */
  width: auto;
}
.character-images1 {
  height: 460px; /* サイズ調整可 */
  width: auto;
}
/* メッセージセクション */
.message-container1 {
    max-width: 1200px;
    z-index: 2;
}

.message-container {
     gap: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1000px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    width: 100%;
     position: relative;
    z-index: 2;
}
.Score-details,
.message-content1,
.message-content {
    flex: 1;
    text-align: left;
}

.message-img img {
         width: 100%;
    max-width: 500px;
    height: 300px; /* 高さを統一 */
    margin-left: 2rem;
    object-fit: cover; /* アスペクト比を保ちながら、コンテナを埋める */
    border-radius: 15px; /* 角を丸くする */
    border: 5px solid var(--main-color); /* 枠の色と太さ */
    padding: 5px; /* 画像と枠の間に余白を追加 */
    background-color: white; /* 背景色をつけて枠を際立たせる */
    

}
.caravan {
  max-width: 960px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

.caravan a {
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.caravan a:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.caravan-img {
  width: 100%;
  height: auto;
  display: block; /* ✅ これを追加 */
  border-radius: 8px;
  border: 2px solid #ccc;
}
.message,
.profile {
    padding: 2rem;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.profile::after {
    content: "";
    position: absolute;
    top: 50%;
    left: -70%;
    width: 200%;
    height: 70px;
    background: rgba(215, 0, 58, 0.5); /* 半透明にする（0.5が透明度） */
    transform: rotate(45deg);
    z-index: 1;
}

.profile-container {
    z-index: 2;
    margin-top: 100px;
    
}
.think-container h2{
       font-size: 2.5rem;
}

.think-container h2,
.think-container p {
    font-family: "MS Mincho", "MingLiU", "ヒラギノ明朝 Pro", "MS 明朝", serif;
    color: #fff;
}

.profile-content {
     gap: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 1500px;
    margin-bottom: 2rem;
    padding: 1.5rem;
    width: 100%;
     position: relative;
}
.profile-img-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 5 / 3; /* 画像の比率を保つ */
    overflow: hidden;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-details1 {
    display: flex;
    flex-direction: column; /* 要素を縦並び */
    justify-content: center; /* 横方向の中央揃え */
    align-items: center; /* 縦方向の中央揃え */
    text-align: center; /* テキスト中央揃え */
    padding: 20px; /* 余白を確保 */
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('../images/profile3.jpg'); /* 画像に白いオーバーレイを追加 */
    background-size: cover; /* 画像をコンテナのサイズに合わせて拡大・縮小 */
    background-position: center; /* 画像の表示位置を中央に設定 */
    background-repeat: no-repeat; /* 画像の繰り返しを防止 */
}
.profile-details{
    max-width: 500px;
text-align: left;
}
.profile-details p{
margin-bottom: -2rem;
}

/* strong の下で折り返されないようにする */
.profile-item {
    display: flex;
    gap: 8px; /* strong とテキストの間隔 */
    flex-wrap: wrap;
}

.profile-item strong {
    color: var(--main-color); 
    white-space: nowrap; /* 「名前:」「誕生日:」が改行されない */
}
.profile-title strong {
    color: var(--main-color); 
    white-space: nowrap; /* 「名前:」「誕生日:」が改行されない */
}
.profile-item span {
    flex: 1;
    min-width: 0; /* 長い名前でも適切に折り返し */
}

/* 経歴のスタイル */
.profile-history {
    list-style: none;
    padding: 0;
}

/* 初期状態 */
.Score-content,
.history-content {
    text-align: left;
    max-height: 120px; /* 初期の高さ */
    overflow: hidden; /* 残りの部分を隠す */
    position: relative;
    transition: max-height 0.5s ease-out; /* 高さの変化をスムーズに */
}

/* グラデーションを追加 */
.Score-content::after,
.history-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px; /* グラデーションの高さ */
    background: linear-gradient(to bottom, rgba(249, 249, 249, 0), rgba(249, 249, 249, 1));
    pointer-events: none; /* グラデーションがクリックされないように */
}
/* 経歴の完全表示 */
.Score-content.expanded,
.history-content.expanded {
    overflow: hidden;
}

/* 経歴が展開されたらグラデーションをフェードアウト */
.Score-content.expanded::after,
.history-content.expanded::after {
    opacity: 0;
}
.profile-history .year,
.Score-content .year ,
.history-content .year {
    font-weight: bold;
    white-space: nowrap; /* 年代が改行されるのを防ぐ */
}
/* 実績リスト */
.Score-content ul,
.history-content ul {
    list-style-type: none; /* リストの黒丸を削除 */
    padding: 0;
}

.profile-history li,
.Score-content li,
.history-content li {
      display: flex;
    flex-wrap: wrap; /* 必要に応じて折り返す */
    gap: 8px;
    align-items: baseline; /* 年代と内容の高さを揃える */
    padding: 10px 0;
    border-bottom: 1px solid #ddd; /* 区切り線 */
}


/* 見出しと説明 */

.news-list1 {
   border: 2px solid var(--main-color); /* 枠線を追加 */
      background: #f9f9f9; /* 背景を白 */
    border-radius: 10px;
      padding: 2rem;
    flex: 1;
    text-align: left;
}

.news-list1 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list1 li {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 10px 0; /* 上下に余白を追加 */
    border-bottom: 1px solid #ddd; /* 下線を追加して区切る */
}

.news-list1 li:last-child {
    border-bottom: none; /* 最後の要素にはボーダーを付けない */
}

.news-list1 .news-date {
    font-size: 0.9rem;
    color: #777;
    white-space: nowrap;
}

.news-list1 a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100% - 60px);
}

.news-list1 a:hover {
    color: var(--sub-color3);
    text-decoration: underline;
}

.news-list1 .news-date {
    font-size: 0.9rem;
    color: #777;
    margin-right: 5px;
}
/* 「もっと見る」ボタンの親要素 */
.news-list1 .more-btn-container {
    display: flex;
    justify-content: center; /* ボタンを中央に配置 */
    margin-top: 20px;
}

.news-list1 .btn {  /* .news-listの中の.btnクラスに適用 */
  display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
     background: var(--sub-color3);
    color: #fff; /* テキスト色 */
    text-decoration: none; /* 下線を削除 */
    border-radius: 50px; /* 角を丸く */
    font-size: 16px;
    transition: all 0.3s ease; /* 全てのプロパティをアニメーション対象に */
}

.news-list1 .btn:hover {
    background:var(--sub-color2);
    transform: scale(1.1); /* ホバー時に少し拡大 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を追加して浮き上がる感じに */
     text-decoration: none; /* ホバー時にも下線を消す */
        color: #fff; /* テキスト色 */
}


.section-title1 {
    background-color: transparent;
    padding: 1rem;
    color: #333;
    font-size: 2.0rem;
    text-align: center;
    width: 320px;
    border: 3px solid var(--main-color);
    border-radius: 30px 30px 0px 30px;

    /* 黄色 (#f5b500) のずらした影 */
    box-shadow: 8px 8px 0px 0px #f5b500;
}
.section-title2 {
    background-color: transparent; /* 背景色を白抜きに */
    padding: 1rem; /* 内側に余白を追加 */
    color: #333; /* 文字色を変更（例: #333でダークグレー） */
    font-size: 2.0rem; /* フォントサイズ */
    text-align: center; /* テキストを中央に揃える */
    width: 300px; /* 幅を70%に */
    border: 3px solid var(--main-color); /* 枠線を追加 */
    border-radius: 30px 30px 30px 0px; /* 角を丸く */
    
    /* 黄色 (#f5b500) のずらした影 */
    box-shadow: 8px 8px 0px 0px #f5b500;
}
.section-title3 {
    background-color:  var(--main-color);
    padding: 1rem; /* 内側に余白を追加 */
    color: #fff; /* 文字色を変更（例: #333でダークグレー） */
    font-size: 2.0rem; /* フォントサイズ */
    text-align: center; /* テキストを中央に揃える */
    width: 300px; /* 幅を70%に */
    border: 2px solid var(--main-color); /* 枠線を追加 */
    border-radius: 30px 30px 30px 0px; /* 角を丸く */
}
.section-title4 {
    background-color: #f9f9f9f9; /* 背景色を白抜きに */
    padding: 1rem; /* 内側に余白を追加 */
    color: #333; /* 文字色を変更（例: #333でダークグレー） */
    font-size: 1.2rem; /* フォントサイズ */
    text-align: center; /* テキストを中央に揃える */
     width: 70%; /* 幅を70%に */
    border: 2px solid var(--main-color); /* 枠線を追加 */
    border-radius: 30px 30px 30px 0px; /* 角を丸く */
}
/* SNSセクション */
.sns-section {
    padding: 2rem;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.sns-txt-content{
        width: 100%; /* 親要素の幅に合わせる */
       flex: 1;
    text-align: left;
}
.sns-icons1 {
    padding-top: 20px;
    display: flex;
    gap: 20px; /* アイコンの間隔 */
}
.sns-icons1 a {
    display: inline-block;
}

.sns-icons1 img {
    width: 60px; /* アイコンのサイズ */
    height: 60px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.sns-icons1 img:hover {
    transform: scale(1.1); /* ホバー時に拡大 */
    opacity: 0.8;
}
.Seisaku {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.Seisaku-container {
  padding: 2rem 1rem;
}
.Seisaku-content {
  max-width: 1500px; /* 最大幅を制限（お好みで 1000～1200px） */
  margin: 0 auto;    /* 中央寄せ */
  padding: 0 1rem;   /* スマホでも左右に余白 */
}
.Seisaku-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
    margin-bottom: 2rem;
}

.seisaku-item {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.seisaku-image {
  width: 100%;
  max-width: 540px;
  height: auto;
  margin-bottom: 1rem;
}

.seisaku-text {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #333;
}
.flyer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.flyer-item img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* フッターのスタイル */
.footer {
    background: var(--main-color);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
}

/* フッター内の見出し */
.footer h2 {
    font-size: 24px;
    margin-bottom: 1rem;
}

/* フッター内の住所・電話番号 */
.footer p {
    font-size: 16px;
    margin: 10px 0;
}

/* SNSアイコンのスタイル */
.sns-icons2 {
    margin: 20px 0;
}
.sns-icons2 a {
    margin: 0 10px;
}
.kokumin-icon img{
       width: 10rem; /* アイコンの大きさ */
}
.banner_a-icon img{
       width: 20rem; /* アイコンの大きさ */
}

.sns-icons2 img {
    width: 30px; /* アイコンの大きさ */
    height: 30px;
    transition: transform 0.3s ease;
}

.sns-icons2 a:hover img {
    transform: scale(1.1); /* ホバー時に少し拡大 */
}

/* サイン画像のスタイル */
.sign-img {
    margin: 20px 0;
     text-align: left; /* 画像を右に寄せる */
}

/* サイン画像のスタイル */
.sign-img-footer {
    margin: 20px 0;
}
.sign-img-footer img,
.sign-img img {
    width: 150px; /* サイン画像の幅 */
    height: auto;
    transition: transform 0.3s ease;
}

.sign-img a:hover img {
    transform: scale(1.1); /* ホバー時に少し拡大 */
}

/* コピーライトのスタイル */
.footer p:last-of-type {
    font-size: 14px;
    margin-top: 20px;
}
.kokumin-icon,
.sns-icons2 {
    display: flex;
    justify-content: center; /* 横並びにして中央揃え */
    gap: 10px; /* アイコンの間隔を調整 */
    align-items: center; /* アイコンを縦方向に中央揃え */
}

.sns-icons2 a {
    display: block;
}

.sns-icons2 img {
    padding: 10px; /* アイコンの周りの余白を調整 */
    width: 40px; /* アイコンのサイズ */
    height: 40px; /* アイコンのサイズ */
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: block; /* アイコンをブロック要素として表示 */
}

.sns-icons2 img:hover {
    transform: scale(1.1); /* ホバー時にアイコンが少し大きくなる */
}
.btn {
    
      z-index: 1; /* オーバーレイの上に表示 */
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
     background: var(--sub-color3);
    color: #fff; /* テキスト色 */
    text-decoration: none; /* 下線を削除 */
      border: none; /* ✅ 枠を削除 */
    border-radius: 50px; /* 角を丸く */
    font-size: 16px;
    transition: all 0.3s ease; /* 全てのプロパティをアニメーション対象に */
}

.btn:hover {
      background:var(--sub-color2);
    transform: scale(1.1); /* ホバー時に少し拡大 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を追加して浮き上がる感じに */
}
/* 政策内容セクション */
.policy-details,
.policy-details1 {
    padding: 2rem;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.policy-details1::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 200%;
    height: 200px;
     background: rgba(119, 119, 119, 0.1); /* 薄い灰色の背景色 */
    transform: rotate(40deg);
    z-index: 1;
}

    .policy-details h2 {
        text-align: center;
    }


.policy-introduction {
    max-width: 800px; /* テキストの幅を制限 */
    margin-top: 20px; /* タイトルと本文の間隔 */
}
.policy-introduction p {
      font-family: "MS Mincho", "MingLiU", "ヒラギノ明朝 Pro", "MS 明朝", serif;
    font-size: 1.2rem;
}
     /* ニュースアーカイブ */
        .news {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 2rem;
            background-color: var(--background-color);
            text-align: center;
        }
/* ニュースリスト */
.news-list-archive {
      padding: 2rem;
    flex: 1;
    text-align: left;
}

.news-list-archive ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-list-archive li {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 10px 0; /* 上下に余白を追加 */
    border-bottom: 1px solid #ddd; /* 下線を追加して区切る */
}

.news-list-archive li:last-child {
    border-bottom: none; /* 最後の要素にはボーダーを付けない */
}

.news-list-archive .news-date {
    font-size: 0.9rem;
    color: #777;
    white-space: nowrap;
}

.news-list-archive a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100% - 60px);
}

.news-list-archive a:hover {
    color: var(--sub-color3);
    text-decoration: underline;
}

.news-list-archive .news-date {
    font-size: 0.9rem;
    color: #777;
    margin-right: 5px;
}
.news-list-archive .btn {  /* .news-listの中の.btnクラスに適用 */
  display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
      background:var(--sub-color3);
    color: #fff; /* テキスト色 */
    text-decoration: none; /* 下線を削除 */
    border-radius: 50px; /* 角を丸く */
    font-size: 16px;
    transition: all 0.3s ease; /* 全てのプロパティをアニメーション対象に */
}

.news-list-archive .btn:hover {
      background:var(--sub-color2);
    transform: scale(1.1); /* ホバー時に少し拡大 */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 影を追加して浮き上がる感じに */
     text-decoration: none; /* ホバー時にも下線を消す */
        color: #fff; /* テキスト色 */
}
        /* 戻るボタン */
        .back-link {
            display: inline-block;
            margin-top: 20px;
            padding: 10px 20px;
              background:var(--sub-color3);
            color: #fff;
            text-decoration: none;
            border-radius: 50px;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .back-link:hover {
             background:var(--sub-color2);
            transform: scale(1.1);
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        }

        .back-link:active {
            transform: scale(1);
        }

.coming-soon {
    text-align: center;
    font-size: 1.5rem;
    color: #666;
    margin-top: 20px;
    background-color: #f0f0f0;
    padding: 100px;
    border-radius: 5px;
    font-weight: bold;
}

.coming-soon p {
    margin: 0;
    padding: 5px 0;
}

.twitter {
   width: 500px; /* 親要素の幅に合わせる */
    display: flex;
    justify-content: center; /* 中央揃え */
}
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  animation: zoom 0.3s;
}

@keyframes zoom {
  from {transform: scale(0.7);}
  to {transform: scale(1);}
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.modal-close:hover {
  color: #ccc;
}
@media (max-width: 1024px) {
      body {
        padding-top: 0; /* モバイルサイズではヘッダーの高さ分の余白を削除 */
    }

    header {
        padding: 0.8rem 1.5rem; /* ヘッダーのパディングを少し狭く */

    }

    .logo-ja {
        font-size: 1.5rem; /* ロゴのフォントサイズを調整 */
    }


    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--main-color);
        padding: 1rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        z-index: 999;
        display: none;
        flex-direction: column;
        gap: 1rem;
    }

  nav.active {
    display: block;  /* 表示される状態に */
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

    .hamburger {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav a {
        text-decoration: none;
        color: #fff;
        font-size: 1.1rem;
        padding: 0.4rem 1rem;
        display: block;
        text-align: center;
    }
    .slideshow {
        margin-top: 2rem;
    }
.sns-icons {
      padding: 1rem;
    top: 60px; /* 上からの距離を調整 */
}
    
.sns-cover{
    padding: 5rem;

}
.sns-icons img {
    margin-top: 2px;
    width: 30px;
    height: 30px;
}
.highlight {
     padding: 20px;
      max-height:  100%;
    width: 40%; /* 最小幅を180pxに設定 */
}
   
.home h2 {
    font-size: 1.7rem;
   
}
    .home p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* アイコンとテキストの横並び */
.icon-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem; /* アイコンとテキストの間隔 */
    z-index: 1; /* 概要テキストがオーバーレイの上に表示されるように設定 */
}

/* テキストのスタイル */
    .highlight p{

    font-size: 0.8rem;
}
    
    .icon-text i ,
.icon-text span {
    font-size: 1.3rem;
}
/* 概要テキスト */

    /* メッセージセクション */
.message-img img {

        width: 300px; /* 幅を統一 */
    height: 100%; /* 高さを統一 */
}
    
.title-image {
  max-height: 70px; /* お好みで調整 */
}



.character-images {
  height: 100px; /* サイズ調整可 */
}
.character-images1 {
  height: 260px; /* サイズ調整可 */
}
    .headline-row h2 {
  font-size: 1.6rem;
}

    .sign-img-footer img,
.sign-img img {
    padding: 10px 0;
    width: 120px; /* サイン画像の幅を小さくする */
    height: auto; /* 高さは自動調整 */
    object-fit: contain; /* 画像のアスペクト比を保持 */
}

    .profile-container {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center; /* 中央揃え */
/* テキストも中央揃え */
        margin-top: -20px;
    }

    /* プロフィールセクション */
    .profile-content {
        flex-direction: column; /* 画像とテキストを縦並び */
        text-align: center; /* テキスト中央揃え */
        gap: 20px;
        padding: 1rem;
    }

    .profile-img-container {
        width: 100%;
        max-width: 350px; /* スマホで適切なサイズ */
        height: auto;
        margin-right: 0; /* 横の余白をなくす */
    }

    .profile-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    
.profile::after {
        display: none; /* 擬似要素を非表示にする */
    }

.news-container {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center; /* 中央揃え */
    justify-content: center; /* 縦の中央揃え */
    text-align: left; /* テキストも中央揃え */
}
    .news-contenttxt {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center; /* 中央揃え */
    justify-content: center; /* 縦の中央揃え */
    text-align: center; /* テキストも中央揃え */
    height: 100%; /* 必要なら高さを指定 */
}
    
/* 見出しと説明 */
.news-list1 {
   width: 80%;
}
    
    .sns-txt-content p {
    font-size: 15px; /* 好きなサイズに変更 */
    line-height: 1.6; /* 読みやすさのための行間 */
}
    .policy-details h2 {
        font-size: 22px;
        text-align: center;
    }

       /* ボタンを中央に配置 */
    .more-button {
        width: 100%;
        text-align: center;
    }

    /* ニュースセクションのパディングをさらに減らす */
    .news {
        padding: 0.5rem;
    }
         /* ニュースアーカイブ */
        .news {
      margin-top: 100px;
        }
    .policy-details,
     .profile-details1 {
margin-top: 50px;
}
    
    .policy-introduction p{
    font-size: 1rem;
}
}
@media (max-width: 767px) {
    /* スマートフォン用のスタイル */
.logo-image {
    height: 40px;
}

      body {
        padding-top: 45px; /* モバイルサイズではヘッダーの高さ分の余白を削除 */
    }
    header {
        padding: 0.8rem 1.5rem; /* ヘッダーのパディングを少し狭く */
        z-index: 2; /* ヘッダーのz-indexを設定してメニューより上に表示 */
    }

.logo-ja {
    font-size: 1.3rem;
}
        .logo-en {
        font-size: 0rem; /* ロゴのフォントサイズを調整 */
    }
  .sns-icons, .sns-cover {
        display: none;
    }
    .slideshow {
        margin-top: 0rem;
    }
.home h2 {
    font-size: 1.4rem;
}
    .home p {
    font-size: 1rem;
    margin-bottom: 2rem;
}
.highlight {
     padding: 20px;
      max-height:  100%;
    width: 100%; /* 最小幅を180pxに設定 */
}
  

/* テキストのスタイル */
    .icon-text i,
.icon-text span {
    font-size: 1.2rem;
}
/* 概要テキスト */
  .container {
        padding: 1rem; /* モバイルでは少し余白を減らす */
    }

.message-container {
    width: 80%; /* コンテンツの幅を指定 */
    max-width: 800px; /* 必要なら最大幅を制限 */
    margin: 0 auto; /* 左右の余白を均等にする */
    display: flex;
    flex-direction: column; /* 画像とテキストを縦並び */
    align-items: center; /* 子要素を中央揃え */
    text-align: center; /* テキスト中央揃え */
    gap: 20px; /* 要素の間隔 */
    padding: 1rem; /* 余白を調整 */
}
.think-container h2{
       font-size: 2.0rem;
}
/* タイトルテキストと画像を横並び */
.headline-row {
   display: grid;
}
    .title-image,
.title-image1 {
  max-height: 40px; /* 高さを統一、必要に応じて調整 */
}
.character-images1 {
  height: 180px; /* サイズ調整可 */

}
    .message-img img {
         margin-left: 0rem;
        height: auto;
    }
.sign-img-footer img,
    .sign-img img {
        width: 120px; /* サイン画像を少し小さく */
    }

    /* ニュースセクションの余白を調整 */
    .news {
        padding: 1rem;
    }
    
    .sns-section {
    padding: 0rem;
  
}
    .policy-details,
     .profile-details1 {
margin-top: 20px;
}
	  .caravan {
    padding: 0 10px;
    margin: 30px auto;
  }

  .caravan-img {
    border-radius: 4px;
    border: 1px solid #bbb;
  }

  .caravan a:hover {
    transform: none;         /* モバイルでは拡大なし */
    box-shadow: none;        /* モバイルでは影なし */
  }
/* 共通のfont-sizeとwidthをまとめたスタイル */

.section-title2,
.section-title3,
.section-title4 {
    font-size: 1rem;
    width: 100px; /* 幅を70%に */
}
    .section-title1 {
        font-size: 1rem;
    width: 160px; /* 幅を70%に */
}
/* 共通のfont-sizeをまとめたスタイル */
    .Seisaku p,
    .profile-details p,
    .profile-details ul li,
.history-content li,
.Score-content li,
.policy-introduction p,
.message-content p,
    .message-content1 p,
.news-description {
    font-size: 0.9rem;
}
      .Seisaku-grid {
    grid-template-columns: 1fr; /* 1カラムに変更 */
  }
    .footer {
        padding: 1.5rem 0.5rem;
    }
.twitter {
   width: 300px; /* 親要素の幅に合わせる */

}
    .sns-icons2 {
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
    }

    .sns-icons2 a {
        margin: 0 8px;
    }

    .sns-icons2 img {
        width: 25px;
        height: 25px;
    }

    .Score-details{
        margin-top: 20px;
    }
      .flyer-grid {
    flex-direction: column;
    align-items: center;
  }
    .footer h2 {
        font-size: 20px;
    }

    .footer p {
        font-size: 14px;
    }
    
.kokumin-icon img{
       width: 5rem; /* アイコンの大きさ */
}
.banner_a-icon img{
       width: 10rem; /* アイコンの大きさ */
}

}