/* HeldLine 共通（全ページ）: ヘッダー（お問い合わせ・言語）、言語の切り替え、ストアのバッジ、SNS */

.hidden {
    display: none !important;
}

body {
    padding-top: 60px;
}

/* 英語・スペイン語の時は、LP（span方式のページ）の本文の書体を欧文に寄せる */
html[lang="en"] body.hl-span-page,
html[lang="es"] body.hl-span-page {
    font-family: 'DM Sans', 'Zen Kaku Gothic New', sans-serif;
}

/* ヘッダー */
.hl-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
    background: rgba(250, 251, 252, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e8ebf0;
    font-family: 'DM Sans', 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
    line-height: 1.4;
}

.hl-logo {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: #1a2332;
    text-decoration: none;
    white-space: nowrap;
}

.hl-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hl-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 20px;
    background: #0d9488;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.hl-contact:hover,
.hl-contact:focus-visible {
    background: #0b7f75;
}

.hl-contact svg {
    width: 16px;
    height: 16px;
    flex: none;
}

.hl-lang {
    display: flex;
    padding: 3px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e8ebf0;
}

.hl-lang button {
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 17px;
    background: none;
    font: 500 13px 'DM Sans', 'Zen Kaku Gothic New', sans-serif;
    color: #5a6577;
    cursor: pointer;
}

.hl-lang button.active {
    background: #0d9488;
    color: #fff;
}

/* スマホの幅: 言語は選択メニューにして、「お問い合わせ」の文字が見える幅を残す */
.hl-lang-select {
    display: none;
    min-height: 40px;
    padding: 0 30px 0 12px;
    border: 1px solid #e8ebf0;
    border-radius: 20px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6577' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
    -webkit-appearance: none;
    appearance: none;
    font: 500 13px 'DM Sans', 'Zen Kaku Gothic New', sans-serif;
    color: #1a2332;
}

@media (max-width: 559px) {
    .hl-lang {
        display: none;
    }
    .hl-lang-select {
        display: inline-block;
    }
}

/* とても狭い画面だけ、お問い合わせをアイコンにする（読み上げ用の名前は残す） */
@media (max-width: 359px) {
    .hl-contact {
        padding: 0 11px;
    }
    .hl-contact-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

@media (max-width: 340px) {
    .hl-header {
        padding: 0 10px;
    }
    .hl-logo {
        font-size: 15px;
    }
    .hl-lang button {
        padding: 0 8px;
    }
}

/* 言語の塊を持つページ（サポート・規約・ポリシー）。既定は日本語。
   html要素（lang属性を切り替える）を巻き込まないよう、body の子孫に限る */
body [lang="en"],
body [lang="es"] {
    display: none;
}

body.en [lang="ja"],
body.es [lang="ja"],
body.es [lang="en"] {
    display: none;
}

body.en [lang="en"],
body.es [lang="es"] {
    display: block;
}

/* ストアのバッジ（公式のバッジ。見える部分の高さを48pxにそろえる） */
.store-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 8px 0 4px;
}

.store-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.store-badge img {
    display: block;
    width: auto;
}

.store-badge--apple img {
    height: 48px;
}

/* Google Play のバッジは画像の周りに余白（縦横とも約16%）を含むので、その分を打ち消す */
.store-badge--play img {
    height: 71.4px;
    margin: -11.7px;
}

.store-badge.is-soon {
    cursor: default;
}

.store-badge.is-soon img {
    opacity: 0.45;
}

.store-soon {
    position: absolute;
    top: -12px;
    right: -8px;
    padding: 2px 9px;
    border-radius: 10px;
    background: #ff8c69;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

.store-legal {
    font-size: 11px;
    color: #8d95a3;
    line-height: 1.6;
    margin-top: 12px;
}

/* SNS（site.js の設定でURLを入れたものだけ表示する） */
.hl-social {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 12px 0;
}

.hl-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #5a6577;
    border: 1px solid #e8ebf0;
}

.hl-social a:hover {
    color: #0d9488;
    border-color: #0d9488;
}

.hl-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* 翻訳版の注記（スペイン語の規約・ポリシー） */
.translation-note {
    font-size: 13px;
    color: #5a6577;
    margin: 0 0 16px;
}
