/* ============================================================
   COUPPLY - サイト共通スタイル (Design Renewal)
   ヘッダー / フッター / ベース / ニュースリスト
   やさしい × 最先端 (Lavender / Baby Blue / Cream / Mint / Soft Pink
   + Electric Violet)
   ============================================================ */

:root {
    --lavender: #e9e3fc;
    --baby-blue: #dcebff;
    --cream: #fff8f0;
    --mint: #dff6ec;
    --soft-pink: #ffe3ee;
    --violet: #6d4aff;
    --violet-soft: #8b6cff;
    --ink: #17142b;
    --ink-2: #3c3757;
    --muted: #6b6685;
    --surface: rgba(255, 255, 255, 0.72);
    --line: rgba(23, 20, 43, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --shadow-soft: 0 24px 60px -24px rgba(109, 74, 255, 0.25), 0 8px 24px -12px rgba(23, 20, 43, 0.08);
    --shadow-card: 0 12px 40px -16px rgba(23, 20, 43, 0.14);
    --font-jp: 'Noto Sans JP', 'M PLUS 1', 'Noto Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
    --font-en: 'Inter', 'Noto Sans JP', sans-serif;
    --header-h: 72px;
}

* {
    box-sizing: border-box;
}

/* 旧スタイルの全称リセットを踏襲（コンテンツ側で個別に余白を定義する） */
ul,
ol,
li,
dl,
dt,
dd,
h5,
h6,
table,
th,
td,
form,
fieldset {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
    font-family: var(--font-jp);
    color: var(--ink);
    background-color: #fdfcff;
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    word-break: auto-phrase;
}

/* 背景オーロラ */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(55% 42% at 88% -6%, var(--baby-blue) 0%, transparent 70%),
        radial-gradient(48% 40% at 2% 8%, var(--lavender) 0%, transparent 70%),
        radial-gradient(42% 36% at 20% 88%, var(--mint) 0%, transparent 70%),
        radial-gradient(44% 38% at 92% 78%, var(--soft-pink) 0%, transparent 70%),
        linear-gradient(180deg, #fdfcff 0%, #fbf9ff 100%);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s;
}

::selection {
    background: rgba(139, 108, 255, 0.25);
}

.pc-only {
    display: block;
}

.sp-only {
    display: none;
}

/* ---------- ヘッダー ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 20px;
}

header>div {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px 10px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 32px -12px rgba(23, 20, 43, 0.12);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

header h1,
header .header-logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    margin: 0;
}

header img.logo {
    height: 26px;
    width: auto;
}

.global-nav {
    display: flex;
    align-items: center;
    min-width: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.nav-item {
    margin: 0;
    list-style: none;
    flex-shrink: 0;
}

.nav-link {
    display: inline-block;
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-2);
    transition: background 0.25s, color 0.25s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(109, 74, 255, 0.09);
    color: var(--violet);
}

/* ストアバッジ */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.header-actions a {
    display: block;
    transition: transform 0.3s;
}

.header-actions a:hover {
    transform: translateY(-1px) scale(1.03);
}

.header-actions img {
    height: 34px;
    width: auto;
    border-radius: 8px;
}

/* ハンバーガー */
.hamburger-menu {
    display: none;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: none;
    border-radius: 50%;
    background: rgba(109, 74, 255, 0.08);
    cursor: pointer;
}

.hamburger-menu span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- ニュースリスト ---------- */
.news-container {
    margin-bottom: 14px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 26px -14px rgba(23, 20, 43, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, border-color 0.3s;
}

.news-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -16px rgba(109, 74, 255, 0.3);
    border-color: rgba(139, 108, 255, 0.4);
}

.news-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.news-date {
    font-family: var(--font-en);
    font-size: 13px;
    color: var(--muted);
    min-width: 104px;
}

.news-label {
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(109, 74, 255, 0.09);
    color: var(--violet);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    min-width: 104px;
    text-align: center;
}

.news-label.label-press {
    background: rgba(255, 111, 159, 0.14);
    color: #e0447e;
}

.news-label.label-media {
    background: rgba(18, 158, 118, 0.12);
    color: #0f9d77;
}

.news-new {
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(94deg, #ff6f9f, #ff9f6f);
    color: #fff;
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.news-title {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-2);
    line-height: 1.7;
}

.news-more {
    margin-top: 28px;
    text-align: center;
}

.news-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 34px;
    border-radius: 999px;
    border: 1.5px solid rgba(109, 74, 255, 0.35);
    color: var(--violet);
    font-weight: 700;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.6);
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
}

.news-more-btn:hover {
    background: rgba(109, 74, 255, 0.08);
    border-color: var(--violet);
    transform: translateY(-2px);
}

