/* リセットCSS (簡易版) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----------------------------------- */
/* PC/デフォルトスタイル (1025px 以上) */
/* ----------------------------------- */
.main-visual {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/taikenkai_main.webp'); 
    background-size: cover;
    background-position: center; /* PCでは中央に人物が来るように設定 */
    opacity: 1; 
}

/* PCレイアウト: 左上に配置 */
.content-wrapper {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
}

.title-text {
    padding: 8px 15px; 
    margin-bottom: 20px;
    background-color: #ffffff;
    color: #A00030;
    font-size: 2rem;
    font-weight: bold;
    display: inline-block;
    box-shadow: 3px 3px #A00030;
}

/* PCレイアウト: 画像は横並び */
.catch-copy-images {
    display: flex;
    align-items: flex-end; 
}

/* PC用画像サイズ (元の設定を維持) */
.image-1 { height: 120px; }
.image-2 { margin: 0 10px; height: 100px; }
.image-3 { height: 120px; }


/* ----------------------------------- */
/* アニメーション (PC/SP共通) */
/* ----------------------------------- */
.animated-image {
    opacity: 0;
    transform: translateY(50px);
    animation: float-up 1.0s ease-out forwards;
}

/* アニメーションタイミングの調整 */
.image-1 { animation-delay: 0.3s; }
.image-2 { animation-delay: 0.6s; }
.image-3 { animation-delay: 0.9s; }

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ----------------------------------- */
/* MEDIA QUERY: レスポンシブ (1024px 以下) */
/* ----------------------------------- */
@media screen and (max-width: 1024px) {

    /* 背景画像の位置調整: 縦長画面で人物が中央に来るように */
    .background-image {
        /* 中央寄りの人物に合わせ、左右を隠す設定 */
        background-position: 50% 0%; 
    }

    /* content-wrapper を画面中央下に移動 */
    .content-wrapper {
        /* PCのleftを解除し、中央寄せ */
        left: 50%; 
        /* 縦の位置を下部に固定 (例: 下から10%) */
        top: unset; 
        bottom: 10%; 
        
        /* 中央寄せの調整 */
        transform: translateX(-50%); 
        /* translateYの解除 */
    }

    /* 尾張貫流槍術 のテキストスタイル */
    .title-text {
        /* display: inline-block; を維持し、中央寄せのために親要素で制御 */
        margin-left: auto;
        margin-right: auto;
        font-size: 1.2rem; /* サイズ調整 */
        margin-bottom: 10px;
    }
    
    /* 文字と画像を中央に配置するための調整 */
    .content-wrapper > * { /* title-text と catch-copy-images */
        text-align: center; /* インライン要素を中央寄せ */
    }

    /* タイトルロゴ画像 (管槍体験会 in 大阪) の縦並び設定 */
    .catch-copy-images {
        /* 縦並び (添付画像に倣う) */
        flex-direction: column;
        /* 中央揃え */
        align-items: center; 
    }

    /* 縦並びになった画像のマージンとサイズ調整 (アスペクト比維持のため height: auto を適用) */
    .image-1 {
        height: auto; 
        width: 80vw; /* 画面幅に対して80%の幅 */
        max-width: 500px;

    }
    
    .image-2 {
        height: auto; 
        width: 14vw; /* 'in' は小さめに */
        max-width: 80px;

    }
    
    .image-3 {
        height: auto;
        width: 40vw; /* '大阪' は少し大きく */
        max-width: 200px;
 
    }
}









/* ----------------------------------- */
/* フォントとカラーの定義 */
/* ----------------------------------- */
body {
    /* フォント指定 (Zen Kaku Gothicがシステムにない場合は代替フォントが適用されます) */
    font-family: 'Zen Kaku Gothic', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    color: #333333; /* 文字色 */
    background-color: #F6FFEE; /* 背景色 */
}

/* ----------------------------------- */
/* イベント詳細セクション全体 (PC向け) */
/* ----------------------------------- */
.event-details-section {
    padding: 80px 5%;
    /* PCでは背景色がない部分が#F6FFEEになる */
}

.event-details-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex; /* 画像と情報カードを横並びにする */
    gap: 50px; /* 画像エリアと情報エリアの間隔 */
    align-items: center; /* 縦方向中央揃え */
}

