/* ==========================================================
   ONE SONG 納品ページ専用CSS (onesong-delivery.css)
   配置: /onesong/assets/css/onesong-delivery.css
   ========================================================== */

/* ---- ベース変数 ---- */
.osd-page {
    --osd-accent:    #e07a5f;
    --osd-accent2:   #c9a96e;
    --osd-bg:        #faf8f5;
    --osd-text:      #2c2c2c;
    --osd-muted:     #777;
    --osd-border:    #e5e0d8;
    --osd-radius:    12px;
    --osd-section-py: 80px;

    background: var(--osd-bg);
    color: var(--osd-text);
    font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
    line-height: 1.9;
}

/* ---- 共通セクション ---- */
.osd-section__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--osd-section-py) 24px;
}

.osd-section__label {
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--osd-accent);
    margin: 0 0 8px;
}

.osd-section__title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    margin: 0 0 32px;
    line-height: 1.4;
}

/* ---- ① ファーストビュー ---- */
.osd-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.osd-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
    transition: transform 8s ease;
}

.osd-hero:hover .osd-hero__bg { transform: scale(1); }

.osd-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}

.osd-hero__inner {
    position: relative;
    z-index: 1;
    padding: 48px 32px 56px;
    max-width: 800px;
    color: #fff;
}

.osd-hero__name {
    font-size: 13px;
    letter-spacing: .12em;
    opacity: .85;
    margin: 0 0 8px;
}

.osd-hero__title {
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.osd-hero__sub {
    font-size: clamp(14px, 2.5vw, 18px);
    opacity: .9;
    margin: 0;
}

/* ---- 再生エリア ---- */
.osd-player {
    background: #fff;
    border-bottom: 1px solid var(--osd-border);
}

.osd-player__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px;
}

.osd-player__embed iframe {
    border-radius: 8px;
}

.osd-player__audio {
    width: 100%;
    border-radius: 8px;
}

/* ---- ② ライナーノーツ ---- */
.osd-liner {
    background: #fff;
    border-bottom: 1px solid var(--osd-border);
}

.osd-liner__text {
    font-size: 16px;
    line-height: 2.0;
    color: #444;
    padding: 24px 28px;
    background: var(--osd-bg);
    border-left: 3px solid var(--osd-accent);
    border-radius: 0 8px 8px 0;
}

/* ---- ③ 歌詞 ---- */
.osd-lyrics {
    background: var(--osd-bg);
    border-top: 1px solid var(--osd-border);
    border-bottom: 1px solid var(--osd-border);
}

/* 歌詞：コンパクト2段表示 */
.osd-lyrics__text {
    font-size: 13px;
    line-height: 1.75;
    white-space: pre-wrap;
    color: #333;
    background: #fff;
    padding: 24px 28px;
    border-radius: var(--osd-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);

    /* 2段組 */
    column-count: 2;
    column-gap: 32px;
    column-rule: 1px solid #e5e0d8;
}

@media (max-width: 600px) {
    .osd-lyrics__text {
        column-count: 1;
        font-size: 13px;
    }
}
/* ---- ④ ダウンロード ---- */
.osd-download {
    background: #fff;
    border-bottom: 1px solid var(--osd-border);
}

.osd-download__inner {
    text-align: center;
}

.osd-download__note {
    color: var(--osd-muted);
    font-size: 14px;
    margin: -16px 0 28px;
}

.osd-download__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
    margin-bottom: 20px;
}

.osd-download__expiry {
    font-size: 12px;
    color: var(--osd-muted);
    margin: 0;
}

/* ---- ⑤ SNSシェア ---- */
.osd-share {
    background: var(--osd-bg);
    border-bottom: 1px solid var(--osd-border);
}

.osd-share__inner { text-align: center; }

