@charset "UTF-8";
/*!
Theme Name: Cocoon Child Urban Emotional JP
Template:   cocoon-master
Version:    1.1.0
Description: 日本語の美しさを最大化した雑誌風デザイン。余白、和文詰め、縦書き装飾に特化。
Author:     Kani-Suke
*/

/* ===================================================
   Base Settings (Japanese Magazine Aesthetic)
   =================================================== */
:root {
    --urban-bg: #F4F1DE;
    /* レトロな紙、オフホワイト */
    --urban-text: #333333;
    /* 墨色、ソフトな黒 */
    --urban-accent: #006D77;
    /* 深いティール (香港のフェリー色) */
    --urban-neon-magenta: #E29578;
    /* テラコッタ/アンバー (古いレンガ) */
    --urban-neon-yellow: #D4A373;
    /* 真鍮色 */
    --urban-border: #81878d;
    --urban-font-sans: 'Noto Sans JP', sans-serif;
    --urban-font-serif: 'Noto Serif JP', serif;
}

body {
    background-color: var(--urban-bg) !important;
    color: var(--urban-text) !important;
    font-family: var(--urban-font-sans) !important;
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
    letter-spacing: 0.05em;
    line-height: 2.0;
    /* 読みやすさ重視で広めに */
    font-size: 16px;
}

/* ===================================================
   Layout & Background Decor
   =================================================== */
#sidebar {
    display: none !important;
}

#content {
    margin: 0 auto !important;
    float: none !important;
    max-width: 1200px !important;
}

