/*
Theme Name: My Mythology WP
Theme URI: https://my-mythology.jp
Description: A minimalist theme based on My Mythology Trace design.
Version: 1.0
Author: Gemini
text-domain: my-mythology-wp
*/

/* Reset & Normalize (Simplified) */
:root {
    /* Strict Font Size Regulations */
    --font-base: 16px;
    /* Root base */
    --font-body-pc: 1.125rem;
    /* 18px */
    --font-body-sp: 1rem;
    /* 16px */
    --font-note: 0.875rem;
    /* 14px */
}

html {
    line-height: 1.5;
    /* Proper readable line height */
    -webkit-text-size-adjust: 100%;
    font-size: var(--font-base);
    /* 16px standard */
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    font-family: 'Oswald', 'Zen Kaku Gothic New', "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: var(--font-body-pc);
    /* Default PC */
    background-color: #000;
    color: #404040;
    line-height: 1.8;
}

@media (max-width: 768px) {
    body {
        font-size: var(--font-body-sp);
        /* 16px for Mobile */
    }
}

a {
    background-color: transparent;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    border-style: none;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: normal;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Utilities */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Main Content */

main#primary {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.logo_h {
    padding: 30px 0 40px;
    margin: 0 auto;
    text-align: center;
}

.logo_h img {
    width: 15%;
    max-width: 138px;
    height: auto;
}

/* Calendar */
.dripping_bg01 {
    padding: 0 0 150px;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

@media (max-width: 768px) {
    .dripping_bg01 {
        padding: 0 0 50px;
    }
}

.schedule {
    max-width: 1200px;
    background: rgba(255, 255, 255, .9);
    padding: 32px 50px 32px;
    margin: 0 auto 64px;
    position: relative;
}

.schedule caption {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 2em;
}

.schedule caption::after {
    content: "SCHEDULE";
    display: block;
    font-size: 1.8rem;
    line-height: 1;
    margin: 0 0 2em;
}

.calendar_month2 {
    font-size: 7rem;
    display: block;
    line-height: 1;
    margin: -.15em 0 0;
}

#wp-calendar {
    width: 100%;
    border-collapse: collapse;
}

.schedule tr th,
.schedule tr td {
    width: calc(100% / 7);
    position: relative;
    color: #ccc;
    font-size: 2.4rem;
    border: .5px solid #d9d9d9;
}

.schedule tr th {
    color: #333;
    text-align: center;
    padding: 10px 0;
}

.schedule td {
    height: 88px;
    background: #F2F2F2;
    vertical-align: top;
}

.calendar_date {
    display: block;
    width: 32px;
    height: 32px;
    color: #ccc;
    font-size: 2.4rem;
    line-height: 22px;
    text-align: center;
    padding: 4px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
}

.sche_box {
    padding-top: 30px;
    /* Space for date number */
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sche_box a {
    display: block;
    text-decoration: none;
    color: #333;
    transition: opacity 0.3s;
}

.sche_box a:hover {
    opacity: 0.7;
}

.sche_box span {
    color: #555;
    font-size: 1.3rem;
    /* Small font for calendar */
    display: block;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 4px;
    border-radius: 2px;
    /* Text Overflow logic */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

/* Calendar Navigation */
.calendar_nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar_nav a {
    font-size: 1.6rem;
    font-weight: bold;
    color: #000;
    padding: 10px 20px;
    border: 1px solid #000;
    transition: all 0.3s ease;
}

.calendar_nav a:hover {
    background: #000;
    color: #fff;
    text-decoration: none;
}

/* Party List & Cards */
.party_list {
    background: #fff;
    overflow: visible;
    padding-bottom: 50px;
}

.party_list ul.card {
    position: relative;
    top: -100px;
    max-width: none;
    /* Full width as requested */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 16px;
    padding: 0 4%;
    /* Responsive whitespace */
}

.card li.card_child {
    width: calc(33.333% - 11px);
    background: transparent;
    /* Remove white background */
    box-shadow: none;
    /* Remove shadow if desired, or keep */
    list-style: none;
    margin-bottom: 16px;
    display: flex;
    /* Make it a flex container */
    flex-direction: column;
}

.card li.card_child>a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card li.card_child .parmalink {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card li.card_child figure {
    margin: 0;
}

.card li.card_child figure img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.card dl {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Fill remaining space */
    margin: 0;
}

.card dl dt {
    width: 100%;
    padding: 12px;
    background: #0F0F0F;
    color: #fff;
    text-align: center;
}

.card dl dd {
    width: 100%;
    margin: 0;
    padding: 12px;
    background: rgba(15, 15, 15, 0.8);
    color: #fff;
    text-align: left;
    flex-grow: 1;
    /* Extend to bottom */
    word-break: break-word;
    /* Prevent overflow */
    overflow-wrap: break-word;
}

.month,
.time,
.yobi,
.cat {
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.day,
.tit {
    font-size: 28px;
    margin: 0 0 8px;
}

/* Footer */
footer {
    background: #000;
    padding: 64px 0 80px;
    text-align: center;
    color: #fff;
}

.fnav ul {
    display: inline-block;
    padding: 0;
    background: rgba(0, 0, 0, .5);
    margin: 0 0 1em;
}

.fnav li {
    display: inline-block;
    font-size: 18px;
    margin: 0 1em;
}

.copy span {
    font-size: 15px;
    background: rgba(0, 0, 0, .5);
}

.site-info figure img {
    width: 15%;
    max-width: 138px;
    height: auto;
    display: inline-block;
    /* Ensure centering works if parent is text-align: center */
}

/* Footer SNS */
.site-footer .fp-sns-section {
    margin: 0 0 24px;
}

.site-footer .fp-sns-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .fp-sns-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer .fp-sns-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.site-footer .fp-sns-link:hover,
.site-footer .fp-sns-link:focus-visible {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
}

.site-footer .fp-sns-link:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.site-footer .fp-sns-icon {
    width: 100%;
    height: 100%;
    fill: #fff;
    stroke: #fff;
    stroke-width: 1;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: none;
}

.site-footer .fp-sns-link.youtube .fp-sns-icon,
.site-footer .fp-sns-link.x-twitter .fp-sns-icon,
.site-footer .fp-sns-link.instagram .fp-sns-icon,
.site-footer .fp-sns-link.facebook .fp-sns-icon {
    fill: #fff;
    stroke: #fff;
}

@keyframes drawIcon {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fillYoutube {
    to {
        fill: #ff2a2a;
        stroke: transparent;
    }
}

@keyframes fillX {
    to {
        fill: #f2f2f2;
        stroke: transparent;
    }
}

@keyframes fillInstagram {
    to {
        fill: #e04a82;
        stroke: transparent;
    }
}

@keyframes fillFacebook {
    to {
        fill: #2e7df6;
        stroke: transparent;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .card li.card_child {
        width: 100%;
    }

    .site-footer .fp-sns-grid {
        gap: 16px;
    }

    .site-footer .fp-sns-link {
        width: 40px;
        height: 40px;
    }
}
/* Donation Banner (Global) */
.fp-banner-container {
    margin: 0 auto 80px;
    width: 100%;
    max-width: 1000px;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
}

.fp-banner-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fp-banner-container img:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Footer Contact Email */
.fp-contact-email {
    text-align: center;
    margin: 20px 0;
}

.fp-contact-email a {
    color: #fff;
    font-size: 1.1rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    letter-spacing: 0.05em;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.fp-contact-email a:hover {
    opacity: 1;
    text-decoration: none;
}
