/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Zen Maru Gothic', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #eff7fc;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* 全体的なレイアウト */
.container {
    width: 100%;
    max-width: 1000px; /* デスクトップの基本幅 */
    margin: 0 auto;
    padding: 0 20px; /* 左右の余白 */
}

/* ヘッダー */
.header {
    background-color: #fff;
    color: #26b3ce;
    height: 170px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; /* ハンバーガーメニューのため */
}

.header .container {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* justify-content: space-between; */ /* 要素間のスペースを均等に */
    justify-content: flex-start; /* 上揃え */
    align-items: flex-start;
    padding-top: 15px; /* ロゴとメニューの間の微調整 */
    padding-bottom: 0; /* 下の余白をなくすため0に */
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: auto; /* メニューとの間にスペース */
}

.site-title img {
    /* height: auto; */ /* ロゴ画像の高さに合わせて調整 */
    height: 88px; /* ロゴ画像の高さに指定 */
    max-width: 250px; /* ロゴ画像の最大幅を調整 */
}

.main-nav {
    width: 100%;
    height: 69px;
    display: flex;
    align-items: center;
    background-color: #26b3ce; /* メニュー背景色 */
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-top: auto;
    border-radius: 6px; /* 角丸用 */
    overflow: hidden; /* 角丸用 */
}

.nav-list {
    display: flex;
    justify-content: space-evenly; /* 項目間に加えて両端にも均等な余白 */
    width: 100%;
    height: 100%;
}

.nav-list li {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* border-right: 2px solid #fff; /* 区切り線 */
    /* border-radius: 12px; /* 角丸の半径を設定 */
    /* overflow: hidden; /* 角丸にする際、はみ出しを防ぐために追加 */
    /* 区切り線を模倣するためのbox-shadowを追加 */
    box-shadow: 2px 0 0 0 #fff inset;
}

.nav-list li:last-child {
    border-right: none;
    /* box-shadow: none; /* 最後の項目は区切り線をなくす */
}

.nav-list a {
    display: flex; /* flexboxにして中身を中央に */
    align-items: center; /* 垂直方向の中央揃え */
    padding: 0 20px; /* 左右のパディングを増やす */
    font-weight: 500;
    color: #fff;
    transition: color 0.3s ease;
    white-space: nowrap; /* テキストの折り返しを防ぐ */
    height: 100%; /* 親要素の高さに合わせる */
}

.nav-list a:hover {
    color: #fef100;
}

/* ハンバーガーメニュー (デフォルトでは非表示) */
.hamburger {
    display: none; /* デスクトップでは非表示 */
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001; /* オーバーレイより上に */
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* ハンバーガーメニューの開閉アニメーション */
.hamburger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px); /* translateの値を調整 */
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px); /* translateの値を調整 */
}

