@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Jacquard+24&family=Jersey+25&display=swap');



html {

    font-display: swap;

}



:root {

    /* Color Palette */

    --lilac-bg: #f6f2f8;

    --lilac-card: #ffffff;

    --lilac-sub-bg: #f0e6f5;

    --lilac-main: #8a3ffc;

    --lilac-dark: #522794;

    --lilac-accent: #ff85a1;

    --lilac-border: #d8b4fe;

    

    --win-text: #2b2335;

    --text-muted: #47414e;

    --win-link: #7b2cbf;

    --win-link-hover: #ff477e;

    

    --card-shadow: 0 4px 16px rgba(138, 63, 252, 0.08);

    --font-heading: 'Jersey 25', 'DotGothic16', sans-serif;

    --font-body: 'Jersey 25', 'DotGothic16', sans-serif;

}



body.font-theme-alt {

    --font-heading: 'Jersey 25', 'DotGothic16', monospace;

    --font-body: 'DotGothic16', monospace;

}



/* Dark Mode (背景画像を強制的に打ち消す) */

body.dark-theme {

    background-image: none !important; 

    --lilac-bg: #16121e;

    --lilac-card: #211b2c;

    --lilac-sub-bg: #2b2338;

    --lilac-main: #b57edc;

    --lilac-dark: #e0aaff;

    --lilac-accent: #ff9ebb;

    --lilac-border: #6c35a6;

    

    --win-text: #f6f2f8;

    --text-muted: #ad9ebe;

    --win-link: #c77dff;

    --win-link-hover: #ff9ebb;

    

    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

}



/* Reset & Base Body (Strictly 0 Border Radius) */

* {

    box-sizing: border-box;

    border-radius: 0 !important;

}



body {

    background-color: var(--lilac-bg);

    background-repeat: repeat;

    background-attachment: fixed;

    color: var(--win-text);

    font-family: var(--font-body);

    font-size: 16px; /* 18pxからコンパクトに16pxへ調整 */

    line-height: 1.6;

    margin: 0;

    padding: 32px 16px;

    transition: background-color 0.25s, color 0.25s;

}



a {

    color: var(--win-link);

    text-decoration: underline;

    font-weight: 500;

    transition: color 0.15s ease;

}



a:hover {

    color: var(--win-link-hover);

}



/* Main Container Layout */

.container {

    max-width: 1100px; 

    margin: 0 auto;

    display: flex;

    gap: 20px;

    align-items: flex-start;

}



/* Base Cards (Square Corners) */

.window-box {

    background-color: var(--lilac-card);

    border: 1.5px solid var(--lilac-border);

    box-shadow: var(--card-shadow);

    padding: 0;

    margin-bottom: 24px;

}



.main-content {

    padding: 24px 28px;

    flex-grow: 1;

    min-width: 0;

}



/* Typography & Headings */

h1, h2, h3, h4 {

    font-family: var(--font-heading);

    font-weight: bold;

    margin-top: 0;

    color: var(--lilac-dark);

}



body.dark-theme h1,

body.dark-theme h2,

body.dark-theme h3 {

    color: var(--lilac-main);

}



h1 {

    font-size: 24px; /* コンパクトに調整 */

    letter-spacing: 0.5px;

    padding-bottom: 8px;

    margin-bottom: 20px;

}



h2 {

    font-size: 20px;

    margin-top: 24px;

    margin-bottom: 12px;

}



hr {

    border: 0;

    border-top: 1.5px dashed var(--lilac-border);

    margin: 24px 0;

    opacity: 0.6;

}



/* Media Responsiveness */

img, video {

    max-width: 100%;

    height: auto;

}



/* サイト内のすべてのYouTube iframeを自動レスポンシブ化・サイズ自動調整 */

iframe[src*="youtube.com"],

iframe[src*="youtube-nocookie.com"] {

    width: 100% !important;

    max-width: 100% !important;

    height: auto !important;

    aspect-ratio: 16 / 9;

    border: 0;

    display: block;

    margin: 14px 0;

}



/* Left Sidebar Navigation */

.sidebar {

    width: 210px;

    flex-shrink: 0;

    align-self: flex-start;

}



.sidebar-title {

    background-color: var(--lilac-sub-bg);

    color: var(--lilac-dark);

    font-size: 15px;

    font-weight: bold;

    font-family: var(--font-heading);

    padding: 8px 12px;

    letter-spacing: 1px;

    border-bottom: 1.5px solid var(--lilac-border);

}



body.dark-theme .sidebar-title {

    color: var(--lilac-main);

}



.sidebar-box {

    padding: 0;

    overflow: hidden;

}



.menu-list {

    list-style-type: none;

    padding: 6px;

    margin: 0;

    background-color: var(--lilac-card);

}



.menu-list li {

    margin-bottom: 2px;

}



