/*
Theme Name:Asanojuku
Theme URI:
Template:twentytwentyfour
Version:1.0.0
*/

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 2s ease-out, transform 2s ease-out;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(50px);  /* 下から50px上がってくる */
    transition: opacity 1.5s ease-out, transform 1.5s ease-out;  /* 1.5秒かけてゆっくり変化 */
    will-change: opacity, transform;  /* パフォーマンス最適化 */
}  
.fade-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.grecaptcha-badge { visibility: hidden; }

/* 色の設定 */
:root {
    --white: #FFFFFF;
    --shadow: rgba(139, 139, 139, 0.5);
    --gray: #C5C5C5;
    --black: #222222;
    --black0: #000000;
    --blue: #005FB3;
    --aqua: #1CACDC;
    --red: #E02700;
    --bg-gray: #EFEFEF;
    --bg-blue: #F6FAFF;
    --line: #06C755;
    --pink: #E75D9D;
    --green: #00B374;
    --yellow: #EAB003;
    --yellow-text: #947105;
    --navy: #232063;
    --purple: #A20B8E;
}

html {
    font-size: 100%;
}

body {
    font-family: "Noto Sans JP", sans-serif;
    color: var(--black);
}

img {
    max-width: 100%;
}

li {
    list-style: none;
}

a {
    font-family: "Noto Sans JP", sans-serif;
    text-align: center;
    color: inherit;
    text-decoration: none;
}

.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

/* セクション見出し */
.section-title {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 1.875rem + 1.04vw, 3.125rem); /* 50~40px */
    line-height: 100%;
    letter-spacing: 0.3rem;
}
.section-title-en {
    font-family: "Anuphan", sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 100%;
    letter-spacing: 0.1rem;
    margin-top: 10px;
}

.white {
    color: var(--white);
}
.blue {
    color: var(--blue);
}
.aqua {
    color: var(--aqua);
}

/* ボタン共通 */
.btn-detail {
    display: inline-block;
    padding: 15.5px 0;
    width: 300px;
    height: 70px;
    border-radius: 50px;
    /* box-shadow: 3px 4px 0px 0px var(--shadow); */
    position: relative;
    font-size: 20px;
    font-weight: 700;
    outline: none;
    transition: color 0.5s ease;
    overflow: hidden;
}
.btn-detail::after {
    content: "";
    display: inline-block;
    vertical-align: 1px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
    position: absolute;
    top: 42%;
    right: 0;
    margin-right: 20px;
}
.btn-detail:hover::before {
  transform: scaleX(1);
  transform-origin: left;
  border-radius: 50px;
}
.btn-detail::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: all 0.5s ease;
  transition-property: transform;
}
.text {
  position: relative;
}
/* 高松のボタン(青) */
.btn__takamatsu {
    color: var(--white);
    background: var(--blue);
    border: solid 3px var(--blue);
}
.btn__takamatsu:hover::after {
    border-color: var(--blue);
}
.btn__takamatsu:hover {
    color: var(--blue);
    border: solid 3px var(--blue);
}
.btn__takamatsu::before {
  background: var(--white);
}
/* 高松のボタン(白) */
.btn__takamatsu-white {
    color: var(--blue);
    background: var(--white);
    border: solid 3px var(--white);
}
.btn__takamatsu-white::after {
    border-color: var(--blue);
}
.btn__takamatsu-white:hover::after {
    border-color: var(--white);
}
.btn__takamatsu-white:hover {
    color: var(--white);
}
.btn__takamatsu-white::before {
  background: var(--blue);
}
/* 屋島のボタン(水色) */
.btn__yashima {
    color: var(--white);
    background: var(--aqua);
    border: solid 3px var(--aqua);
}
.btn__yashima:hover::after {
    border-color: var(--aqua);
}
.btn__yashima:hover {
    color: var(--aqua);
    border: solid 3px var(--aqua);
}
.btn__yashima::before {
  background: var(--white);
}
/* 屋島のボタン(白) */
.btn__yashima-white {
    color: var(--aqua);
    background: var(--white);
    border: solid 3px var(--white);
}
.btn__yashima-white::after {
    border-color: var(--aqua);
}
.btn__yashima-white:hover::after {
    border-color: var(--white);
}
.btn__yashima-white:hover {
    color: var(--white);
}
.btn__yashima-white::before {
  background: var(--aqua);
}