/* 左側の画像エリア */
.image-area {
    flex-shrink: 0; /* 縮小させない */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-image {
    width: 180px; /* PCでの画像の幅 */
    height: auto;
    object-fit: cover;
    border-radius: 10px; /* 画像の角を少し丸くする */
}
/* 下の画像は小さく見せる */
.image-bottom {
    width: 180px; 
    align-self: flex-end; /* 右寄せ */
}

/* 右側の情報カードエリア */
.info-card-wrapper {
    flex-grow: 1; /* 残りのスペースを全て使う */
}

.info-card {
    background-color: #ffffff; /* 白い背景 */
    padding: 40px;
    border-radius: 20px;
    width: 100%;
}

/* 情報の各行 (日時、参加費、定員) */
.info-item {
    display: flex;
    align-items: flex-start; /* 全ての項目を左揃えの基準にする */
    padding: 15px 0;
    border-bottom: 1px solid #eeeeee;
    gap:20px;
}
/* 最後の要素の線は消す */
.info-item:last-child {
    border-bottom: none;
}

/* 縦棒付きのラベル (日時、参加費、定員) */
.label-vertical {
    font-size: 1.1rem;
    font-weight: bold;
    flex-basis: 100px; /* ラベルの幅を固定 */
    position: relative;
    padding-left: 20px;
}

.label-vertical::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 90%; /* ラベルの高さに合わせて縦棒を調整 */
    background-color: #0C6295; /* 濃い青 */
    border-radius: 2px;
}

.value-content {
    flex-grow: 1;
}

/* 日時要素内のスタイル */


.date-content {
    display: flex;
    /* 日付情報を左揃えにする */
    align-items: flex-end; /* PCでは下端揃えを維持 */
    gap: 15px;
}

.year-month {
    font-size: 1.1rem;
    padding-bottom: 14px;
    color: #0C6295;
    /* PCでは配置調整のため左揃えを維持 */
    text-align: left; 
}

.day-wrapper {
    display: flex;
    align-items: baseline;
    font-weight: bold;
}

.day {
    font-size: 3rem;
    color: #0C6295; /* 濃い青 */
}

.day-of-week {
    /* 中央寄せのための設定を追加 */
    display: flex; /* Flexコンテナにする */
    justify-content: center; /* 水平方向の中央寄せ */
    align-items: center; /* 垂直方向の中央寄せ */

    font-size: 1.5rem;
    color: white;
    background-color: #0C6295;
    
    /* サイズを固定 */
    width: 3rem; 
    height: 3rem; 
    
    border-radius: 50%; /* 円形 */
    margin-left: 10px;
    /* line-height: 1; は中央寄せのために不要になったため削除してもOKですが、残しても問題ありません */
}

.time-range {
    font-size: 1.2rem;
    color: #0C6295;
    padding-bottom: 14px;
    /* PCでは配置調整のため左揃えを維持 */
    text-align: left; 
}

/* 参加費・定員 */
.price, .capacity {
    font-size: 2rem;
    font-weight: bold;
}

.note {
    font-size: 0.8rem;
    color: #888888;
    margin-top: 5px;
}


/*持ち物*/
.title_sumaho{
    display:none;
}


