/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ヘッダー --- */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed; /* ヘッダーを画面上部に固定 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between; /* ロゴとナビゲーションを両端に配置 */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    padding: 0 20px;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.header__logo__img {
    height: 60px;
}

.tel_container {
  display: flex; /* divを横並びにする */
  flex-wrap: wrap; /* 親要素の幅に収まらない場合に折り返して縦並びにする */
}

/* --- PC用ナビゲーション --- */
.nav__items {
    display: flex; /* 横並びにする */
    align-items: center;
    gap: 30px; /* 項目間の余白 */
}

.nav__item a {
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav__item a:hover {
    color: #007bff; /* ホバー時の色 */
}


/* --- ハンバーガーメニューボタン --- */
.hamburger {
    display: none; /* PCでは非表示 */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* ナビゲーションメニューより手前に表示 */
}

.hamburger__line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* --- メディアクエリ (画面幅が768px以下の場合) --- */
@media (max-width: 768px) {
    /* PC用ナビゲーションを非表示 */
    .header__nav {
        position: fixed;
        top: 0;
        right: -100%; /* 初期状態では画面右外に配置 */
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        transition: right 0.3s ease-in-out;
        padding-top: 100px;
    }

    /* is-activeクラスが付与されたら表示 */
    .header__nav.is-active {
        right: 0;
    }

    .nav__items {
        flex-direction: column; /* 縦並びにする */
        gap: 0;
    }

    .nav__item a {
        display: block;
        width: 100vw;
        text-align: center;
        padding: 20px 0;
        font-size: 1.2rem;
    }

    /* ハンバーガーメニューを表示 */
    .hamburger {
        display: block;
    }

    /* ハンバーガーメニューがアクティブな時の線の変化（×印に） */
    .hamburger.is-active .hamburger__line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.is-active .hamburger__line:nth-child(2) {
        opacity: 0;
    }
    .hamburger.is-active .hamburger__line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero Section */
/* FVスライドショー */
.fv-slider {
    width: 100%;
    height: 90vh; /* ビューポートの高さの90% */
    overflow: hidden; /* はみ出した画像を隠す */
    position: relative;
}

.slide-track {
    display: flex;
    /* 写真の枚数(3枚) × 100% */
    width: calc(100% * 3);
    /* 1枚ずつ表示するアニメーション（15秒で1周） */
    animation: scroll-3-steps 12s ease-in-out infinite;
}

.slide {
    width: 100%;
    height: 90vh;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の比率を保ったまま全体をカバー */
}

/* 写真3枚で1周するアニメーション */
@keyframes scroll-3-steps {
    /* 1枚目の写真 */
    0%   { transform: translateX(0%); }
    28%  { transform: translateX(0%); }

    /* 2枚目の写真 */
    33%  { transform: translateX(-33.333%); }
    61%  { transform: translateX(-33.333%); }

    /* 3枚目の写真 */
    66%  { transform: translateX(-66.666%); }
    94%  { transform: translateX(-66.666%); }

    100% { transform: translateX(-66.666%); }
}

/* 画面幅が768px以下の場合の調整 */
@media (max-width: 768px) {
    .fv-slider, .slide {
        height: 50vh; /* スマホでは少し高さを抑える */
    }
}
.hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
    margin-top: 80px;
    padding: 0;
    max-width: 100%;
}

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

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

.hero-content {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-nav {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 8px;
    backdrop-filter: blur(10px);
}

.hero-nav-item {
    border-radius: 4px;
}

.hero-nav-link {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.hero-nav-link:hover,
.hero-nav-item:first-child .hero-nav-link {
    background-color: #0066cc;
    color: #fff;
}

/* Enhanced News Section */
.news-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.news-main-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.news-tabs {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 25px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-tab {
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.news-tab:hover {
    color: #0066cc;
    background-color: #f8f9fa;
}

.news-tab.active {
    background: linear-gradient(135deg, #0066cc, #004d99);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}

.news-columns {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 25px;
}

.news-column {
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news-column-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.press-header {
    background: linear-gradient(135deg, #28a745, #20963d);
    color: #fff;
}

.social-header {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: #fff;
}

.news-header {
    background: linear-gradient(135deg, #0173e6, #0066cc);
    color: #333;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #fff;
}

.news-year {
    font-size: 24px;
    font-weight: 700;
    opacity: 0.8;
}

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

.news-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.news-date {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    font-weight: 600;
    min-width: 35px;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-tag {
    font-size: 10px;
    color: #fff;
    padding: 3px 8px;
    border-radius: 5px;
    white-space: nowrap;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}

.news-tag.press {
    background-color: #28a745;
}

.news-tag.social {
    background-color: #17a2b8;
}

.news-tag.ir {
    background-color: #dc3545;
}

.news-link {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    transition: color 0.3s ease;
    margin-bottom: 5px;
}

.news-link:hover {
    color: #0066cc;
}

.news-new {
    font-size: 9px;
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
    align-self: flex-start;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.pdf-icon {
    font-size: 9px;
    background-color: #e74c3c;
    color: #fff;
    padding: 3px 6px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-size {
    font-size: 9px;
    color: #999;
    font-weight: 500;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0066cc;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    margin-top: 10px;
}

.view-all-link:hover {
    color: #fff;
    background: linear-gradient(135deg, #0066cc, #004d99);
    transform: translateY(-2px);
}

.view-all-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-all-link:hover::after {
    transform: translateX(3px);
}


/* Promotional Banners */
.promo-banners {
    padding: 40px 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.hover-underline-blue {
    text-decoration: none; /* 通常時の下線を非表示 */
    color: inherit; /* 通常時の色を継承 */
    transition: all 0.3s ease; /* スムーズなアニメーション効果 */
    margin-bottom: 20px;
}

.hover-underline-blue:hover {
    text-decoration: underline; /* ホバー時に下線を表示 */
    color: blue; /* ホバー時に文字色を青に */
}

.banner-title {
    color: #333; /* 濃い灰色 */
    font-size: 24px; /* フォントサイズ */
    font-weight: bold; /* 太字 */
    border-bottom: 2px solid #007bff; /* 青色の下線 */
    padding-bottom: 5px; /* 下線とテキストの間に少しスペース */
    margin: 0 10px 15px 10px; /* 下と次の要素の間にスペース */

}

.banner-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.banner-item:hover {
    transform: scale(1.05);
}

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

/* Technology and Services Section */
.tech-services-section {
    padding: 50px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.tech-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0 60px;
}

.tech-item-enhanced {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    display: block;
    text-decoration: none;
}

.tech-item-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.tech-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.tech-image-container .tech-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tech-item-enhanced:hover .tech-image {
    transform: scale(1.1);
}

.tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 102, 204, 0.8), rgba(0, 77, 153, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tech-item-enhanced:hover .tech-overlay {
    opacity: 1;
}

.tech-icon {
    font-size: 48px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.tech-content {
    padding: 25px;
}

.tech-content .tech-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.tech-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.projects-link-enhanced {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.projects-card {
    background: linear-gradient(135deg, #0066cc, #004d99);
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.3);
    transition: transform 0.3s ease;
}

.projects-card:hover {
    transform: translateY(-5px);
}

.projects-icon {
    font-size: 60px;
    opacity: 0.9;
}

.projects-content {
    flex: 1;
}

.projects-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.projects-subtitle {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
    display: block;
}

.projects-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.projects-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.projects-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Category Grid */
.category-grid {
    padding: 80px 0;
    background-color: #fff;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.category-section {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: inherit;
    text-decoration: none;
}

.category-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    cursor: pointer;
}

.category-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1));
}

.category-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}



/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo-img {
    height: 60px;
    /* filter: brightness(0) invert(1); */
}

.footer-nav-list,
.footer-links-list,
.footer-legal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-link {
    font-size: 14px;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.social-link:hover .social-icon {
    opacity: 0.7;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 12px;
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-main {
        gap: 20px;
    }

    .main-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        height: 50vh;
    }

    .hero-nav {
        flex-direction: column;
        gap: 0;
    }

    .news-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .news-main-title {
        font-size: 24px;
    }

    .news-tabs {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        border-radius: 15px;
        padding: 3px;
    }

    .news-tab {
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 12px;
    }

    .news-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-column-header {
        padding: 15px 20px;
    }

    .news-title {
        font-size: 16px;
    }

    .news-year {
        font-size: 20px;
    }

    .news-list {
        padding: 15px 20px 20px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-services-section {
        padding: 60px 0;
    }

    .tech-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin: 40px 0 50px;
    }

    .projects-card {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 20px;
    }

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

    .category-section {
        height: 220px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-nav-link {
        padding: 10px 16px;
        font-size: 12px;
    }

    .news-main-title {
        font-size: 20px;
    }

    .news-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
    }

    .news-content {
        gap: 8px;
    }

    .banner-grid {
        grid-template-columns: 1fr;
    }

    .tech-services-section {
        padding: 50px 0;
    }

    .tech-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 30px 0 40px;
    }

    .tech-item-enhanced {
        margin: 0 auto;
        max-width: 350px;
    }

    .projects-card {
        padding: 25px;
        gap: 15px;
    }

    .projects-icon {
        font-size: 40px;
    }

    .projects-title {
        font-size: 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .category-section {
        height: 200px;
    }

    .category-title {
        font-size: 18px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-column,
.featured-item,
.tech-item-enhanced {
    animation: fadeInUp 0.6s ease forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Page-specific styles */

/* Active navigation state */
.nav-link.active {
    color: #0066cc;
    font-weight: 600;
}

/* Page Header */
.page-header {
    height: 400px;
    position: relative;
    margin-top: 80px;
    overflow: hidden;
    background-repeat: no-repeat; /* 画像を繰り返さない */
    background-size: cover; /* セクション全体をカバーする */
    background-position: center; /* 中央に配置 */
}

.page-header-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.page-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.page-header-content {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 2;
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0 20px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin: 0 20px;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
}

.breadcrumb-list {
    display: flex;
    gap: 10px;
    align-items: center;
}

.breadcrumb-list li {
    font-size: 14px;
    color: #666;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin-left: 10px;
    color: #999;
}

.breadcrumb-list a {
    color: #0066cc;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: #004d99;
}

/* Company Overview */
.company-overview {
    padding: 80px 0;
    background-color: #fff;
}

.section-intro {
    text-align: center;
    margin-bottom: 60px;
}

.section-description {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    max-width: 800px;
    margin: 20px auto 0;
}

.company-stats {
    margin-top: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Company Sections */
.company-sections {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.section-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.card-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-link {
    display: inline-flex;
    align-items: center;
    color: #0066cc;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #004d99;
}

.card-link::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.card-link:hover::after {
    transform: translateX(3px);
}

/* Company Vision */
.company-vision {
    padding: 80px 0;
    background-color: #fff;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.vision-item {
    text-align: center;
    padding: 40px 25px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.vision-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.vision-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.vision-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Responsive adjustments for new pages */
@media (max-width: 768px) {
    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .company-overview,
    .company-sections,
    .company-vision {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .page-header {
        height: 300px;
    }

    .page-title {
        font-size: 28px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 20px 15px;
    }

    .stat-number {
        font-size: 28px;
    }
}

/* Company Specific Sections (社長ごあいさつ, 経営理念, 品質方針, 沿革) */
.page-main-content {
    background-color: #fff;
    padding-top: 40px; /* Adjust padding to separate from breadcrumb */
    padding-bottom: 40px;
    margin-bottom: 40px; /* Space before footer */
}

.company-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
}

.company-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* President's Greeting Section */
.president-greeting-content {
    display: flex;
    gap: 40px; /* 写真と文章の間のスペースを広めに設定 */
    align-items: flex-start; /* 上端を揃える */
    flex-wrap: wrap; /* 画面が狭いときに折り返すことを許可 */
    justify-content: flex-start; /* 要素を左寄せにする */
    margin-top: 3em;
}

.president-info {
    flex-shrink: 0; /* 縮小しない */
    text-align: center; /* 写真と名前を中央寄せ */
    /* PC表示時の写真と情報ブロックの幅を明示的に指定。
       この幅が小さすぎたり大きすぎたりすると、横並びが崩れることがあります。
       画像の実際の幅とバランスを見て調整してください。 */
    width: 200px; /* 例えば、写真の幅を考慮した固定幅 */
    /* max-widthも指定して、広がりすぎないようにすることも可能です */
    /* max-width: 250px; */
}

.president-photo {
    width: 100%; /* 親要素 (president-info) の幅いっぱいに */
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* photo-date がHTMLから削除されたため、もし存在しない場合はこのスタイルは不要です */
/* p.photo-date {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
} */

.president-position {
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.president-name {
    font-size: 1.6em;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.greeting-text {
    flex-grow: 1; /* 残りのスペースを埋める */
    /* flex-basis: 0; を追加することで、flex-growがより効果的に働きます */
    flex-basis: 0;
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    /* テキストが極端に狭くなるのを防ぐための最小幅。
       コンテンツの量とレイアウトの許容範囲に合わせて調整してください。 */
    min-width: 350px; /* 例: テキストが十分に表示される最小幅 */
}

.greeting-text p {
    margin-top: 3em;
    margin-bottom: 1em;
}

/* レスポンシブ調整 (モバイルでは縦並びに戻す) */
@media (max-width: 768px) {
    .president-greeting-content {
        flex-direction: column; /* 縦並び */
        align-items: center; /* 中央寄せ */
        gap: 20px;
    }

    .president-info {
        width: 100%; /* モバイルでは幅いっぱいに */
        max-width: 200px; /* ただし最大幅を設ける */
    }

    .president-photo {
        width: 300px; /* モバイルでの写真サイズを調整 */
    }
    
    .greeting-text {
        min-width: auto; /* モバイルでは最小幅をリセット */
        flex-basis: auto; /* モバイルではflex-basisをリセット */
        text-align: left; /* テキストの配置を元に戻す */
    }
}

/* Management Philosophy & Quality Policy Sections */
.philosophy-section .section-title,
.quality-section .section-title {
    text-align: left; /* Align to left as per image */
    font-size: 1.8em; /* Match main section titles */
    font-weight: bold;
    color: #0066cc;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.philosophy-content,
.quality-content {
    padding: 40px;
    line-height: 2.0; /* Increased line height */
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
}

.philosophy-content p,
.quality-content p {
    margin: 0;
    font-weight: 600; /* Ensure text is bold */
}

/* History Section */
.history-section .section-title {
    text-align: left;
    font-size: 1.8em; /* Match main section titles */
    font-weight: bold;
    color: #0066cc;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.history-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout for now */
    gap: 25px;
}

.history-item {
    padding: 10px 25px;
}

.history-item .history-date {
    font-weight: 700;
    color: #0066cc;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.history-item .history-description {
    font-size: 0.98em;
    color: #555;
    line-height: 1.6;
}

.item-with-image {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px 25px; /* Consistent padding */
}

.history-item .history-image {
    width: 140px; /* Slightly larger image */
    height: auto;
    border-radius: 8px;
    border: 1px solid #ccc;
    flex-shrink: 0;
    object-fit: cover; /* Ensure image covers the area */
}

.history-text {
    flex-grow: 1;
}

/* Responsive adjustments for company-info page */
@media (max-width: 768px) {
    .president-greeting-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .president-info {
        width: 100%; /* Full width on small screens */
        max-width: 200px; /* But keep a max width */
    }

    .president-photo {
        width: 300px; /* Smaller photo on mobile */
    }

    .philosophy-content,
    .quality-content {
        padding: 30px;
        font-size: 1.1em;
    }

    .item-with-image {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .history-item .history-image {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .president-greeting-content {
        gap: 15px;
    }

    .president-photo {
        width: 300px;
    }

    .greeting-text {
        font-size: 14px;
    }

    .philosophy-content,
    .quality-content {
        padding: 20px;
        font-size: 1em;
    }

    .history-item {
        padding: 15px 20px;
    }
    
    .history-item .history-date {
        font-size: 1em;
    }

    .history-item .history-description {
        font-size: 0.9em;
    }
}

/* 会社概要テーブルセクション */
.company-info-table-section {
    padding: 40px 0; /* セクションの上下パディング */
}

.company-info-table {
    border: 1px solid #ddd; /* 外枠のボーダー */
    border-radius: 8px; /* 角を丸くする */
    overflow: hidden; /* ボーダーの内側で角を丸めるために必要 */
    background-color: #fff; /* 背景色 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* 軽い影 */
}

.company-info-table dl {
    display: flex; /* dtとddを横並びにする */
    border-bottom: 1px solid #eee; /* 各行の下線 */
    padding: 15px 25px; /* 各行の内側のパディング */
    margin: 0; /* dlのデフォルトマージンを削除 */
}

.company-info-table dl:last-child {
    border-bottom: none; /* 最後の行の下線を削除 */
}

.company-info-table dt {
    flex-basis: 150px; /* 項目名の幅を固定 */
    flex-shrink: 0; /* 縮小させない */
    font-weight: 600; /* 太字 */
    color: #333; /* 文字色 */
    padding-right: 20px; /* 項目名と内容の間のスペース */
    position: relative; /* アイコン配置用 */
}

.company-info-table dd {
    flex-grow: 1; /* 内容が残りのスペースを埋める */
    color: #555; /* 文字色 */
    line-height: 1.6;
    margin-left: 0; /* ddのデフォルトマージンを削除 */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .company-info-table dl {
        flex-direction: column; /* 縦並びにする */
        padding: 15px 20px;
    }

    .company-info-table dt {
        flex-basis: auto; /* 幅固定を解除 */
        margin-bottom: 5px; /* 項目名と内容の間のマージン */
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .company-info-table dl {
        padding: 12px 15px;
    }
    .company-info-table dt {
        font-size: 0.95em;
    }
    .company-info-table dd {
        font-size: 0.9em;
    }
}

/* 既存の .section-title スタイルも適用されるように調整 */
.company-info-table-section .section-title {
    margin-bottom: 30px; /* タイトルの下のスペース */
    text-align: left; /* 左寄せ */
    font-size: 1.8em;
    font-weight: bold;
    color: #0066cc;
    border-bottom: 3px solid #0066cc;
    padding-bottom: 10px;
}

/* プライバシーポリシーページ用のスタイル */

.policy-intro {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.policy-section {
    margin-bottom: 30px;
    background-color: #f8f8f8; /* セクションの背景色 */
    border-radius: 8px; /* 角丸 */
    overflow: hidden; /* コンテンツがはみ出さないように */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* 軽い影 */
}

.policy-section-title {
    background-color: #6c757d; /* タイトルバーの背景色 */
    color: #fff; /* タイトル文字色 */
    font-size: 1.2em;
    font-weight: 600;
    padding: 15px 25px;
    margin: 0; /* h2のデフォルトマージンをリセット */
    border-bottom: 1px solid #5a6268; /* タイトルバーの下線 */
}

.policy-content {
    padding: 20px 25px;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.policy-content p {
    margin-bottom: 1em; /* 段落間のスペース */
}

.policy-content ul {
    list-style: none; /* デフォルトのリストマーカーを削除 */
    padding-left: 20px; /* インデント */
    margin: 0;
}

.policy-content ul li {
    position: relative;
    padding-left: 15px; /* カスタムマーカー用のスペース */
    margin-bottom: 8px;
    line-height: 1.6;
}

.policy-content ul li::before {
    content: '・'; /* カスタムマーカー */
    color: #0066cc; /* マーカーの色 */
    position: absolute;
    left: 0;
    top: 0;
    font-weight: bold;
}

.policy-section.last-section {
    margin-bottom: 0; /* 最後のセクションの下マージンを削除 */
    border-bottom: none; /* 最後のセクションのボーダーもなし */
}

.contact-info p {
    margin-bottom: 5px; /* 連絡先情報の行間 */
}

.contact-info a {
    color: #0066cc; /* リンクの色 */
    text-decoration: underline; /* リンクの下線 */
}

.contact-info a:hover {
    color: #004d99;
}

/* Page Header の背景画像をプライバシーポリシー用にする (style.css 内の .page-header 部分に追加/修正) */
/* company.html で inline style で指定している場合は不要 */
/* .page-header {
    background-image: url('./img/privacy_policy_bg.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
} */


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .policy-section-title {
        font-size: 1.1em;
        padding: 12px 20px;
    }

    .policy-content {
        padding: 15px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .policy-section-title {
        font-size: 1em;
        padding: 10px 15px;
    }

    .policy-content {
        padding: 10px 15px;
        font-size: 13px;
    }
}
/* --- 新しいフォームデザイン（画像参照）--- */

/* フォーム全体のコンテナ */
/* .mailform クラスを維持し、新しいデザインを適用 */
.main-content .section .mailform {
    max-width: 800px; /* フォームの最大幅を画像に合わせて調整 */
    margin: 40px auto;
    padding: 0; /* paddingを削除し、dlでコントロール */
    background-color: #fff;
    border-radius: 8px; /* 角丸 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* 軽い影 */
    border: 1px solid #e0e0e0; /* フォーム全体の枠線 */
    overflow: hidden; /* 角丸とボーダーの表示のため */
}

/* 各フォーム項目 (dl) */
.main-content .section .mailform dl {
    display: flex; /* dtとddを横並びにする */
    align-items: center; /* 項目を垂直中央揃え */
    margin: 0; /* dlのデフォルトマージンをリセット */
    border-bottom: 1px solid #e0e0e0; /* 各行の下線 */
}

.main-content .section .mailform dl:last-of-type {
    border-bottom: none; /* 最後のdlの下線はなし */
}

/* 項目名 (dt) - ラベルと「必須」タグのコンテナ */
.main-content .section .mailform dt {
    flex-basis: 250px; /* 項目名の幅を固定（画像に合わせて調整） */
    flex-shrink: 0;
    padding: 15px 20px; /* 項目名のパディング */
    background-color: #ffffff; /* 項目名の背景色 */
    font-size: 15px;
    font-weight: 500;
    color: #333;
    display: flex; /* ラベルと必須タグを横並びにするため */
    align-items: center; /* 垂直中央揃え */
    gap: 10px; /* ラベルと必須タグの間隔 */
}

/* 必須マークのコンテナ */
.main-content .section .mailform dt .required-badge {
    background-color: #dc3545; /* 赤色の背景 */
    color: #fff; /* 白い文字 */
    font-size: 0.75em; /* 小さめのフォント */
    padding: 4px 8px; /* パディング */
    border-radius: 4px; /* 角丸 */
    font-weight: 700; /* 太字 */
    white-space: nowrap; /* 折り返さない */
}

/* 項目内容 (dd) - 入力フィールドのコンテナ */
.main-content .section .mailform dd {
    flex-grow: 1; /* 残りのスペースを埋める */
    margin-left: 0; /* ddのデフォルトマージンをリセット */
    padding: 10px 20px; /* 入力フィールドのパディング */
}

/* 入力欄の共通スタイル */
/* PHPヘルパーが出力する input/textarea 要素に直接適用されるよう調整 */
.main-content .section .mailform dd input[type="text"],
.main-content .section .mailform dd input[type="email"],
.main-content .section .mailform dd input[type="tel"],
.main-content .section .mailform dd textarea {
    width: 100%; /* ddの幅いっぱいに広げる */
    padding: 8px 12px; /* パディングを画像に合わせて調整 */
    border: 1px solid #e0e0e0; /* 枠線の色を画像に合わせる */
    border-radius: 4px; /* 角丸を画像に合わせる */
    font-size: 15px;
    color: #495057;
    background-color: #fcfcfc; /* 薄い背景色 */
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

/* プレースホルダーのスタイル (画像に例:テキストがあるため) */
.main-content .section .mailform dd input::placeholder,
.main-content .section .mailform dd textarea::placeholder {
    color: #a0a0a0; /* 薄いグレーの文字色 */
    opacity: 1; /* Firefoxでのデフォルト不透明度を調整 */
}

/* ホバー時のスタイル */
.main-content .section .mailform dd input:hover,
.main-content .section .mailform dd textarea:hover {
    border-color: #c0c0c0; /* ホバー時にボーダーが濃くなる */
}

/* フォーカス時のスタイル */
.main-content .section .mailform dd input:focus,
.main-content .section .mailform dd textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* テキストエリア特有のスタイル */
.main-content .section .mailform dl.form-item-textarea dt {
    align-items: flex-start; /* テキストエリアのラベルは上寄せ */
    padding-top: 15px; /* 上寄せ時のパディング調整 */
}
.main-content .section .mailform dd textarea {
    min-height: 100px; /* テキストエリアの最小高さを画像に合わせて調整 */
    resize: vertical;
}

/* 氏名フィールドの特殊なレイアウト */
/* PHPヘルパーの出力によっては、dd内に複数のinputが並ぶ場合があるため、
   その場合はflexboxなどで制御 */
/* 例: <dd><input type="text"> <span>名</span> <input type="text"></dd> のような出力の場合 */
.main-content .section .mailform dl:nth-of-type(3) dd { /* 3番目のdlが氏名 */
    display: flex;
    gap: 10px; /* 姓と名の間のスペース */
    align-items: center;
}

.main-content .section .mailform dl:nth-of-type(3) dd input {
    flex-grow: 1; /* 均等にスペースを埋める */
}


/* 送信ボタンのコンテナ (id="bt" を使用) */
/* これは前回のスタイルを流用し、必要に応じて微調整 */
.main-content .section .mailform #bt {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px; /* 必要に応じて調整 */
    padding: 0 30px; /* フォームの端からの余白 */
}

/* 送信ボタンのスタイル */
.main-content .section .mailform #bt input[type="submit"],
.main-content .section .mailform #bt button[type="submit"] {
    background-color: #007bff; /* 青色のボタン */
    color: #fff;
    padding: 12px 40px;
    border: none;
    border-radius: 5px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.main-content .section .mailform #bt input[type="submit"]:hover,
.main-content .section .mailform #bt button[type="submit"]:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* --- レスポンシブ対応の調整 --- */
@media (max-width: 768px) {
    .main-content .section .mailform {
        border: none; /* 小画面では外枠をなくす場合が多い */
        box-shadow: none; /* 影も削除 */
        border-radius: 0;
        padding: 0;
        margin: 20px auto;
    }
    .main-content .section .mailform dl {
        flex-direction: column; /* 縦並びにする */
        align-items: flex-start;
        border-bottom: 1px solid #e0e0e0; /* 各行の下線は維持 */
    }
    .main-content .section .mailform dt {
        flex-basis: auto; /* 幅固定を解除 */
        width: 100%; /* 幅いっぱいに */
        padding: 12px 15px; /* パディング調整 */
        margin-bottom: 0; /* 下マージン削除 */
    }
    .main-content .section .mailform dd {
        width: 100%; /* 幅いっぱいに */
        padding: 10px 15px 15px; /* パディング調整 */
    }
    .main-content .section .mailform dt .required-badge {
        font-size: 0.7em;
        padding: 3px 6px;
    }
    /* 氏名フィールドの特殊なレイアウト調整 */
    .main-content .section .mailform dl:nth-of-type(3) dd {
        flex-direction: column; /* 縦並びにする */
        gap: 8px;
    }
    .main-content .section .mailform #bt {
        padding: 0 15px;
    }
    .main-content .section .mailform #bt input[type="submit"],
    .main-content .section .mailform #bt button[type="submit"] {
        width: 100%; /* ボタンを全幅に */
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .main-content .section .mailform dt {
        font-size: 14px;
        padding: 10px 12px;
    }
    .main-content .section .mailform dd {
        padding: 8px 12px 12px;
    }
    .main-content .section .mailform dd input,
    .main-content .section .mailform dd textarea {
        font-size: 14px;
        padding: 10px;
    }
    .main-content .section .mailform #bt input[type="submit"],
    .main-content .section .mailform #bt button[type="submit"] {
        font-size: 16px;
        padding: 12px 30px;
    }
}

/* --- お問い合わせ完了ページ (thank-you.html) 用スタイル --- */

.thank-you-main {
    display: flex;
    justify-content: center; /* 水平方向の中央寄せ */
    align-items: center; /* 垂直方向の中央寄せ */
    min-height: calc(100vh - 70px - 200px); /* ビューポートの高さ - ヘッダーの高さ - フッターの高さ (目安) */
    text-align: center;
    padding: 40px 20px;
}

.thank-you-section {
    background-color: #fff;
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 600px; /* ボックスの最大幅 */
    width: 100%;
}

.thank-you-title {
    font-size: 2.5em; /* 大きいタイトル */
    font-weight: 700;
    color: #0066cc; /* メインカラーに合わせて調整 */
    margin-bottom: 25px;
    line-height: 1.3;
}

.thank-you-message {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.back-to-home-button {
    display: inline-block; /* ボタンとしてスタイルを適用 */
    background: linear-gradient(45deg, #007bff, #0056b3); /* グラデーションボタン */
    color: #fff;
    padding: 15px 35px;
    border: none;
    border-radius: 30px; /* 丸いボタン */
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none; /* 下線を削除 */
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.back-to-home-button:hover {
    background: linear-gradient(45deg, #0056b3, #003f7f);
    transform: translateY(-2px); /* わずかに浮き上がる */
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .thank-you-main {
        min-height: calc(100vh - 70px - 150px); /* ヘッダー/フッターの高さ調整 */
        padding: 30px 15px;
    }
    .thank-you-section {
        padding: 40px 20px;
    }
    .thank-you-title {
        font-size: 2em;
        margin-bottom: 20px;
    }
    .thank-you-message {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .back-to-home-button {
        padding: 12px 30px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .thank-you-section {
        padding: 30px 15px;
    }
    .thank-you-title {
        font-size: 1.6em;
    }
    .thank-you-message {
        font-size: 0.95em;
    }
    .back-to-home-button {
        font-size: 0.9em;
        padding: 10px 25px;
    }
}

/* --- サービスページ (shelter.html) 用スタイル --- */

.content-intro-section {
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee; /* セクションの区切り線 */
    display: flex; /* 画像とテキストを横並びにする */
    flex-wrap: wrap; /* 小画面で折り返す */
    align-items: flex-start; /* 上揃え */
    gap: 30px; /* 画像とテキストの間のスペース */
}

.content-main-image {
    flex-shrink: 0; /* 画像が縮小しないように */
    width: 45%; /* 画像の幅（テキストとの比率を調整） */
    max-width: 450px; /* 画像の最大幅 */
    height: auto;
    border-radius: 8px; /* 角丸 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.content-text-block {
    flex-grow: 1; /* テキストが残りのスペースを埋める */
    min-width: 300px; /* テキストブロックが狭くなりすぎないように */
}

.content-text-block .content-subtitle {
    font-size: 1.8em; /* 事業内容のタイトル */
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    border-left: 5px solid #0066cc; /* 左側の強調線 */
    padding-left: 15px;
}

.content-text-block p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1em;
}

/* Youtube動画セクション */
.youtube-section {
    padding: 40px 0;
    text-align: center; /* タイトルと動画を中央寄せ */
}

.youtube-section .section-title {
    font-size: 2.2em; /* タイトルを大きく */
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.4;
    border-bottom: none; /* 既存のタイトル下線を削除 */
}

.youtube-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9のアスペクト比 (9 / 16 = 0.5625) */
    height: 0;
    overflow: hidden;
    max-width: 800px; /* 動画の最大幅 */
    margin: 0 auto; /* 中央寄せ */
    background-color: #000; /* 動画が読み込まれるまでの背景 */
    border-radius: 12px; /* 角丸 */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

.youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Page Header の背景画像をサービス用にする */
/* style.css 内の .page-header 部分に追加/修正 */
/* .page-header {
    background-image: url('./img/shelter_bg.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
} */


/* --- レスポンシブ対応の調整 --- */
@media (max-width: 768px) {
    .content-intro-section {
        flex-direction: column; /* 縦並び */
        align-items: center; /* 中央寄せ */
        gap: 20px;
        padding: 30px 0;
    }
    .content-main-image {
        width: 80%; /* 幅を広げる */
        max-width: 400px;
    }
    .content-text-block {
        min-width: auto; /* リセット */
        width: 100%; /* 全幅に */
        padding: 0 15px; /* 左右にパディング */
    }
    .content-text-block .content-subtitle {
        font-size: 1.5em;
    }
    .content-text-block p {
        font-size: 1em;
    }

    .youtube-section {
        padding: 30px 0;
    }
    .youtube-section .section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .youtube-embed-wrapper {
        padding-bottom: 65%; /* モバイルでは少し高さを出す場合がある */
    }
}

@media (max-width: 480px) {
    .content-intro-section {
        padding: 20px 0;
        gap: 15px;
    }
    .content-main-image {
        width: 90%;
    }
    .content-text-block .content-subtitle {
        font-size: 1.3em;
        padding-left: 10px;
    }
    .content-text-block p {
        font-size: 0.95em;
    }

    .youtube-section {
        padding: 20px 0;
    }
    .youtube-section .section-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    .youtube-embed-wrapper {
        padding-bottom: 70%; /* さらに高さを出す */
        border-radius: 8px;
    }
}