@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ========================================
   SWELLテーマ全体のカスタマイズ - Apple風デザイン
   ======================================== */

/* 1. Apple風カラースキーム */
:root {
    /* Appleのメインカラー（白とグレー基調） */
    --apple-white: #ffffff;
    --apple-gray-1: #f5f5f7;
    --apple-gray-2: #d2d2d7;
    --apple-gray-3: #86868b;
    --apple-gray-4: #424245;
    --apple-gray-5: #1d1d1f;
    
    /* Appleのアクセントカラー（青系） */
    --apple-blue: #0071e3;
    --apple-blue-dark: #0077ed;
    --apple-blue-light: #06c;
    
    /* テキストカラー */
    --text-primary: #1d1d1f;
    --text-secondary: #424245;
    --text-tertiary: #86868b;
    --text-white: #ffffff;
    
    /* 背景カラー */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-dark: #1d1d1f;
    
    /* ボーダーカラー */
    --border-color: #d2d2d7;
    --border-light: #e5e5e7;
    
    /* シャドウ（Appleは控えめ） */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    
    /* トランジション（Appleは滑らか） */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Apple風タイポグラフィ */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    color: var(--text-primary);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.011em;
    color: var(--text-primary);
    margin-top: 0;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.07143;
    letter-spacing: -0.015em;
    margin-bottom: 0.8rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.011em;
    margin-bottom: 0.8rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.14286;
    letter-spacing: -0.007em;
    margin-bottom: 0.8rem;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.16667;
    letter-spacing: -0.005em;
}

h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
}

h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.33337;
}

/* 3. Apple風リンクスタイル */
a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--apple-blue-dark);
    text-decoration: underline;
}

a:active {
    opacity: 0.7;
}

/* 4. Apple風ボタンスタイル */
.wp-block-button__link,
.btn,
button[type="submit"],
input[type="submit"] {
    background: var(--apple-gray-5);
    color: var(--text-white);
    padding: 12px 22px;
    border-radius: 980px;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.17648;
    letter-spacing: -0.022em;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-block;
    text-decoration: none;
    min-width: 28px;
}

.wp-block-button__link:hover,
.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--apple-gray-4);
    transform: scale(1.02);
}

.wp-block-button__link:active,
.btn:active,
button[type="submit"]:active,
input[type="submit"]:active {
    transform: scale(0.98);
    background: var(--apple-gray-5);
}