/* Instagramボタン共通 */
.btn-ig {
    display: inline-block;
    padding: 15px 0;
    width: 311px;
    height: 70px;
    border-radius: 50px;
    box-shadow: 3px 4px 0px 0px rgba(19, 59, 94, 0.4);
    position: relative;
    font-size: 20px;
    font-weight: 700;
    outline: none;
    transition: color 0.5s ease;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: 10% center;
}
.btn-ig::after {
    content: "";
    display: inline-block;
    vertical-align: 1px;
    width: 10px;
    height: 10px;
    border-right: 2px solid;
    border-bottom: 2px solid;
    transform: rotate(-45deg);
    position: absolute;
    top: 40%;
    right: 0;
    margin-right: 30px;
}
.btn-ig:hover::before {
    transform: scaleX(1);
    transform-origin: left;
    border-radius: 50px;
}
.btn-ig::before {
    position: absolute;
    top: 0;
    left: 0;
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50px;
    transform: scaleX(0);
    transform-origin: right;
    transition: all 0.5s ease;
    transition-property: transform;
}
/* 無料体験授業のボタン共通 */
.btn-free {
    display: inline-block;
    width: 24vw;
    max-width: 450px;
    min-width: 300px;
    aspect-ratio: 6.43/1;
    max-height: 70px;
    min-height: 50px;
    border-radius: 50px;
    font-size: clamp(1.125rem, 0.375rem + 1.25vw, 1.875rem); /* 18~30px */
    padding: clamp(0.656rem, 0.563rem + 0.16vw, 0.75rem) 0; /* 12~10.5px */
    font-weight: 700;
    position: relative;
    margin:0 auto;
    margin-top: 10px;
    outline: none;
    transition: color 0.5s ease;
    overflow: hidden;
}
.btn-free::after {
    content: "";
    display: inline-block;
    margin-left: 1em;
    vertical-align: 1px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
    position: absolute;
    top: 40%;
    right: 0;
    margin-right: 20px;
}
.btn-free:hover::before {
  transform: scaleX(1);
  transform-origin: left;
  border-radius: 50px;
}
.btn-free::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: all 0.5s ease;
  transition-property: transform;
}
/* 無料体験授業のボタン(赤) */
.btn-free__red {
    color: var(--white);
    background: var(--red);
    border: solid 3px var(--red);
}
.btn-free__red:hover::after {
    border-color: var(--red);
}
.btn-free__red:hover {
    color: var(--red);
    border: solid 3px var(--red);
}
.btn-free__red::before {
  background: var(--white);
}
/* 無料体験授業のボタン(白) */
.btn-free__white {
    color: var(--red);
    background: var(--white);
    border: solid 3px var(--red);
}
.btn-free__white::after {
    border-color: var(--red);
}
.btn-free__white:hover::after {
    border-color: var(--white);
}
.btn-free__white:hover {
    color: var(--white);
    border: solid 3px var(--white);
}
.btn-free__white::before {
  background: var(--red);
}

/* 赤背景上のボタンの影 */
.red-bg-shadow {
    box-shadow: 3px 4px 0px 0px rgba(128, 55, 55, 0.4);
}

/* 白背景上のボタンの影 */
.white-bg-shadow {
    box-shadow: 3px 4px 0px 0px rgba(161, 161, 161, 0.4);
}

/* グレー背景上のボタンの影 */
.gray-bg-shadow {
    box-shadow: 3px 4px 0px 0px rgba(148, 148, 148, 0.4);
}

/* 薄青背景上のボタンの影 */
.ltblue-bg-shadow {
    box-shadow: 3px 4px 0px 0px rgba(134, 148, 164, 0.4);
}

/* 青背景上のボタンの影 */
.blue-bg-shadow {
    box-shadow: 3px 4px 0px 0px rgba(19, 59, 94, 0.4);
}

/* 水色背景上のボタンの影 */
.aqua-bg-shadow {
    box-shadow: 3px 4px 0px 0px rgba(87, 119, 134, 0.4);
}

