html {
    font-family: "ヒラギノ丸ゴ Pro W4", "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "HG丸ｺﾞｼｯｸM-PRO", "HGMaruGothicMPRO","游明朝", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "ＭＳ Ｐ明朝", "MS PMincho", serif;
    overflow-x: hidden;
    overscroll-behavior: scroll;
    min-width: 350px;
    padding: 0;
    margin: 0;
}

body {
    min-width: 350px;
    max-width:100%;
    padding: 0;
    background-color: #fff5f0;
}


.top_banner {
	width: 100vw;
    padding: 0px;
    border: 0;
    margin: 0px;
    height:calc(1644 / 2920 * 100vw);
    padding: 0;
    /*max-width:calc((100vh - 58px) * (2920/1644));*/
    max-width: 100vw;
    max-height:calc(100vh - 58px);
    background: url(../image/top1.jpg) no-repeat;
    background-size: cover;
    background-position: right 0px bottom 3px;
    position: relative;
    transition:background-image 0.5s;

    &::after {
        content: "";
        display: inline-block;
        background: url(../image/top_banner_upper.png);
        content: "";
        background-size: cover;
        width: 100%;
        height: calc(100vw * (719 / 2562));
        position: absolute;
        left: -5px;
        top: -5px;
        padding: 0;
        margin: 0;
    }
}


#banner_name {
    width: 200px;
    height: 30px;
    overflow: hidden;
    white-space:nowrap;
    font-size: 16pt;
    font-weight:900;
    padding: 10px;
    border: 0;
    margin: 0;
    color: white;
    text-align: center;
    border-bottom: 1.5px solid rgb(18,134,207);
    background-color: rgba(0,0,0,0.5);
    position: absolute;
    right: 0;
    bottom: 20px;
}


.color_box {
    background-color: rgb(33,150,200);
    border-radius: 20px;
    color: white;
    width: 95%;
    margin: 30px auto 30px 15px;
    padding: 10px;

    h1 {
        font-family: "Kaisei Opti", serif;
        font-size: 25pt;
        font-weight: 800;
        font-style: normal;
    }
}

.color_minibox {
    font-family: "Kaisei Opti", serif;
    background-color: white;
    border-radius: 10px;
    color: #444;
    width: 95%;
    margin: 10px auto;
    padding: 10px;
    white-space: nowrap;
    font-size: clamp(20px, 3.0vw, 30px);
    border: 1px solid #ccc;
    overflow-y: visible;
    line-height: clamp(20px, 3.0vw, 30px);      /* 高さと同じにして縦方向中央 */

    img {
        height: clamp(20px, 3.0vw, 30px);
        vertical-align: middle;
    }
}

.media {
    display: flex;
    flex-direction: column;      /* まずは縦並び（モバイル） */
    gap: 1rem;
    margin: 10px;
}

.media > img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.media__body {
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    line-height: 1.6;
}

/* 画面が広くなったら横並びに */
@media (min-width: 640px) {
    .media {
        flex-direction: row;       /* 横並び */
        align-items: flex-start;
    }
    .media > img {
        max-width: 50%;
    }
    .media__body {
        flex: 1;
    }
}


.cards {
    display: flex;
    flex-direction: column;  /* モバイルでは縦並び */
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    height: 100%;

    img {
        max-width: 200px;
        height: auto;
        border-radius: 8px;
    }
    p {
        width: 80vw;
        max-width: 500px;
        text-align: left;
        font-size: 20px;
    }
}

/* 矢印画像の調整 */
.arrow {
    width: 44px;     /* サイズはお好みで */
    height: auto;
}

/* 横並び時 */
@media (min-width: 768px) {
    .cards {
        display: flex;
        flex-direction: row;   /* 横並びに */
        justify-content: center;
        align-items: center;
        gap: 1rem;
        vertical-align: top;

        .card {
            width: 25vw;
            max-width: 400px;
        }

        p {
            height: 100px;
            width: 25vw;
            max-width: 250px;
            text-align: left;
            font-size: 16px;
        }
    }

    .arrow {
        transform: rotate(0);  /* 横方向の矢印 */
    }
}

/* 縦並び時は下向きに回転させたい場合 */
@media (max-width: 767px) {
    .arrow {
        transform: rotate(90deg);
    }
}

/* ボックスをまとめるラッパー */
.boxes {
    display: flex;
    flex-direction: column; /* デフォルトは縦並び */
    gap: 1.5rem;
}

/* fieldsetの基本スタイル */
.box {
    border: 3px solid #777;
    border-radius: 10px;      /* 角丸 */
    padding: 1.5rem 1rem 1rem;
    background: #fff;
    flex: 1;                 /* 横並び時に均等に広がる */

    .phone {
        margin:10px;
        margin-left: 15%;
        font-size: clamp(20px, 5.0vw, 100px);
        font-weight: 900;
    }
}
.op_time {
    margin:10px;
    margin-left: 18%;
    font-size: clamp(15px, 3.0vw, 100px);
    font-weight: 900;
}