/* オーバーレイメニュー (デフォルトでは非表示) */
.overlay-menu {
    display: none; /* デフォルトで非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #43cfd9; /* 青！ */
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-menu.is-active {
    display: flex; /* アクティブ時に表示 */
    opacity: 1;
    visibility: visible;
}

.overlay-nav-list {
    text-align: center;
}

.overlay-nav-list li {
    margin-bottom: 15px;
}

.overlay-nav-list a {
    color: #fff;
    font-size: 18px;
    padding: 5px 10px;
    display: block;
    transition: color 0.3s ease;
}

.overlay-nav-list a:hover {
    color: #fef100;
}


/* メインコンテンツ */
/* パソコンで見たときは"pc"のclassがついた画像が表示される */
.pc { display: block !important; }
.sp { display: none !important; }

.hero-section {
    background-color: #fff; /* 仮の背景色 */
    height: 840px;
    max-width: 1000px; 
    margin: 0 auto; /* 中央揃え */
    background-image: url('images/anamachi_top_1000_840.png'); /* 仮の画像 */
    background-size: contain; /* 画像全体を表示するように */
    background-repeat: no-repeat; /* 画像が繰り返さないように */
    background-position: center;
    margin-bottom: 40px; /* セクション間の間隔 */
}
.link-section {
    background-color: #eff7fc; /* 背景色 */
    height: 100px;
    max-width: 1000px; 
    margin: 0 auto; /* 中央揃え */
    position: center;
    margin-bottom: 40px; /* セクション間の間隔 */
}

.content-section {
    background-color: #fff;
    max-width: 1000px;
    margin: 0 auto 40px; /* 中央揃えと下マージン */
    padding-top: 60px; /* 見出しの上余白 */
    padding-bottom: 60px; /* セクションの下余白 */
    /* margin-bottom: 40px; */ /* セクション間の間隔 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* 見た目を整えるため追加 */
}


h2 {
    padding: 0.2rem;
    font-weight: 500;
    font-size: 26px;
    text-align: center;
    margin: 0 auto 30px;
}

h2 span {
    background: linear-gradient(transparent 60%, #7de1d3 60%);
    border-radius: 80% 50% 60% 5%/80% 75% 15% 75%;
}

h3 {
    padding: 0.2rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
    font-size: 20px;
    text-align: center;
}

h3 span {
    background: linear-gradient(transparent 60%, #fffe8a 60%);
    border-radius: 60% 30% 40% 5%/80% 75% 15% 75%;
}

.bline {
    text-decoration:underline;
    font-weight: bold;
}

/* .section-title { */
    /* width: 500px; */
    /* height: 50px; */
    /* background-color: #4370D9; */
    /* color: #fff; */
    /* font-size: 36px; */
    /* font-weight: 500; */
    /* display: flex; */
    /* align-items: center; */
    /* justify-content: center; */
    /* margin: 0 auto 30px; */ /* 中央揃えと下マージン */
    /* padding: 0 20px; */ /* テキストの左右パディング */
/* } */

/* リストのスタイル */
.info-list {
    list-style: disc; /* デフォルトの黒丸マーカー */
    list-style-position: outside; /* マーカーが回り込まないように（デフォルトですが念のため） */
    padding-left: 20px; /* マーカーとテキストの間に適切な余白 */
    margin-top: 15px; /* 上の見出しとの余白 */
    margin-bottom: 15px; /* 下の要素との余白 */
    width: 90%; /* 親要素の幅に合わせて広がる */
    text-align: left; /* リスト内のテキストを左揃えに */
}

.info-list li {
    font-size: smaller;
    margin-bottom: 10px; /* 各リスト項目間の余白 */
    padding-left: 0px; /* マーカーとテキストの開始位置の微調整 */
}

.info-list li:last-child {
    margin-bottom: 0; /* 最後の項目の下余白をなくす */
}

.inlist {
    list-style: circle; /* 白丸 */
    list-style-position: outside; /* マーカーが回り込まないように（デフォルトですが念のため） */
    font-size: medium;
    margin-top: 15px; /* 上の見出しとの余白 */
    margin-left: 30px;
    margin-bottom: 10px; /* 各リスト項目間の余白 */
    padding-left: 0px; /* マーカーとテキストの開始位置の微調整 */
}

.inlist span {
    margin-bottom: 15px;
}

.inlist p {
    margin-bottom: 0px;
}

/* コンテナ */
.flex-container {
    display: flex;
    justify-content: space-around;
    gap: 30px; /* コンテナ間の隙間 */
    flex-wrap: wrap; /* レスポンシブ対応で折り返し */
}

/* 縦並び用のスタイル */
#vertical-row .flex-container {
    flex-direction: column; /* 縦並びにする */
    align-items: center; /* 中央揃えにする */
}

/* content-box の基本スタイル */
.content-box {
    display: flex;
    flex-direction: column;
    align-items: center; /* 子要素を水平方向に中央揃え */

    flex: 1; /* デスクトップでFlexアイテムとして均等に広がる */
    min-width: 400px; /* デスクトップでの汎用最小幅 */

    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* index.html 更新履歴の content-box (PC版 800px幅) */
/* このスタイルはPC版にのみ適用される。Flexの挙動を上書きし、固定幅を設定 */
.content-box.update-log-box {
    flex: none !important; /* ★ここを flex: none; に変更し、必要なら !important を追加 */
    width: 800px !important; /* ★PC版で800pxに固定し、必要なら !important を追加 */
    max-width: 100% !important; /* ★親コンテナを超えないようにし、必要なら !important を追加 */
    min-width: unset !important; /* ★汎用のmin-width: 400px; を上書きし、必要なら !important を追加 */
}

/* 縦並び用のスタイル (content-section #vertical-row 内の content-box) */
/* これがindex.htmlの更新履歴にも影響を与えるので注意が必要 */
#vertical-row .content-box {
    width: 100%; /* 横幅いっぱいに広げる */
    min-width: unset; /* 最小幅の指定を解除 */
    margin-bottom: 30px; /* 各コンテンツボックス間の下余白 */
    /* このセレクタはindex.htmlの更新履歴にも適用されます。
       しかし、update-log-boxの方が詳細度が高いため、通常は上書きされるはずです。 */
}

.content-box p {
    margin-bottom: 15px; /* テキストと画像の間隔を調整 */
    text-align: left; /* テキストの配置は左寄せに戻す（必要であれば） */
    width: 100%; /* p要素が幅いっぱいに広がるように */
    margin-left: auto;
    margin-left: 0; /* 中央寄せの解除 */
    margin-right: 0; /* 中央寄せの解除 */
    max-width: unset; /* max-widthの制限を解除 */
}

/* 特定のpタグの下に余白を追加したい場合 */
.content-box p:first-of-type { /* 住所のpタグの下に余白を追加 */
    margin-bottom: 30px; /* 例: 30pxの余白 */
}

/* TOP以外のページ */
#vertical-row .content-box p {
    font-size: smaller;
    margin-bottom: 15px; /* テキストと画像の間隔を調整 */
    text-align: left; /* テキストの配置は左寄せに戻す（必要であれば） */
}

/* 新しいFlexboxコンテナ */
.flex-mini-container {
    display: flex; /* 子要素を横並びにする */
    flex-wrap: wrap; /* 必要に応じて折り返す */
    gap: 20px; /* content-mini間の隙間 */
    width: 100%; /* 親要素の幅いっぱいに広がるように */
    justify-content: center; /* 子要素を中央揃えにする（横並び時） */
    align-items: flex-start; /* 上揃えにする */
}

.flex-mini-container-center {
    display: flex; /* 子要素を横並びにする */
    flex-wrap: wrap; /* 必要に応じて折り返す */
    justify-content: center; /* 子要素を中央揃えにする（横並び時） */
    gap: 16px; /* content-mini間の隙間 */
    align-items: flex-start; /* 上揃えにする */
}

.content-mini {
    flex: 1; /* 利用可能なスペースを均等に割り当てる */
    min-width: 280px; /* content-miniの最小幅（必要に応じて調整） */
    margin-top: 15px;
    margin-left: 40px;
    width: auto; /* flexアイテムとして機能させるためautoに */
    padding-left: 0; /* 不要な余白をリセット */
    /* text-align: left; /* 親要素が中央揃えになっていた場合の保険 */
}

.writer-ind {
    /* flex: 1; と min-width: 160px; を削除またはコメントアウト */
    /* これにより、要素が不均等に引き伸ばされるのを防ぎます */

    flex-basis: 160px; /* 各アイテムの基準となる幅を固定します */
    text-align: center; /* 各アイテム内のテキストを中央揃えにします */

    margin-top: 15px;
    justify-content: center;
    width: auto;
    padding-left: 0;
}

.content-mini.btm {
    margin-bottom: 30px;
}

.content-mini.btm a {
    margin-right: 10px;
    margin-left: 10px;
}

/* お問い合わせフォームのpタグを中央寄せにする */
.content-mini p {
    text-align: left; /* p要素内のテキストを左寄せにする */
    margin-left: 0; /* 不要なマージンをリセット */
    margin-right: 0;
    max-width: unset; /* 必要であれば解除 */
}

/* venue.htmlの住所テキストを中央寄せにする */
.address-text {
    width: 100%; /* 親要素の幅いっぱいに広がるように */
    text-align: left; /* テキスト自体は左揃え */
    margin-left: 0; /* 左寄せに設定 */
    margin-right: auto; /* 右に自動マージンを設定し、左寄せを維持 */
    max-width: 300px; /* 例: テキストの長さに応じて適切な最大幅を設定 */
    /* もしテキストの長さに合わせて自動で幅を決めたいなら */
    /* max-width: fit-content; */
    padding-left: 40px;
}

.pplink {
    text-decoration: underline;
    margin: auto 0;
}

.image-wrapper {
    margin-top: 10px; /* 必要であれば画像の上部の余白を調整 */
    text-align: center; /* 画像が中央揃えになるように */
    width: 100%; /* 親要素の幅に合わせて広がるように */
    margin-bottom: 20px;
}

.image-wrapper img {
    max-width: 100%; /* コンテンツボックスの幅を超えないように */
    height: auto; /* アスペクト比を維持 */
    display: block; /* img要素をブロック要素にしてmargin: autoを有効に */
    margin: 0 auto; /* 画像自体を中央揃えにする */
}

/* index.html 会場案内のpタグの調整 */
.venue-address-p,
.venue-traffic-p {
    width: 100%; /* 親要素の幅いっぱいに広がるように */
    text-align: left; /* テキストは左揃え */
    margin-left: 0; /* 左寄せに戻す */
    margin-right: 0; /* 右マージンもリセット */
    max-width: unset; /* max-widthの制限を解除 */
    /* 必要であればpadding-leftで微調整 */
    padding-left: 0;
}

/* インラインフレーム */
/* inlineframe の基本スタイル */
.inlineframe {
    background-color:#FFFFFF;
    height:200px;
    overflow:auto;
    overflow-y:scroll;
    overflow-x:hidden;
    margin: 20px auto;
    padding: 20px;
    font-size: smaller;
    width: 100%; /* 親要素(content-box)の幅に合わせる */
    max-width: 100%;
}

/* #log は inlineframe の中にいるので、ここでは特定の幅指定はしない */
/* #log.inlineframe {
    width: 800px; /* 直接800pxに指定 */
    /* max-width: 100%; /* 親要素（.content-box）をはみ出さないように最大幅を設定 */
    /* margin-left: auto; /* 中央揃え */
    /* margin-right: auto; /* 中央揃え */
    /* height: を調整する場合はここに追加 */
/* } */

/* 更新履歴のinlineframe（PC版では親のwidthに合わせるので明示的なwidthは不要） */
/* .update-log-box .inlineframe {
    width: 100%; /* 親の update-log-box の幅に合わせる */
/* } */

/* content-box自体の最小幅を調整してinlineframeの幅を確保 */
/* #log.inlineframe + .content-box { /* もし特定のcontent-boxだけなら */
    min-width: 800px; /* inlineframeの幅に合わせてcontent-boxの最小幅を確保 */
/* } */

/* .update-log-box {
    min-width: 800px;
    max-width: 100%;
/* } */

#contact .inlineframe {
    max-width: 80%;
}

