/* ========================================
   CSS Reset & Base Styles
   ======================================== */

/* Bootstrap 5との共存のため、最小限のリセット */
:root {
    /* Colors */
    --primary-navy: #1E1A56;
    --secondary-navy: #2B2768;
    --accent-purple: #3B357A;
    --bg-light: #F8F9FB;
    --bg-white: #FFFFFF;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --border-light: #E5E7EB;
    
    /* Typography */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-mincho: 'Shippori Mincho', serif;
    --font-size-base: 18px;
    --line-height-base: 1.9;
    
    /* Spacing */
    --container-width: 1120px;
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    
    /* Bootstrap override */
    --bs-body-font-family: var(--font-base);
    --bs-body-color: var(--text-dark);
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size-base);
    overflow-x: hidden;
}

body {
    font-family: var(--font-base);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-width: 375px;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-base);
}

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

main ul,
main p {
    text-align: left;
}

/* ========================================
   Container Override
   ======================================== */
/* Bootstrap 5のcontainerを上書き */
.container {
    max-width: var(--container-width) !important;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--bg-white);
}

.site-header::after {
    content: '';
    display: block;
    width: 100%;
    height: 8px;
    background: url(../img/gnavi_bottom_line.svg) no-repeat;
    background-size: cover;
    background-position-x: right;
}

/* Header Main */
.header-main {
    background-color: var(--bg-white);
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-sub {
    font-size: 12px;
    color: var(--text-gray);
    letter-spacing: 0.05em;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-navy);
    letter-spacing: 0.05em;
}

/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 32px;
}

.main-nav a {
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding: 4px 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-navy);
    transition: width 0.3s ease;
}

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

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    padding: 0;
    z-index: 1002;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-navy);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background-color: var(--bg-white);
}

.hero-image {
    width: 100%;
    height: auto;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

body.sub-page .hero-image img {
    height: 200px;
    object-fit: cover;
    filter: blur(3px);
}

body.sub-page .hero-image-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
    display: block;
    text-align: center;
    line-height: 16px;
    /* line-height: 30px; */
    /* font-family: var(--font-mincho); */
    /* background-color: rgba(255, 255, 255, 0.4); */
    /* padding: 0 2rem; */
    /* border-radius: 50px; */
}

body.sub-page .hero-image-subtitle {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.hero-content {
    padding: 60px 0;
    text-align: center;
}

.hero-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
    line-height: 1.6;
}

.hero-text {
    /* font-size: 18px; */
    color: var(--text-dark);
    line-height: 1.9;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

body.sub-page .hero-title {
    margin-top: 1rem;
}

/* ========================================
   Photo Gallery
   ======================================== */
.photo-gallery {
    padding: 40px 0 60px;
    background-color: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--secondary-navy) 100%);
    padding: 80px 0;
    color: var(--bg-white);
}

/* Bootstrap gridを使用 */

.cta-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

.cta-text {
    /* font-size: 16px; */
    line-height: 1.9;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    /* font-size: 15px; */
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-base);
    letter-spacing: 0.05em;
}

