/* ==========================================================================
   CSS変数
   ========================================================================== */
:root {
    /* メインカラー */
    --color-primary-light: #ef9da1;
    --color-primary-dark: #C4176F;
    --color-secondary: #8B5CF6;
    --color-line-green: #a3e7b8;

    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #E91E8C 0%, #ef9da1 100%);
    --gradient-bg-pink: linear-gradient(180deg, #FFF5F8 0%, #FFFFFF 50%, #FFF9F0 100%);
    --gradient-bg-cream: linear-gradient(180deg, #FFFAF5 0%, #FFF5F8 100%);

    /* 背景色 */
    --color-bg-main: #FFFFFF;
    --color-bg-white: #FFFFFF;
    --color-bg-pink-light: #FFF5F8;
    --color-bg-cream: #FFFAF5;
    --color-bg-gray: #F8F8F8;

    /* テキスト色 */
    --color-text-white: #ffffff;
    --color-text-dark: #333333;
    --color-text-gray: #666666;
    --color-text-light: #888888;

    /* ボーダー */
    --color-border: rgba(0, 0, 0, 0.08);

    /* フォント */
    --font-family: "Noto Sans JP","Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --font-handwriting: "Klee One", "Zen Kurenaido", "Yu Mincho", serif;
    --container-width: 1200px;
    --container-width-sp: 100%;
    --section-padding: 80px;
    --section-padding-sp: 40px;
}

/* ==========================================================================
   サイトヘッダー
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* スクロール時の背景 */
.site-header.is-scrolled {

}

.header-inner {
    display: flex;
    align-items: start;
    justify-content: space-between;
    padding: 48px 20px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    transition: padding 0.3s ease;
}

/* スクロール時のヘッダー縮小 */
.site-header.is-scrolled .header-inner {
        padding: 8px 20px;
        align-items: center;
    }

/* ロゴ */
.header-logo a {
    display: block;
    text-decoration: none;
}

.header-logo img {
    height: 88px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.is-scrolled .header-logo img {
    height: 64px;
}

.header-logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-dark);
}

/* ハンバーガーメニューボタン */
.header-menu-btn {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.menu-btn-line {
    display: block;
    width: 32px;
    height: 2px;
    background: var(--color-text-dark);
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* メニューオープン時のアニメーション */
.header-menu-btn.is-active .menu-btn-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header-menu-btn.is-active .menu-btn-line:nth-child(2) {
    opacity: 0;
}

.header-menu-btn.is-active .menu-btn-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   モバイルメニュー オーバーレイ
   ========================================================================== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 80px 40px 40px;
}

/* 閉じるボタン */
.mobile-menu-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-close span {
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text-dark);
    border-radius: 1px;
}

.mobile-menu-close span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-close span:last-child {
    transform: rotate(-45deg);
}

/* メニューロゴ */
.mobile-menu-logo {
    margin-bottom: 40px;
}

.mobile-menu-logo img {
    height: 48px;
    width: auto;
}

.mobile-logo-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-dark);
}

/* ナビゲーション */
.mobile-menu-nav {
    margin-bottom: 40px;
}

.mobile-menu-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu-nav li {
    margin-bottom: 20px;
}

.mobile-menu-nav a {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-nav a:hover {
    color: var(--color-primary-light);
}

/* LINE CTA */
.mobile-menu-cta {
    width: 100%;
    max-width: 280px;
}

.mobile-menu-line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: #05b04a;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.mobile-menu-line-btn .line-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-line-btn .line-icon svg {
    width: 24px;
    height: 24px;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .header-inner {
        padding: 8% 9%;
    }

    .header-logo img {
        height: 14vw;
        max-height: 56px;
    }

    .site-header.is-scrolled .header-inner {
        padding: 8px 16px;
    }

    .site-header.is-scrolled .header-logo img {
        height: 10vw;
        max-height: 48px;
    }

    .header-menu-btn {
        width: 40px;
        height: 40px;
    }

    .menu-btn-line {
        width: 22px;
    }

    .mobile-menu-content {
        padding: 60px 24px 40px;
    }

    .mobile-menu-nav a {
        font-size: 15px;
    }
}