/* contact.htmlのプライバシーポリシー内のpタグを左揃えに */
#contact.inlineframe p {
    text-align: left; /* 左揃えに指定 */
    margin-left: 0; /* 念のためマージンをリセット */
    margin-right: 0;
    max-width: unset; /* 必要であれば解除 */
}

/* イベント詳細テーブル */
.event-details-table {
    width: 100%;
    border-collapse: collapse; /* セルの境界線を結合 */
    margin-top: 20px; /* 上の画像との余白 */
    margin-bottom: 20px; /* 下の要素との余白 */
}

.event-details-table th,
.event-details-table td {
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid #eee; /* 下線のみ */
}

.event-details-table th {
    width: 25%; /* 見出し列の幅を調整 */    
    font-weight: normal;
    padding-left: 10px; /* 左側のパディング */
    text-align: justify; /* 均等割り付け */
    text-justify: inter-ideograph; /* 日本語の均等割り付け */
    text-align-last: justify;
    padding-right: 10px; /* 均等割り付けのための右パディング */
}

.event-details-table td {
    padding-right: 10px; /* 右側のパディング */
    padding-left: 16px;
}

.event-details-table tr:last-child th,
.event-details-table tr:last-child td {
    border-bottom: none; /* 最後の行の下線をなくす */
}
/* 合同誌テーブル */
.zin-table {
    width: 80%;
    border-collapse: collapse; /* セルの境界線を結合 */
    margin-top: 20px; /* 上の画像との余白 */
    margin-bottom: 20px; /* 下の要素との余白 */
}