.menu-list li a {

    display: block;

    padding: 6px 10px;

    text-decoration: none;

    color: var(--win-text);

    font-weight: 500;

    font-size: 15px;

    transition: all 0.15s ease;

}



.menu-list li a:hover {

    background-color: var(--lilac-sub-bg);

    color: var(--lilac-main);

}



.submenu-list {

    list-style-type: none;

    padding-left: 14px;

    margin: 2px 0 4px 0;

}



.submenu-list li a {

    font-size: 14px;

    padding: 3px 6px;

    color: var(--text-muted);

}



.submenu-list li a::before {

    content: "↳ ";

    color: var(--lilac-main);

}



/* Simple Ticker / Marquee */

.marquee-wrapper {

    background-color: var(--lilac-sub-bg);

    padding: 6px 12px;

    margin-bottom: 20px;

    overflow: hidden;

    white-space: nowrap;

}



.marquee-text {

    display: inline-block;

    padding-left: 100%;

    animation: marquee 20s linear infinite;

    font-size: 15px;

    color: var(--win-text);

}



@keyframes marquee {

    0% { transform: translate(0, 0); }

    100% { transform: translate(-100%, 0); }

}



/* What's New Box */

.whats-new-box {

    height: 220px;

    overflow-y: auto;

    background-color: var(--lilac-sub-bg);

    padding: 12px 16px;

    font-size: 15px;

    line-height: 1.7;

}



.date-stamp {

    font-family: var(--font-heading);

    font-weight: bold;

    color: var(--lilac-dark);

    margin-right: 10px;

}



body.dark-theme .date-stamp {

    color: var(--lilac-main);

}



/* Content Cards & Grids */

.diary-grid {

    display: flex;

    flex-direction: column;

    gap: 20px;

}



.diary-item {

    background-color: var(--lilac-sub-bg);

    border: 1.5px solid var(--lilac-border);

    padding: 16px;

}



.diary-meta {

    display: flex;

    justify-content: space-between;

    font-size: 14px;

    color: var(--text-muted);

    margin-bottom: 10px;

    font-family: var(--font-heading);

}



.diary-photo-frame {

    background-color: #ffffff;

    padding: 6px;

    margin: 12px 0 14px 0;

    border: 1px solid var(--lilac-border);

}



.hp-section-card {

    background-color: var(--lilac-sub-bg);

    border: 1.5px solid var(--lilac-border);

    padding: 18px;

    margin-bottom: 20px;

}



.hp-comment-box {

    border-left: 3px solid var(--lilac-main);

    padding: 8px 12px;

    background-color: var(--lilac-card);

    margin-top: 12px;

    font-size: 15px;

}



/* Header Component */

.main-window-header {

    margin: -24px -28px 20px -28px;

    background-color: var(--lilac-sub-bg);

    border-bottom: 1.5px solid var(--lilac-border);

    padding: 10px 16px;

}



.window-title-bar {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.window-title-text {

    font-size: 14px;

    font-weight: bold;

    font-family: var(--font-heading);

    color: var(--lilac-dark);

}



body.dark-theme .window-title-text {

    color: var(--lilac-main);

}



.window-toolbar {

    display: flex;

    align-items: center;

    gap: 8px;

}



.theme-toggle-btn-widget {

    width: 100%;

    background-color: var(--lilac-sub-bg);

    color: var(--lilac-dark);

    border: 1.5px solid var(--lilac-border);

    font-size: 13px;

    padding: 6px 10px;

    cursor: pointer;

    font-family: var(--font-body);

    font-weight: bold;

    text-align: center;

    transition: all 0.15s ease;

}



.theme-toggle-btn-widget:hover {

    background-color: var(--lilac-main);

    color: #ffffff;

}



body.dark-theme .theme-toggle-btn-widget {

    color: var(--lilac-main);

}



body.dark-theme .theme-toggle-btn-widget:hover {

    color: #ffffff;

}



/* Video Frame Container (ラッパー要素経由用) */

.video-container {

    position: relative;

    width: 100%;

    padding-bottom: 56.25%;

    height: 0;

    overflow: hidden;

    margin-bottom: 15px;

}



.video-container iframe {

    position: absolute;

    top: 0; 

    left: 0;

    width: 100% !important; 

    height: 100% !important;

    aspect-ratio: auto !important;

    border: 0;

}



/* Widget Customization (Single White Area, No Inner Box/Window, No Rounded Corners) */

.widget-container {

    background-color: #ffffff !important;

    padding: 12px !important;

    border: none !important;

    text-align: center;

}



body.dark-theme .widget-container {

    background-color: var(--lilac-card) !important;

}



#calendar-widget, #weather-widget, .clock-display {

    background-color: transparent !important;

    border: none !important;

    padding: 0 !important;

    box-shadow: none !important;

}



.entrance-card {

    position: relative; 

}



