@charset "utf-8";

/* common
------------------ */

* {
    margin: 0;
    padding: 0;
}

a {
    all: unset; /* すべてのプロパティをリセット */
    display: inline-block; /* 再設定 */
    cursor: pointer; /* 再設定 */
    color: #fff;
    text-decoration: underline;
    text-decoration-skip-ink: none;
}

body {
    background-color: #fff;
    font-size: 15px;
    color: #000;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

img {
    border: 0;
}

li {
    list-style-type: none;
}

/* メインビジュアル
------------------ */

.mv_wrap {
    margin-bottom: 6vw;
}

.mv_pc {
    width: 100vw;
    height: auto;
}

.mv_sp {
    display: none;
}

@media screen and (max-width: 798px) {
    .mv_wrap {
        margin-bottom: 4em;
    }

    .mv_pc {
        display: none;
    }

    .mv_sp {
        display: block;
        width: 100vw;
        height: auto;
    }
}

.thank {
    width: 91.25%;
    min-width: 365px;
    max-width: 1008px;
    margin: 0 auto;
    text-align: center;
    color: #e95504;
}

.thank_headline {
    font-size: clamp(30px, 7.5vw, 46px);
    color: #e95504;
    text-align: center;
    letter-spacing: 0.05em;
    margin-bottom: 2.43vw;
    line-height: 1.4;
}

.thank_headline_sub {
    font-size: clamp(18px, 2.36vw, 34px);
}

.thank_message {
    line-height: 2;
}

.thank_message_pc_p + .thank_message_pc_p {
    margin-top: 2em;
}

.thank_message_pc {
    margin-bottom: 2.43vw;
}

.thank_message_sp {
    display: none;
}

.signature {
    margin-top: 2em;
    line-height: 1.7;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.signature_position {
    font-size: 18px;
}

.signature_name {
    font-size: 30px;
}

.thank_image_pc {
    width: 100%;
    margin-top: 2em;
}

.thank_image_sp {
    display: none;
}

@media screen and (max-width: 798px) {
    .thank_message {
        font-size: 13.7px;
    }

    .thank_headline_sub {
        font-size: clamp(30px, 7.5vw, 46px);
    }

    .thank_headline_sub_style {
        display: block;
        font-size: clamp(18px, 4.5vw, 20px);
    }

    .thank_image_pc {
        display: none;
    }

    .thank_image_sp {
        display: block;
        width: 100vw;
        margin-left: -4.375%;
        margin-top: 2em;
    }
}

@media screen and (max-width: 970px) {
    .thank_message_pc {
        display: none;
    }

    .thank_message_sp {
        display: block;
        margin-bottom: 2.43vw;
    }

    .thank_message_sp_p + .thank_message_sp_p {
        margin-top: 2em;
    }

    .signature_position {
        font-size: 16px;
    }

    .signature_name {
        font-size: 20px;
    }
}

/* ヒストリー
------------------ */
.history {
    width: 91.25%;
    min-width: 365px;
    max-width: 1008px;
    margin: 0 auto 100px;
}

.history_headline {
    font-size: clamp(38px, 9.5vw, 50px);
    color: #e95504;
    text-align: center;
    margin-bottom: 2.43vw;
}

.history_frame {
    position: relative;
}

.frame_2,
.frame_3,
.frame_4,
.frame_5 {
    margin-top: -3.8%;
}

.frame_6 {
    margin-top: -14.5%;
    margin-left: -0.4%;
    margin-bottom: 4.86%;
}

.history_line {
    width: 100%;
}

.history_line.sp {
    display: none;
}

.history_item_wrap {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
}

.history_item_left,
.history_item_right {
    width: 47.62%;
}

.frame_1 .history_item_left,
.frame_2 .history_item_right,
.frame_3 .history_item_left,
.frame_4 .history_item_right,
.frame_5 .history_item_left,
.frame_6 .history_item_left {
    width: 37.5%;
}

.history_item_right {
    text-align: right;
}

.year {
    color: #e95504;
}

.year_content,
.news_content,
.history_note {
    word-break: keep-all;
    overflow-wrap: break-word;
}

.history_note {
    display: inline-block;
    color: #767676;
}

.history_note.orange {
    color: #e95504;
}

.history_item_ptn1 {
    font-size: clamp(9.7px, 2vw, 15px);
    line-height: 1.5;
    letter-spacing: 0.01em;
}

.history_item_ptn2 {
    color: #767676;
    font-size: clamp(8px, 1.5vw, 14px);
    line-height: 1.4;
    letter-spacing: 0.02em;
    font-weight: 400;
}

.history_image_wrap {
    width: 100%;
    display: flex;
    gap: 1em;
    margin-top: 1em;
}

.history_item_right .history_image_wrap {
    justify-content: flex-end;
}

.history_image {
    width: var(--target-size); /* CSS変数でサイズを設定 */
    height: auto;
}

.fadeIn {
    animation-name: fadeIn;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    opacity: 0;
}

.fadeInDelay {
    animation-name: fadeInDelay;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    opacity: 0;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDelay {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.news_item {
    word-break: keep-all;
}

.history_item_1 {
    margin-top: -5.25%;
}

.history_item_2,
.history_item_5 {
    margin-top: 12.5%;
}

.history_item_4 {
    margin-top: 18.5%;
}

.history_item_7 {
    margin-top: 6%;
}

.history_item_8.history_image_wrap {
    margin-top: 8%;
}

.history_item_9 {
    margin-top: 4%;
}

.history_item_10 {
    margin-top: 10%;
}

.history_item_12 {
    margin-top: -13%;
}

.history_item_13.history_image_wrap {
    margin-top: 10%;
}

.history_item_15 {
    margin-top: -20%;
}

.history_item_16 {
    margin-top: 10%;
}

.history_item_17 {
    margin-top: 27%;
}

.history_item_18 {
    margin-top: 10%;
}

.history_item_19 {
    margin-top: 28%;
}

.history_item_20 {
    margin-top: 8%;
}

.history_item_21 {
    margin-top: 18.5%;
}

.history_item_22 {
    margin-top: 8%;
}

.history_item_23 {
    margin-top: -15%;
}

.history_item_24.history_image_wrap {
    margin-top: 13%;
}

.history_item_26 {
    margin-top: 45%;
}

.history_item_27 {
    margin-top: 13%;
}

.history_item_28 {
    margin-top: -75%;
}

.history_item_29 {
    margin-top: 10%;
}

.history_item_30 {
    margin-top: 5%;
}

.history_item_31 {
    margin-top: 29%;
}

.history_item_32.history_image_wrap {
    margin-top: 10%;
}

.history_item_33 {
    margin-top: -41%;
}

.frame_7 .history_line.sp {
    display: none;
}

@media screen and (max-width: 798px) {
    .history {
        margin-bottom: 50px;
    }

    .frame_1 {
        margin-top: 6.75vw;
    }

    .frame_6 {
        margin-top: -16vw;
        margin-left: unset;
        margin-bottom: 4.86%;
    }

    .history_line.pc {
        display: none;
    }

    .history_line.sp {
        display: block;
    }

    .history_item_left,
    .history_item_right {
        width: 48%;
    }

    .history_image_wrap {
        margin-top: 2.37vw;
    }

    .history_item_1 {
        margin-top: -7vw;
    }

    .history_item_7 {
        margin-top: 1vw;
    }

    .history_item_9 {
        margin-top: 8.5vw;
    }

    .history_item_12 {
        margin-top: -14.5vw;
    }

    .history_item_15 {
        margin-top: -17vw;
    }

    .history_item_17 {
        margin-top: 12.5vw;
    }

    .history_item_19 {
        margin-top: 30vw;
    }

    .history_item_21 {
        margin-top: 5vw;
    }

    .history_item_23 {
        margin-top: -14vw;
    }

    .history_item_26 {
        margin-top: 30vw;
    }

    .history_item_28 {
        margin-top: -59vw;
    }

    .history_item_30 {
        margin-top: -6vw;
    }

    .history_item_31 {
        width: 95%;
        margin-left: 5%;
        margin-top: 21.5vw;
    }

    .history_item_33 {
        width: 110%;
        margin-top: -36vw;
    }

    .frame_7 .history_line.pc {
        display: none;
    }
    .frame_7 .history_line.sp {
        display: block;
    }
}

/* メッセージ
------------------ */
.message {
    background-color: #e95504;
}

.message_headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 293px;
    font-size: clamp(38px, 9.5vw, 50px);
    color: #fff;
    background-image: url(image/message_bg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    width: 100vw;
}

.messege_subtitle {
    font-size: 18px;
    display: block;
}

.message_area_wrap {
    min-height: 500px;
    position: relative;
    width: 100vw;
    overflow: hidden;
}

.message_area {
    display: flex;
    flex-direction: column;
    gap: 7.5px;
    position: relative;
    width: auto;
}

.row {
    display: flex;
    gap: 7.5px; /* カードの間隔 */
    position: relative;
    animation: LoopMessage 72s linear infinite;
    transition: transform 0.3s ease-in-out; /* スムーズなスライド */
}

/* ホバー時にアニメーションを停止 */
.row:hover {
    animation-play-state: paused;
}

@keyframes LoopMessage {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes LoopMessage_sp {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-300%);
    }
}

.row:nth-child(even) {
    animation-direction: reverse; /* 偶数行は逆方向に */
}

.card {
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 260 / 185;
    background: #fff;
    padding: 1rem;
    font-size: 13px;
    line-height: 1.7;
    box-sizing: border-box;
    cursor: pointer;
    border-radius: 10px;
}

.card_context {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4; /* 最大4行 */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.7;
}

.card_context.full {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: unset;
    overflow: auto;
    text-overflow: unset;
    font-size: 16px;
    line-height: 1.625;
}

.name_wrap {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.66;
    color: #e95504;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.arrow img {
    width: 55.5px;
    height: 55.5px;
}

.arrow-left {
    left: 6.5vw;
}

.arrow-right {
    right: 6.5vw;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.modal-content_wrap {
    max-width: 800px;
    width: 800px;
    min-height: 400px;
    position: relative;
    overflow-y: hidden; /* スクロールを無効にする */
    max-height: 80vh; /* モーダルの最大高さを設定 */
}

.modal-content {
    background: white;
    padding: 46.5px 80px 36.5px;
    max-width: 800px;
    width: 800px;
    min-height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    box-sizing: border-box;
    overflow-y: auto; /* スクロールを有効にする */
    max-height: 80vh; /* モーダルの最大高さを設定 */
}

.modal-close {
    position: absolute;
    top: 5px;
    right: 20px;
    cursor: pointer;
    font-size: 48px;
    color: #000;
    font-weight: 200;
}

.modal-message {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.modal-message .name_wrap {
    font-size: 16px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.modal-prev,
.modal-next {
    position: absolute;
    top: 50%;
    font-size: 24px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 25;
}

.modal-prev img,
.modal-next img {
    width: 45px;
    height: 45px;
}

.modal-prev {
    left: 0;
    transform: translateY(-50%);
}

.modal-next {
    right: 0;
    transform: translateY(-50%);
}

.messeage_thanks_p {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 91.25%;
    height: 293px;
    min-width: 365px;
    max-width: 1008px;
    font-size: clamp(17px, 2.8vw, 29px);
    line-height: 1.79;
    color: #fff;
    word-break: keep-all;
    text-align: center;
    background-image: url(image/brackets.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    margin: 0 auto;
}

.messeage_thanks_p_en {
    font-size: 16px;
}

@media screen and (max-width: 600px) {
    .messeage_thanks_p {
        height: 193px;
        background-image: url(image/brackets_sp.png);
        background-size: 100% auto;
        background-position: top center;
    }

    .message_thanks {
        padding-bottom: 4vw;
    }
}

@media screen and (max-width: 798px) {
    .message_headline {
        height: 193px;
        background-size: 200%;
    }

    .row {
        animation: LoopMessage_sp 60s linear infinite;
    }
}

@media screen and (max-width: 970px) {
    .modal-content_wrap {
        width: 91.25%;
    }

    .modal-content {
        width: 100%;
        padding-left: 5%;
        padding-right: 5%;
    }

    .arrow img {
        width: 40.4px;
        height: 40.4px;
    }

    .modal-close {
        top: -5px;
        right: 10px;
    }

    .modal-message {
        gap: 20px;
    }

    .messeage_thanks_p {
        line-height: 1.5;
    }

    .messeage_thanks_p_en {
        font-size: 12px;
    }
}

/* フッター
------------------ */
.footer {
    width: 100vw;
    overflow-x: hidden;
}

.footer_image_wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    cursor: grab;
    scroll-behavior: smooth;
}

.footer_image_wrap::-webkit-scrollbar {
    height: 3px; /* 横スクロールバーの高さ */
}

.footer_image_wrap::-webkit-scrollbar-track {
    background: #e95504; /* スクロールバーの背景色 */
    border-radius: 5px; /* 丸みを追加 */
}

.footer_image_wrap::-webkit-scrollbar-thumb {
    background: #fff; /* スクロールバーのハンドル部分の色 */
    border-radius: 5px; /* 丸みを追加 */
}

.footer_image.dragging {
    cursor: grabbing; /* ドラッグ中のカーソル */
}

.footer_image_container {
    position: relative;
}

.footer_image {
    display: block;
    user-select: none; /* テキスト選択を無効化 */
    -webkit-user-drag: none; /* 画像のドラッグを無効化 */
    pointer-events: none; /* マウスイベントを透過 (optional) */
    width: auto;
    height: 42.2vw;
}

.kamakao {
    position: absolute;
    cursor: pointer;
    width: 4.5vw;
    height: 3vw;
    top: 1.5vw;
    left: 62vw;
    background-image: url("image/kamakao.png");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease; /* アニメーション効果 */
    opacity: 0;
    transform: rotate(20deg); /* 右に30度傾ける */
}

.kamakao:hover {
    opacity: 1; /* 完全に表示 */
}

.takarajima {
    position: absolute;
    cursor: pointer;
    width: 22vw;
    height: 16vw;
    top: 20vw;
    left: 320vw;
}

.popup {
    display: none; /* 初期状態は非表示 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 背景を半透明に */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.popup-content video {
    max-width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 48px;
    color: #fff;
    font-weight: 200;
}

.footer_menu_wrap {
    height: 73px;
    background-color: #e95504;
}

.footer_menu {
    margin: 0 auto;
    width: 91.25%;
    height: 100%;
    min-width: 365px;
    max-width: 1008px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer_logo {
    width: 191px;
}

.footer_menu_item {
    font-weight: 600;
    display: flex;
    gap: 2em;
    font-size: 12px;
}

@media screen and (max-width: 798px) {
    .footer_image {
        height: 77vw;
    }

    .kamakao {
        width: 8.21vw;
        height: 5.47vw;
        top: 2vw;
        left: 112vw;
    }

    .takarajima {
        width: 40vw;
        height: 25vw;
        top: 40vw;
        left: 585vw;
    }

    .footer_menu_wrap {
        height: 123px;
    }

    .footer_menu {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
    }

    .footer_logo {
        width: 220px;
    }

    .footer_menu_item {
        font-size: 14px;
    }
}