/* 路地裏のノイズ感をCSSだけで演出 */
.site-main::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* ノイズはそのまま残すが、グラデーションは控えめに */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 109, 119, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(226, 149, 120, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===================================================
   Header (Lean & Elegant)
   =================================================== */
.header-container {
    background: transparent !important;
    border-bottom: none !important;
    padding: 60px 0 40px !important;
}

.site-name-text {
    font-family: var(--urban-font-serif) !important;
    font-weight: 700;
    /* 視認性向上のため少し太く */
    letter-spacing: 0.1em;
    font-size: 2.4rem !important;
    text-align: center;
    width: 100%;
    margin: 0 auto;
    color: var(--urban-text);
}

/* ===================================================
   Navigation
   =================================================== */
.navi {
    background: transparent !important;
    border: none !important;
}

.navi-in>ul {
    justify-content: center !important;
}

.navi-in>ul>li>a {
    font-family: var(--urban-font-serif);
    font-weight: 500;
    /* 視認性向上 */
    color: var(--urban-text) !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.4 !important;
    padding: 15px 25px !important;
    transition: all 0.3s ease;
}

/* 欧文（サブ項目）のスタイリング */
.navi-in>ul>li>a .caption {
    font-family: var(--urban-font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
    /* コントラスト向上 */
    margin-top: 4px;
    text-transform: uppercase;
    color: var(--urban-accent);
}

.navi-in>ul>li>a:hover {
    opacity: 0.7;
    background: transparent !important;
    color: var(--urban-accent) !important;
}

/* カレント項目の下線表示 */
.current-menu-item>a::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: var(--urban-accent);
    margin-top: 8px;
}

/* ===================================================
   Content Area & Article Readability
   =================================================== */
.main {
    padding-top: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* 記事本文の読みやすさ向上 */
.entry-content {
    font-size: 1.125rem !important;
    /* 18px */
    line-height: 2.0 !important;
    color: #222 !important;
    /* 真っ黒ではないが濃い色 */
    max-width: 740px;
    /* 読みやすい幅 */
    margin: 0 auto;
}

.entry-content p {
    margin-bottom: 2em !important;
}

/* 縦書きの装飾テキスト (色調整) */
.main::before {
    content: "静寂と都市の鼓動。";
    position: fixed;
    left: 4vw;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-family: var(--urban-font-serif);
    font-weight: 500;
    color: var(--urban-accent);
    opacity: 0.3;
    font-size: 1.1rem;
    letter-spacing: 0.6em;
    pointer-events: none;
    z-index: 0;
}

/* ===================================================
   Entry Card (Grid Aesthetic)
   =================================================== */
.entry-card-wrap {
    background: transparent !important;
    border: none !important;
    margin-bottom: 120px !important;
}

/* サムネイル画像を大きく、エモーショナルに */
.entry-card-thumb {
    width: 100% !important;
    margin-bottom: 30px !important;
    float: none !important;
}

.entry-card-thumb img {
    width: 100% !important;
    height: auto !important;
    border-radius: 2px !important;
    /* 少し角を丸くして柔らかく */
    filter: sepia(20%) contrast(90%);
    /* レトロ感 */
    transition: all 0.6s ease;
}

.entry-card-wrap:hover .entry-card-thumb img {
    filter: none;
    transform: scale(1.01);
}

/* カード内タイトルの調整 */
.entry-card-content {
    margin-left: 0 !important;
    text-align: center;
}

.entry-card-title {
    font-family: var(--urban-font-serif) !important;
    font-weight: 700 !important;
    /* 太くして視認性UP */
    font-size: 1.6rem !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    color: var(--urban-text) !important;
}

/* 不要な情報を隠す（カテゴリーラベルなど） */
.cat-label {
    display: none !important;
}

.entry-card-snippet {
    font-size: 0.95rem;
    color: #555 !important;
    /* コントラスト確保 */
    max-width: 600px;
    margin: 0 auto !important;
    line-height: 1.8;
}

/* ===================================================
   Post Content Enhancements
   =================================================== */
.article h2 {
    font-family: var(--urban-font-serif) !important;
    font-weight: 700 !important;
    font-size: 2.0rem !important;
    margin: 80px 0 40px !important;
    letter-spacing: 0.1em;
    color: var(--urban-accent) !important;
    border-bottom: 2px solid var(--urban-accent);
    padding-bottom: 15px;
}

.article h2::after {
    content: none;
    /* 以前のスタイルをリセット */
}

.article h3 {
    font-family: var(--urban-font-serif) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin: 60px 0 30px !important;
    border-left: 4px solid var(--urban-neon-magenta);
    padding-left: 15px;
    color: var(--urban-text) !important;
}

/* ===================================================
   UI Elements
   =================================================== */
.read-more-btn {
    display: inline-block;
    margin-top: 30px;
    border-bottom: 2px solid var(--urban-accent);
    padding: 0 0 5px 0 !important;
    border-radius: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    color: var(--urban-accent) !important;
    font-weight: 700;
}

/* SNS share buttons etc. (Minimalism) */
.sns-share,
.sns-follow {
    opacity: 0.8;
    transition: opacity 0.3s;
}

.sns-share:hover,
.sns-follow:hover {
    opacity: 1;
}

/* ===================================================
   Polish & Texture (Urban/Gritty Feel)
   =================================================== */
/* 紙のようなザラつきを追加 */
.site-content::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 99;
    mix-blend-mode: multiply;
}

/* 昼間の都市の空気感を演出 (Update) */
.site-main::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 136, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(214, 0, 110, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===================================================
   Custom Home Page Grid
   =================================================== */
/* 固定ページのタイトルと日付をトップページのみ非表示 */
.page-id-83 .entry-title,
.page-id-83 .post-meta,
.page-id-83 .breadcrumb {
    display: none !important;
}

/* ===================================================
   Custom Home Page Grid
   =================================================== */
.home-hero {
    height: 45vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
    background: transparent;
    border-bottom: 1px solid var(--urban-border);
    position: relative;
    overflow: hidden;
}

/* ヒーロータイトルの装飾強化 (Vintage style) */
.home-hero h1 {
    font-family: var(--urban-font-serif) !important;
    font-weight: 900 !important;
    font-size: clamp(4rem, 16vw, 9rem) !important;
    letter-spacing: -0.05em !important;
    margin: 0 !important;
    line-height: 0.9 !important;
    color: var(--urban-text);
    /* 落ち着いた影に変更 */
    text-shadow: 3px 3px 0 var(--urban-neon-magenta), -2px -2px 0 var(--urban-accent);
    z-index: 1;
}

.home-hero p {
    font-size: 1rem !important;
    letter-spacing: 0.5em !important;
    opacity: 0.6;
    /* 視認性UP */
    margin-top: 20px !important;
    text-transform: uppercase;
    color: var(--urban-accent);
    font-weight: 700;
}

.home-grid {
    display: grid !important;
    grid-template-columns: repeat(12, 1fr) !important;
    grid-auto-rows: minmax(100px, auto);
    grid-gap: 20px !important;
    max-width: 1200px !important;
    margin: 0 auto 120px !important;
    padding: 20px;
}

/* ===================================================
   Signage Variations (Vintage/Neon/Stamp)
   =================================================== */
.grid-signage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    grid-column: span 1;
    grid-row: span 3;
    writing-mode: vertical-rl;
    font-family: var(--urban-font-serif);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease;
}

/* Type 1: Standard Vertical Sign */
.grid-signage.sign-v {
    background: #fff;
    border: 2px solid var(--urban-text);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    /* ソフトな影 */
}

/* Type 2: Circle Stamp Sign */
.grid-signage.sign-circle {
    border-radius: 50%;
    width: 140px;
    height: 140px;
    border: 3px solid var(--urban-text);
    background: #fff;
    writing-mode: horizontal-tb;
    writing-mode: vertical-rl;
    grid-row: span 2;
    transform: rotate(-10deg);
}

/* Type 3: Neon Border Sign (Now Retro Frame) */
.grid-signage.sign-border-neon {
    background: transparent;
    border: 3px double var(--urban-text);
    /* ネオンではなく二重線でレトロに */
    outline: none;
    background: #fff;
}

/* Color Variations (Subdued) */
.sign-color-0 {
    color: var(--urban-accent);
    border-color: var(--urban-text);
}

.sign-color-1 {
    color: var(--urban-neon-magenta);
    border-color: var(--urban-text);
}

.sign-color-2 {
    color: #b58900;
    /* 暗めのマスタード */
    border-color: var(--urban-text);
}

.grid-signage:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ===================================================
   Grid Item & Interactive Effects
   =================================================== */
/* ===================================================
   Grid Item & Interactive Effects
   =================================================== */
.grid-item {
    position: relative;
    overflow: hidden;
    background: #e0e0e0;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Random subtle rotation logic would require nth-child, keeping it simple for now or adding specific classes if permitted */
.grid-item:nth-child(odd) {
    transform: rotate(0.5deg);
}

.grid-item:nth-child(even) {
    transform: rotate(-0.5deg);
}

.grid-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    filter: sepia(30%) contrast(0.9) brightness(1.05);
    /* ヴィンテージ写真風 */
    transition: all 0.4s ease;
}

/* Hover Action */
.grid-item:hover {
    z-index: 100;
    transform: scale(1.02) translate(-1px, -1px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    /* 影を少し大きく、でも薄く */
}

.grid-item:hover img {
    filter: sepia(0%) contrast(1.05);
    /* カラーに戻る */
    transform: scale(1.03);
}

.grid-item .caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    /* 白ベースで見やすく */
    border-top: 1px solid var(--urban-border);
    color: var(--urban-text);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
}

.grid-item:hover .caption {
    opacity: 1;
}

.grid-item .caption h3 {
    color: var(--urban-text) !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 0 0 5px 0 !important;
    font-family: var(--urban-font-serif) !important;
    line-height: 1.4;
}

/* Vertical Date Tag (Tag style) */
.grid-item .caption p {
    position: absolute;
    top: -35px;
    right: 10px;
    background: var(--urban-accent);
    /* 濃いティール */
    color: #fff !important;
    writing-mode: vertical-rl;
    padding: 6px 4px;
    font-size: 0.75rem !important;
    font-weight: 500;
    letter-spacing: 0.05em;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* 不規則・重なり配置のクラス */
.item-lg {
    grid-column: span 6;
    grid-row: span 4;
    height: 500px;
}

.item-vert {
    grid-column: span 3;
    grid-row: span 6;
    height: 750px;
}

.item-md {
    grid-column: span 4;
    grid-row: span 3;
    height: 380px;
}

.item-sq {
    grid-column: span 3;
    grid-row: span 3;
    height: 380px;
}

.item-sm {
    grid-column: span 2;
    grid-row: span 2;
    height: 250px;
}

/* 重なりを演出するためのネガティブマージン (More Aggressive) */
.item-overlap-1 {
    grid-column: span 4;
    grid-row: span 4;
    height: 480px;
    margin-top: -50px;
    margin-left: -30px;
    z-index: 3;
    background: #fff;
    border: 2px solid var(--urban-text);
    padding: 5px;
    /* Photo frame effect */
}

.item-overlap-2 {
    grid-column: span 5;
    grid-row: span 3;
    height: 380px;
    margin-left: 40px;
    margin-top: 40px;
    z-index: 4;
    box-shadow: 12px 12px 0 var(--urban-neon-magenta);
    transform: rotate(2deg) !important;
    /* Force rotation */
}

.item-tall {
    grid-column: span 2;
    grid-row: span 5;
    height: 600px;
}

.item-wide {
    grid-column: span 7;
    grid-row: span 2;
    height: 250px;
}

/* New Chaotic & Organic Classes */
.item-overlap-3 {
    grid-column: span 3;
    grid-row: span 3;
    height: 400px;
    margin-top: -80px;
    margin-right: -40px;
    z-index: 5;
    background: var(--urban-bg);
    border: 1px solid var(--urban-accent);
    padding: 15px;
    box-shadow: -10px 10px 0 var(--urban-accent);
}

.item-circle {
    grid-column: span 3;
    grid-row: span 3;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid var(--urban-text);
    z-index: 6;
    overflow: hidden;
}

.item-circle img {
    border-radius: 50%;
}

.item-circle .caption {
    background: rgba(226, 149, 120, 0.9); /* テラコッタ色でアクセント */
    color: #fff;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.item-circle .caption h3 {
    color: #fff !important;
}

.item-circle .caption p {
    position: static;
    margin-top: 10px;
    writing-mode: horizontal-tb;
    background: transparent;
    box-shadow: none;
}

.item-blob {
    grid-column: span 4;
    grid-row: span 4;
    width: 380px;
    height: 380px;
    border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%;
    border: 3px double var(--urban-neon-magenta);
    z-index: 7;
    overflow: hidden;
    animation: blob-morph 8s infinite alternate ease-in-out;
}

@keyframes blob-morph {
    0% { border-radius: 40% 60% 70% 30% / 50% 60% 40% 50%; }
    100% { border-radius: 60% 40% 30% 70% / 40% 50% 60% 50%; }
}

.item-skew {
    grid-column: span 4;
    grid-row: span 3;
    height: 360px;
    transform: skew(-5deg) rotate(3deg) !important;
    border: 4px solid #fff;
    box-shadow: 15px 15px 30px rgba(0,0,0,0.1);
}

/* More Layout Randomness */
.grid-item:nth-child(3n) {
    transform: rotate(1.2deg);
}

.grid-item:nth-child(5n) {
    transform: rotate(-1.5deg) translateY(10px);
}

.grid-item:nth-child(7n) {
    margin-left: -20px;
    z-index: 2;
}

/* レスポンシブ調整 */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: repeat(6, 1fr) !important;
    }

    .item-lg,
    .item-vert,
    .item-md,
    .item-sq,
    .item-sm,
    .item-overlap-1,
    .item-overlap-2,
    .item-tall,
    .item-wide {
        grid-column: span 3 !important;
        grid-row: span 3 !important;
        height: 300px !important;
        margin: 0 !important;
    }

    .grid-signage {
        grid-column: span 1 !important;
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .home-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-gap: 10px !important;
    }

    .item-lg,
    .item-vert,
    .item-md,
    .item-sq,
    .item-sm,
    .item-overlap-1,
    .item-overlap-2,
    .item-tall,
    .item-wide {
        grid-column: span 2 !important;
        height: 250px !important;
    }

    .grid-signage {
        display: none;
        /* モバイルでは視認性優先で看板を隠す */
    }

    .home-hero h1 {
        font-size: 4rem !important;
    }
}

