@charset "UTF-8";
/*
Theme Name: 宅食STYLE
Theme URI: https://example.com/takushoku-style
Author: Takushoku Style Team
Description: 宅食サービスの比較・レビューに特化した、信頼性と読みやすさを追求した2カラムテーマ。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ----------------------------------------------------------------
   1. Base Styles & Variables
----------------------------------------------------------------- */
:root {
    --primary-text: #333333;
    --secondary-text: #666666;
    /* User Requested Color Override */
    --accent-color: #083879; 
    --accent-hover: #062b5e;
    --bg-light: #ffffff;
    --bg-gray: #f5f7fa;
    --border-color: #e0e0e0;
    --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    --container-width: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-base);
    color: var(--primary-text);
    line-height: 1.8;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    border-radius: 4px;
}

/* ----------------------------------------------------------------
   2. Layout & Components
----------------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid var(--accent-color);
    position: relative;
    line-height: 1.4;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(8, 56, 121, 0.3);
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 6px 8px rgba(8, 56, 121, 0.4);
}

/* ----------------------------------------------------------------
   3. Header
----------------------------------------------------------------- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Custom Logo sizing */
.site-logo img {
    height: 50px;
    width: auto;
    max-width: 300px; /* Constraint as requested */
}

/* Global Nav */
.global-nav ul {
    display: flex;
    gap: 30px;
}