.zin-table th,
.zin-table td {
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid #eee; /* 下線のみ */
}

.zin-table th {
    width: 18%; /* 見出し列の幅を調整 */    
    font-weight: normal;
    padding-left: 10px; /* 左側のパディング */
    text-align: justify; /* 均等割り付け */
    text-justify: inter-ideograph; /* 日本語の均等割り付け */
    text-align-last: justify;
    padding-right: 10px; /* 均等割り付けのための右パディング */
}

.zin-table td {
    padding-right: 10px; /* 右側のパディング */
    padding-left: 16px;
}

.zin-table tr:last-child th,
.zin-table tr:last-child td {
    border-bottom: none; /* 最後の行の下線をなくす */
}

/* タイムテーブル */
.timetable-table {
    /* width: 100%; */
    width: 75%; /* 例: 90%に幅を縮小。お好みで調整してください。 */
    margin-left: auto; /* 左マージンを自動調整 */
    margin-right: auto; /* 右マージンを自動調整 */
    border-collapse: collapse;
    margin-top: 20px; /* 上の見出しとの余白 */
    margin-bottom: 20px; /* 下の要素との余白 */
}

.timetable-table th,
.timetable-table td {
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid #eee; /* 下線のみ */
}

.timetable-table th {
    width: 30%; /* 見出し列の幅を調整 (例: 35%に増やして均等割り付けのスペースを確保) */
    font-weight: normal;
    padding-left: 10px;
    text-align: justify; /* 均等割り付け */
    text-justify: inter-ideograph; /* 日本語の均等割り付け */
    text-align-last: justify;
    padding-right: 10px; /* 均等割り付けのための右パディング */
}

