/* common.css */

/* ベースのフォントサイズ, 変数を定義 (1rem = 10px) */
html {
    font-size: 62.5%;
    font-family: 'Noto Sans JP';

    --color-1: rgba(0, 0, 0, 0.2);
    --color-3: #4E546E;
    --color-4: #F6F7F9;
    --color-5: #ACA8F5;
    --color-6: #D8DCF7;
    --color-7: #43444F;
    --color-white: #fff;
    --color-base: #f1f2fe;

    --pc-content-width: 1060px; /* PC版のコンテンツ幅 */
    --sp-content-width: 100%; /* スマホ版のコンテンツ幅 */
}
:root {
--color-2: linear-gradient(90deg, #89C4E9 0%, #809AD2 100%);
}
html{
    scroll-behavior: smooth; /* スムーススクロール */
    overflow-x: hidden;
}
html, body {
    overscroll-behavior: none;
    height: 100%;
    overflow-x: hidden;
  }

/* イメージを最大幅に収める */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* 特定の要素を標準化 */
html, body {
    height: 100%;
    width: 100%;
    /* margin: 0;
    padding: 0; */
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.4rem; /* 14px */
    line-height: 2.5rem;
    color: #3F3F3F;
    background-color: var(--color-white);
    overflow-x: hidden;
}

.scrollable-content {
  position: absolute; /* absoluteポジショニングに変更 */
  z-index: 10;
  top: 90vh; /* メインビジュアルの高さの90%から開始 */
  left: 0;
  right: 0;
  width: 100%;
  padding-bottom: 1px;
}
main, #sub-main {
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  box-sizing: border-box;
  left: 0;
  right: 0;
  scroll-behavior: smooth;
  transform: none;
  margin-bottom: 0;
}

summary {
    list-style: none;        /* Firefox向け */
    list-style-type: none;   /* Safari/Chrome向け */
    -webkit-appearance: none; /* Safariの特有の三角マークを削除 */
    display: block;
    cursor: pointer;
}
summary::-webkit-details-marker {
    display: none;
}

p {
    text-align: justify;
}

span.bold{
    font-weight: bold;
}

/* ここからページ固有の設定 */
.only-sp{
    display: none;
}