/* ===================================================
   Article Page Enhancements (Eye-Catch)
   =================================================== */
.eye-catch {
    text-align: center !important;
    margin: 40px auto !important;
    max-width: 100% !important;
}

.eye-catch img {
    max-height: 500px !important;
    /* 目立ちすぎない高さに調整 */
    width: 100% !important;
    /* コンテナ幅に合わせる */
    max-width: 800px !important;
    /* あまり広がりすぎないように */
    object-fit: cover !important;
    margin: 0 auto !important;
    display: block !important;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    filter: sepia(10%) contrast(0.95);
    /* アーバンな統一感 */
}

/* ===================================================
   Pochipp
   =================================================== */
/* Pochippを雑誌風デザインに馴染ませる */
.pochipp-box {
    border: 1px solid #E2E8F0 !important;
    /* 繊細な境界線 */
    border-radius: 0 !important;
    /* 角を丸めない */
    box-shadow: none !important;
    /* 影を消す */
    background: #fff !important;
    padding: 2em !important;
}

.pochipp-box__title {
    font-family: 'Noto Serif JP', serif !important;
    font-weight: 400 !important;
    font-size: 1.1em !important;
}

/* ボタンをフラット＆シンプルに */
.pochipp-box__btn {
    border-radius: 2px !important;
    font-weight: 300 !important;
    letter-spacing: 0.05em !important;
    transition: opacity 0.3s !important;
}