/* Apple風セカンダリボタン */
.wp-block-button.is-style-outline .wp-block-button__link,
.btn-secondary {
    background: transparent;
    color: var(--apple-gray-5);
    border: 1px solid var(--apple-gray-5);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.btn-secondary:hover {
    background: var(--apple-gray-5);
    color: var(--text-white);
}

/* 5. Apple風カードスタイル */
.wp-block-group,
.card,
.entry-content > * {
    background: var(--bg-primary);
    border-radius: 18px;
    padding: 0;
    box-shadow: none;
    border: none;
    transition: transform var(--transition-base);
}

.wp-block-group:hover,
.card:hover {
    transform: translateY(-4px);
}

/* Apple風の大きな余白 */
.wp-block-group__inner-container,
.card__content {
    padding: 3rem 2rem;
}

@media (min-width: 768px) {
    .wp-block-group__inner-container,
    .card__content {
        padding: 4rem 3rem;
    }
}

/* 6. Apple風ヘッダー */
.l-header {
    background: rgba(251, 251, 253, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 9999;
    transition: background var(--transition-base);
}

.l-header__inner {
    padding: 0;
    max-width: 1024px;
    margin: 0 auto;
}

/* ヘッダーロゴ */
.l-header__logo img {
    height: 44px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.l-header__logo:hover img {
    opacity: 0.8;
}

/* ナビゲーションメニュー */
.l-header__nav a {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    padding: 0 8px;
    transition: opacity var(--transition-fast);
    text-decoration: none;
}

.l-header__nav a:hover {
    opacity: 0.65;
    text-decoration: none;
}

/* 7. Apple風フッター */
.l-footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 3rem 0 1.5rem;
    margin-top: 6rem;
    border-top: 0.5px solid var(--border-color);
}

.l-footer a {
    color: var(--text-secondary);
    font-size: 12px;
    transition: color var(--transition-fast);
}

.l-footer a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

/* 8. Apple風記事一覧 */
.p-postList__item {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform var(--transition-base);
    border: none;
    margin-bottom: 2rem;
}

.p-postList__item:hover {
    transform: translateY(-2px);
}

.p-postList__thumb {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.p-postList__thumb img {
    transition: transform var(--transition-slow);
    width: 100%;
    height: auto;
}

.p-postList__item:hover .p-postList__thumb img {
    transform: scale(1.05);
}

/* 9. Apple風記事タイトル */
.p-entry__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.07143;
    letter-spacing: -0.015em;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.p-entry__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.p-entry__title a:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* 記事一覧のタイトルは少し小さく */
.p-postList__title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.33337;
    letter-spacing: -0.007em;
    margin-bottom: 0.5rem;
}

.p-postList__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.p-postList__title a:hover {
    opacity: 0.65;
    text-decoration: none;
}

/* 10. Apple風タグとカテゴリー */
.tag,
.cat {
    display: inline-block;
    padding: 4px 10px;
    background: transparent;
    border: 0.5px solid var(--border-color);
    border-radius: 980px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.tag:hover,
.cat:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--text-secondary);
    transform: none;
    text-decoration: none;
}

/* 11. Apple風サイドバー */
.l-sidebar {
    background: transparent;
    border-radius: 0;
    padding: 0;
}

.l-sidebar .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 3rem;
}

.l-sidebar .widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.005em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* 12. Apple風検索フォーム */
.search-form input[type="search"] {
    border: 0.5px solid var(--border-color);
    border-radius: 980px;
    padding: 8px 16px;
    font-size: 17px;
    font-weight: 400;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: all var(--transition-fast);
    width: 100%;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.search-form input[type="search"]::placeholder {
    color: var(--text-tertiary);
}

/* 13. Apple風ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 3rem 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 980px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 400;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.pagination a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    transform: none;
}

.pagination .current {
    background: var(--apple-blue);
    color: var(--text-white);
}

/* 14. Apple風コンテンツエリア */
.l-contents {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.l-main {
    padding: 3rem 0;
}

/* 15. Apple風セクション */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.07143;
    letter-spacing: -0.015em;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.33337;
    letter-spacing: -0.007em;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* 16. Apple風大きな余白 */
.entry-content {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.entry-content p {
    font-size: 19px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    margin-bottom: 1.5rem;
}

.entry-content ul,
.entry-content ol {
    font-size: 19px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

/* 17. レスポンシブ対応 */
@media (max-width: 768px) {
    h1,
    .section-title {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .p-entry__title {
        font-size: 2.5rem;
    }
    
    .entry-content {
        padding: 0 16px;
    }
    
    .entry-content p {
        font-size: 17px;
    }
    
    .l-contents {
        padding: 0 16px;
    }
}

/* 18. Apple風スクロールバー（WebKitブラウザ） */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* 19. Apple風スムーズスクロール */
html {
    scroll-behavior: smooth;
}

/* 20. Apple風画像スタイル */
img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform var(--transition-slow);
}

.entry-content img,
.wp-block-image img {
    border-radius: 12px;
    margin: 2rem 0;
}

/* 21. Apple風引用ブロック */
.wp-block-quote {
    border-left: 3px solid var(--apple-blue);
    padding-left: 2rem;
    margin: 2rem 0;
    font-size: 19px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--text-secondary);
    font-style: italic;
}

.wp-block-quote cite {
    display: block;
    margin-top: 1rem;
    font-size: 17px;
    font-style: normal;
    color: var(--text-tertiary);
}

/* 22. Apple風コードブロック */
.wp-block-code,
code {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 2px 6px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.38462;
    letter-spacing: -0.003em;
    color: var(--text-primary);
}

.wp-block-code {
    padding: 1rem 1.5rem;
    border: 0.5px solid var(--border-color);
}

/* 23. Apple風テーブル */
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.wp-block-table th,
.wp-block-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 0.5px solid var(--border-color);
}

.wp-block-table th {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.wp-block-table tr:hover {
    background: var(--bg-secondary);
}

/* 24. Apple風リスト */
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
    line-height: 1.47059;
}

.entry-content ul li {
    list-style-type: none;
    position: relative;
    padding-left: 1.5rem;
}

.entry-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--apple-blue);
    font-weight: 600;
}

