/* common.css */

/* ベースのフォントサイズ, 変数を定義 (1rem = 10px) */
html {
    font-size: 62.5%;
    font-family: 'Noto Sans JP';

    --color-1: #3F3F3F;
    --color-2: #2A2D32;
    --color-3: #B7364D;
    --color-4: #F3F4F9;
    --color-5: #6C6E77;

    --pc-content-width: 1060px; /* PC版のコンテンツ幅 */
    --sp-content-width: 100%; /* スマホ版のコンテンツ幅 */
}

html{
    scroll-behavior: smooth; /* スムーススクロール */
}

/* イメージを最大幅に収める */
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* 特定の要素を標準化 */
html, body {
    height: 100%;
    width: 100%;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.4rem; /* 14px */
    line-height: 2.5rem;
    color: #000;
    background-color: #fff;
}

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{
    text-align: center;
}

div.section-title h2.section-title-jp{
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 2.5rem;
    letter-spacing: 0.05em;
    color: #6C6E77;
}

div.section-title div.section-title-en{
    font-size: 5.2rem;
    font-weight: bold;
    line-height: 100%;
    color: var(--color-2);
    letter-spacing: 0.03em;
    margin: 60px 0;
}

section.background-light div.section-title h2.section-title-jp{
    color: var(--color-5);
}

section.background-dark div.section-title h2.section-title-jp{
    color: var(--color-white);
}

div.section-sub-title h3{
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--color-2);
    text-align: center;
}

section>div,
footer>div{
    width: 100%;
}


@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;
        margin-top: 20px;
    }
    div.section-title h2.section-title-jp{
        font-size: 1.4rem;
        font-weight: bold;
        margin-top: 10px;
        line-height: 2.5rem;
    }
    section div.section-main{
        margin-top: 60px;
    }

    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 {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 27px;
    width: 15px;
    height: 15px;
    margin: auto;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    box-sizing: border-box;
}
div.link-button a.button .button-overlay{
    position:absolute;
    inset:0;               /* 親いっぱいに広げる */
    pointer-events:none;   /* ボタンのクリック判定を邪魔しない */
    border-radius: 35px;
    opacity:0;             /* ふだんは透明 */
    transition:opacity .3s ease; /* 1 秒かけてフェード */
}
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;
    margin-top: -3px;
}
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, #F0CA29, #FF002D);
    color: #fff;
}
/* マウスホバー時の背景色を重ねて表示（初期状態で透明） */
div.link-button a.button.button-yellow-to-red::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #FF002D, #F0CA29);
    opacity: 0;
    transition: opacity .3s;
    border-radius: 100px;
}
/* マウスホバー時に透明化を解除 */
div.link-button a.button.button-yellow-to-red:hover::before {
    opacity: 1;
}

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(../asset/img/button_arrow_color2.png);
    width: 24px;
    height: 24px;
    transform: translateY(-50%); */
}

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(../asset/img/button_arrow_color6.png); */
    display: none;
}

div.link-button a.button.button-gray.disabled{
    color: rgba(67,68,79, 0.5);
    background-color:  var(--color-4);
}
div.link-button a.button.button-gray.disabled::after{
    /* background-image: url(../asset/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(../asset/img/button_arrow_white.png); */
    display: none;
}
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{
        width: 10px;
        height: 10px;
        right: 22.5px;
    }
    
    div.link-button a.button .button-text{
        font-size: 1.4rem;
        margin-top: 0;
    }
    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; /* モバイル版ではアニメーションなし */
    }
}