.timetable-table td {
    padding-right: 10px;
}

.timetable-table tr:last-child th,
.timetable-table tr:last-child td {
    border-bottom: none; /* 最後の行の下線をなくす */
}

/* ワンポイント枠 */
.box {
    position: relative;
    padding: 1rem 1rem 0;
    border: 2px solid #26b3ce;
    border-box: box-sizing;
    background-color: #ffffff;
    margin-top: 50px;
    margin-bottom: 30px; /* .box要素の下に余白を追加 */
    max-width: 400px; /* 最大幅を設定し、それより狭い場合は縮む */
    text-align: left; /* 内部テキストを左揃えに */
    margin-left: auto; /* 左マージンを自動調整 */
    margin-right: auto; /* 右マージンを自動調整 */
}
.box2 {
    position: relative;
    padding: 1rem 1rem 0;
    border: 2px solid #26b3ce;
    border-box: box-sizing;
    background-color: #ffffff;
    margin-top: 50px;
    margin-bottom: 30px; /* .box要素の下に余白を追加 */
    max-width: 400px; /* 最大幅を設定し、それより狭い場合は縮む */
    text-align: left; /* 内部テキストを左揃えに */
    margin-left: 80px; /* 左マージンを自動調整 */
    margin-right: auto; /* 右マージンを自動調整 */
}

.box::before,
.box2::before {
    position: absolute;
    top: -2rem;
    left: -2px;
    padding: 0.2rem;
    background-color: #26b3ce;
    color: white;
    content: attr(data-title);
}

.box p ,
.box2 p {
    color: #333;
    line-height: 1.5;
    padding-bottom: 0px;
    margin-bottom: 0px;
}

.box ul ,
.box2 ul {
    list-style: none; /* マーカーなし */
    list-style-position: outside; /* マーカーが回り込まないように */
    padding-left: 10px; /* マーカーとテキストの間に適切な余白 */
    margin-bottom: 15px; /* 下の要素との余白 */
    width: 90%; /* 親要素の幅に合わせて広がる */
    text-align: left; /* リスト内のテキストを左揃えに */
    font-size: smaller;
}

/* ボタン */
.sns-button {
    display: inline-flex; /* ボタンの中のテキストとアイコンを横並びに */
    align-items: center; /* 垂直方向中央揃え */
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    margin-top: 15px; /* 上のテキストとの余白 */
    margin-bottom: 20px;
}

.sns-button img {
    height: 24px; /* アイコンの高さ */
    width: auto;
    margin-right: 8px; /* アイコンとテキストの間の余白 */
    display: inline-block; /* imgをflexアイテムとして扱うため */
    vertical-align: middle; /* テキストとの垂直方向のずれを修正 */
}

.twitter-button {
    background-color: #1DA1F2; /* Twitterのブランドカラー */
    color: #fff;
}

.twitter-button:hover {
    background-color: #0c85d0;
}