/* 25. Apple風区切り線 */
.wp-block-separator {
    border: none;
    border-top: 0.5px solid var(--border-color);
    margin: 3rem 0;
}

/* 26. Apple風カバーブロック */
.wp-block-cover {
    border-radius: 18px;
    overflow: hidden;
    margin: 3rem 0;
}

/* 27. Apple風ギャラリー */
.wp-block-gallery {
    margin: 3rem 0;
    gap: 1rem;
}

.wp-block-gallery .wp-block-image {
    border-radius: 12px;
    overflow: hidden;
}

/* 28. Apple風カラム */
.wp-block-columns {
    gap: 2rem;
    margin: 3rem 0;
}

/* 29. Apple風メディア&テキスト */
.wp-block-media-text {
    border-radius: 18px;
    overflow: hidden;
    margin: 3rem 0;
}

/* 30. Apple風アコーディオン・FAQ */
.wp-block-group.is-style-accordion {
    border: 0.5px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0;
}

/* 31. Apple風フォーカス状態 */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--apple-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* 32. Apple風選択状態 */
::selection {
    background: var(--apple-blue);
    color: var(--text-white);
}

::-moz-selection {
    background: var(--apple-blue);
    color: var(--text-white);
}

/* ========================================
   トップページ専用スタイル - Apple風
   ======================================== */

/* 1. トップページ全体のスタイル */
body.home,
body.page-template-front-page {
    background: var(--bg-primary);
}

/* トップページと投稿ページを1カラムにする（CSSで強制的に非表示） */
body.home .l-sidebar,
body.page-template-front-page .l-sidebar,
body.single:not(.singular-lp) .l-sidebar,
body.home #sidebar,
body.page-template-front-page #sidebar,
body.single:not(.singular-lp) #sidebar {
    display: none !important;
}

body.home .l-content,
body.page-template-front-page .l-content,
body.single:not(.singular-lp) .l-content {
    max-width: 1024px;
    margin: 0 auto;
}

body.home .l-mainContent,
body.page-template-front-page .l-mainContent,
body.single:not(.singular-lp) .l-mainContent {
    width: 100%;
    max-width: 100%;
}

/* 投稿ページのコンテンツ幅を調整 */
body.single:not(.singular-lp) .l-mainContent__inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

body.single:not(.singular-lp) .entry-content {
    max-width: 100%;
}

/* 2. Apple風ヒーローセクション */
.hero-section {
    text-align: center;
    padding: 8rem 22px 6rem;
    max-width: 1024px;
    margin: 0 auto;
    position: relative;
}