.global-nav a {
    font-weight: bold;
    font-size: 15px;
    color: var(--primary-text);
    position: relative;
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

.global-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* ----------------------------------------------------------------
   4. Hero Section (Home)
----------------------------------------------------------------- */
.hero-section {
    background: linear-gradient(135deg, #fff 50%, var(--bg-gray) 50%);
    padding: 60px 0;
    margin-bottom: 40px;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 32px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.hero-title span {
    color: var(--accent-color);
}

.hero-text {
    font-size: 15px;
    color: var(--secondary-text);
    margin-bottom: 25px;
    text-align: justify;
}

.hero-image {
    flex: 1;
}

/* ----------------------------------------------------------------
   5. Main Structure (2 Column)
----------------------------------------------------------------- */
.main-container {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.main-content {
    flex: 7;
    width: 100%;
}

.sidebar {
    flex: 3;
    width: 100%;
}

/* ----------------------------------------------------------------
   6. News List & Loop
----------------------------------------------------------------- */
.news-section {
    margin-bottom: 60px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Card Style (used in Single/Page too) */
.news-item {
    display: flex;
    gap: 20px;
    background: #fff;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.news-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-color: var(--accent-color);
}

.news-thumb {
    width: 160px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-item:hover .news-thumb img {
    transform: scale(1.05);
}

.news-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-info {
    font-size: 12px;
    color: var(--secondary-text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-cat {
    background: var(--bg-gray);
    padding: 3px 10px;
    border-radius: 4px;
    color: var(--primary-text);
    font-weight: bold;
    font-size: 11px;
}

.news-title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 5px;
}

.news-title a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------------
   7. Single Post & Page Content (Important for WP)
----------------------------------------------------------------- */
/* When .news-item is used as a wrapper for single post (block display) */
.news-item.post, 
.news-item.page {
    display: block;
    padding: 40px;
    cursor: default;
}

.news-item.post:hover, 
.news-item.page:hover {
    box-shadow: none;
    border-color: var(--border-color);
}

/* Entry Content Styling (H2, H3, P, Lists) */
.entry-content {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--primary-text);
}

.entry-content p {
    margin-bottom: 1.8em;
}

.entry-content h2 {
    font-size: 24px;
    font-weight: bold;
    background: var(--bg-gray);
    padding: 15px 20px;
    margin: 50px 0 30px;
    border-left: 5px solid var(--accent-color);
    border-radius: 0 4px 4px 0;
}

.entry-content h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.entry-content h4 {
    font-size: 18px;
    font-weight: bold;
    margin: 30px 0 15px;
}

.entry-content ul, 
.entry-content ol {
    margin: 0 0 30px 20px;
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content blockquote {
    background: var(--bg-gray);
    padding: 20px;
    margin: 30px 0;
    border-left: 4px solid #ccc;
    font-style: italic;
    color: #555;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Post Navigation */
.post-navigation a {
    display: inline-block;
    padding: 10px 0;
    font-size: 14px;
    color: var(--secondary-text);
}
.post-navigation a:hover {
    color: var(--accent-color);
}

/* ----------------------------------------------------------------
   8. WordPress Standard Classes
----------------------------------------------------------------- */
.aligncenter {
    display: block;
    margin: 0 auto 20px;
    text-align: center;
}
.alignright {
    float: right;
    margin: 0 0 20px 20px;
}
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}
.wp-caption {
    max-width: 100%;
    background: #f9f9f9;
    padding: 5px;
    margin-bottom: 20px;
    text-align: center;
}
.wp-caption-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Pagination */
.pagination-wrapper .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.pagination-wrapper .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
    color: var(--primary-text);
    font-weight: bold;
    font-size: 14px;
}
.pagination-wrapper .page-numbers.current,
.pagination-wrapper .page-numbers:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* ----------------------------------------------------------------
   9. Recommended Section
----------------------------------------------------------------- */
.recommend-section {
    background-color: var(--bg-gray);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 60px;
}

.recommend-intro {
    font-size: 15px;
    margin-bottom: 30px;
    color: var(--secondary-text);
    line-height: 1.8;
}

.recommend-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.recommend-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    flex: 1 1 calc(50% - 20px);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.recommend-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.recommend-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.recommend-text h3 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

.recommend-text p {
    font-size: 13px;
    color: var(--secondary-text);
    line-height: 1.5;
    margin: 0;
}

/* ----------------------------------------------------------------
   10. Operator & Contact
----------------------------------------------------------------- */
.operator-section {
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.operator-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(to bottom left, rgba(8, 56, 121, 0.05) 50%, transparent 50%);
}

.operator-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.operator-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.operator-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: bold;
}

.operator-role {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}

.operator-bio {
    font-size: 14px;
    color: var(--secondary-text);
    line-height: 1.7;
}

.contact-section {
    background-image: url('https://placehold.jp/1200x400.png?text=Contact+Bg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 50px;
    text-align: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.contact-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
}

.contact-text {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.9;
}

/* ----------------------------------------------------------------
   11. Sidebar & Widgets
----------------------------------------------------------------- */
.widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.widget-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-gray);
    color: var(--primary-text);
}

.widget-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}

.widget-list li:last-child {
    border: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.widget-list a {
    display: block;
    color: var(--secondary-text);
}

.widget-list a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.banner-ad {
    display: block;
    margin-bottom: 30px;
    text-align: center;
}

/* Search Form (Widget) */
.widget input[type="text"],
.widget input[type="search"] {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-gray);
}
.widget input[type="text"]:focus,
.widget input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #fff;
}

/* ----------------------------------------------------------------
   12. Footer
----------------------------------------------------------------- */
.site-footer {
    background: #222;
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 13px;
    margin-top: 60px;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #444;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.copyright {
    text-align: center;
    color: #777;
    font-size: 11px;
}

/* ----------------------------------------------------------------
   13. Responsive Media Queries
----------------------------------------------------------------- */
@media (max-width: 900px) {
    .container {
        padding: 0 15px;
    }
    .recommend-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    /* Header */
    .header-inner {
        height: 60px;
    }
    .global-nav {
        display: none; /* JS toggle would be needed for menu */
    }
    .menu-toggle {
        display: block;
    }

    /* Hero */
    .hero-section {
        padding: 30px 0;
    }
    .hero-inner {
        flex-direction: column;
        gap: 20px;
    }
    .hero-image {
        order: -1;
        width: 100%;
    }
    .hero-title {
        font-size: 24px;
    }

    /* Layout */
    .main-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .news-item {
        flex-direction: column;
    }
    .news-thumb {
        width: 100%;
        height: 180px;
    }

    /* Single Post */
    .news-item.post, 
    .news-item.page {
        padding: 20px;
    }
    .entry-content h2 {
        font-size: 20px;
        padding: 10px 15px;
        margin: 30px 0 20px;
    }

    /* Operator */
    .operator-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    /* Footer */
    .footer-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
        gap: 15px;
    }
}