/*
Theme Name: Aiden
Theme URI: https://aiden-g.com
Author: Aiden Group
Author URI: https://aiden-g.com
Description: あいでんグループ公式サイト用WordPressテーマ。preview.htmlデザインの完全再現版。
Version: 1.0
*/

/* ========================================
   AIDEN - 地域密着型でんきやさんスタイル
   ======================================== */

:root {
    --color-primary: #004098;
    --color-primary-dark: #003070;
    --color-accent: #ff6b35;
    --color-accent-red: #e53935;
    --color-bg: #ffffff;
    --color-bg-alt: #f5f7fa;
    --color-bg-cream: #fff8f0;
    --color-text: #333333;
    --color-text-muted: #666666;
    --color-border: #e0e0e0;

    --font-primary: 'Noto Sans JP', sans-serif;
    --header-height: 80px;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.8;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   ヘッダー
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--color-primary);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-bar .header {
    top: 32px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo .logo-icon {
    font-size: 2rem;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: background 0.3s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link .nav-en {
    font-size: 0.65rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-line {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

/* ========================================
   モバイルメニュー
   ======================================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    pointer-events: none;
    visibility: hidden;
}

.mobile-menu.is-open {
    pointer-events: auto;
    visibility: visible;
}

.mobile-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-menu.is-open .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu-inner {
    position: absolute;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: var(--color-primary);
    padding: calc(var(--header-height) + 20px) 0 20px;
    transition: right 0.3s;
    overflow-y: auto;
}

.mobile-menu.is-open .mobile-menu-inner {
    right: 0;
}

.mobile-menu-link {
    display: block;
    color: white;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.mobile-menu-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ========================================
   ヒーロースライダー
   ======================================== */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f5f7fa;
}

.hero-slider-track {
    position: relative;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide:first-child {
    position: relative;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    padding: 0;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.hero-dot.is-active {
    background: white;
    transform: scale(1.2);
}

/* ========================================
   セクション共通
   ======================================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.section-title-en {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-desc {
    margin-top: 15px;
    color: var(--color-text-muted);
    font-size: 1rem;
}

/* ========================================
   サービスセクション
   ======================================== */
.section-services {
    background: var(--color-bg-cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 64, 152, 0.15);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   お知らせセクション
   ======================================== */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s;
}

.news-item:hover {
    background: var(--color-bg-alt);
}

.news-date {
    background: var(--color-primary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.news-title {
    flex: 1;
    font-weight: 500;
}

.news-arrow {
    color: var(--color-primary);
    font-size: 1.2rem;
}

/* ========================================
   お約束セクション
   ======================================== */
.section-commitment {
    background: linear-gradient(135deg, var(--color-primary) 0%, #0055aa 100%);
    color: white;
}

.section-commitment .section-title {
    color: white;
}

.section-commitment .section-title-en {
    color: var(--color-accent);
}

.section-commitment .section-desc {
    color: rgba(255, 255, 255, 0.8);
}

.commitment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.commitment-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.commitment-num {
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0 auto 20px;
}

.commitment-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.commitment-desc {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .commitment-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   店舗一覧セクション
   ======================================== */
.section-shops {
    background: var(--color-bg-alt);
}

.area-map {
    text-align: center;
    margin-bottom: 40px;
}

.area-map img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.shop-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.shop-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-info {
    padding: 20px;
}

.shop-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.shop-details {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.8;
    list-style: none;
    padding: 0;
}

.shop-details li {
    padding: 2px 0;
}

.shop-details a {
    color: var(--color-primary);
}

.shop-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.shop-link {
    padding: 8px 16px;
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.shop-link:hover {
    opacity: 0.85;
}

.shop-link-hp {
    background: var(--color-primary);
}

.shop-link-map {
    background: #34a853;
}

@media (max-width: 768px) {
    .shops-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   会社案内セクション
   ======================================== */
.section-company {
    background: linear-gradient(180deg, #ffffff 0%, #e8f4fc 100%);
    position: relative;
    overflow: hidden;
}

.section-company::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0, 64, 152, 0.1), transparent);
}

.company-header {
    text-align: center;
    margin-bottom: 50px;
}

.company-header h2 {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35 0%, #e53935 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 900;
}

.company-section-title {
    background: var(--color-primary);
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    display: inline-block;
    border-radius: 0 30px 30px 0;
    margin-bottom: 30px;
}

.company-philosophy {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 2;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.company-table tr {
    border-bottom: 1px solid #e5e5e5;
}

.company-table tr:last-child {
    border-bottom: none;
}

.company-table th {
    padding: 18px 25px;
    text-align: left;
    width: 180px;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.95rem;
    vertical-align: top;
}

.company-table td {
    padding: 18px 25px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .company-table th {
        width: 120px;
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .company-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .company-philosophy {
        font-size: 1.2rem;
    }
}

/* ========================================
   CTAセクション
   ======================================== */
.section-cta {
    background: var(--color-accent);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.cta-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    margin-bottom: 20px;
}

.cta-phone {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.cta-phone-icon {
    font-size: 2.5rem;
}

.cta-note {
    margin-top: 10px;
    opacity: 0.9;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--color-primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 15px;
}

.footer-tagline {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-nav {
    display: flex;
    gap: 60px;
}

.footer-nav-group h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-accent);
}

.footer-nav-group a {
    display: block;
    padding: 5px 0;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-nav-group a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
    }

    .footer-nav {
        flex-direction: column;
        gap: 30px;
    }
}

/* ========================================
   ボタン
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-accent);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* ========================================
   個別投稿ページ
   ======================================== */
.single-post-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px solid var(--color-primary);
}

.single-post-date {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.single-post-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.5;
}

.single-post-content {
    font-size: 1rem;
    line-height: 2;
}

.single-post-content p {
    margin-bottom: 1.5em;
}

.single-post-content img {
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.single-post-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 40px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border);
}

.single-post-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 30px 0 10px;
}

/* ========================================
   ページネーション
   ======================================== */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination .page-numbers.current {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.pagination .page-numbers:hover:not(.current) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ========================================
   WP Admin Bar 調整
   ======================================== */
.admin-bar .mobile-menu-inner {
    padding-top: calc(var(--header-height) + 32px + 20px);
}