.btn-primary {
    background-color: var(--bg-white);
    color: var(--primary-navy);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-image figure {
    position: relative;
    overflow: hidden;
}

.cta-image img {
    width: 100%;
    height: auto;
}

.cta-image figcaption {
    text-align: right;
    margin-top: 16px;
    /* font-size: 14px; */
    font-weight: 500;
    color: var(--bg-white);
    letter-spacing: 0.1em;
}

/* ========================================
   Services Section
   ======================================== */
.services-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

/* Bootstrap gridを使用 */

.service-card {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
    text-align: center;
}

.service-text {
    font-size: 18px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 24px;
    flex-grow: 1;
}

.more-icon {
    text-align: right;
    margin-bottom: 0;
}

.service-link {
}

.service-link:hover {
    /* background-color: var(--accent-purple); */
    /* transform: scale(1.1); */
}

.link-icon {
    color: var(--bg-white);
    font-size: 20px;
    font-weight: 700;
}

/* ========================================
   News Section
   ======================================== */
.news-section {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.title-icon {
    color: var(--accent-purple);
    font-size: 20px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 24px;
}

.news-marker {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: top;
    justify-content: center;
}

.marker-icon {
}

.news-content {
    flex-grow: 1;
    word-break: break-all;
}

.news-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
    line-height: 1.7;
}

.news-text {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 12px;
}

.news-text p {
    margin-bottom: 8px;
}

.news-link {
    color: var(--accent-purple);
    word-break: break-all;
    text-decoration: underline;
}

.news-link:hover {
    color: var(--primary-navy);
}

/* ========================================
   Blog Section
   ======================================== */
.blog-section {
    padding: 80px 0;
    /* background-color: var(--bg-light); */
    background: url(../img/2x/index_blog_bg.png) no-repeat center center;
    background-size: cover;
}

.blog-hero {
    position: relative;
    overflow: hidden;
}

.blog-hero-subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

.blog-hero-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    margin-top: 68px;
}

/* Bootstrap gridを使用 */

.blog-card {
    background: url(../img/2x/index_blog_line_bg.png) no-repeat center center;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 3rem;
    opacity: 0.8 !important;
    color: #482d02;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-icon {
}

.blog-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.blog-card-text {
    font-size: 14px;
    line-height: 1.8;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
}

.site-footer::before {
    content: '';
    display: block;
    width: 100%;
    height: 8px;
    background: url(../img/footer_top_line.svg) no-repeat;
    background-size: cover;
    background-position-x: left;
}

.footer-main {
    padding: 60px 0;
}

/* Bootstrap gridを使用 */

.footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.footer-address {
    font-style: normal;
    color: var(--text-dark);
    line-height: 1.9;
}

.footer-tel {
    color: var(--primary-navy);
}

.footer-tel:hover {
    color: var(--accent-purple);
}

/* Bootstrap gridを使用 */

/* Footer Bottom */
.footer-bottom {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
    padding: 32px 0;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1877F2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition-base);
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.footer-nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
}

.footer-nav a {
    color: var(--text-gray);
}

.footer-nav a:hover {
    color: var(--primary-navy);
}

.footer-copyright {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
    }
    
    /* Bootstrap handles grid responsiveness */
}

/* Header Mobile Menu (max-width: 991px) */
@media (max-width: 991px) {
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        padding-top: 80px;
        background-color: var(--bg-white);
        transition: left 0.3s ease;
        z-index: 1001;
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 32px;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-light);
    }
    
    .main-nav a {
        display: block;
        padding: 20px 0;
        font-size: 16px;
    }
    
    .menu-toggle {
        display: flex;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .header-main .container {
        padding-top: 16px;
        padding-bottom: 16px;
    }
    
    .brand-name {
        font-size: 20px;
    }
    
    .blog-hero {
        margin-bottom: 1.5rem;
    }
    
    /* Hero */
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 22px;
    }
    
    .hero-text {
        font-size: 15px;
    }
    
    /* Gallery */
    .photo-gallery {
        padding: 32px 0 48px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* CTA */
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: 22px;
    }
    
    .cta-text {
        font-size: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Services - Bootstrap handles responsiveness */
    
    /* News */
    .news-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 40px;
    }
    
    .news-item {
        gap: 16px;
    }
    
    /* Blog */
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-hero-title {
        font-size: 24px;
    }
    
    /* Bootstrap handles blog-cards responsiveness */
    
    /* Footer */
    .footer-main {
        padding: 48px 0;
    }
    
    /* Bootstrap handles footer-grid responsiveness */
    
    .footer-bottom {
        padding: 24px 0;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 20px;
    }
    
    .cta-title {
        font-size: 20px;
    }
    
    .blog-hero-title {
        font-size: 20px;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .service-link {
        bottom: 24px;
        right: 24px;
        width: 44px;
        height: 44px;
    }
}