/* グローバルリセット & 基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Helvetica', 'Yu Gothic', 'YuGothic', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

main {
    padding-top: 100px;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* ヘッダー & ナビゲーション */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    height: 85px;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    line-height: 1;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    display: block;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #3498db;
}

/* ハンバーガーメニュー (モバイル用) */
.hamburger-menu {
    display: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger-icon {
    width: 30px;
    height: 22px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transition: 0.25s ease-in-out;
}

.hamburger-icon span:nth-child(1) { top: 0px; }
.hamburger-icon span:nth-child(2) { top: 9px; }
.hamburger-icon span:nth-child(3) { top: 18px; }

/* ハンバーガーメニュー (Active時) */
.hamburger-icon.active span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}
.hamburger-icon.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-100%);
}
.hamburger-icon.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* モバイルナビゲーション (開閉メニュー) */
.mobile-nav {
    display: none;
    position: fixed;
    top: 85px;
    left: 0;
    width: 100%;
    height: calc(100vh - 85px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    z-index: 999;
    padding: 40px;
    text-align: center;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
}

/* 汎用セクションスタイル */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0;
    font-weight: normal;
}

.section-title::after {
    display: none;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 60px;
}

/* 汎用ボタン */
.btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #3498db, #667eea);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn:hover {
    background: linear-gradient(135deg, #2980b9, #5a67d8);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* 汎用ページタイトル */
.page-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0;
    font-weight: normal;
}

.page-title::after {
    display: none;
}


.page-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 60px;
}

/* --- index.html固有 --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c1810;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-bg.png') center/cover no-repeat;
    opacity: 0.8;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-content {
    z-index: 3;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    animation: bounce 2s infinite;
}

.philosophy {
    padding: 100px 0;
    background: #f8f9fa;
}

.philosophy-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-content h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: normal;
}

.philosophy-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.services {
    padding: 100px 0;
    background: #fff;
}

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

.section-button-container {
    text-align: center;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: normal;
}

.service-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

.service-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 20px;
}

.recruit {
    padding: 100px 0;
    background: #2c3e50;
    color: white;
    text-align: center;
}

.recruit .section-title {
    color: white;
}

.recruit p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}


/* --- news.html 固有 --- */
.news-list-section {
    padding: 40px 0;
}

.news-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #eee;
}

.news-item {
    border-bottom: 1px solid #eee;
}

.news-item a {
    display: block;
    padding: 30px 20px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.news-item a:hover {
    background-color: #f8f9fa;
}

.news-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

.news-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.news-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 12px;
    background: #3498db;
    color: white;
    border-radius: 50px;
}

.news-title {
    font-size: 1.25rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 10px;
}

.news-content {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.7;
}

/* 記事ページ (news-001.html) のスタイル */
.article-container {
    max-width: 800px;
    margin: 0 auto 60px auto;
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 25px;
    margin-bottom: 30px;
}

.article-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-date {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
}

.article-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 12px;
    background: #3498db;
    color: white;
    border-radius: 50px;
}

.article-body {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 1.5em;
}

.back-to-list {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}


/* --- service.html 共通 --- */
.hero-section {
    background: url('images/service_hero-section.jpg') center/cover no-repeat;
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 0;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.8;
}

.services-section {
    padding: 40px 0;
}

/* service.html 固有のスタイル */
.services-section .services-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-section .service-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: none;
    position: relative;
    overflow: hidden;
}

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

.services-section .service-card::before {
    display: none;
}
.services-section .service-card:nth-child(2)::before,
.services-section .service-card:nth-child(2) { border-top-color: inherit; }
.services-section .service-card:nth-child(3)::before,
.services-section .service-card:nth-child(3) { border-top-color: inherit; }


.service-header {
    display: block;
    margin-bottom: 20px;
}

.service-icon {
    display: none;
}
.services-section .service-card:nth-child(2) .service-icon,
.services-section .service-card:nth-child(3) .service-icon { display: none; }

.services-section .service-card h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: normal;
    margin: 0;
}

.service-description {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: inherit;
    margin-bottom: 0;
}

/* service.html のカード内画像スタイル */
.services-section .service-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 20px;
}