.hero-section__title {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.07143;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section__subtitle {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.33337;
    letter-spacing: -0.007em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-section__description {
    font-size: 19px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-section__cta {
    animation: fadeInUp 0.8s ease-out 0.6s both;
    margin-top: 3rem;
}

/* 3. トップページのメインコンテンツ */
.p-homeContent {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

/* 3-1. 作品一覧セクション - モダンなデザイン */
.works-section {
    padding: 8rem 0;
    background: var(--bg-primary);
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.works-section__header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 22px;
}

.works-section__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.07143;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.works-section__subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.33337;
    letter-spacing: -0.007em;
    color: var(--text-secondary);
}

/* 3-2. 作品コンテナ（カルーセル対応） */
.works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
    position: relative;
}

.works-carousel {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 22px;
    padding-bottom: 8px; /* スクロールバー分の余白 */
}

.works-carousel.is-dragging {
    cursor: grabbing;
    user-select: none;
}

.works-carousel {
    cursor: grab;
}

.works-carousel__track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* 3-3. 作品カード - モダンなデザイン */
.work-card {
    background: var(--bg-primary);
    border-radius: 24px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
    border: 0.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-width: 360px;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.02) 0%, rgba(0, 113, 227, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.work-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: var(--apple-gray-4);
    text-decoration: none;
}

.work-card:hover::before {
    opacity: 1;
}

.work-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%;
    background: linear-gradient(135deg, #f5f5f7 0%, #ffffff 100%);
    overflow: hidden;
}

.work-card__image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    transition: all var(--transition-base);
}

.work-card:hover .work-card__image {
    transform: scale(1.05);
}

.work-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 29, 31, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 2;
}

.work-card:hover .work-card__overlay {
    opacity: 1;
}

.work-card__link-text {
    color: var(--text-white);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.work-card__icon {
    font-size: 5rem;
    transition: transform var(--transition-base);
    z-index: 1;
    position: relative;
}

.work-card:hover .work-card__icon {
    transform: scale(1.15) rotate(5deg);
    filter: brightness(1.1);
}

.work-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 6px 14px;
    background: var(--apple-gray-5);
    color: var(--text-white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 980px;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(29, 29, 31, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.work-card__content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.work-card__title {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.33337;
    letter-spacing: -0.007em;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.work-card:hover .work-card__title {
    color: var(--apple-gray-5);
}

.work-card__description {
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
}

.work-card__meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.work-card__tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    border: 0.5px solid var(--border-color);
    transition: all var(--transition-fast);
}

.work-card:hover .work-card__tag {
    background: var(--apple-gray-5);
    color: var(--text-white);
    border-color: var(--apple-gray-5);
}

.work-card--coming-soon {
    opacity: 0.6;
    cursor: default;
}

.work-card--coming-soon:hover {
    transform: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border-color: var(--border-color);
}

/* 3-4. カルーセルナビゲーション */
.works-carousel__nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.works-carousel__btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 0.5px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.works-carousel__btn:hover {
    background: var(--apple-blue);
    color: var(--text-white);
    border-color: var(--apple-blue);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.works-carousel__btn:active {
    transform: scale(0.95);
}

.works-carousel__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.works-carousel__btn:disabled:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* 4. Apple風セクション */
.home-section {
    padding: 6rem 0;
    text-align: center;
}

.home-section:nth-child(even) {
    background: var(--bg-secondary);
    border-radius: 0;
}

.home-section__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.07143;
    letter-spacing: -0.015em;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.home-section__subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.33337;
    letter-spacing: -0.007em;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

/* 5. トップページの記事一覧 - Apple風 */
.p-homeContent {
    margin-top: 4rem;
}

.p-homeContent .p-postList {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    list-style: none;
    padding: 0;
}

.p-homeContent .p-postList__item {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
    list-style: none;
}

.p-homeContent .p-postList__link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-base);
}

.p-homeContent .p-postList__link:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.p-homeContent .p-postList__thumb {
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    aspect-ratio: 16 / 9;
    background: var(--bg-secondary);
    position: relative;
}

.p-homeContent .p-postList__thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.p-homeContent .p-postList__item:hover .p-postList__thumb::after {
    opacity: 1;
}

.p-homeContent .p-postList__thumb img,
.p-homeContent .c-postThumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    display: block;
}

.p-homeContent .p-postList__item:hover .p-postList__thumb img,
.p-homeContent .p-postList__item:hover .c-postThumb__img {
    transform: scale(1.08);
}

.p-homeContent .p-postList__body {
    padding: 0;
}

.p-homeContent .p-postList__title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.33337;
    letter-spacing: -0.007em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.p-homeContent .p-postList__link:hover .p-postList__title {
    color: var(--apple-blue);
}

.p-homeContent .p-postList__excerpt {
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.p-homeContent .p-postList__meta {
    margin-top: 1rem;
    font-size: 12px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.p-homeContent .p-postList__meta a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.p-homeContent .p-postList__meta a:hover {
    color: var(--text-secondary);
    text-decoration: none;
}

/* 6. ウィジェットエリア（front_top, front_bottom） */
.w-frontTop,
.w-frontBottom {
    max-width: 1024px;
    margin: 0 auto;
    padding: 4rem 22px;
}

.w-frontTop {
    padding-top: 6rem;
}

.w-frontBottom {
    padding-bottom: 6rem;
}

/* 7. メインビジュアル（MV）のカスタマイズ */
.p-mainVisual {
    position: relative;
    overflow: hidden;
}

.p-mainVisual__inner {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

/* 8. 記事スライダーのカスタマイズ */
.p-postSlider {
    margin: 4rem 0;
}

.p-postSlider__title {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.07143;
    letter-spacing: -0.011em;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* 9. Apple風カードグリッド */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.card-grid__item {
    background: var(--bg-primary);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-base);
    border: 0.5px solid var(--border-color);
}

.card-grid__item:hover {
    transform: translateY(-4px);
}

.card-grid__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card-grid__title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.33337;
    letter-spacing: -0.007em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.card-grid__description {
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--text-secondary);
}

/* 10. Apple風特徴セクション */
.features-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 22px;
}

.feature-item {
    text-align: center;
}

.feature-item__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--apple-blue);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
}

