/* 基本スタイルとモバイルデバイス用スタイル */
/* 全体の設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: "M PLUS 1p", sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "M PLUS Rounded 1c", sans-serif;
}

/* 赤文字 */
.importent-info {
    color: red;
}

/* フルスクリーン画像 */
.hero-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* スマートフォン以外の場合は mobile-img 非表示 */
.mobile-img {
    display: none;
}

/* スクロール提示 */
.scroll-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    z-index: 15;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    animation: bounce 2s infinite;
    transition: opacity 0.5s ease-in-out;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-15px);
    }

    60% {
        transform: translateX(-50%) translateY(-7px);
    }
}

/* メインコンテンツ */
.main-content {
    flex: 1 0 auto;
    width: 80%;
    max-width: 1200px;
    margin: 5rem auto;
    padding: 1rem 0;
    padding-top: 50vh;
}

/* セクション */
.features {
    margin: 5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
}

.features .card {
    margin: 2rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* カード */
.card-header h4 {
    margin: 0;
}

.card p {
    margin: 0;
}

.feature-card {
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card ul {
    color: #2c3e50;
    margin-left: 1rem;
}

/* 「Q&A」セクションのカードに対する特別設定 */
#section_QA .feature-card {
    background-color: white;
}

/* 画像カード */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 250px;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.1), rgba(44, 62, 80, 0.8));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.image-overlay p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.feature-card.image-card:hover .feature-image {
    transform: scale(1.05);
}

.feature-card.image-card:hover .image-overlay {
    opacity: 1;
}

.feature-card.image-card {
    padding: 0;
    overflow: hidden;
    position: relative;
}

/* 「料金」セクションの画像に対する特別設定 */
.card-body .feature-card.image-card {
    width: 80%;
}

/* セクションタイトル */
.inline-figure {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.inline-figure i {
    font-size: 2.5rem;
    color: #0d6efd;
}

.inline-figure h2 {
    margin: 0;
    color: #333;
}

/* セクションタイトル直後のブロック */
.alert-primary h4 {
    text-align: center;
    margin: 0;
}

/* 「オーダー方法」セクション用のカード */
.blue-bg {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 20px;
}

.order-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.order-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.order-card-title {
    font-weight: 700;
    color: #0d6efd;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.order-card-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    margin-bottom: 10px;
}

/* 「お支払い」セクション用のリング */
.payment-link {
    display: inline-block;
    color: #0d6efd;
    animation: gentleJump 2s infinite;
    margin-top: 1rem;
}

@keyframes gentleJump {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* 「Q&A」セクション用の吹き出し */
/* 吹き出し本体 */
.balloon1 {
    position: relative;
    padding: 20px;
    border-radius: 10px;
    color: #ffffff;
    background-color: #0888ff;
    margin-left: 110px;
    /* 左に余白を設ける */
    margin-bottom: 20px;
    margin-top: 20px;
}

/* 画像 - 絶対配置で左上に配置 */
.balloon1 .icon {
    position: absolute;
    left: -110px;
    top: 0;
}

/* 三角アイコン */
.balloon1::before {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    left: -15px;
    top: 20px;
    border-right: 15px solid #0888ff;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

/* 吹き出し本体 */
.balloon2 {
    position: relative;
    padding: 15px;
    border-radius: 10px;
    color: #ffffff;
    background-color: #6c757d;
    margin-right: 110px;
    /* 右に余白を設ける */
    margin-bottom: 20px;
}

/* 画像 - 絶対配置で右上に配置 */
.balloon2 .icon {
    position: absolute;
    right: -110px;
    top: 0;
}

/* 三角アイコン */
.balloon2::before {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    right: -15px;
    top: 20px;
    border-left: 15px solid #6c757d;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.balloon1 p,
.balloon2 p {
    text-align: left;
    font-family: "M PLUS Rounded 1c", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    font-size: 1.3rem;
}

.line-botton {
    text-align: left;
    margin-top: 20px;
}

/* フッター */
.footer {
    background-color: #0d6efd;
    color: white;
    text-align: center;
    padding: 3rem 1.5rem 1.5rem;
    margin-top: 2rem;
    position: relative;
    flex-shrink: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: #0d6efd;
    clip-path: path('M0,30 C150,0 250,40 400,20 C550,0 650,30 800,10 C950,-10 1000,20 1200,30 L1200,40 L0,40 Z');
}

/* 「ご協力者様一覧」セクション用 */
.offcanvas {
    height: 85vh !important;
    background-color: #cff4fcad;
}

.offcanvas-body .feature-card {
    background-color: white;
    margin: 2rem 0;
}

.link-primary {
    color: #048da8 !important;
}

.link-primary:hover {
    color: #56d0e9 !important;
}

/* パソコンデバイス用スタイル */
@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* タブレットデバイス用スタイル */
@media (min-width: 768px) {

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .image-container {
        min-height: 280px;
    }
}

/* モバイルデバイス上の画像カードスタイル */
@media (max-width: 767px) {

    .desktop-img {
        display: none;
    }

    .mobile-img {
        display: block;
    }

    .scroll-hint {
        font-size: 16px;
        bottom: 30px;
    }

    .content-section {
        padding: 20px;
    }


    .image-container {
        min-height: 200px;
    }

    .image-overlay {
        opacity: 1;
        background: linear-gradient(to bottom, rgba(44, 62, 80, 0.2), rgba(44, 62, 80, 0.9));
    }
}