/*
Theme Name: Local Business Site
Description: ローカルビジネス向けWordPressサイト制作システム
Version: 1.0.0
Author: Your Company
Text Domain: local-business
*/

/* ========================================
   1. リセット & ベーススタイル
======================================== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background-color: #FFFFFF;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Noto Serif JP', serif;
    margin: 0;
    line-height: 1.3;
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

p {
    margin: 0 0 1rem 0;
}

a {
    color: #3B82F6;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* ========================================
   2. レイアウト基本クラス
======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.subpage-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.site-content {
    flex: 1;
    width: 100%;
    max-width: 100%;
}

/* ========================================
   3. ヘッダー
======================================== */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.site-header.header-fixed {
    position: sticky;
    top: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    width: 100%;
    max-width: 100%;
}

/* ロゴスタイル(画像・テキスト対応) */
.site-logo {
    flex-shrink: 0;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-image {
    display: block;
    max-height: 60px;
    width: auto;
}

.logo-text {
    font-weight: bold;
    color: #333333;
    text-decoration: none;
}

/* PCメニュー */
.main-nav {
    display: none;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #3B82F6;
    text-decoration: underline;
}

/* モバイルメニュー */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: #333333;
    transition: all 0.3s ease;
}

.mobile-menu-toggle[aria-expanded='true'] .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle[aria-expanded='true'] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded='true'] .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-nav {
    background-color: #FFFFFF;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999;
}

.mobile-nav-content {
    padding: 1rem 0;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-link {
    display: block;
    padding: 1rem 20px;
    color: #333333;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ========================================
   4. メインビジュアル(幅拡張)
======================================== */
.main-visual {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.visual-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.visual-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ビジュアルコンテンツの幅拡張 */
.visual-content-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0 20px;
}

.visual-content {
    position: relative;
    z-index: 1;
    max-width: 1200px; /* 幅を拡張(従来800px→1200px) */
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
}

.visual-title {
    font-size: clamp(2.5rem, 6vw, 4rem); /* より大きなフォントサイズ */
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    line-height: 1.2;
}

.visual-subtitle {
    font-size: clamp(1.25rem, 3.5vw, 1.75rem); /* より大きなサブタイトル */
    margin-bottom: 2.5rem;
    opacity: 0.9;
    word-wrap: break-word;
    line-height: 1.4;
}

.visual-cta {
    margin-top: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: #3B82F6;
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* ========================================
   5. セクション
======================================== */
.content-section {
    padding: 60px 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
    word-wrap: break-word;
}

.section-description {
    text-align: center;
    margin-bottom: 2rem;
    color: #64748B;
    word-wrap: break-word;
}

.section-content {
    word-wrap: break-word;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.section-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.section-image img {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* お知らせセクション */
.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.news-item:last-child {
    border-bottom: none;
}

.news-meta {
    flex-shrink: 0;
    width: 100px;
}

.news-meta time {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.news-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.news-title a {
    color: #1f2937;
    text-decoration: none;
}

.news-title a:hover {
    color: #3B82F6;
    text-decoration: underline;
}

.news-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
}

.news-archive-link {
    text-align: center;
    margin-top: 2rem;
}

.btn-more {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #f3f4f6;
    color: #374151;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: #e5e7eb;
    text-decoration: none;
}

.no-news {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
}

/* テーブル */
.table-container {
    overflow-x: auto;
    margin: 2rem 0;
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    pointer-events: none;
}

.responsive-table th,
.responsive-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.responsive-table th {
    background-color: #f9fafb;
    font-weight: bold;
    color: #1F2937;
    text-decoration: none !important;
    border: 1px solid #e5e7eb !important;
}

.responsive-table tr {
    pointer-events: none;
    cursor: default;
    user-select: none;
}

.responsive-table a,
.responsive-table a *,
.responsive-table a:hover,
.responsive-table a:active,
.responsive-table a:focus,
.responsive-table a:hover *,
.responsive-table a:active *,
.responsive-table a:focus *,
.responsive-table td,
.responsive-table td * {
    text-decoration: none !important;
    text-decoration-line: none !important;
    color: inherit !important;
    outline: none;
    pointer-events: none !important;
}

/* FAQ */
.faq-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background-color: #f9fafb;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
    outline: none !important;
    border: none !important;
}

.faq-question:hover {
    background-color: #f3f4f6;
}

.faq-question:focus {
    outline: none !important;
}

.faq-question:active {
    outline: none !important;
}

.faq-question:focus-visible {
    outline: none !important;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.125rem;
}

.faq-question .faq-text,
.faq-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    margin: 0;
    font-size: 1.125rem;
    font-weight: bold;
    line-height: 1.4;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #3B82F6;
    transition: transform 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: #3B82F6;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
    width: 16px;
    height: 2px;
}

.faq-icon::after {
    width: 2px;
    height: 16px;
}

.faq-item.active .faq-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 1.5rem;
}

/* アクセス */
.access-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
}

.store-info h3 {
    margin-bottom: 1.5rem;
    color: #3B82F6;
}

.info-list {
    margin: 0;
}

.info-list dt {
    font-weight: bold;
    color: #1F2937;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.info-list dt:first-child {
    margin-top: 0;
}

.info-list dd {
    margin: 0;
    margin-bottom: 0.5rem;
    color: #64748B;
}

.info-list a {
    color: #3B82F6;
}

/* スライダー */
.slider-container {
    margin: 2rem 0;
}

.swiper {
    padding: 0 40px 40px 40px;
}

.swiper-slide {
    height: auto;
}

.slide-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.slide-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 1rem;
    font-weight: bold;
}