/* legendのスタイル */
.box-title {
    font-size: 120%;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    background: #007acc;     /* タイトルの背景色 */
    color: #fff;             /* 文字色 */
    border-radius: 20px;
    white-space: nowrap;
    min-width: 100px;
    text-align: center;
}

/* 横並びに切り替え（画面幅が768px以上のとき） */
@media (min-width: 768px) {
    .boxes {
        flex-direction: row;   /* 横並び */
        .box {
            .phone {
                font-size: clamp(20px, 3.0vw, 100px);
            }
            .op_time {
                font-size: clamp(15px, 2.0vw, 100px);
            }
        }
    }
}

.footer01 {
    color: #fff;
    background: rgb(58,174,237);
    padding: 10px;
    text-align: center;
    font-size: 80%;
    line-height: 10px;
}

.footer01 a {
    color: #fff;
    text-decoration: none;
}

.footer01 a:hover {
    text-decoration: underline;
}

.footer01 .menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer01 .menu li {
    margin: 0;
    padding: 0 20px 0 0;
}

.footer01 .copyright {
    margin: 0;
    font-size: 70%;
    padding: 15px 0 0 0;
}


.more_info {
  position:absolute;
  bottom:10px;
  left:50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  font-size: 70%;
  height:30px;
  display: flex;
  padding: 0px 10px;
  min-width: 100px;
  border: 2px solid rgb(255,180,8);
  color: rgb(255,180,8);
  background-color: white;
  margin: 0px 20px;
  white-space:nowrap;
  border-radius: 1.5rem;
  justify-content: center;
  align-items: center;
  transition: 1s;
  cursor: pointer;
}

.info_list {
    margin: 0 auto;
    position: relative;
    height:165px;
    max-height:165px;
    overflow: hidden;
    transition: 1s;
    width: 90%;

    dl {
        padding: 0.1em 0.1em;
        border-bottom: 1.5px solid #2196C8;
        display: flex;
        flex-wrap: wrap;
        &:hover{
            border-bottom: 2px solid #2196C8;
            background-color: #eef;
            cursor: pointer;
        }
    }

    dt {
        padding-bottom: 0;
        font-size: 90%;
        width: 160px;
        height: 20px;
        vertical-align: bottom;
    }

    dd {
        padding-bottom: 0;
        max-width: 95%;
        font-size: 90%;
        width: 95%;
    }

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to top,rgba(255,255,255,1) 10%, rgba(255,255,255,0) 60%); /* 徐々に透明にする */
        transition: 1s;
        pointer-events: none;
    }

    .hidden::after {
        display: none;
        transition: 1s;
    }
}

.more_info {
    position:absolute;
    bottom:10px;
    left:50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    font-size: 70%;
    height:30px;
    display: flex;
    padding: 0px 10px;
    min-width: 100px;
    border: 2px solid rgb(255,180,8);
    color: rgb(255,180,8);
    background-color: white;
    margin: 0px 20px;
    white-space:nowrap;
    border-radius: 1.5rem;
    justify-content: center;
    align-items: center;
    transition: 1s;
    cursor: pointer;
}


@media screen and (min-width: 600px) {

    .info_list {
        dt {
            clear: left;
            float: left;
            font-size: 105%;
            height: 20px;
            vertical-align: bottom;
            width: 160px;
        }

        dd {
            font-size: 105%;
            margin-left: 0.3em;
            width: calc(100% - 180px);
        }
    }
}


.agreement {
    counter-reset: h1;
    font-size: clamp(10px, 1.5vw, 16px);

    h1 {
        counter-increment: h1;
        counter-reset: h2;
        font-weight:800;
        font-size: 120%;
    }

    h1:before {
        content: counter(h1) ". ";
    }

    h2 {
        counter-increment: h2;
        counter-reset: h3;
        margin-left: 15px;
        font-weight:800;
        font-size: 110%;
        margin-top: 30px;
    }

    h2:before {
        content: counter(h1) "." counter(h2) ". ";
    }

    h3 {
        counter-increment: h3;
        margin-left: 18px;
        font-weight:800;
        font-size: 105%;
    }

    h3:before {
        content: counter(h1) "." counter(h2) "." counter(h3) ". " ;
    }

    p {
        margin-left: 2rem;
        text-indent: 1rem;
    }
}


.deal {
    counter-reset: h1;
    font-size: clamp(10px, 1.5vw, 16px);

    h1 {
        counter-increment: h1;
        counter-reset: h2;
        font-weight:800;
        font-size: 120%;
    }

    h1:before {
        content: counter(h1) ". ";
    }
    p {
        margin-left: 3rem;
        text-indent: -1rem;
    }
}

.kamimobi {
    background-color: #f9f7f3;
    color:#444;
    border: 2px solid #f9f7f3;
    margin: 20px 10px 10px auto;
    border-radius: 20px;
    padding:10px;
    display: flex;
    width:80%;
    min-width: 250px;
    font-size: clamp(12px, 1.5vw, 16px);
    cursor:pointer;

    &:hover {
        border: 2px solid #e1f047;
    }
}