.win-tooltip {

    display: none;

    position: absolute;

    z-index: 99999;

    padding: 6px 10px;

    background-color: #f6f2f8; 

    color: #000000;

    border: 1px solid #000000;

    font-size: 14px;

    line-height: 1.3;

    white-space: pre-line;

    pointer-events: none; 

    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);

}



body.dark-theme .win-tooltip {

    background-color: #2b2b2b;

    color: #ffffff;

    border: 1px solid #555555;

}



.profile-table {

    border-collapse: collapse;

    width: 100%;

}



.profile-table th,

.profile-table td {

    border-bottom: 1px dashed #ccc;

    padding: 8px; 

    font-size: 15px;

}



.profile-table tr:last-child th,

.profile-table tr:last-child td {

    border-bottom: none;

}



#footer-container {

    min-height: 60px; 

    display: block;

}



#sidebar-container {

    min-width: 200px; 

}



.right-sidebar-box {

    padding: 14px;

    background-color: var(--lilac-card);

    border: 1.5px solid var(--lilac-border);

    box-shadow: var(--card-shadow);

    box-sizing: border-box;

}



body.dark-theme .right-sidebar-box {

    background-color: var(--lilac-card);

    border-color: var(--lilac-border);

}



.right-sidebar h2 {

    font-size: 15px;

    margin-top: 0;

    margin-bottom: 10px;

    padding-bottom: 6px;

    border-bottom: 1.5px dashed var(--lilac-border);

    color: var(--lilac-dark);

}



body.dark-theme .right-sidebar h2 {

    color: var(--lilac-main);

    border-bottom-color: var(--lilac-border);

}



.diary-index-list {

    list-style: none;

    padding: 0;

    margin: 0;

    font-size: 14px;

    line-height: 1.5;

}



.diary-index-list li {

    margin-bottom: 6px;

    padding-bottom: 6px;

    border-bottom: 1px dotted var(--border-color, #eee);

}



body.dark-theme .diary-index-list li {

    border-bottom-color: var(--border-color, #444444);

}



.diary-index-list li:last-child {

    border-bottom: none;

}



.diary-index-list a {

    text-decoration: none;

    color: var(--text-color, #333);

    display: block;

}



body.dark-theme .diary-index-list a {

    color: var(--text-color, #dddddd);

}



.diary-index-list a:hover {

    color: var(--link-hover-color, var(--lilac-main, #666));

    text-decoration: underline;

}



.diary-index-date {

    font-size: 12.5px;

    color: var(--text-muted, #888);

    display: block;

    margin-bottom: 2px;

}



.profile-header {

    display: flex;

    align-items: flex-start; 

    gap: 14px;

    margin-bottom: 18px;

}



.profile-icon {

    flex-shrink: 0;

}



.profile-icon img {

    display: block;

}



.profile-basic-info {

    flex: 1;

    min-width: 0;

}



.profile-basic-info fieldset.identity-section {

    margin-top: -6px !important; 

    padding-top: 6px !important;  

}



.profile-basic-info fieldset.identity-section legend {

    line-height: 1 !important;

    padding: 0 4px !important;

}



.button-container {

    display: flex;

    flex-wrap: wrap;

    gap: 4px;

}



/* ==========================================

   Journal (個別記事) 専用のコンパクト調整

   ========================================== */



.journal-post {

    max-width: 720px; /* 本文の横幅をすっきりコンパクトに限定 */

    margin: 0 auto;

}



.journal-post header {

    margin-bottom: 16px;

    border-bottom: 1.5px dashed var(--lilac-border);

    padding-bottom: 12px;

}



.journal-post header h1 {

    font-size: 22px;

    margin-top: 6px;

    margin-bottom: 0;

    padding-bottom: 0;

}



.journal-post .meta {

    font-size: 13px;

    color: var(--text-muted);

    font-family: var(--font-heading);

}



.journal-post .category {

    background-color: var(--lilac-sub-bg);

    padding: 2px 6px;

    border: 1px solid var(--lilac-border);

    font-size: 12px;

}



.journal-post .content {

    font-size: 15px;

    line-height: 1.7;

    word-break: break-word;

}



.journal-post .content p {

    margin-top: 0;

    margin-bottom: 16px;

}



/* Responsive Styles */

@media (max-width: 800px) {

    .container {

        flex-direction: column;

    }

    .right-sidebar {

        width: 100%;

        position: static;

        align-items: center;

    }

    .right-sidebar-box {

        width: 100%;

    }

}



@media (max-width: 768px) {

    body {

        padding: 16px 10px;

    }

    .container {

        flex-direction: column;

        gap: 16px;

    }

    .sidebar {

        width: 100%;

        position: static;

    }

    .main-content {

        padding: 16px 14px;

    }

    .main-window-header {

        margin: -16px -14px 16px -14px;

        padding: 8px 12px;

    }

    .profile-header {

        flex-direction: column;

    }

    .journal-post header h1 {

        font-size: 19px;

    }

}