/*
Theme Name: ecjissenhub.tokyo
Theme URI: https://ecjissenhub.tokyo
Author: ecjissenhub.tokyo
Author URI: https://ecjissenhub.tokyo
Description: Custom theme for ecjissenhub.tokyo
Version: 0.0.1β
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ecjissenhub
Tags: custom
*/

/* カラー変数 */
:root {
    --color-main: #080f1e;
    --color-sub: #c9a76f;
    --color-bg: #fdfdfd;
    --color-text: #333;
    --color-light: #f5f5f5;
    --color-border: #eee;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

a {
    color: var(--color-sub);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-main);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.site-header {
    background-color: var(--color-main);
    padding: 20px 0;
}

.site-branding {
    padding: 10px 0;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-text {
    align-self: flex-start;
    text-align: left;
    margin-bottom: 15px;
    width: 100%;
}

.site-title {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

.site-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 5px 0;
}

.home-link {
    font-size: 14px;
    color: var(--color-sub);
    display: inline-block;
    margin-top: 5px;
}

.home-link:hover {
    text-decoration: underline;
}

.site-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    width: 100%;
}

.custom-logo {
    max-height: 80px;
    width: auto;
}

/* Navigation */
.main-navigation {
    margin-top: 15px;
}

.main-navigation ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
    margin: 0 10px;
}

.main-navigation a {
    display: block;
    padding: 10px;
    color: #fff;
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--color-sub);
}

.menu-toggle {
    display: none;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 8px 15px;
    cursor: pointer;
    font-size: 16px;
    margin: 10px auto;
}

/* Main content */
.site-content {
    padding: 40px 0;
}

/* Card Layout for Posts */
.card-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card .post-thumbnail {
    height: 200px;
    overflow: hidden;
}

.card .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.card .entry-header {
    padding: 20px 20px 10px;
}

.card .entry-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.card .entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.card .cat-links {
    display: inline-block;
    background-color: var(--color-sub);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

.card .cat-links a {
    color: #fff;
}

.card .posted-on {
    font-size: 12px;
    color: #888;
}

.card .entry-content {
    padding: 0 20px 20px;
}

.card .entry-content p {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card .read-more {
    display: inline-block;
    color: var(--color-sub);
    font-weight: 500;
    font-size: 14px;
}

/* Single Post */
.single .entry-header {
    margin-bottom: 30px;
}

.single .entry-title {
    font-size: 32px;
    margin-bottom: 15px;
}

.single .entry-meta {
    margin-bottom: 20px;
    color: #666;
}

.single .post-thumbnail {
    margin-bottom: 30px;
}

.single .post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.single .entry-content {
    margin-bottom: 40px;
}

.single .entry-content p {
    margin-bottom: 20px;
}

/* Sidebar */
.widget-area {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-sub);
    color: var(--color-main);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.widget li:last-child {
    border-bottom: none;
}

/* Footer */
.site-footer {
    padding: 40px 0;
    background-color: var(--color-main);
    color: #fff;
    text-align: center;
}

.footer-branding {
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

.site-info {
    margin: 20px 0;
}

.site-info a {
    color: #fff;
}

.footer-navigation ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-navigation li {
    margin: 0 10px;
}

.footer-navigation a {
    color: rgba(255, 255, 255, 0.8);
    padding: 5px;
}

.footer-navigation a:hover {
    color: var(--color-sub);
}

/* Front Page Styles */
.front-page .hero-section {
    position: relative;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 40px;
}

.front-page .hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.front-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.front-page .hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.front-page .hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.front-page .cta-button {
    display: inline-block;
    background-color: var(--color-sub);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.front-page .cta-button:hover {
    background-color: #b69660;
    color: #fff;
}

.front-page .section-title {
    font-size: 28px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-main);
    position: relative;
    padding-bottom: 15px;
}

.front-page .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-sub);
}

.front-page .featured-content,
.front-page .events-section {
    margin-bottom: 60px;
}

.front-page .home-widgets {
    margin-bottom: 60px;
}

.front-page .home-widget {
    margin-bottom: 40px;
}

.front-page .more-link-container {
    text-align: center;
    margin-top: 30px;
}

.front-page .more-link {
    display: inline-block;
    background-color: var(--color-main);
    color: #fff;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.front-page .more-link:hover {
    background-color: #162040;
    color: #fff;
}

.front-page .event-date {
    display: inline-block;
    background-color: var(--color-main);
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
}

/* Content Area Layout */
.content-area {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .content-area {
        width: 70%;
        margin: 0;
    }

    .widget-area {
        width: 25%;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .card-layout {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-navigation li {
        margin: 0;
        text-align: center;
    }
    
    .main-navigation a {
        padding: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-navigation ul {
        flex-direction: column;
    }
    
    .footer-navigation li {
        margin: 5px 0;
    }

    .front-page .hero-content h1 {
        font-size: 36px;
    }

    .front-page .hero-content p {
        font-size: 18px;
    }

    .front-page .hero-section {
        height: 400px;
    }
}

@media screen and (max-width: 480px) {
    .card-layout {
        grid-template-columns: 1fr;
    }
    
    .single .entry-title {
        font-size: 24px;
    }
    
    .custom-logo,
    .footer-logo img {
        max-height: 50px;
    }

    .front-page .hero-content h1 {
        font-size: 28px;
    }

    .front-page .hero-content p {
        font-size: 16px;
    }

    .front-page .hero-section {
        height: 350px;
    }

    .front-page .cta-button {
        padding: 10px 20px;
        font-size: 16px;
    }
} 