main {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section, footer{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    position: relative;
}
section{
    padding: 120px calc( (100% - var(--pc-content-width)) / 2);
}
footer{
    padding: 60px calc( (100% - var(--pc-content-width)) / 2);
}

div.section-title{
    width: 100%;
    text-align: center;
}

div.section-title div.section-title-en{
    font-size: 7rem;
    font-weight: bold;
    line-height: 3.1rem; /* Figma上で「自動」となっている行間の半分の値 */
    height: 38px;
    color: var(--color-5);
    letter-spacing: 0.05em;
}

div.section-title h2.section-title-jp{
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 2.5rem;
    margin-top: 10px;
    letter-spacing: 0.05em;
}

section.background-light div.section-title h2.section-title-jp{
    color: var(--color-3);
}

section.background-dark div.section-title h2.section-title-jp{
    color: var(--color-white);
}

div.section-sub-title h3{
    font-size: 2.5rem !important;
    font-weight: bold;
    color: var(--color-2);
    text-align: center;
}

section>div,
footer>div{
    width: 100%;
}

section div.section-main{
    margin-top: 60px;
}

@media screen and (max-width: 1060px) {
    /* PC版のコンテンツ幅以下の場合のセクション設定（タブレット・スマホなど） */
    section{
        padding: 80px 20px;
    }
    footer{
        padding: 40px 20px;
    }
}

@media screen and (max-width: 767px) {
    div.section-title div.section-title-en{
        font-size: 4rem;
    }
    div.section-title h2.section-title-jp{
        font-size: 1.4rem;
        font-weight: bold;
        color: var(--color-3);
        margin-top: 10px;
        line-height: 2.5rem;
    }

    section div.section-main{
        margin-top: 40px;
    }
}


/* ■■■■■■ table ■■■■■■ */
div.table{
    font-size: 1.5rem;
    line-height: 2.4rem;
    margin-bottom: 60px;
}

.table .table-row{
    display: flex;
    flex-direction: row;
    margin-top: -1px;
}
.table .table-row:first-child{
    margin-top: 0;
}

.table .table-head{
    background-color: var(--color-6);
    width: 340px;
    font-weight: bold;
    padding: 25px 25px 25px 40px;
    border-top:solid 1px rgba(49, 49, 49, 0.15);
    display: flex;
    align-items: center;
}

.table .table-item{
    width: 720px;
    padding: 25px 25px 25px 40px;
    color:  var(--color-2);
    border-top:solid 1px rgba(49, 49, 49, 0.15);
    display: flex;
    align-items: center;
}

.table .table-row:last-child .table-head,
.table .table-row:last-child .table-item{
    border-bottom:solid 1px rgba(49, 49, 49, 0.15);
}

@media screen and (max-width: 767px){
    
    .table{
        font-size: 1.4rem;
        margin-bottom: 40px;
    }

    .table .table-row{
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
    }
    
    .table .table-head{
        width: 100%;
        padding: 16px 16px 16px 20px;
    }
    
    .table .table-item{
        width: 100%;
        padding: 16px 16px 16px 20px;
    }
}

div.link-button{
    width: 100%;
    display: flex;
    text-align: center;
    position: relative;
}
div.link-button a.button{
    display: flex;
    position: relative;
    margin:  auto;
    width: 100%;
    max-width: 546px;
    height: 70px;
    border-radius: 35px;
    padding: 10px 35px;
    line-height: 2.5rem;
    color: var(--color-2);
    background-color: var(--color-white);
}
div.link-button a.button::after{
    position: absolute;
    top: 50%;
    right: 23px;
    content: '';
    background-image: url(../img/white_arrow.png);
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
}
div.link-button a.button .button-overlay{
    position:absolute;
    inset:0;               /* 親いっぱいに広げる */
    pointer-events:none;   /* ボタンのクリック判定を邪魔しない */
    border-radius: 35px;
    opacity:0;             /* ふだんは透明 */
    transition:opacity 2s ease; /* 2 秒かけてフェード */
}
div.link-button a.button:hover .button-overlay{
    opacity: 1;
}

div.link-button a.button .button-text{
    z-index: 10;
    font-size: 1.8rem;
    font-weight: bold;
    margin: auto;
}
div.link-button a.button .button-text span.button-text-first-line{
    font-size: 1.4rem;
    font-weight: normal;
}
div.link-button a.button .button-text span.button-text-date{
    font-size: 1.6rem;
}
div.link-button a.button.disabled{
    pointer-events: none;
}

/* ここから個別のボタンの色設定 */
div.link-button a.button.button-yellow-to-red{
    background: linear-gradient(to right, #FFF5A5, #FF749F);
}
div.link-button a.button.button-yellow-to-red .button-overlay{
    /* ホバー後 */
    background: linear-gradient(to left, #FFF5A5, #FF749F);
}

div.link-button a.button.button-gray-to-blue{
    background: linear-gradient(to right, #D7DDF7 0%, #E1D3F7 49%, #A9A6F5 100%);
}
div.link-button a.button.button-gray-to-blue .button-overlay{
    /* ホバー後 */
    background: linear-gradient(to left, #D7DDF7 0%, #E1D3F7 49%, #A9A6F5 100%);
}

div.link-button a.button.button-yellow-to-blue{
    background: #31D7E0;
    color:white
}
div.link-button a.button.button-yellow-to-blue .button-overlay{
    /* ホバー後 */
    background: #257CAC;
}
div.link-button a.button.button-white:hover {
  color: var(--color-white);
}
div.link-button a.button.button-white{
    border: #257CAC 2px solid;
    background-color: var(--color-white);
   color: #257CAC;
}
div.link-button a.button.button-white::after {
    background-image: url(../img/button_arrow_color5.png);
    color: white;
    background-position: center -2px;
    background-size: 120%;
}

div.link-button a.button.button-white:hover::after {
    background-image: none; /* ホバー時に矢印を消す */
}

div.link-button a.button.button-white .button-overlay {
    /* ホバー後 */
    border: #257CAC 2px solid;
    background-color: #257CAC;
    color: white;
}
div.link-button a.button.button-white .button-overlay::after{
    position: absolute;
    top: 50%;
    right: 23px; /* border-radius - width / 2 */
    font-weight: bold;
    content: '';
    background-image: url(../img/iconamoon_arrow-up-2-thin.png);
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    color:white
}

div.link-button a.button.button-white.disabled{
    border: var(--color-6) 2px solid;
    color: var(--color-6);
}
div.link-button a.button.button-white.disabled::after{
    background-image: url(../img/button_arrow_color6.png);
}

div.link-button a.button.button-gray.disabled{
    color: rgba(36, 49, 75, 0.5);
    background-color: #e4e4e4;
}
div.link-button a.button.button-gray.disabled::after{
    background-image: url(../img/button_arrow_color2.png);
    opacity: 0.5;
}

div.link-button a.button.button-black-to-gray{
    background: 
        linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.3)),
        var(--color-7);
    color: var(--color-white);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4), -3px -3px 8px #545560;
}
div.link-button a.button.button-black-to-gray::after{
    background-image: url(../img/button_arrow_white.png);
}
div.link-button a.button.button-black-to-gray .button-overlay{
    /* このボタンはホバー時に色を変えない */
    display: none;
}
div.link-button a.button.button-black-to-gray .button-text{
    transition: all 2s ease;
}
div.link-button a.button.button-black-to-gray:hover .button-text{
    font-size: 2.2rem;
}


/* ここからスマートフォン設定 */
@media screen and (max-width: 767px) {
    .only-sp{
        display: block;
    }

    div.link-button a.button{
        height: 58px;
        border-radius: 29px;
        padding: 8px 29px;
        line-height: 2.5rem;
    }
    div.link-button a.button::after{
        position: absolute;
        width: 15px;
        height: 20px;
        right: 10.5px;
        transform: translateY(-54%);
        background-size: 146% !important;
        background-position: left top;
    }
    
    div.link-button a.button .button-text{
        font-size: 1.4rem;
    }
    div.link-button a.button .button-text::first-line{
        line-height: 1.7rem;
    }
    div.link-button a.button .button-text span.button-text-first-line{
        font-size: 1.2rem;
        font-weight: normal;
    }
    div.link-button a.button .button-text span.button-text-date{
        font-size: 1.2rem;
    }
    
    div.link-button a.button .button-overlay{
        transition:unset; /* モバイル版ではアニメーションなし */
    }
}