/* ---------- フッター ---------- */
footer {
    margin-top: 90px;
    padding: 56px 24px 32px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

footer>div {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

footer>div>a {
    display: block;
    flex: 0 0 auto;
}

footer img {
    height: 26px;
    width: auto;
}

.footer-link {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    max-width: 640px;
}

.footer-link a {
    font-size: 13.5px;
    color: var(--muted);
    transition: color 0.25s;
}

.footer-link a:hover {
    color: var(--violet);
}

.copyright {
    max-width: 1120px;
    margin: 36px auto 0;
    font-family: var(--font-en);
    font-size: 12px;
    color: #9995ad;
}

/* ---------- フローティングヘルプ ---------- */
.floating-help {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(109, 74, 255, 0.25);
    color: var(--violet);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 14px 34px -12px rgba(63, 41, 140, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-help:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px -12px rgba(63, 41, 140, 0.45);
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 1080px) {
    .nav-link {
        padding: 8px 9px;
        font-size: 13px;
    }

    .header-actions img {
        height: 30px;
    }
}

@media (max-width: 960px) {

    /* モバイルメニュー（script.jsが .nav-list に .active を付与） */
    .nav-list {
        position: fixed;
        top: 84px;
        left: 20px;
        right: 20px;
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        border-radius: 24px;
        background: #fff;
        border: 1px solid rgba(255, 255, 255, 0.95);
        box-shadow: 0 30px 70px -20px rgba(23, 20, 43, 0.3);
        padding: 16px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    }

    .nav-list.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 13px 18px;
        font-size: 15px;
        border-radius: 14px;
    }

    .hamburger-menu {
        display: flex;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }

    .sp-only {
        display: block;
    }

    body {
        font-size: 15px;
    }

    header {
        padding: 12px 14px;
    }

    header>div {
        padding: 9px 12px 9px 18px;
    }

    /* SPではストアバッジを非表示にしてナビを優先 */
    .header-actions {
        display: none;
    }

    header img.logo {
        height: 22px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px 18px;
    }

    .news-date {
        min-width: auto;
    }

    footer>div {
        flex-direction: column;
        gap: 24px;
    }

    .floating-help span {
        display: none;
    }

    .floating-help {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .header-actions img {
        height: 26px;
    }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================================
   言語切り替え (i18n/lib.js の renderSwitcher が出力)
   PC のヘッダーは言語コード、メニュー内・フッターは言語名
   ============================================================ */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: var(--muted, #7C7C7C);
}

.lang-switcher svg {
    flex: 0 0 auto;
    margin-right: 4px;
}

.lang-switcher a {
    padding: 6px 7px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-2, #2E2E2E);
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
}

.lang-switcher a:hover,
.lang-switcher a[aria-current="true"] {
    background: rgba(109, 74, 255, 0.09);
    color: var(--violet, #6D4AFF);
}

.lang-switcher .lang-name {
    display: none;
}

.nav-lang {
    margin-left: 6px;
}

.footer-lang {
    max-width: 1120px;
    margin: 24px auto 0;
}

.footer-lang .lang-code {
    display: none;
}

.footer-lang .lang-name {
    display: inline;
}

/* PC でもナビが詰まる幅 (ストアバッジと重なる) では、地球儀にホバー / フォーカスしたときだけ言語を出す */
@media (min-width: 961px) and (max-width: 1180px) {
    .nav-lang .lang-switcher {
        position: relative;
        padding: 8px 6px;
        cursor: pointer;
    }

    .nav-lang .lang-switcher svg {
        margin-right: 0;
    }

    .nav-lang .lang-links {
        position: absolute;
        top: 100%;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
        padding: 6px;
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 16px 40px -12px rgba(23, 20, 43, 0.3);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-4px);
        transition: opacity 0.2s, transform 0.2s;
        z-index: 1001;
    }

    .nav-lang .lang-switcher:hover .lang-links,
    .nav-lang .lang-switcher:focus-within .lang-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-lang .lang-links .lang-code {
        display: none;
    }

    .nav-lang .lang-links .lang-name {
        display: inline;
        white-space: nowrap;
    }
}

/* 言語の提案バー (lang-suggest.js) */
.lang-suggest {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 32px);
    padding: 10px 12px 10px 18px;
    border-radius: 999px;
    background: #17142B;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 16px 40px -12px rgba(23, 20, 43, 0.5);
}

.lang-suggest a {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
}

.lang-suggest button {
    border: none;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
}

@media (max-width: 960px) {
    .nav-lang {
        margin: 8px 0 0;
        padding: 8px 12px 0;
        border-top: 1px solid rgba(23, 20, 43, 0.08);
    }

    .nav-lang .lang-code {
        display: none;
    }

    .nav-lang .lang-name {
        display: inline;
    }

    .nav-lang .lang-switcher a {
        font-size: 14px;
        padding: 8px 10px;
    }
}
