html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
}

/* ヒーローエリア背景 */
.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../images/fv-bg.webp');
    background-size: cover;
    background-position: center;
}

/* セクションタイトル */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 800;
    color: #1E3A8A;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background-color: #F97316;
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.5rem;
    }
}

/* ページ内スクロール位置調整 */
section[id] {
    scroll-margin-top: 90px;
}

@media (max-width: 767px) {
    section[id] {
        scroll-margin-top: 60px;
    }
}

/* PC/SPでの改行切り替え */
.br-sp {
    display: none;
}
.br-pc {
    display: inline;
}

@media (max-width: 767px) {
    .br-sp {
        display: inline;
    }
    .br-pc {
        display: none;
    }
}

/* 買取品目カード画像 */
.item-card-img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    padding-top: 12px;
}

.item-card-img.has-bg-black {
    background-color: #000;
}

.item-card-img.has-bg-221a16 {
    background-color: #221a16;
}

/* その他カード（PC表示で2列分・中央配置） */
@media (min-width: 768px) {
    .item-card-other {
        grid-column: 2 / span 2;
    }
    .item-card-other .item-card-img {
        height: 300px;
    }
}

/* ヘッダーロゴのレスポンシブサイズ */
.header-logo {
    width: 360px;
    height: auto;
    display: block;
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .header-logo {
        width: 250px;
    }
}

@media (max-width: 767px) {
    .header-logo {
        width: 200px;
    }
}

@media (min-width: 768px) {
    .pd-header {
        padding: 1.5rem 0;
    }
}

/* ユーティリティクラス */
.text-point {
    margin-top: 3rem;
    font-weight: 700;
    color: #1E3A8A;
    text-decoration: underline;
}

.font-yusei {
    font-family: 'Yusei Magic', sans-serif;
}

.ls01 {
    letter-spacing: 0.1em;
}

.mb3r {
    margin-bottom: 3rem;
}

.mw400 {
    max-width: 400px;
    margin: 50px auto;
}

/* ==========================================================================
   画面右下 お問い合わせ固定バッジ
   ========================================================================== */
.floating-contact-badge {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    background-color: #F97316;
    color: #fff !important;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
    text-decoration: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.floating-contact-badge.is-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-contact-badge:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.6);
}

.floating-contact-badge i {
    font-size: 24px;
    margin-bottom: 2px;
}

.floating-contact-badge span {
    font-size: 11px;
    font-weight: bold;
    line-height: 1.2;
    text-align: center;
}

@media (max-width: 767px) {
    .floating-contact-badge {
        bottom: 80px;
        right: 15px;
        width: 72px;
        height: 72px;
    }
    .floating-contact-badge i {
        font-size: 20px;
    }
    .floating-contact-badge span {
        font-size: 10px;
    }
}

/* ==========================================================================
   見出し横人物アニメーション CSS
   ========================================================================== */
.dynamic-heading {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 300px;
}

.heading-person {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.heading-person img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.heading-person.left-person {
    left: 0;
    animation: wobbleLeft 4s ease-in-out infinite;
}

.heading-person.right-person {
    right: 0;
    animation: wobbleRight 3s ease-in-out infinite;
}

@keyframes wobbleLeft {
    0%, 100% { transform: translateY(-50%) translateX(0) rotate(0deg); opacity: 0.95; }
    25% { transform: translateY(-50%) translateX(-8px) rotate(-3deg); opacity: 1; }
    75% { transform: translateY(-50%) translateX(5px) rotate(3deg); opacity: 0.9; }
}

@keyframes wobbleRight {
    0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.9; }
    30% { transform: translateY(-55%) translateX(3px); opacity: 1; }
    70% { transform: translateY(-45%) translateX(-5px); opacity: 0.95; }
}

/* タブレット調整（1024px以下） */
@media (max-width: 1024px) {
    .dynamic-heading {
        padding: 0 140px;
    }
    .heading-person {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }
}

/* スマホ調整（768px以下） */
@media (max-width: 768px) {
    .dynamic-heading {
        display: inline-flex;
        padding: 0 95px;
        font-size: 1rem;
        white-space: nowrap;
    }

    .heading-person {
        position: absolute;
        top: 10%;
        transform: translateY(-50%);
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .heading-person.left-person { left: -10px; }
    .heading-person.right-person { right: -10px; }
}

/* ==========================================================================
   PCヘッダー用 SNSアイコン（背景枠なし・可変サイズ）
   ========================================================================== */
.header-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    line-height: 1;
    transition: transform 0.2s ease, opacity 0.2s ease;
    margin: 0 8px;
}