/* ==========================================================================
   共通スタイル
   ========================================================================== */
.home-page {
    font-family: var(--font-family);
    color: var(--color-text-dark);
    line-height: 1.8;
    background: var(--color-bg-main);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* セクション共通 */
.section-padding {
    padding: var(--section-padding) 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--section-padding-sp) 0;
    }
}

/* 手書き風セクションラベル */
.section-label {
    font-family: var(--font-handwriting);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-primary-light);
    text-align: center;
    margin-bottom: 16px;
    font-style: italic;
}

/* セクションタイトル */
.section-title {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.6;
    color: var(--color-text-dark);
}

.section-title::after {
    display: none;
}

/* ====================================================
   手書きタイトル背景画像（::before で重ねる）
   ==================================================== */

/* --- タイプA: 英字ラベル（Event / Point / Voice etc.）--- */
.has-ttl-bg {
    position: relative;
    padding-top: 40px;
    z-index: 0;
}

.has-ttl-bg::before {
    content: '';
    position: absolute;
    top: var(--ttl-top, -10px);
    left: var(--ttl-left, 0px);
    width: var(--ttl-w, 120px);
    height: var(--ttl-h, 50px);
    background: var(--ttl-bg) left center / contain no-repeat;
    pointer-events: none;
    z-index: -1;
}

/* 中央揃えタイトルの場合はラベルも中央左寄せ */
.section-title.has-ttl-bg::before {
    left: 50%;
    transform: translateX(var(--ttl-offset, -80%));
}

