/*====================
  基本設定とリセット
  ====================*/
html {
    font-family: 'IPAexMincho', serif;
    scroll-behavior: smooth;
    
}

/* htmlとbodyを画面全体に広げる */
html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: #2a2f41;
    /* 横スクロールバーを非表示にする */
    overflow-x: hidden;
}

/*====================
  全体の中央配置
  ====================*/
/* mainタグでコンテンツを中央にまとめる */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.jump-hover:hover{
    cursor: pointer;
    opacity: 0.6;
}
/*====================
  ロゴ
  ====================*/
.logo-container {
    display: flex;
    position: relative;
    z-index: 1;
    justify-content: center;
    align-items: center;
    margin-top: 12.5rem;
    margin-bottom: 14.5rem;
    width: 100%;
}

.logo-container img {
    width: 85%;
    height: auto;
}




/*====================
  各セクションのレイアウト
  ====================*/
/* 各セクションのコンテナを縦に並べる */
.circle-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平方向の中央揃え */
    gap: 10rem; /* セクション間の縦の間隔 */
}

/* 各セクションのコンテナ */
.container {
    display: flex;
    width: 100%;
    height: auto; 
    margin-bottom: 20rem;
    position: relative; 
}


/* NEWSセクションとRECOMMENDセクションを左側に配置 */
.container:nth-of-type(1),
.container:nth-of-type(3) {
    justify-content: flex-start; /* 左寄せ */
}

/* PAMPHLETセクションを右側に配置 */
.container:nth-of-type(2) {
    justify-content: flex-end; /* 右寄せ */
}

/* 円のベース */
.circle {
    border-radius: 50%;
    width: 28rem;
    height: 28rem;
    padding: 1.875rem;
    box-sizing: border-box;
    overflow: visible;
    position: relative; /* 子要素の配置基準として維持 */
}

/* 円を親要素の端からずらす */
.container:nth-of-type(1) .circle,
.container:nth-of-type(3) .circle {
    transform: translateX(-20%); /* 円を左にはみ出させる */
}

.container:nth-of-type(2) .circle {
    transform: translateX(20%); /* 円を右にはみ出させる */
}

/*====================
  円の中身と装飾
  ====================*/
.circle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #e7e2c1;
    border-radius: 50%;
    z-index: 2;
}


/*円の中の縦線（左右別制御）*/

.circle.right::after {
    content: "";
    position: absolute;
    background-color: #2a2f41;
    width: 0.2rem;
    z-index: 3;
    top: 27%;
    bottom: 3.125rem;
    left: 65%;
}

.circle.left::after {
    content: "";
    position: absolute;
    background-color: #2a2f41;
    width: 0.2rem;
    z-index: 3;
    top: 27%;
    bottom: 3.125rem;
    left: 25%;
}

.purple {
    position: absolute;
    width: 35rem;
    height: 35rem;
    pointer-events: none;
    z-index: 1;
    top: .3125rem;
}

.purple.left {
    left: 1rem;
    top: 3rem;
}

.purple.right {
    right: 3rem;
    top: 3rem;
}

.content-wrapper {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    max-height: 80%;
    text-align: center;
}

/* 各ラッパー内のpタグにスタイルを適用 */
.content-wrapper p {
    font-weight: bold;
    margin: 0 0 0.625rem 0; 
    position: relative;
    text-align: left;
}

.news-wrapper {
    top: 46%;
    left: 42%;
}

.pamphlet-wrapper {
    top: 54%;
    left: 70%;
    text-align: left;
}

.recommend-wrapper {
    top: 10%;
    left: 35%;
    position: relative;
}

/*タイトルのスタイル */
.content-wrapper .title, 
.content-wrapper .title-left {
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    margin-bottom: 3rem;
    text-align: left;
}

.content-wrapper .title {
    left: -6.25rem;
    top: -1.25rem;
}

.content-wrapper .title-left {
    left: 3.75rem;
    top: 1rem;
}

.content-left {
    margin-top: 1.875rem;
    max-height: 15rem;
    overflow-y: auto;
    margin-left: 5.5rem;
}

/* NEWS内のフォントサイズ */
.content-left p {
    font-size: 1.6rem; 
    font-weight: normal;
}


.slide-wrapper {
   height: 90rem; 
   position: absolute;
   top: 8.125rem;
   
   /* ★注意点: rightがマイナス値になっています（後述） */
   left: 5.1rem;
   right: -5.5rem;
   width: auto;
   
   overflow: hidden;
}

/* スライドコンテナ全体 (変更なし) */
.recommend-slide {
    width: 300%; 
    height: auto;
    display: flex;
    transition: all 0.3s;
}

/* * ★★★ 修正点 ★★★
 * * 1枚目(img)と2,3枚目(a)の「両方」に
 * スライド1枚分の幅(flex)を指定します。
 */
.recommend-slide > img,
.recommend-slide > a {
    /* --- 1枚のサイズ指定 --- */
    flex: 0 0 33.3333%;
    box-sizing: border-box;
    padding: 0 5px; /* 画像の間に少し余白を入れる */
    
    /* aタグが原因でレイアウトが崩れないよう block にします */
    display: block; 
}

/* * ★★★ 修正点 ★★★
 * * こちらは「画像そのもの」のスタイルです。
 * (aタグの中にあるimgにも適用されます)
 * * 幅(flex)に関する指定は上記に移しました。
 */
.recommend-slide img {
    /* --- 画像自体の表示方法 --- */
    width: 100%; /* 親要素(imgまたはa)の幅いっぱいに広げる */
    height: 10rem;
    display: block;
    object-fit: contain; 
}
.indicator {
    position: absolute;
    bottom: 17rem;
    right: 0.3125rem;
    width: 100%;
    display: flex;
    justify-content: center;
    column-gap: 18px;
    z-index: 10;
}