.feature-item__title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.33337;
    letter-spacing: -0.007em;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.feature-item__description {
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    color: var(--text-secondary);
}

/* 11. Apple風CTAセクション */
.cta-section {
    text-align: center;
    padding: 6rem 22px;
    background: var(--bg-primary);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--border-color);
}

.cta-section__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.07143;
    letter-spacing: -0.015em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-section__description {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.33337;
    letter-spacing: -0.007em;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 12. フェードインアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 13. Apple風タブリスト（トップページの記事タブ） */
.p-postListTab {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 3rem;
    border-bottom: 0.5px solid var(--border-color);
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 22px;
}

.p-postListTab__item {
    padding: 12px 20px;
    font-size: 17px;
    font-weight: 400;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    position: relative;
    margin-bottom: -0.5px;
}

.p-postListTab__item:hover {
    color: var(--text-primary);
    background: transparent;
}

.p-postListTab__item.is-active {
    color: var(--apple-blue);
    border-bottom-color: var(--apple-blue);
    font-weight: 400;
}

/* 14. トップページのレスポンシブ */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 16px 3rem;
    }
    
    .hero-section__title {
        font-size: 3rem;
    }
    
    .hero-section__subtitle {
        font-size: 1.25rem;
    }
    
    .works-section {
        padding: 4rem 0;
    }
    
    .works-section__title {
        font-size: 2.5rem;
    }
    
    .works-section__subtitle {
        font-size: 1.25rem;
    }
    
    .works-container {
        padding: 0 16px;
    }
    
    .works-carousel__track {
        gap: 1rem;
    }
    
    .work-card {
        min-width: calc(100vw - 3rem);
        max-width: calc(100vw - 3rem);
    }
    
    .work-card__image-wrapper {
        padding-top: 50%;
    }
    
    .work-card__content {
        padding: 1.25rem;
    }
    
    .work-card__icon {
        font-size: 3.5rem;
    }
    
    .work-card__title {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .work-card__description {
        font-size: 15px;
        margin-bottom: 1rem;
    }
    
    .work-card__badge {
        top: 0.75rem;
        right: 0.75rem;
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .works-carousel__btn {
        width: 40px;
        height: 40px;
    }
    
    .home-section {
        padding: 4rem 0;
    }
    
    .home-section__title {
        font-size: 2.5rem;
    }
    
    .home-section__subtitle {
        font-size: 1.25rem;
    }
    
    .p-homeContent .p-postList {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .cta-section__title {
        font-size: 2.5rem;
    }
    
    .cta-section__description {
        font-size: 1.25rem;
    }
    
    .w-frontTop,
    .w-frontBottom {
        padding: 3rem 16px;
    }
    
    .p-postListTab {
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 0 16px;
    }
    
    .p-postListTab__item {
        font-size: 15px;
        padding: 10px 16px;
    }
}

/* ========================================
   おみくじスタイル
   ======================================== */
#swell-omikuji-wrapper {
	font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Hiragino Mincho Pro', 'Yu Mincho', 'YuMincho', 'MS PMincho', serif;
	line-height: 1.8;
	color: #2c2c2c;
	background: linear-gradient(135deg, #d32f2f 0%, #c62828 50%, #b71c1c 100%);
	background-image: 
		repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.05) 35px, rgba(255,255,255,.05) 70px),
		radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
	padding: 60px 20px;
	border-radius: 10px;
	margin: 40px 0;
	position: relative;
	overflow: hidden;
}

