/*
Theme Name:CANON child
Theme URI:
Description:WordPressテーマ「CANON」の自作子テーマです。
Template:canon_tcd109
Author:
Author URI:
Version:1.2
*/

/* ページヘッダーのタイトル */
#page_header .headline {
	width: 100% !important;
}

/* 3カラム */
.cb_three_column { 
    padding: 60px 0; 
    position: relative; 
    scroll-margin-top: -50px; 
}

.three_column_carousel_container {
    margin: 0 auto;
    position: relative;
    text-align: center;
}

.three_column_carousel .item {
    position: relative;
}

.three_column_carousel .image_wrap {
    position: relative;
	width: 100%;
    height: auto;
    aspect-ratio: 330 / 520; /* 画像の縦横比 */
    overflow: hidden;
}

.three_column_carousel .image_wrap img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

/* タイトルと説明を画像の上に重ねる */
.three_column_carousel .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.2); /* 背景をつけて可読性アップ */
}

/* タイトルと説明を配置するコンテナ */
.three_column_carousel .text_container {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #fff;
	padding: 20px;
	opacity: 5;
}

/* タイトルを中央配置 */
.three_column_carousel .title {
    margin-bottom: 10px; /* タイトルと説明文の間の余白 */
	align-items: center;
    text-align: center;
}

/* 説明を画像の下20px上に配置 */
.three_column_carousel .description {
    font-size: 18px;
    line-height: 1.4;
    position: absolute;
	bottom: 20px; /* 画像の下から20px上に配置 */
	text-align: center;
	color: #fff;
	width:100%;
}

/* スマホ表示時（幅768px以下） */
@media screen and (max-width: 768px) {
    .three_column_carousel_wrap {
        overflow: hidden; /* 横スクロール防止 */
    }
    .three_column_carousel {
        display: flex !important; /* スマホでは通常のフレックスに変更 */
        flex-direction: column; /* 1カラムにする */
        align-items: center; /* 中央寄せ */
        width: 100% !important; /* フル幅を指定 */
    }
    .three_column_carousel .item {
        width: 100% !important; /* 幅を100%に */
        max-width: 500px; /* 必要なら最大幅を制限 */
        margin: 0 auto; /* 中央寄せ */
    }
    .three_column_carousel .image_wrap {
        width: 100%;
        max-width: 500px; /* 画像の最大幅 */
        height: auto; /* 縦横比を維持 */
    }
    .three_column_carousel .image {
        width: 100%;
        height: auto; /* 画像のアスペクト比を保つ */
        object-fit: cover; /* 画像の比率を維持しつつフィット */
    }
	.three_column_carousel .title {
        font-size: 30px;    
    }
}

/* スマホ（800px以下）では24px */
@media screen and (max-width: 800px) {
    .three_column_carousel .title {
        font-size: 24px !important;
    }
}


/* topの３コンテンツ終わり */