.lr-btn {
    position: absolute;
    top: 4rem;
}

li {
    list-style: none;
}




.slide div:nth-of-type(1) {
    background-color: #E1F3FC;
}

.slide div:nth-of-type(2) {
    background-color: #FCE8F0;
}

.slide div:nth-of-type(3) {
    background-color: #E3F1E4;
}

.next {
    position: absolute;
    width: 0.9375rem;
    height: 0.9375rem;
    right: 0.625rem;
    bottom: 30%;
    z-index: 10;
    cursor: pointer;
    border-top: solid 3px #e7e2c1;
    border-right: solid 3px #e7e2c1;
    -webkit-transform: rotate(45deg) translateY(50%);
    transform: rotate(45deg) translateY(50%);
}

.prev {
    position: absolute;
    width: 15px;
    height: 15px;
    left: 25px;
    bottom: 40%;
    z-index: 10;
    cursor: pointer;
    border-top: solid 3px #e7e2c1;
    border-right: solid 3px #e7e2c1;
    -webkit-transform: rotate(-135deg) translateY(-50%);
    transform: rotate(-135deg) translateY(-50%);
}

.indicator li {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    list-style: none;
    background-color: #fff;
    border: 2px #000 solid;
    cursor: pointer;
}

.indicator li:first-of-type {
    background-color: #000;
}

.bubble1st, .bubble2nd, .jellyfish1, .jellyfish2 {
    position: absolute;
    width: 15rem; /* サイズを調整 */
    height: auto;
    z-index: 5; /* circle-clipperより手前に来るように */
}


.bubble1st  { top: 30rem; left: 50%; }
.jellyfish1 { top: 90rem; left: -10%; }
.bubble2nd  { top: 45rem; right: 1%; }
.jellyfish2 { top: 35rem; left: 5%; }


.pamphlet-top-image {
    width: 50%;
    height: auto;
    display: block;
    position: relative;
    left: -15%;
    top: -1.875rem;
    object-fit: contain;
    z-index: 3;
}


/**フッター位置調整*/

footer{
    margin-top: 15rem;
}



/* ===== タブレット用の設定  ===== */
@media screen and (min-width: 481px) {
    .bubble1st, .bubble2nd, .jellyfish1, .jellyfish2 {
    position: absolute;
    width: 20rem; /* サイズを調整 */
    height: auto;
    z-index: 5; /* circle-clipperより手前に来るように */
}

    .bubble1st  { top: 30rem; left: 50%; }
    .jellyfish1 { top: 70rem; left: -5%; }
    .bubble2nd  { top: 45rem; right: 1%; }
    .jellyfish2 { top: 22rem; left: 35%; }


    
}

/* ===== PC用の設定  ===== */
@media screen and (min-width: 1025px) {
    /* 円のベース */
.circle {
    width: 50rem;
    height: 50rem;
  }

  /* 円を親要素の端からずらす */
.container:nth-of-type(1) .circle,
.container:nth-of-type(3) .circle {
    transform: translateX(-20%); /* 円を左にはみ出させる */
}

.container:nth-of-type(2) .circle {
    transform: translateX(20%); /* 円を右にはみ出させる */

}

.purple {
    position: absolute;
    width: 70rem;
    height: 70rem;
    pointer-events: none;
    z-index: 1;
    top: .3125rem;
}

.content-wrapper .title, 
.content-wrapper .title-left {
    font-size: 4rem;
}

/* NEWS内のフォントサイズ */
.content-left p {
    font-size: 2rem; 
}

.content-left {
    max-height: 100rem;
}


/*円の中の縦線（左右別制御）*/

.circle.right::after,.circle.left::after {
    width: 1rem;
}

.news-wrapper {
    /*top: 20%;*/
    left: 53%;
}

.pamphlet-wrapper {
    top: 50%;
    left: 60%;
    text-align: left;
}

.recommend-wrapper {
    top: 13%;
    left: 50%;
    position: relative;
}

.slide-wrapper {
    top: 13rem;
    /* ★修正点 */
    left: 2rem;  /* 左の余白 */
    right: -7rem; /* 右の余白も指定 */
    width: auto; /* width: 90%; をやめて自動計算に任せる */
}

.recommend-slide img {
    /* --- 画像自体の表示方法 --- */
    width: 100%; /* flex-basisで決まった幅いっぱいに広げる */
    height: 18rem;
    display: block;
    object-fit: contain; /* 比率を保ったまま領域を埋める */
}


.indicator {
    position: absolute;
    bottom: 10rem;
    right: 0.3125rem;
    width: 100%;
    display: flex;
    justify-content: center;
    column-gap: 18px;
    z-index: 10;
}

.indicator li {
    width: 60px;
    height: 60px;
}


.lr-btn {
    position: absolute;
    top: 4rem;
}

.next {
    width: 2rem;
    height: 2rem;
    right: 3.625rem;
    top: 7%;
}

.prev {
    width: 2rem;
    height: 2rem;
    left: 5rem;
    top: 7%;
}

.bubble1st, .bubble2nd, .jellyfish1, .jellyfish2 {
    position: absolute;
    width: 30rem; /* サイズを調整 */
    height: auto;
    z-index: 5; /* circle-clipperより手前に来るように */
}

    .bubble1st  { top: 30rem; left: 70%; }
    .jellyfish1 { top: 70rem; left: 10%; }
    .bubble2nd  { top: 70rem; right: 10%; }
    .jellyfish2 { top: 40rem; left: 70%; }

}


.slideLink
{
    cursor: pointer;
}