@media (min-width: 1024px) and (max-width: 1280px) {
    .header-icon-link {
        font-size: 1.75rem;
        margin: 0 4px;
    }
}

.header-icon-link:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.header-icon-line { color: #06C755; }
.header-icon-instagram { color: #E4405F; }

/* ==========================================================================
   モバイルメニュー用 SNSアイコンカラー設定
   ========================================================================== */
.icon-line { color: #06C755; }
.icon-instagram { color: #E4405F; }


/* ==========================================================================
   Instagram 訴求バナー（買取の流れ最下部用・縁なしフラット版）
   ========================================================================== */
.insta-banner-card {
    background-color: #fdf2f4;
    border: none;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    text-align: center;
    max-width: 50rem;
    margin: 3rem auto 0;
}

@media (min-width: 768px) {
    .insta-banner-card {
        flex-direction: row;
        text-align: left;
    }
}

.insta-banner-badge {
    background-color: #ffffff;
    color: #E4405F;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.insta-banner-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #1E3A8A;
}

.insta-banner-desc {
    font-size: 0.875rem;
    color: #555555;
}

.insta-banner-btn {
    background-color: #E4405F;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.insta-banner-btn:hover {
    background-color: #d03350;
    transform: translateY(-2px);
}

/* ==========================================================================
   お持ち込み買取の流れ（SP・PC完全フラットデザイン版）
   ========================================================================== */
.flow-step-list {
    max-width: 52rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* スマホ時の全体的な間隔 */
}

.flow-step-card {
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

/* 各ステップ間の下矢印 */
.flow-step-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #1E3A8A;
    font-size: 1.25rem;
    margin: 0.5rem 0;
}

.flow-step-img-box {
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #f3f4f6;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.06);
}

.flow-step-img-box img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

/* テキストコンテンツエリア */
.flow-step-content {
    width: 100%;
    text-align: left;
}

/* STEPバッジ */
.flow-step-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #1E3A8A;
    /*#F97316 オレンジ*/
    color: #ffffff;
    font-weight: 700;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.flow-step-badge .num {
    color: #ffffff;
    font-weight: 900;
    font-size: 1.125rem;
}

/* 見出し */
.flow-step-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1E3A8A;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

/* 説明テキスト */
.flow-step-desc {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.75;
}

@media (min-width: 768px) {
    .flow-step-list {
        gap: 1.5rem;
    }

    .flow-step-card {
        flex-direction: row;
        gap: 2.25rem;
    }

    .flow-step-img-box {
        width: 42%;
        flex-shrink: 0;
    }

    .flow-step-content {
        width: 58%;
    }

    .flow-step-heading {
        font-size: 1.375rem;
    }

    .flow-step-arrow {
        font-size: 1.75rem;
        margin: 0.75rem 0;
    }
}

/* ==========================================================================
   個人情報保護案内
   ========================================================================== */
.security-notice-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 42rem;
    margin: 3.5rem auto 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    text-align: left; 
}

.security-notice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

/* アイコンバッジ */
.security-icon-wrap {
    width: 2.75rem;
    height: 2.75rem;
    background-color: #e0f2fe;
    color: #0284c7;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ラベルタグ */
.security-tag {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #0284c7;
    letter-spacing: 0.05em;
    margin-bottom: 0.125rem;
}

/* メイン見出し */
.security-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: #1E3A8A;
    line-height: 1.35;
    margin: 0;
}

/* 本文 */
.security-desc {
    font-size: 0.9375rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* 重要テキストのハイライトマーカー */
.security-desc strong {
    color: #0f172a;
    font-weight: 800;
    background: linear-gradient(transparent 60%, #bae6fd 60%);
}

/* PC表示（768px以上）の調整 */
@media (min-width: 768px) {
    .security-notice-card {
        padding: 1.75rem 2rem;
        max-width: 800px;
    }

    .security-title {
        font-size: 1.25rem;
    }

    .security-desc {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
.security-notice-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.875rem;
    flex-direction: column;
    text-align: center;
}
}

/* ==========================================================================
   タイトル内の「3STEPS」強調デザイン
   ========================================================================== */
.flow-title-highlight {
    color: #F97316;
    font-weight: 900;
    margin-left: 0.2em;
    display: inline-block;
}

.flow-title-highlight .num {
    font-size: 1.5em;
    line-height: 1;
    vertical-align: -0.05em;
}