#swell-omikuji-wrapper::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
		radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
	pointer-events: none;
	z-index: 0;
}

.swell-omikuji-container {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
	position: relative;
	z-index: 1;
}

.swell-omikuji-title {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.15em;
	position: relative;
	display: inline-block;
}

.swell-omikuji-title::before,
.swell-omikuji-title::after {
	content: '◆';
	color: #ffd700;
	font-size: 1.5rem;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.8;
}

.swell-omikuji-title::before {
	left: -60px;
}

.swell-omikuji-title::after {
	right: -60px;
}

.swell-omikuji-subtitle {
	font-size: 1.4rem;
	margin-bottom: 3rem;
	color: #fff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
	font-weight: 500;
}

.swell-omikuji-box {
	background: #fffef7;
	border: 4px solid #d32f2f;
	border-radius: 8px;
	padding: 3rem;
	margin: 2rem 0;
	box-shadow: 
		0 15px 50px rgba(0, 0, 0, 0.3),
		inset 0 0 30px rgba(255, 215, 0, 0.1);
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s;
	position: relative;
	background-image: 
		repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(211, 47, 47, 0.03) 2px, rgba(211, 47, 47, 0.03) 4px);
}

.swell-omikuji-box::before {
	content: '';
	position: absolute;
	top: -4px;
	left: -4px;
	right: -4px;
	bottom: -4px;
	background: linear-gradient(45deg, #d32f2f, #ffd700, #d32f2f);
	border-radius: 8px;
	z-index: -1;
	opacity: 0.3;
}

.swell-omikuji-box.shake {
	animation: swell-shake 0.5s;
}

/* おみくじを引いている最中のアニメーション（統合アニメーション） */
.swell-omikuji-box.drawing {
	animation: swell-drawing-combined 2s ease-in-out infinite;
	background: linear-gradient(135deg, #fffef7 0%, #ffe082 50%, #fffef7 100%);
	background-size: 200% 200%;
	border-color: #ffd700;
	box-shadow: 
		0 15px 50px rgba(255, 215, 0, 0.5),
		inset 0 0 50px rgba(255, 215, 0, 0.2);
}

/* shakeクラスが追加された場合も対応 */
.swell-omikuji-box.drawing.shake {
	animation: swell-drawing-combined 2s ease-in-out infinite, swell-shake 0.5s infinite;
	background: linear-gradient(135deg, #fffef7 0%, #ffe082 50%, #fffef7 100%);
	background-size: 200% 200%;
	border-color: #ffd700;
	box-shadow: 
		0 15px 50px rgba(255, 215, 0, 0.5),
		inset 0 0 50px rgba(255, 215, 0, 0.2);
}

.swell-omikuji-box.rotate {
	animation: swell-rotate 0.8s ease-in-out infinite;
}

.swell-omikuji-box.pulse {
	animation: swell-pulse 1s ease-in-out infinite;
}

.swell-omikuji-paper {
	text-align: center;
	width: 100%;
}

.swell-omikuji-placeholder {
	color: #8b6f47;
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: 0.1em;
}

.swell-omikuji-result {
	display: none;
}

.swell-omikuji-result.show {
	display: block;
	animation: swell-fadeInUp 0.5s ease-out;
}

.swell-omikuji-rank {
	font-size: 4.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
	letter-spacing: 0.1em;
	position: relative;
	display: inline-block;
	padding: 0 1rem;
}

.swell-omikuji-rank::before,
.swell-omikuji-rank::after {
	content: '━';
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 2rem;
	opacity: 0.5;
}

.swell-omikuji-rank::before {
	left: -2rem;
}

.swell-omikuji-rank::after {
	right: -2rem;
}

.swell-omikuji-rank.daikichi {
	color: #d32f2f;
}

.swell-omikuji-rank.daikichi::before,
.swell-omikuji-rank.daikichi::after {
	color: #ffd700;
}

.swell-omikuji-rank.chukichi {
	color: #ff6f00;
}

.swell-omikuji-rank.shokichi {
	color: #2e7d32;
}

.swell-omikuji-rank.kichi {
	color: #1976d2;
}

.swell-omikuji-rank.suekichi {
	color: #5c6bc0;
}

.swell-omikuji-rank.kyo {
	color: #616161;
}

.swell-omikuji-rank.daikyo {
	color: #424242;
}

.swell-omikuji-message {
	font-size: 1.2rem;
	color: #5d4037;
	margin-top: 1.5rem;
	margin-bottom: 2.5rem;
	line-height: 2;
	font-weight: 500;
	padding: 0 1rem;
}

.swell-omikuji-details {
	margin-top: 2.5rem;
	padding-top: 2rem;
	border-top: 2px solid #d32f2f;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
	text-align: left;
}

.swell-omikuji-detail-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: #fff8e1;
	border: 1px solid #ffcc02;
	border-radius: 4px;
	transition: all 0.3s;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.swell-omikuji-detail-item:hover {
	background: #ffe082;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.swell-omikuji-detail-label {
	font-weight: 600;
	color: #5d4037;
	font-size: 1rem;
	letter-spacing: 0.05em;
}

.swell-omikuji-detail-value {
	font-weight: 600;
	color: #d32f2f;
	font-size: 1rem;
	letter-spacing: 0.05em;
}

.swell-omikuji-btn {
	display: inline-block;
	padding: 20px 60px;
	background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
	color: #fff;
	text-decoration: none;
	border: 3px solid #ffd700;
	border-radius: 8px;
	font-weight: 700;
	font-size: 1.2rem;
	cursor: pointer;
	transition: all 0.3s;
	box-shadow: 
		0 8px 20px rgba(0, 0, 0, 0.3),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	letter-spacing: 0.1em;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
	position: relative;
	overflow: hidden;
	margin-top: 2rem;
}

.swell-omikuji-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transition: left 0.5s;
}

.swell-omikuji-btn:hover::before {
	left: 100%;
}

.swell-omikuji-btn:hover {
	transform: translateY(-3px);
	box-shadow: 
		0 12px 30px rgba(0, 0, 0, 0.4),
		inset 0 1px 0 rgba(255, 255, 255, 0.3);
	border-color: #ffeb3b;
}

.swell-omikuji-btn:active {
	transform: translateY(-1px);
}

.drawing-text {
	animation: swell-textPulse 0.5s ease-in-out infinite;
	color: #d32f2f;
	font-weight: 600;
}

@keyframes swell-fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes swell-shake {
	0%, 100% {
		transform: translateX(0);
	}
	10%, 30%, 50%, 70%, 90% {
		transform: translateX(-10px);
	}
	20%, 40%, 60%, 80% {
		transform: translateX(10px);
	}
}

@keyframes swell-rotate {
	0%, 100% {
		transform: rotate(0deg) scale(1);
	}
	25% {
		transform: rotate(-5deg) scale(1.02);
	}
	50% {
		transform: rotate(0deg) scale(1.05);
	}
	75% {
		transform: rotate(5deg) scale(1.02);
	}
}

@keyframes swell-pulse {
	0%, 100% {
		transform: scale(1);
		box-shadow: 
			0 15px 50px rgba(0, 0, 0, 0.3),
			inset 0 0 30px rgba(255, 215, 0, 0.1);
	}
	50% {
		transform: scale(1.03);
		box-shadow: 
			0 20px 60px rgba(255, 215, 0, 0.4),
			inset 0 0 40px rgba(255, 215, 0, 0.3);
	}
}

@keyframes swell-drawing {
	0% {
		background-position: 0% 50%;
		border-color: #d32f2f;
	}
	50% {
		background-position: 100% 50%;
		border-color: #ffd700;
	}
	100% {
		background-position: 0% 50%;
		border-color: #d32f2f;
	}
}

/* 統合アニメーション：drawing + rotate + pulse */
@keyframes swell-drawing-combined {
	0% {
		background-position: 0% 50%;
		border-color: #d32f2f;
		transform: rotate(0deg) scale(1);
		box-shadow: 
			0 15px 50px rgba(0, 0, 0, 0.3),
			inset 0 0 30px rgba(255, 215, 0, 0.1);
	}
	12.5% {
		transform: rotate(-5deg) scale(1.02);
	}
	25% {
		background-position: 25% 50%;
		transform: rotate(0deg) scale(1.05);
		box-shadow: 
			0 20px 60px rgba(255, 215, 0, 0.4),
			inset 0 0 40px rgba(255, 215, 0, 0.3);
	}
	37.5% {
		transform: rotate(5deg) scale(1.02);
	}
	50% {
		background-position: 100% 50%;
		border-color: #ffd700;
		transform: rotate(0deg) scale(1);
		box-shadow: 
			0 15px 50px rgba(0, 0, 0, 0.3),
			inset 0 0 30px rgba(255, 215, 0, 0.1);
	}
	62.5% {
		transform: rotate(-5deg) scale(1.02);
	}
	75% {
		background-position: 75% 50%;
		transform: rotate(0deg) scale(1.05);
		box-shadow: 
			0 20px 60px rgba(255, 215, 0, 0.4),
			inset 0 0 40px rgba(255, 215, 0, 0.3);
	}
	87.5% {
		transform: rotate(5deg) scale(1.02);
	}
	100% {
		background-position: 0% 50%;
		border-color: #d32f2f;
		transform: rotate(0deg) scale(1);
		box-shadow: 
			0 15px 50px rgba(0, 0, 0, 0.3),
			inset 0 0 30px rgba(255, 215, 0, 0.1);
	}
}

@keyframes swell-textPulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.7;
		transform: scale(1.05);
	}
}