/* TOPに戻るボタン */
.top-button {
    position: fixed;
    right: 100px;
    bottom: 100px;
    min-width: 70px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 5vw;
    height: auto;
    transition: .3s;
    z-index: 10;
    background: rgb(179, 179, 179, 0);
    border-radius: 50%;
    cursor: pointer;
    .arrow{
        z-index: 11;
        opacity: 0;
        position: relative; /* 基準位置とする */
        transform: rotate(-90deg);
        margin-top: -45px;
    }
    .arrow::before,
    .arrow::after {
        content: ""; /* 疑似要素に指定必須 */
        width: 25px; /* 線の長さを指定 */
        height: 5px; /* 線の幅を指定 */
        display: inline-block; /* インラインブロックにする */
        border-radius: 2px; /* 線を角丸にする */
        background: white;   /* 線の色を指定 */
        position: absolute; /* 相対位置に指定 */
        right: 10px; /* 右から10pxの位置に配置 */
    }

    .arrow::before {
        top: calc(50% - 10px);     /* 数値は微調整してください */
        transform: rotate(45deg); /* 45度回転させる */
    }
    .arrow::after {
        bottom: calc(50% - 10px);   /* 数値は微調整してください */
        transform: rotate(-45deg); /* -45度回転させる */
    }
}

.top-button.is-visible {
    background: rgb(179, 179, 179, 0.85);
    visibility: visible;
    .arrow {
        opacity: 1;
    }
}

@media screen and (max-width: 960px)  {
    .pc-only {
        display: none;
    }
    .sp-only {
        display: block;
    }
    /* TOPに戻るボタン */
    .top-button {
        position: fixed;
        right: 50px;
        bottom: 50px;
    }
    /* セクション見出し */
    .section-title {
        font-family: "Noto Sans JP", sans-serif;
        font-weight: 700;
        font-size: 30px;
        line-height: 100%;
        letter-spacing: 10%;
        text-align: center;
    }
    .section-title-en {
        font-family: "Anuphan", sans-serif;
        font-weight: 700;
        font-size: 18px;
        line-height: 100%;
        letter-spacing: 5%;
        text-align: center;
    }
    /* ボタン共通 */
    .btn-detail {
        width: 300px;
        height: 50px;
        font-size: 16px;
        padding: 10px 0;
    }
    .btn-detail::after {
        top: 40%;
    }
    /* Instagramボタン共通 */
    .btn-ig {
        width: 300px;
        height: 50px;
        font-size: 16px;
        padding: 10px 0;
    }
    /* 無料体験授業のボタン共通 */
    .btn-free {
        width: 300px;
        height: 48.5px;
        font-size: 16px;
        padding: 11px 0;
    }
}
@media (max-width: 768px) {
    a {
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 601px) {
    /* TOPに戻るボタン */
    .top-button {
        position: fixed;
        right: 30px;
        bottom: 30px;
        min-width: 50px;
        aspect-ratio: 1/1;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 4vw;
        height: auto;
        transition: .3s;
        z-index: 10;
        background: rgb(179, 179, 179, 0);
        border-radius: 50%;
        cursor: pointer;
        .arrow{
            z-index: 11;
            opacity: 0;
            position: relative; /* 基準位置とする */
            transform: rotate(-90deg);
            margin-top: -35px;
        }
        .arrow::before,
        .arrow::after {
            content: ""; /* 疑似要素に指定必須 */
            width: 15px; /* 線の長さを指定 */
            height: 4px; /* 線の幅を指定 */
            display: inline-block; /* インラインブロックにする */
            border-radius: 2px; /* 線を角丸にする */
            background: white;   /* 線の色を指定 */
            position: absolute; /* 相対位置に指定 */
            right: 10px; /* 右から10pxの位置に配置 */
        }

        .arrow::before {
            top: calc(50% - 6.7px);     /* 数値は微調整してください */
            transform: rotate(45deg); /* 45度回転させる */
        }
        .arrow::after {
            bottom: calc(50% - 6.7px);   /* 数値は微調整してください */
            transform: rotate(-45deg); /* -45度回転させる */
        }
    }
}