.about-live-title img,
.supports-lead img {
    max-width: 340px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.section-title img {
    max-width: 480px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .has-ttl-bg {
        padding-top: 32px;
    }

    .has-ttl-bg::before {
        width: var(--ttl-w-sp, 110px);
        height: var(--ttl-h-sp, 46px);
        top: var(--ttl-top-sp, -6px);
        left: var(--ttl-left-sp, -8px);
    }

    .section-title.has-ttl-bg::before {
        left: 50%;
        transform: translateX(var(--ttl-offset-sp, -85%));
    }
}

@media (min-width: 769px) {
    .section-title.has-ttl-bg::before {
        transform: none;
    }
}

.section-description {
    text-align: center;
    color: var(--color-text-gray);
    margin-bottom: 32px;
    line-height: 2;
    font-size: 14px;
}

.sp-only {
    display: none;
}

.pc-only {
    display: block;
}

/* PCでは改行しない（brタグに付与） */
.br-sp {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
    .pc-only {
        display: none;
    }
    .br-sp {
        display: inline;
    }
    .section-title {
        font-size: 24px;
    }
    .section-label {
        font-size: 20px;
    }
}

/* リーフ装飾（共通） */
.leaf-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.leaf-left {
    left: 0;
    top: 0;
}

.leaf-right {
    right: 0;
    top: 0;
}

/* ==========================================================================
   SWELL親テーマ上書き
   ========================================================================== */
body.home,
html:has(.home-page) {
    overflow-x: hidden;
}

/* ホームページのみ：htmlのmargin-topを0にしてヘッダーとFVを重ねる */
html:has(.home-page) {
    margin-top: 0 !important;
}

.home-page,
.home-page #content,
.home-page #main-content,
.home-page .l-content,
.home-page .l-mainContent {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.top #content {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ==========================================================================
   カスタムフッター
   ========================================================================== */
.custom-footer {
    background: #000 !important;
    padding: 0 !important;
}

.footer-inner {
    text-align: center;
    padding: 48px 20px 40px;
}

/* 会社情報 */
.footer-company {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo img {
    height: 56px;
    width: auto;
}

.footer-logo-placeholder {
    display: inline-block;
}

.footer-logo-placeholder .logo-text-small {
    display: block;
    font-size: 10px;
    color: var(--color-text-gray);
    letter-spacing: 1px;
}

.footer-logo-placeholder .logo-text-large {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-top: 4px;
}

.footer-company-name,
.footer-company-ceo {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin: 4px 0;
}

/* フッターナビゲーション */
.footer-nav {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 24px;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.footer-nav-column a {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav-column a:hover {
    color: var(--color-primary-light);
}

/* SNSリンク */
.footer-sns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-sns-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.footer-sns-link:hover {
    opacity: 0.7;
}

.footer-sns-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

/* コピーライト */
.footer-copyright {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

@media (max-width: 768px) {
    .footer-inner {
        padding: 48px 20px 32px;
    }

    .footer-nav {
        gap: 32px;
        margin-bottom: 40px;
    }

    .footer-nav-column a {
        font-size: 10px;
    }

    .footer-logo img {
        height: 48px;
    }
}

/* ==========================================================================
   PC表示 共通
   ========================================================================== */
@media (min-width: 769px) {
    /* ---- 共通フォントサイズ PC ---- */
    .section-title {
        font-size: 30px;
    }

    .section-label {
        font-size: 32px;
    }

    .section-description {
        font-size: 16px;
    }

    /* ---- Footer ---- */
    .footer-main {
        display: flex;
        justify-content: center;
        align-items: flex-start;
        gap: 80px;
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 24px;
    }

    .footer-main .footer-company {
        padding-bottom: 0;
        border-bottom: none;
        margin-bottom: 0;
        text-align: left;
    }

    .footer-logo img {
        height: 64px;
    }

    .footer-nav {
        gap: 64px;
    }

    .footer-company-name,
    .footer-company-ceo {
        font-size: 13px;
    }

    .footer-nav-column a {
        font-size: 13px;
    }

    .footer-copyright {
        font-size: 12px;
    }
}

/* ==========================================================================
   下層ページ：ヘッダー固定サイズ（スクロール時サイズで常に固定）
   ========================================================================== */
body.is-subpage .site-header {
    background: #d0e4dc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.is-subpage .header-inner {
    padding: 8px 20px;
    align-items: center;
    transition: none;
}

body.is-subpage .header-logo img {
    height: 64px;
    transition: none;
}

@media (max-width: 768px) {
    body.is-subpage .header-inner {
        padding: 8px 16px;
    }

    body.is-subpage .header-logo img {
        height: 10vw;
        max-height: 48px;
    }
}

/* ==========================================================================
   パンくずリスト
   ========================================================================== */

.breadcrumb {
    padding: 80px 0 12px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.5;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: #999;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: '>';
    margin: 0 8px;
    color: #ccc;
    font-size: 10px;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ef9da1;
}

.breadcrumb-item.current span {
    color: #999;
}

@media (max-width: 768px) {
    .breadcrumb {
        padding: 72px 0 10px;
    }

    .breadcrumb-list {
        font-size: 11px;
    }

    .breadcrumb-item + .breadcrumb-item::before {
        margin: 0 6px;
    }
}

/* ==========================================================================
   下層ページ用スタイル（カスタムテンプレート使用時）
   ========================================================================== */
.custom-page {
    font-family: var(--font-family);
    color: var(--color-text-dark);
    line-height: 1.8;
    background: var(--color-bg-main);
}

.custom-page-content {
    padding-top: 40px;
    padding-bottom: 80px;
    min-height: 60vh;
}

.page-article {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 40px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--color-primary);
    color: var(--color-text-dark);
}

.page-content {
    font-size: 15px;
    line-height: 2;
}

.page-content p {
    margin-bottom: 1.5em;
}

.page-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 2em 0 1em;
    padding-left: 16px;
    border-left: 4px solid var(--color-primary);
}

.page-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 1.5em 0 0.8em;
}

.page-content ul,
.page-content ol {
    margin: 1em 0 1.5em 1.5em;
}

.page-content li {
    margin-bottom: 0.5em;
}

@media (max-width: 768px) {
    .custom-page-content {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .page-title {
        font-size: 22px;
        margin-bottom: 32px;
    }

    .page-content {
        font-size: 14px;
    }

    .page-content h2 {
        font-size: 18px;
    }

    .page-content h3 {
        font-size: 16px;
    }
}