.hashtag-button {
    background-color: #26b3ce; /* サイトのメインカラーと合わせる */
    color: #fff;
}

.hashtag-button:hover {
    background-color: #1e8fa3;
}

/* Q＆A */
.qa-8 dt {
    font-size: smaller;
    margin-top: 20px;
    margin-bottom: 1em;
    color: #333333;
    font-weight: 600;
}

.qa-8 dt::before,
.qa-8 dd::before {
    margin-right: .4em;
}

.qa-8 dt::before {
    content: "Q.";
}

.qa-8 dd {
    font-size: smaller;
    margin: 0 0 2.5em;
    padding: 1em 1.5em;
    background-color: #e5f5f5;
    color: #333333;
}

.qa-8 dd::before {
    content: "A.";
}

/* --- サークルリスト --- */



/* フッター */
.footer {
    background-color: #fff;
    color: #333;
    padding: 20px 0; /* このパディングはコンテナではなくフッター全体に適用 */
    text-align: center;
    margin-top: 40px; /* セクションとの間隔 */
    max-width: 1000px;
    margin-left: auto; /* 中央揃え */
    margin-right: auto; /* 中央揃え */
}

.footer-content-wrapper {
    display: flex; /* 横並びにするためのFlexbox */
    justify-content: center; /* 中央揃え */
    align-items: center; /* 垂直方向の中央揃え */
    flex-wrap: wrap; /* 要素が収まらない場合に折り返す */
    gap: 20px; /* テキストとバナーの間の隙間 */
    padding: 0 20px; /* 左右の余白 */
}

.footer-text {
    /* 必要であればテキスト部分のスタイルをここに記述 */
    text-align: center; /* テキストが複数行になった場合の調整 */
}

.footer-text p {
    margin-bottom: 5px;
    font-size: 14px;
}

.footer-text p:last-child {
    margin-bottom: 0; /* 最後のpタグの下マージンをリセット */
}

.footer-banner img {
    width: 200px;
    height: 40px;
    display: block; /* img要素の余分な下マージンをなくす */
}


/* ページトップに戻るボタン */
.page-top-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: #43cfd9;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 999;
}

.page-top-btn:hover {
    background-color: #28939b;
    transform: translateY(-2px);
}

.page-top-btn svg {
    width: 24px;
    height: 24px;
}

/* --- レスポンシブデザイン --- */

/* タブレット用 (991px以下) */
@media screen and (max-width: 991px) {
    .container {
        max-width: 550px; /* タブレットの基本幅 */
        padding: 0 15px;
    }

    .header .container {
        flex-direction: row; /* 横並びに戻す */
        justify-content: space-between; /* 両端揃え */
        align-items: center;
        padding: 0 20px;
    }

    .site-title {
        margin-bottom: 0;
    }

    .main-nav {
        display: none; /* 通常メニューを非表示 */
    }

    .hamburger {
        display: flex; /* ハンバーガーメニューを表示 */
        position: static; /* 位置指定をリセット */
    }

    .hero-section {
        height: 462px; /* 550px幅に合わせた高さ */
        /* max-width: は親の.containerに設定されているため不要 */
    }

    .link-section {
        height: 55px; /* 550px幅に合わせた高さ */
        /* max-width: は親の.containerに設定されているため不要 */
    }

    .section-title {
        width: 100%; /* 幅を100%に */
        font-size: 32px;
        margin-left: auto;
        margin-right: auto;
    }

    .content-box {
        min-width: unset; /* 最小幅をリセット */
        width: 100%; /* 幅を100%に */
        /* flex-direction: column; と align-items: center; は既にデスクトップで設定済みのため、
           ここでは特に変更の必要はありませんが、必要であれば上書き可能です。 */
    }

    /* 更新履歴の content-box の幅をタブレットに合わせて調整 */
    .content-box.update-log-box {
        flex: none !important; /* Flexの均等割り当てを解除（重要） */
        width: 100% !important; /* 親要素(container)の幅いっぱいに */
        min-width: unset !important; /* 最小幅の制約を確実に解除 */
        max-width: 100% !important; /* 最大幅も100%に */
        /* heightも必要であれば調整 */
    }

    .flex-container {
        flex-direction: column; /* 縦並びにする */
        align-items: center; /* 中央揃え */
    }

    .flex-mini-container {
        flex-direction: column; /* タブレット以下では縦並びにする */
        align-items: center; /* 縦並び時に中央揃え */
        gap: 15px; /* 縦並び時の間隔を調整 (必要であれば) */
    }
    .flex-mini-container-center {
        align-items: center; /* 縦並び時に中央揃え */
        gap: 12px; /* 縦並び時の間隔を調整 (必要であれば) */
    }
    .content-mini {
        width: 100%; /* 縦並び時に幅いっぱいに */
        min-width: unset; /* 最小幅の制限を解除して、はみ出しを防ぐ */
        padding: 15px; /* 必要であればモバイル時のパディングを調整 */
    }
    .writer-ind {
        width: 100%; /* 縦並び時に幅いっぱいに */
    }

    .box {
    max-width: 380px; /* 最大幅を設定し、それより狭い場合は縮む */
    margin-left: 0; /* 左マージンを自動調整 */
    margin-right: auto; /* 右マージンを自動調整 */
    }

    /* 更新履歴のcontent-boxの最小幅を解除 */
    #vertical-row .content-box.update-log-box { /* クラス名を使用 */
        min-width: unset; /* 最小幅の制約を解除 */
    }

    /* 更新履歴のインラインフレームの幅を調整 */
    #log.inlineframe {
        width: 100%; /* 親要素の幅いっぱいに広げる */
        max-width: 100%; /* 最大幅も100%に */
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content-wrapper {
        flex-direction: column; /* 縦並びにする */
    }

    .footer-text {
        margin-bottom: 15px; /* テキストとバナーの間のスペース */
    }

}