/* ----------------------------------- */
/* MEDIA QUERY: モバイル対応 (900px 以下) */
/* ----------------------------------- */
@media screen and (max-width: 900px) {
    .event-details-section {
        padding: 30px 0;
    }

    .event-details-container {
        flex-direction: column;
        gap: 0;
    }

    /* 画像エリア */
    .image-area {
        width: 90%;
        margin: 0 auto;
        gap: 10px;
        align-items: center;
    }

    .detail-image {
        width: 100%;
        max-width: 300px;
        border-radius: 10px;
    }
    
    .image-top1 {
        order: 1;
        height: 400px;
        max-width: 600px;
        object-position: top;
    }
    .image-bottom1 {
        order: 3;
        width: 100%;
        height: 200px;
        margin-top: 15px;
        align-self: center;
        max-width: 600px;
    }

    /* 情報カード */
    .info-card-wrapper {
        order: 2;
        width: 100%;
        padding: 0 15px;
        margin-top: 15px;
    }

    .info-card {
        padding: 30px;
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }
    
    /* ----------------------------------- */
    /* 項目全体の縦並びとスタイルの修正 */
    /* ----------------------------------- */
    .info-item {
        /* ラベルと情報を縦並びにする */
        flex-direction: column; 
        
        /* ラベルと情報の間隔確保 */
        padding: 15px 0 20px 0; 
        /* 縦並びになるため、align-items は不要（解除される） */
    }

    .label-vertical {
        /* 幅の固定を解除し、要素全体を使うようにする */
        flex-basis: auto; 
        /* 左の縦棒に合わせて少しインデント */
        padding-left: 20px;
        /* 下にマージンを追加 */
        margin-bottom: 20px; 
    }
    
    /* 縦棒の位置調整 (ラベルが一行になるため) */
    .label-vertical::before {
        /* 上端に寄せる */
        top: 0;
        transform: none;
        height: 100%;
    }

    .value-content {
        padding-left: 20px; 
        /* モバイルではコンテンツを左揃えにする */
        text-align: left; 
    }
    
    /* ----------------------------------- */
    /* 日時レイアウト修正：縦並び (改行) に変更 (既存の設定を継承しつつ調整) */
    /* ----------------------------------- */
    .date-content {
        /* 日時要素の縦並びを維持 */
        display: block; 
    }
    
    .year-month {
        font-size: 1rem;
        padding-bottom: 0;
        margin-bottom: 5px;
    }

    .day-wrapper {
        display: flex;
        /* ラベル（日、曜日）の並びを左揃えにする */
        justify-content: flex-start; 
        align-items: center; 
        font-weight: bold;
        margin-bottom: 5px;
    }

    .day {
        font-size: 2.5rem;
    }
    
    .day-of-week {
        font-size: 1rem;
        width: 2.2rem;
        height: 2.2rem;
        margin-left: 10px;
    }

    .time-range {
        font-size: 1.1rem;
        padding-bottom: 0;
        margin-top: 5px;
        color: #0C6295;
        /* モバイルで左揃えを確実にする */
        text-align: left; 
    }
    /* ----------------------------------- */
    
    /* 参加費・定員 */
    .price, .capacity {
        font-size: 1.5rem;
    }
    
    .note {
        /* ラベルと情報が縦並びになったので、注釈のスペースを調整 */
        margin-top: 10px; 
    }
    /*持ち物*/
    .title_sumaho{
        display:block;
    }
    .title_PC{
        display:none;
    }
}










/* ----------------------------------- */
/* 会場アクセスセクション (PC向け) */
/* ----------------------------------- */
.access-section {
    padding: 0px 5% 80px 5%;
    background-color: #F6FFEE;
}

.access-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 場所/住所の行 */
.location-info-item {
    display: flex;
    align-items: flex-start;
    padding-bottom: 20px;
}

.access-label {
    /* label-vertical のスタイルを流用 */
    flex-basis: 100px; 
    font-size: 1.1rem;
    font-weight: bold;
    position: relative;
    padding-left: 20px;
}

/* 縦棒のスタイルを流用 */
.access-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 90%; 
    background-color: #0C6295;
    border-radius: 2px;
}

.address-content {
    font-size: 1.1rem;
    color: #333333;
    flex-grow: 1;
}

/* Googleマップエリア */
.map-area {
    width: 100%;
    /* 添付画像のようなグレーの背景色をシミュレート */
    background-color: #e0e0e0; 
    border-radius: 10px;
    overflow: hidden; /* iframeが角丸の外に出ないように */
}

.map-area iframe {
    /* iframe自体には高さ設定が必要 (HTML側で height="450" を設定済み) */
    display: block;
}


/* ----------------------------------- */
/* MEDIA QUERY: モバイル対応 (900px 以下) */
/* ----------------------------------- */
@media screen and (max-width: 900px) {
    .access-section {
        padding: 30px 5%;
    }

    .location-info-item {
        /* ラベルと住所を縦並びにする */
        flex-direction: column; 
        padding-bottom: 15px;
    }
    
    .access-label {
        /* 幅の固定を解除 */
        flex-basis: auto; 
        margin-bottom: 5px;
        /* ラベルの縦棒を上に寄せる */
        padding-left: 20px;
    }
    
    .access-label::before {
        top: 0;
        transform: none;
        height: 100%;
    }

    .address-content {
        /* ラベルの縦棒に合わせてインデント */
        padding-left: 20px; 
        font-size: 1rem;
    }
    
    .map-area iframe {
        /* モバイルでの高さ調整 */
        height: 300px; 
    }
}