.osd-share__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.osd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    color: #fff;
}
.osd-share-btn:hover { opacity: .85; transform: translateY(-2px); }
.osd-share-btn--x    { background: #000; }
.osd-share-btn--line { background: #06C755; }
.osd-share-btn--fb   { background: #1877F2; }

.osd-share__copy { text-align: left; max-width: 560px; margin: 0 auto; }

.osd-share__copy-label {
    font-size: 12px;
    color: var(--osd-muted);
    margin: 0 0 8px;
    letter-spacing: .05em;
}

.osd-share__copy-box {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--osd-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

#osd-share-text {
    flex: 1;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    word-break: break-all;
    line-height: 1.6;
}

.osd-share__copy-btn {
    padding: 10px 18px;
    background: var(--osd-accent);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.osd-share__copy-btn:hover { background: #c5694e; }

/* ---- ⑥ ONE SONG紹介 ---- */
.osd-promo {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    color: #fff;
    text-align: center;
}

.osd-promo__inner {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--osd-section-py) 24px;
}

.osd-promo__eyebrow {
    font-size: 13px;
    letter-spacing: .2em;
    color: var(--osd-accent2);
    margin: 0 0 12px;
}

.osd-promo__title {
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 700;
    margin: 0 0 20px;
    line-height: 1.3;
}

.osd-promo__text {
    font-size: 15px;
    line-height: 2.0;
    color: rgba(255,255,255,.8);
    margin: 0 0 36px;
}

.osd-promo__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

/* ---- 期限切れ画面 ---- */
.osd-expired {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--osd-bg);
}

.osd-expired__inner {
    text-align: center;
    padding: 48px 24px;
    max-width: 480px;
}

.osd-expired__icon {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: .5;
}

.osd-expired__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 14px;
}

.osd-expired__text {
    color: var(--osd-muted);
    line-height: 1.9;
    margin: 0 0 32px;
}

/* ---- 共通ボタン ---- */
.osd-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity .2s, transform .2s;
    cursor: pointer;
}
.osd-btn:hover { opacity: .85; transform: translateY(-2px); }

.osd-btn--primary {
    background: var(--osd-accent);
    color: #fff;
}

.osd-btn--outline {
    border: 2px solid rgba(255,255,255,.5);
    color: #fff;
}
.osd-btn--outline:hover { border-color: #fff; }

.osd-btn--download {
    background: #f5f0eb;
    color: var(--osd-text);
    border: 1px solid var(--osd-border);
    font-size: 14px;
    padding: 12px 24px;
}

.osd-btn--pdf { border-color: var(--osd-accent); color: var(--osd-accent); }

.osd-btn__icon { font-size: 16px; }

/* ---- レスポンシブ ---- */
@media (max-width: 600px) {
    .osd-hero { min-height: 50vh; }
    .osd-hero__inner { padding: 32px 20px 40px; }
    .osd-section__inner { padding: 56px 20px; }
    .osd-download__buttons,
    .osd-promo__buttons { flex-direction: column; align-items: center; }
    .osd-btn { width: 100%; max-width: 320px; justify-content: center; }
    .osd-share__buttons { gap: 10px; }
    .osd-share-btn { font-size: 13px; padding: 10px 18px; }
}
/* ==========================================================
   onesong-delivery.css への追記分
   既存CSSの末尾に貼り付けてください
   ========================================================== */

/* ---- ライナーノーツ：セクション高さを抑える ---- */
.osd-liner__section-inner {
    padding-top: 48px;
    padding-bottom: 48px;
}
.osd-liner__title {
    margin-bottom: 16px;  /* デフォルト32pxから縮小 */
}
.osd-liner__text {
    font-size: 15px;
    line-height: 1.85;   /* デフォルト2.0から少し詰める */
    color: #444;
    padding: 18px 24px;
    background: var(--osd-bg);
    border-left: 3px solid var(--osd-accent);
    border-radius: 0 8px 8px 0;
}

/* ---- 音源フォーマット説明 ---- */
.osd-format-guide {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 auto 28px;
    max-width: 520px;
    text-align: left;
}

.osd-format-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--osd-border);
    border-radius: 10px;
    padding: 14px 18px;
}

.osd-format-badge {
    flex-shrink: 0;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-top: 2px;
}

.osd-format-badge--mp3 {
    background: #fff0eb;
    color: var(--osd-accent);
    border: 1px solid #f5c9b8;
}

.osd-format-badge--wav {
    background: #f0f4ff;
    color: #4466cc;
    border: 1px solid #c8d4f8;
}