.swiper-button-next,
.swiper-button-prev {
    color: #3B82F6;
}

.swiper-pagination-bullet-active {
    background-color: #3B82F6;
}

/* ========================================
   6. フォーム
======================================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: #f9fafb;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.form-fields {
    margin-bottom: 2rem;
}

.form-field {
    margin-bottom: 1.5rem;
}

.field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #1F2937;
    word-wrap: break-word;
}

.required-mark {
    color: #ef4444;
    font-weight: bold;
}

.field-input {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.field-input:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.field-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-submit {
    text-align: center;
}

.submit-button {
    background-color: #3B82F6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: auto;
    max-width: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-messages {
    margin-top: 1rem;
}

.form-success,
.form-error {
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    word-wrap: break-word;
}

.form-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* ========================================
   7. フッター
======================================== */
.site-footer {
    background-color: #1F2937;
    color: #F9FAFB;
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.footer-nav {
    margin-bottom: 2rem;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-menu-link {
    color: #93C5FD;
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
}

.footer-menu-link:hover {
    text-decoration: underline;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ========================================
   8. アニメーション
======================================== */
.has-scroll-animation .content-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.has-scroll-animation .content-section.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   9. レスポンシブデザイン
======================================== */

/* タブレット以上 */
@media (min-width: 768px) {
    .main-nav {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .access-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .container {
        width: 90%;
        max-width: 1200px;
    }
    
    .subpage-container {
        width: 85%;
        max-width: 1000px;
    }
}

/* スマートフォン */
@media (max-width: 767px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .subpage-container {
        width: 95%;
        padding: 0 15px;
    }
    
    .content-section {
        padding: 40px 0;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .access-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-visual {
        min-height: 60vh;
    }
    
    .visual-content {
        padding: 2rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
        margin: 0 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-content {
        flex-wrap: wrap;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* テーブルレスポンシブ対応 */
    .responsive-table {
        border: none;
    }
    
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tr {
        display: block;
        border: 1px solid #e5e7eb;
        margin-bottom: 1rem;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .responsive-table td {
        display: block;
        text-align: right;
        border: none;
        border-bottom: 1px solid #e5e7eb;
        padding: 0.75rem;
    }
    
    .responsive-table td:last-child {
        border-bottom: none;
    }
    
    .responsive-table td:before {
        content: attr(data-label) ': ';
        float: left;
        font-weight: bold;
        color: #1F2937;
    }
    
    /* スライダーモバイル調整 */
    .swiper {
        padding: 0 20px 40px 20px;
    }
    
    .slide-image img {
        height: 200px;
    }
    
    /* お知らせリストモバイル調整 */
    .news-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .news-meta {
        width: 100%;
    }
}

/* 小画面スマートフォン */
@media (max-width: 480px) {
    .container,
    .subpage-container {
        width: 100%;
        padding: 0 10px;
    }
    
    .visual-title {
        font-size: 2rem;
    }
    
    .visual-subtitle {
        font-size: 1.125rem;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.125rem;
    }
    
    .contact-form {
        padding: 1rem;
        margin: 0 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .submit-button {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .slide-image img {
        height: 150px;
    }
}

/* ========================================
   10. ユーティリティクラス
======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

/* WordPressコンテンツクラス */
.entry-content {
    margin-bottom: 2rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-bottom: 1rem;
}

.page-header {
    padding: 2rem 0;
    background-color: #f9fafb;
}

.page-content {
    padding: 3rem 0;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.alignleft {
    float: left;
    margin: 0 1rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1rem;
}

/* ========================================
   11. 印刷用スタイル
======================================== */
@media print {
    .mobile-menu-toggle,
    .mobile-nav,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination,
    .faq-icon {
        display: none !important;
    }
    
    .content-section {
        page-break-inside: avoid;
        opacity: 1 !important;
        transform: none !important;
    }
    
    .main-visual {
        min-height: 200px;
    }
    
    a {
        text-decoration: underline;
    }
    
    .info-list a[href^='tel:']:after {
        content: ' (' attr(href) ')';
    }
    
    .info-list a[href^='mailto:']:after {
        content: ' (' attr(href) ')';
    }
}