/* ----------------------------------- */
/* 申し込みボタンセクション (PC向け) */
/* ----------------------------------- */
.button-section {
    /* 上下の余白 */
    padding: 0px 5% 60px 5%;
    background-color: #F6FFEE;
    /* ボタンを中央に配置 */
    text-align: center; 
    height:140px;
}

.button-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ----------------------------------- */
/* 立体ボタンデザイン (青色) */
/* ----------------------------------- */
.btn--blue-cubic {
    /* 共通設定 */
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    
    /* 角丸 */
    border-radius: 20px; 
    
    /* 色の指定 */
    color: #0C6295; /* 文字色: 濃い青 */
    background-color: #ffffff; /* 背景色: 白 */
    
    /* 立体的な影 (濃い青) */
    border-bottom: 5px solid #0C6295; 
    border-right: 2px solid #0C6295;
    border-left: 2px solid #0C6295;
    border-top: 1px solid #0C6295;
    
    /* ボタン内の矢印 (▶) のスタイルを調整する場合 */
    letter-spacing: 0.05em;
}

/* ホバーアニメーション */
.btn--blue-cubic:hover {
    /* ボタンが沈み込む演出のため、マージンを下に3px移動 */
    transform: translateY(3px);
    
    color: #0C6295;
    background: #ffffff; 
    
    /* 枠線を短くして、影が薄くなったように見せる */
    border-bottom: 2px solid #2571a0; /* やや明るい青 */
    border-right: 2px solid #0C6295; /* 影を消す */
    border-left: 2px solid #0C6295;
    border-top: 1px solid #0C6295;
    
    /* 影のボケ感を無くし、立体感を強調 */
    box-shadow: none; 
}

/* ----------------------------------- */
/* MEDIA QUERY: モバイル対応 (900px 以下) */
/* ----------------------------------- */
@media screen and (max-width: 900px) {
    .button-section {
        padding: 40px 5%;
    }
    
    .btn--blue-cubic {
        /* モバイルでは文字を小さくし、パディングも調整 */
        font-size: 1.2rem;
        padding: 12px 30px;
        
        /* 影も少し小さく */
        border-bottom: 4px solid #0C6295;
        border-right: 1px solid #0C6295;
        border-left: 1px solid #0C6295;
    }

    .btn--blue-cubic:hover {
        /* モバイルでのホバーアニメーション調整 */
        border-bottom: 1px solid #2571a0;
    }
}









/* ----------------------------------- */
/* 講師紹介/体験内容セクション (PC向け) */
/* ----------------------------------- */
.instructor-section {
    padding: 0px 5% 80px 5%;
    background-color: #F6FFEE;
}

.instructor-container {
    max-width: 1200px;
    margin: 0 auto;
}

.content-row {
    display: flex;
    align-items: center; /* 縦方向中央揃え */
    gap: 50px;
    margin-bottom: 50px;
}
/* 最後の行の下マージンは不要 */
.content-row:last-child {
    margin-bottom: 0;
}

/* テキストブロックの共通スタイル */
.text-block {
    flex-grow: 1;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 20px;
    /* 添付画像のような影を付ける場合は以下を追加: 
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05); 
    */
}