@media (max-width: 768px) {
	.swell-omikuji-title {
		font-size: 2.5rem;
	}

	.swell-omikuji-title::before,
	.swell-omikuji-title::after {
		font-size: 1rem;
	}

	.swell-omikuji-title::before {
		left: -40px;
	}

	.swell-omikuji-title::after {
		right: -40px;
	}

	.swell-omikuji-subtitle {
		font-size: 1.1rem;
	}

	.swell-omikuji-box {
		padding: 2rem;
		min-height: 400px;
	}

	.swell-omikuji-details {
		grid-template-columns: 1fr;
		gap: 0.8rem;
	}

	.swell-omikuji-detail-item {
		padding: 0.8rem;
	}

	.swell-omikuji-detail-label,
	.swell-omikuji-detail-value {
		font-size: 0.9rem;
	}

	.swell-omikuji-rank {
		font-size: 3rem;
	}

	.swell-omikuji-rank::before,
	.swell-omikuji-rank::after {
		font-size: 1.5rem;
	}

	.swell-omikuji-rank::before {
		left: -1.5rem;
	}

	.swell-omikuji-rank::after {
		right: -1.5rem;
	}

	.swell-omikuji-message {
		font-size: 1rem;
	}

	.swell-omikuji-btn {
		padding: 18px 50px;
		font-size: 1rem;
	}
}