.pochipp-box__btn:hover {
    opacity: 0.7 !important;
}

/* 各ショップボタンの色を少し抑える（任意） */
.pochipp-box__btn--amazon {
    background-color: #4A5568 !important;
}

/* テーマのアクセント色に */
.pochipp-box__btn--rakuten {
    background-color: #bf919d !important;
}

/* 少し落ち着いた赤 */
.pochipp-box__btn--yahoo {
    background-color: #8ba3b8 !important;
}

/* 少し落ち着いた青 */
/* Kani Product Card (Automated Affiliate Block) */
.kani-product-card {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    background: #fff;
    display: flex;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    align-items: center;
}

.kani-product-card img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.kani-product-card-content {
    flex: 1;
}

.kani-product-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #2D2D2D;
}

.kani-product-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kani-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
    color: #fff !important;
    text-align: center;
    min-width: 140px;
}

.kani-btn:hover {
    opacity: 0.8;
}

.amazon-btn {
    background-color: #FF9900;
    box-shadow: 0 2px 0 #cc7a00;
}

.rakuten-btn {
    background-color: #BF0000;
    box-shadow: 0 2px 0 #800000;
}

@media (max-width: 600px) {
    .kani-product-card {
        flex-direction: column;
        text-align: center;
    }

    .kani-product-links {
        justify-content: center;
    }

    .kani-btn {
        width: 100%;
    }
}