/* --- service.html 固有 (ギャラリー) --- */
.service-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    width: 100%;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: flex;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gallery-image {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

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

.gallery-item:hover .gallery-image img {
    transform: scale(1.1);
}

.gallery-placeholder-img {
    width: 100%;
    height: 100%;
    background: #f0f4f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 12px;
    text-align: center;
}

.store-info {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.store-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.store-details {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.store-address { margin-bottom: 5px; }
.store-hours { color: #888; font-size: 0.85rem; }

.details-section {
    background: #f8f9fa;
    padding: 80px 0;
    margin-top: 80px;
}

.details-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.details-content h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: normal;
}

.details-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #3498db, #667eea);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}


/* ↓↓↓ --- about.html 固有のスタイル --- ↓↓↓ */

/* 会社概要セクションの背景色と余白を変更 */
.company-profile-section {
    padding: 100px 0;
    background: #f8f9fa; /* 薄いグレー背景 */
}

.profile-table-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th,
.profile-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.profile-table tr:last-child th,
.profile-table tr:last-child td {
    border-bottom: none;
}

.profile-table th {
    width: 30%;
    font-weight: 600;
    color: #2c3e50;
    background: #f8f9fa;
    vertical-align: top;
}

.profile-table td {
    width: 70%;
    line-height: 1.7;
}

.text-link {
    color: #3498db;
    font-weight: 500;
    text-decoration: underline;
}
.text-link:hover {
    color: #2980b9;
}


.access-section {
    padding: 100px 0;
    background: #fff; /* アクセスセクションは白背景 */
}

.access-map-container {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    line-height: 0;
}

.map-placeholder {
    width: 100%;
    height: 450px;
    background: #f0f4f7;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
    font-size: 1.2rem;
}
.map-placeholder iframe {
    width: 100%;
    height: 100%;
}

.access-address {
    max-width: 900px;
    margin: 20px auto 0 auto;
    text-align: center;
    color: #555;
    line-height: 1.7;
}
/* ↑↑↑ --- about.html 固有のスタイル --- ↑↑↑ */


/* --- contact.html 固有 --- */
.contact-description {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group { margin-bottom: 25px; }

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-left: 5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submit-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #667eea);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    font-family: inherit;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.submit-button:active { transform: translateY(0); }

.success-message {
    display: none;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.success-message.show { display: block; }

.success-title {
    color: #155724;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-text {
    color: #155724;
    font-size: 1rem;
}

/* --- フッター --- */
footer {
    background: #34495e;
    color: white;
    padding: 60px 0 30px;
    margin-top: 80px; /* デフォルトのマージン (news.html など) */
}

/* index.html (page-home) のフッターのmargin-topを0にする */
body:not(:has(main)) footer {
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.6;
    opacity: 0.8;
}

.footer-link {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4a5f7a;
    opacity: 0.7;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* --- アニメーション --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* --- レスポンシブデザイン --- */
@media (max-width: 768px) {
    /* ↓↓↓ スマホでは main の padding-top を 100px に変更 ↓↓↓ */
    main {
        padding-top: 100px;
    }

    .nav-links {
        display: none;
    }

    .hamburger-menu {
        display: block;
    }
    
    .logo span {
        font-size: 20px;
    }

    .hero {
        padding-top: 0; /* ヒーローセクションは全画面なのでパディングは不要 */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .services-section .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }
    
    .services-section .service-card {
        padding: 30px 25px;
    }
    .hero-section {
        padding: 60px 0;
    }

    /* 記事ページ */
    .article-container {
        padding: 0;
        margin-top: 30px;
    }
    .article-title {
        font-size: 1.5rem;
    }

    /* 会社概要テーブル */
    .profile-table th,
    .profile-table td {
        display: block;
        width: 100%;
        padding: 15px;
    }
    .profile-table th {
        background: #f8f9fa;
        border-bottom: 1px solid #eee;
    }
    .profile-table td {
        border-bottom: 2px solid #ddd; /* 項目間の区切りを太く */
    }
    .profile-table tr:last-child td {
        border-bottom: none;
    }

    /* フォーム */
    .contact-form {
        padding: 30px 20px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .container {
        padding: 0 15px;
    }
}