/* スマートフォン用 (667px以下) */
@media screen and (max-width: 667px) {
    /* スマートフォンで見たときは"sp"のclassがついた画像が表示される */
    .pc { display: none !important; }
    .sp { display: block !important; }

    .container {
        max-width: 100%; /* ブラウザ幅と同じ */
        padding: 0 15px;
    }

    .header {
        height: 100px; /* ヘッダーの高さを調整 */
    }

    .header .container {
        padding: 0 15px;
    }

    .site-title img {
        max-width: 200px; /* ロゴ画像の最大幅を調整 */
    }

    .hero-section {
        height: 0; /* 高さを0にしてpadding-bottomで高さを確保 */
        padding-bottom: 84%; /* (画像の高さ / 画像の幅) * 100 = (840 / 1000) * 100 = 84% */
        /* max-widthは親の.containerに設定されているため不要 */
    }

    .link-section {
        height: 0; /* 高さを0にしてpadding-bottomで高さを確保 */
        padding-bottom: 20%; /* (画像の高さ / 画像の幅) * 100 = (840 / 1000) * 100 = 84% */
        /* max-widthは親の.containerに設定されているため不要 */
    }

    .section-title {
        font-size: 28px;
        height: 45px;
    }
    .section-title.long {
        margin-bottom: 60px;
    }

    .flex-mini-container {
        flex-direction: column; /* スマホ以下では縦並びにする */
        gap: 10px; /* スマホ時の間隔をさらに調整 (必要であれば) */
    }

    .content-mini {
        width: 100%; /* 親要素の幅いっぱいに広げる */
        padding: 10px; /* 必要であればスマホ時のパディングを調整 */
        margin-left: auto;
    }

    /* 更新履歴の content-box の幅をスマホに合わせて調整 */
    .content-box.update-log-box {
        flex: none !important; /* Flexの均等割り当てを解除（重要） */
        width: 100% !important; /* 親要素(container)の幅いっぱいに */
        min-width: unset !important; /* 最小幅の制約を確実に解除 */
        max-width: 100% !important; /* 最大幅も100%に */
        /* heightも必要であれば調整 */
    }

    .box2 {
    max-width: 280px; /* 最大幅を設定し、それより狭い場合は縮む */
    margin-left: 0; /* 左マージンを自動調整 */
    margin-right: auto; /* 右マージンを自動調整 */
    }

    /* 更新履歴のcontent-boxの最小幅を解除 */
    #vertical-row .content-box.update-log-box { /* クラス名を使用 */
        min-width: unset; /* 最小幅の制約を解除 */
    }

    /* 更新履歴のインラインフレームの幅を調整 */
    #log.inlineframe {
        width: 100%; /* 親要素の幅いっぱいに広げる */
        max-width: 100%; /* 最大幅も100%に */
        margin-left: auto;
        margin-right: auto;
    }

    .footer p {
        font-size: 12px;
    }

    .page-top-btn {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 20px;
    }

    .page-top-btn svg {
        width: 20px;
        height: 20px;
    }
}
/* --- サークルリストカードのスタイル追加 --- */

