/* ========================================
   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;

    --container-width: 1200px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

* {
    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;
}

ul,
ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    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);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-width);
    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 img {
    height: 50px;
}

.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 var(--transition-normal);
}

.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;
}

.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: 100vh;
    background: var(--color-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* ヒーロー */
.hero {
    padding-top: var(--header-height);
    background: linear-gradient(135deg, #e8f4fc 0%, #fff8f0 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,60 C480,100 960,20 1440,60 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: cover;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-catchphrase {
    font-size: 1.1rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 20px;
}

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

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.hero-badge {
    display: inline-block;
    background: var(--color-accent-red);
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-banner {
    width: 100%;
    height: auto;
    display: block;
    margin-top: var(--header-height);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
}

/* セクション共通 */
.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 var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #0066cc 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
}

.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 var(--transition-normal);
}

.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);
}

.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);
}

.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;
}

.shop-details li {
    padding: 5px 0;
}

.shop-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.shop-link {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    color: white;
}

.shop-link-hp {
    background: var(--color-primary);
}

.shop-link-map {
    background: #34a853;
}

/* 会社案内セクション */
.section-company {
    background: linear-gradient(180deg, #ffffff 0%, #e8f4fc 100%);
}

.company-header {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-red) 100%);
    color: white;
    padding: 20px 40px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 50px;
}

.company-header h2 {
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
}

.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;
    margin-bottom: 50px;
}

.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;
}

/* 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-note {
    margin-top: 10px;
    opacity: 0.9;
}

/* フッター */
.footer {
    background: var(--color-primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-inner {
    max-width: var(--container-width);
    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-logo img {
    height: 50px;
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
}

.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 var(--transition-normal);
}

.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 var(--transition-normal), box-shadow var(--transition-normal);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: none;
    cursor: pointer;
}

.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 var(--transition-normal);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: white;
}

/* ページヒーロー */
.page-hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 40px;
    background: linear-gradient(135deg, #e8f4fc 0%, #fff8f0 100%);
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: var(--color-primary);
}

.page-label {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
}

/* アラート */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

/* フォーム */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.required {
    color: var(--color-accent-red);
}

.form-group-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group-checkbox input {
    width: auto;
}

.form-group-checkbox label {
    margin-bottom: 0;
    font-weight: 500;
}

/* ニュースアーカイブ */
.news-archive {
    margin-bottom: 40px;
}

.news-archive-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 25px;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-normal);
}

.news-archive-item:hover {
    background: var(--color-bg-alt);
}

.news-thumbnail {
    width: 200px;
    height: 130px;
    overflow: hidden;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-archive-content {
    flex: 1;
}

.news-archive-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.news-excerpt {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .news-archive-item {
        flex-direction: column;
    }

    .news-thumbnail {
        width: 100%;
        height: 200px;
    }
}

/* 記事詳細 */
.article-header {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 40px;
    background: linear-gradient(135deg, #e8f4fc 0%, #fff8f0 100%);
}

.article-date {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    display: block;
}

.article-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--color-primary);
    line-height: 1.4;
}

.article-thumbnail {
    padding: 40px 0;
}

.article-thumbnail img {
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-body {
    padding: 40px 0 80px;
}

.prose {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--color-text);
}

.prose p {
    margin-bottom: 1.5em;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 2em 0 1em;
    padding-left: 15px;
    border-left: 4px solid var(--color-accent);
}

.prose ul,
.prose ol {
    margin: 1.5em 0;
    padding-left: 1.5em;
}

.prose li {
    margin-bottom: 0.5em;
    list-style: disc;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 30px;
}

.article-footer {
    padding: 40px 0;
    border-top: 1px solid var(--color-border);
}

/* ページネーション */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 0;
}

.pagination-link {
    padding: 10px 20px;
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    color: var(--color-primary);
    font-weight: 700;
    transition: all var(--transition-normal);
}

.pagination-link:hover {
    background: var(--color-primary);
    color: white;
}

.pagination-info {
    font-weight: 700;
    color: var(--color-text-muted);
}

/* お問い合わせフォーム */
.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text-muted);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* コンテナナロー */
.container-narrow {
    max-width: 900px;
}

/* エリアマップ */
.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);
}

/* ノーニュース */
.no-news {
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px;
}

/* プライバシーポリシー */
.policy-date {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}