.text-block p {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* タイトル行の縦棒 */
.intro-title {
    font-weight: bold;
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
    position: relative;
    padding-left: 15px;
}

.vertical-bar {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 90%; 
    background-color: #0C6295; /* 濃い青 */
    border-radius: 2px;
}

.text-block-left{
    height:300px;
}
.text-block-right{
    height: 200px;
}

/* 画像ブロック */
.image-block {
    flex-shrink: 0;
}

.instructor-image {
    width: auto; /* PCでの画像の幅 */
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

.image-bottom{
    width: 240px; /* PCでの画像の幅 */
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}



/* ----------------------------------- */
/* MEDIA QUERY: モバイル対応 (767px 以下) */
/* 画像 → 説明 の順に縦積みし、横幅を広げる */
/* ----------------------------------- */
@media screen and (max-width: 767px) {
    .instructor-section {
        padding: 30px 0;
    }
    
    .content-row {
        flex-direction: column; /* 縦並びにする */
        gap: 15px;
        margin-bottom: 30px;
        
        /* 縦積み時も中央揃え */
        align-items: center; 
    }

    /* ROW 1: モバイルで 画像 → テキスト の順にする */

    
    .image-block-right {
        order: 1; /* 1番目 (上) に画像 */
        height:auto;
    }
    
    .text-block-left {
        order: 2; /* 2番目 (下) に説明 */
        height:auto;
    }

    /* ROW 2: モバイルで 画像 → テキスト の順にする (デフォルトのHTML順のまま) */
    .image-block-left {
        order: 3; /* 3番目 (上) に画像 */
    }
    
    .text-block-right {
        order: 4; /* 4番目 (下) に説明 */
    }


    /* 全てのブロックの横幅を調整 */
    .image-block,
    .text-block {
        width: 90%; /* 横幅いっぱい */
        max-width: 400px;
    }

    .instructor-image {
        width: 100%; /* 親の90%幅に合わせる */
        height: 400px;
    }
    
    .text-block {
        padding: 20px;
    }
    
    .text-block p {
        font-size: 0.9rem;
    }
}









/* ----------------------------------- */
/* フッターセクション (PC向け) */
/* ----------------------------------- */
.main-footer {
    /* 背景色: #8EC756 */
    background-color: #8EC756; 
    color: #ffffff; 
    padding-top: 50px;
    padding-bottom: 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
}

/* 左側：イベントタイトル (画像コンテナ) */
.footer-title-area {
    flex-shrink: 1; 
    /* PCでの画像の高さを設定 */
    height: 80px; 
}

/* フッタータイトル画像のスタイル */
.footer-title-image {
    display: block;
    width: auto; /* 幅は画像の比率に任せる */
    height: 100%; /* 親の高さに合わせる */
    object-fit: contain; /* 縦横比を維持し、コンテナ内に収める */
}

/* ----------------------------------- */
/* 右側：リンクエリア (SNSコンテナ) (変更なし) */
/* ----------------------------------- */
.footer-link-area {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    gap: 15px;
    flex-shrink: 0;
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-link-item p {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    /* 縦棒とボタンの間にスペースを空ける */
    margin-right: 15px; 
}

/* 縦棒 ( | ) */
.vertical-pipe {
    display: block;
    width: 4px;
    height: 25px;
    background-color: #ffffff;
    border-radius: 2px;
}

/* リンクボタン (画像) */
.link-button-wrapper {
    display: block;
}

.link-button {
    width: 40px; /* ボタン画像のサイズ調整 */
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.link-button:hover {
    opacity: 0.8;
}

/* 著作権表示 */
.copyright {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 30px;
}


/* ----------------------------------- */
/* MEDIA QUERY: モバイル対応 (767px 以下) */
/* ----------------------------------- */
@media screen and (max-width: 767px) {
    .main-footer {
        padding-top: 30px;
    }
    
    .footer-container {
        flex-direction: column; 
        gap: 30px; 
        align-items: center; /* モバイルでは中央寄せにする */
    }
    
    /* タイトル画像エリア */
    .footer-title-area {
        order: 1; /* 1番目に配置 */
        width: 90%; 
        height: auto;
    }
    .footer-title-image {
        width: 100%; /* 横幅いっぱいに広げる */
        height: auto;
    }

    /* リンクエリア (SNSコンテナ) をタイトル画像の下に配置 */
    .footer-link-area {
        order: 2; /* 2番目に配置 */
        width: 90%;
        margin-left: 0;
        padding-top: 0; 
        align-items: flex-start; /* リンクを左寄せにする */
    }

    /* リンクアイテム */
    .footer-link-item {
        margin-left: 0;
    }
    
    .footer-link-item p {
        font-size: 1rem;
    }

    .link-button {
        width: 50px; /* モバイルでのボタン画像のサイズ調整 */
    }
}









/*--------------------------------------------------*/
/* --- ポートフォリオ：イラスト作成 セクション全体 --- */
/*--------------------------------------------------*/


.portfolio_illust_section {
    width: 100%;
    padding:  0 0 80px 0; 
    position: relative;
    z-index: 2; 
}

.portfolio_illust_container {
    max-width: 1200px; /* ★マックスワイド1200px */
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

/* --- カルーセルレイアウト --- */
.portfolio_illust_content_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center; 
    margin-top: 40px;
}

/* スライダーの外枠（表示領域） */
.portfolio_illust_carousel_wrapper {
    width: 100%;
    overflow: hidden; /* ★はみ出し防止の要 */
    margin-bottom: 50px;
    padding: 10px 0 0 0; /* 画面端へのパディングは不要 */
    position: relative; 
}

/* スライドアイテムを横並びにするコンテナ */
.portfolio_illust_carousel {
    display: flex;
    gap: 30px; 
    transition: transform 0.3s ease-in-out; 
    align-items: flex-start;
    
    /* スライドアイテムが収まる幅に設定（JSで制御される） */
    width: auto; 
}

.portfolio_illust_item {
    display: block;
    overflow: hidden;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0; /* スライドアイテムが縮まないように固定 */
    
    /* ★4枚表示の設定: (100% - (gap * 3)) / 4 */
    /* width: calc((100% - (30px * 3)) / 4);  */
    /* ★修正: gap(30px)を考慮したPCでの4枚表示の幅 */
    width: calc((100% - (30px * 3)) / 4);
}

.portfolio_illust_item:hover {
    transform: translateY(-3px);
    cursor: pointer;
}

.portfolio_illust_img {
    width: 100%;
    height: auto;
    display: block;
}

/* --- テキスト --- */
.portfolio_illust_text {
    max-width: 900px;
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    text-align: center; 
}

/*---------------------------*/
/* 左右ナビゲーションボタン */
/*---------------------------*/

.portfolio_illust_nav_btn {
    position: absolute;
    /* top: 50%;
    transform: translateY(-50%); */
    bottom:0px;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #0C6295;
    color: #0C6295;
    font-size: 20px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.portfolio_illust_nav_btn:hover {
    opacity: 1;
}

.portfolio_illust_prev {
    left: 10px; /* 左端に配置 */
}

.portfolio_illust_next {
    right: 10px; /* 右端に配置 */
}

/* ドットナビゲーション */
.portfolio_illust_dots {
    text-align: center;
    padding: 40px 0 0 0;
}

.portfolio_illust_dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.portfolio_illust_dot.active {
    background-color: #0C6295; /* 濃いピンク */
}

/* レスポンシブ調整（ボタンとドットの位置） */
@media (max-width: 767px) {
    .portfolio_illust_nav_btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .portfolio_illust_prev {
        left: 5px;
    }
    .portfolio_illust_next {
        right: 5px;
    }
}


/*-----------------------------*/
/* --- イラスト ポップアップウィンドウ --- */
/*-----------------------------*/

.portfolio_illust_popup {
    /* 初期状態は非表示 */
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    z-index: 1200; /* 最前面 */
    overflow: hidden; 
    justify-content: center;
    align-items: center;
}

.portfolio_illust_popup_content {
    position: relative;
    max-width: 90vw; 
    max-height: 90vh; 
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden; 
}

.portfolio_illust_popup_img {
    max-width: 100%;
    max-height: calc(90vh - 40px); 
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

.portfolio_illust_popup_close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1201;
}

/*-------------------------*/
/* --- レスポンシブ対応 --- */
/*-------------------------*/

/* ★修正 1: 1140px以下で3枚表示に変更 */
@media (max-width: 1140px) {
    .portfolio_illust_item {
        /* 3枚表示の設定: (100% - (gap * 2)) / 3 */
        width: calc((100% - (30px * 2)) / 3); 
    }
}

/* ★修正 2: 767px以下で2枚表示に変更 */
@media (max-width: 767px) {
    .portfolio_illust_container {
        padding: 0 20px;
    }
    .portfolio_illust_carousel_wrapper {
        padding: 0 10px; 
    }
    .portfolio_illust_carousel {
        gap: 15px; /* モバイルではギャップを狭く */
    }
    .portfolio_illust_item {
        /* 2枚表示の設定: (100% - gap) / 2 */
        width: calc((100% - 15px) / 2); 
    }
}