/* カード全体のグリッドコンテナ (2列/レスポンシブ対応) */
.circle-card-grid {
    display: flex;
    flex-wrap: wrap; /* カードを折り返す */
    justify-content: space-between; /* カード間のスペースを均等に */
    gap: 20px; /* カード間の縦方向の隙間 */
    width: 100%;
    margin-top: 30px;
}

/* 個々のカードのスタイル */
.circle-card {
    background-color: #ffffff; /* 背景色は白 */
    border: 1px solid #eee; /* 必要に応じて薄い境界線 */
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex; /* 画像と情報を横並びにする */
    gap: 15px; /* 画像と情報の間隔 */
    
    /* デスクトップ(992px以上): 1行2列にするための設定 */
    flex: 0 0 calc(50% - 10px); 
    max-width: calc(50% - 10px);
    margin-bottom: 10px; 
}

/* サークルカット画像のコンテナ */
.circle-image-container {
    width: 120px; 
    flex-shrink: 0; 
}

.circle-image-container img {
    width: 100%;
    height: auto;
    border: 4px solid #43cfd9;
}

/* 右側のテキストとアイコンのコンテナ */
.circle-info {
    flex-grow: 1; 
    display: flex;
    flex-direction: column; 
    justify-content: flex-start; 
    padding-top: 5px; 
}

/* 1行目のテキストスタイル (配置場所) - 装飾付きの親要素 */
.circle-place {
    font-size: 18px; /* 装飾に合わせて文字を少し大きく */
    font-weight: 500;
    margin-bottom: 5px;
    color: #333; /* 文字色を濃く */
}

/* **変更**: 1行目: 配置場所の装飾 (h3 spanと同じ) */
.circle-place span {
    background: linear-gradient(transparent 60%, #fffe8a 60%);
    border-radius: 60% 30% 40% 5%/80% 75% 15% 75%;
    padding: 0 5px; 
    white-space: nowrap; 
}


/* **変更**: 2行目: サークル名のテキストスタイル (装飾なし) */
.circle-name {
    font-size: 14px; /* 装飾なしなので小さいサイズに戻す */
    font-weight: normal; /* 太字を解除 */
    margin-bottom: 5px;
    color: #555;
}

/* 3行目: 執筆者名のテキストスタイル (装飾なし) */
.writer-name {
    font-size: 14px;
    margin-bottom: 5px;
    color: #555;
}


/* アイコンの行 */
.circle-icons {
    display: flex;
    gap: 5px; 
    margin-top: auto; 
}

.circle-icons img {
    /* アイコンを 32px 四方に縮小 */
    width: 32px;
    height: 32px;
    max-width: 32px;
    object-fit: contain; 
    border: none; 
}


/* --- レスポンシブ対応 (スマートフォン・タブレット用) --- */

@media screen and (max-width: 991px) {
    
    .circle-card-grid {
        justify-content: center; 
    }

    .circle-card {
        flex: 0 0 90%; 
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 15px; 
    }
}

@media screen and (max-width: 667px) {
    
    .circle-card {
        flex-direction: column; 
        align-items: center; 
        flex: 0 0 100%;
        max-width: 100%;
        padding: 10px;
    }

    .circle-image-container {
        width: 160px; 
    }
    
    .circle-info {
        align-items: center; 
        width: 100%;
    }

    .circle-info .circle-place,
    .circle-info .circle-name,
    .circle-info .writer-name {
        /* Pタグの幅をテキストの長さに合わせる */
        width: fit-content; 
        /* Pタグのブロック自体を中央に配置する */
        margin-left: auto; 
        margin-right: auto; 
        /* margin-bottomは元の値に戻す */
        margin-bottom: 5px;
    }

    .circle-place span {
        white-space: normal; /* 折り返しを許可 */
    }

    .circle-icons {
        margin-top: 10px; 
    }
}