.osd-format-desc {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.osd-format-desc strong {
    font-size: 13px;
    color: var(--osd-text);
    font-weight: 700;
}

.osd-format-desc span {
    font-size: 12px;
    color: var(--osd-muted);
    line-height: 1.7;
}

/* ---- 歌詞カードボタン ---- */
.osd-btn--lyric {
    border-color: #b8860b;
    color: #8b4513;
    background: #fdf8ee;
}
.osd-btn--lyric:hover {
    background: #f5ead0;
}

/* ---- レスポンシブ対応 ---- */
@media (max-width: 600px) {
    .osd-format-guide { max-width: 100%; }
    .osd-format-item { flex-direction: column; gap: 8px; }
}
/* ==========================================================
   onesong-delivery.css 追記分
   既存CSSの末尾に追加してください
   ========================================================== */

/* ---- 公開期限バナー（上部・7日以内） ---- */
.osd-expiry-banner {
    background: #fff3cd;
    border-bottom: 2px solid #f0c040;
    color: #7a5a00;
    text-align: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.osd-expiry-banner__icon { font-size: 16px; }
.osd-expiry-banner strong { font-weight: 700; font-size: 16px; }

/* ---- ヒーロー内の期限表示 ---- */
.osd-hero__expiry {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 14px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 50px;
    font-size: 12px;
    color: rgba(255,255,255,.85);
    letter-spacing: .06em;
    backdrop-filter: blur(4px);
}

/* ---- ダウンロードエリア内の期限通知 ---- */
.osd-expiry-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 28px;
    padding: 18px 22px;
    background: #fff8f0;
    border: 1px solid #f0c898;
    border-left: 4px solid #e07a5f;
    border-radius: 10px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.osd-expiry-notice__icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.osd-expiry-notice__label {
    font-size: 11px;
    color: var(--osd-muted);
    margin-bottom: 4px;
    letter-spacing: .05em;
}
.osd-expiry-notice__date {
    font-size: 18px;
    font-weight: 700;
    color: var(--osd-accent);
    margin-bottom: 4px;
    line-height: 1.3;
}
.osd-expiry-notice__sub {
    font-size: 12px;
    color: var(--osd-muted);
    line-height: 1.7;
}

/* ---- 歌詞：拡大・横幅広げ・1段 ---- */
.osd-lyrics {
    background: var(--osd-bg);
    border-top: 1px solid var(--osd-border);
    border-bottom: 1px solid var(--osd-border);
}
.osd-lyrics__inner {
    max-width: 860px;   /* 歌詞は広めに */
    margin: 0 auto;
    padding: 72px 40px;
}
.osd-lyrics__text {
    font-size: 17px;    /* 大きく */
    line-height: 2.2;
    white-space: pre-wrap;
    color: #2a2a2a;
    background: #fff;
    padding: 36px 40px;
    border-radius: var(--osd-radius);
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    column-count: 1;    /* 1段確定 */
}

/* ---- シェアタブ ---- */
.osd-share-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    justify-content: center;
    flex-wrap: wrap;
}
.osd-share-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 22px;
    border: 2px solid var(--osd-border);
    border-radius: 12px;
    background: #fff;
    color: var(--osd-muted);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s;
    min-width: 160px;
}
.osd-share-tab__note {
    font-size: 11px;
    font-weight: 400;
    opacity: .7;
}
.osd-share-tab:hover {
    border-color: var(--osd-accent);
    color: var(--osd-accent);
}
.osd-share-tab--active {
    border-color: var(--osd-accent);
    background: var(--osd-accent);
    color: #fff;
}
.osd-share-tab--active .osd-share-tab__note { opacity: .85; }

/* ---- ハッシュタグ表示 ---- */
.osd-share__hashtags {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--osd-muted);
    letter-spacing: .04em;
}

/* ---- レスポンシブ ---- */
@media (max-width: 600px) {
    .osd-lyrics__inner { padding: 48px 16px; }
    .osd-lyrics__text { padding: 24px 20px; font-size: 15px; }
    .osd-share-tabs { flex-direction: column; align-items: center; }
    .osd-share-tab { width: 100%; max-width: 300px; }
    .osd-expiry-notice { flex-direction: column; gap: 8px; }
}
/* ==========================================================
   onesong-delivery.css 追記分（最末尾に追加）
   ========================================================== */

/* 音楽だけシェア：SC URL未設定時のメッセージ */
.osd-share__no-sc {
    text-align: center;
    color: var(--osd-muted);
    font-size: 13px;
    padding: 24px;
    background: #f8f8f8;
    border-radius: 8px;
    border: 1px dashed var(--osd-border);
}