/* Reset & Basic Settings */
:root {
    --primary-color: #00582b; /* 深い森の緑 */
    --secondary-color: #8c1616; /* 神社の朱色（アクセント） */
    --text-color: #333333;
    --bg-color: #ffffff;
    --bg-light-color: #f7f9f7;
    --header-height: 80px;
    --font-family: 'Noto Sans JP', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.4;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s;
}
a:hover {
    opacity: 0.8;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 110px 0;
}
.bg-light {
    background-color: var(--bg-light-color);
}

.section-title {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-lead {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #eee;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
}
.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary-color);
    transform: rotate(-45deg); /* 鹿の角のイメージ */
}
.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.global-nav ul {
    display: flex;
    gap: 25px;
}
.global-nav a {
    color: var(--text-color);
    font-weight: 700;
    padding: 10px 0;
    position: relative;
}
.global-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}
.global-nav a:hover::after,
.global-nav a.active::after {
    width: 100%;
}

.contact-button {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 5px;
}
.contact-button:hover {
    opacity: 0.9;
}
.contact-button::after {
    display: none !important;
}

.mobile-nav-toggle {
    display: none;
}

main {
    padding-top: var(--header-height);
}

/* Hero Section */
.hero {
    background: url('../img/sys/cover.png') no-repeat center center/cover;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.hero p {
    font-size: 1.2rem;
}

/* Message Section */
.message p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.feature-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.feature-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.feature-item h3 {
    font-size: 1.5rem;
    margin: 20px 0 10px;
    color: var(--primary-color);
}
.feature-item p {
    padding: 0 20px;
    margin-bottom: 20px;
}

/* CTA */
.cta {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
}
.cta .section-title {
    color: #fff;
}
.cta p {
    margin-bottom: 30px;
}
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-weight: 700;
}
.btn-primary {
    background: #fff;
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 1.1rem;
}

/* Page Title */
.page-title {
    background-color: var(--bg-light-color);
    padding: 40px 0;
    text-align: center;
}
.page-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Product Detail */
.product-content {
    display: flex;
    gap: 50px;
    align-items: center;
}
.product-content.reverse {
    flex-direction: row-reverse;
}
.product-image {
    flex: 1;
}
.product-description {
    flex: 1.2;
}
.product-description h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}
.product-description p, .product-description ul {
    margin-bottom: 15px;
}
.product-description ul {
    list-style: disc;
    padding-left: 20px;
}

/* Works Grid */
.works-grid .container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}
.work-item {
    background: var(--bg-light-color);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}
.work-info {
    padding: 20px;
}
.work-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.work-category {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 3px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    margin-bottom: 10px;
}

/* About Us */
.greeting {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}
.greeting-text { flex: 2; }
.greeting-image { flex: 1; }
.greeting-image img {
    border-radius: 10%;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
}
.representative-name {
    text-align: right;
    font-weight: 700;
    margin-top: 20px;
}
.company-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 60px;
}
.company-info-table th, .company-info-table td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
}
.company-info-table th {
    background: var(--bg-light-color);
    width: 25%;
    font-weight: 700;
}
.business-content-list {
    list-style: disc;
    padding-left: 20px;
}
.access-map iframe {
    border-radius: 8px;
}

/* Contact Form */
.form {
    max-width: 800px;
    margin: 0 auto;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}
.form-group .required {
    background: var(--secondary-color);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: var(--font-family);
}
.form-actions {
    text-align: center;
    margin-top: 40px;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: #fff;
    padding: 50px 0 20px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
}
.footer-nav a {
    color: #fff;
}
.copyright {
    text-align: center;
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

/* Responsive */
@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .product-content, .product-content.reverse {
        flex-direction: column;
    }
    .greeting {
        flex-direction: column;
        text-align: center;
    }
    .greeting-image {
        margin-top: 30px;
    }
    .representative-name {
        text-align: center;
    }
    .works-grid .container {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .global-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
    }
    .global-nav.active {
        display: block;
    }
    .global-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .global-nav li {
        border-bottom: 1px solid #eee;
    }
    .global-nav a {
        display: block;
        padding: 15px 20px;
    }
    .contact-button {
        display: block;
        text-align: center;
        margin: 10px;
    }
    
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        width: 30px;
        height: 30px;
        position: relative;
    }
    .mobile-nav-toggle::before,
    .mobile-nav-toggle::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: var(--text-color);
        transition: transform 0.3s;
    }
    .mobile-nav-toggle::before {
        top: 8px;
    }
    .mobile-nav-toggle::after {
        bottom: 8px;
    }

    .mobile-nav-toggle[aria-expanded="true"]::before {
        transform: translateY(6px) rotate(45deg);
    }
    .mobile-nav-toggle[aria-expanded="true"]::after {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .hero h2 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    
    .company-info-table th, .company-info-table td {
        display: block;
        width: 100%;
    }
     .company-info-table th {
        border-bottom: none;
    }
    .company-info-table td {
        border-top: none;
        margin-bottom: 10px;
    }
}

.logo-png {
    width: 70px; /* 必要に応じて調整 */
    height: auto;
}

/* ========================================= */
/* ===== スライダー用スタイル (追記) ===== */
/* ========================================= */

.sanroku-slider-container {
    position: relative;
    overflow: hidden; /* 画像がはみ出す部分を隠す */
    width: 100%;
    /* product-image に元々あった img のスタイルを継承させないために明示的に設定 */
    height: auto;
    border-radius: 8px; /* 角を丸める */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を追加 */
}

.sanroku-slider-images {
    display: flex; /* 画像を横に並べる */
    transition: transform 0.5s ease-in-out; /* スライドのアニメーション */
    width: 200%; /* 画像2枚分以上の幅を持たせる */
}

.sanroku-slider-images img {
    width: 100%; /* 各画像が親要素の半分の幅を取るように */
    flex-shrink: 0; /* 画像が縮まないようにする */
    display: block;
    object-fit: cover; /* 画像がコンテナに収まるように調整 */
    max-width: 100%; /* 念のため最大幅を設定 */
    height: auto;
}

/* ナビゲーションボタン */
.sanroku-slider-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6); /* より濃い半透明の背景に更新 */
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.8em; /* サイズを大きく */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px; /* 幅を少し広げる */
    height: 50px; /* 高さを少し広げる */
    opacity: 0.9; /* 少し不透明度を上げる */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* 影を追加 */
    transition: background-color 0.3s, opacity 0.3s, box-shadow 0.3s;
}

.sanroku-slider-nav button:hover {
    background-color: var(--primary-color); /* ホバー時にプライマリーカラーに */
    opacity: 1;
    box-shadow: 3px 3px 7px rgba(0, 0, 0, 0.4); /* ホバー時にもう少し影を強く */
}

.sanroku-slider-nav .sanroku-slider-prev {
    left: 15px; /* 少し内側に移動 */
}

.sanroku-slider-nav .sanroku-slider-next {
    right: 15px; /* 少し内側に移動 */
}

/* ドットインジケータ */
.sanroku-slider-dots {
    position: absolute;
    bottom: 20px; /* 少し下げる */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px; /* ドット間のスペースを少し広げる */
    z-index: 10;
}

.sanroku-slider-dots .sanroku-dot {
    width: 12px; /* サイズを少し大きく */
    height: 12px; /* サイズを少し大きく */
    background-color: rgba(255, 255, 255, 0.7); /* 少し明るい色に */
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, width 0.3s, height 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1); /* 少し枠線を追加 */
}

.sanroku-slider-dots .sanroku-dot.active {
    background-color: var(--primary-color); /* アクティブなドットの色 */
    width: 16px; /* アクティブなドットをさらに大きく */
    height: 16px; /* アクティブなドットをさらに大きく */
    border: none; /* アクティブなドットの枠線を削除 */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3); /* アクティブなドットに影を追加 */
}

/* レスポンシブ対応 (必要であれば調整) */
@media (max-width: 768px) {
    .sanroku-slider-nav button {
        width: 40px; /* スマートフォンでの幅を調整 */
        height: 40px; /* スマートフォンでの高さを調整 */
        font-size: 1.5em; /* スマートフォンでのフォントサイズを調整 */
        padding: 8px 12px;
    }
    .sanroku-slider-nav .sanroku-slider-prev {
        left: 10px;
    }
    .sanroku-slider-nav .sanroku-slider-next {
        right: 10px;
    }
    .sanroku-slider-dots {
        bottom: 10px;
        gap: 6px;
    }
    .sanroku-slider-dots .sanroku-dot {
        width: 8px;
        height: 8px;
    }
    .sanroku-slider-dots .sanroku-dot.active {
        width: 10px;
        height: 10px;
    }
}

/* ========================================= */
/* ===== Lightbox スタイル (追記) ===== */
/* ========================================= */

/* ライトボックスオーバーレイ */
.sanroku-lightbox-overlay {
    display: none; /* 初期状態では非表示 */
    position: fixed; /* 画面に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* 半透明の黒背景 */
    z-index: 2000; /* 最前面に表示 */
    justify-content: center; /* 画像を中央に配置 */
    align-items: center; /* 画像を中央に配置 */
    cursor: pointer; /* クリックで閉じれることを示すカーソル */
    overflow-y: auto; /* 縦長画像の場合にスクロール可能にする */
    -webkit-overflow-scrolling: touch; /* iOSでのスムーズなスクロール */
}

/* ライトボックス内の画像 */
.sanroku-lightbox-overlay img {
    max-width: 90%; /* 最大幅 */
    max-height: 90vh; /* 最大高さ (ビューポートの高さの90%) */
    display: block;
    margin: auto; /* 中央配置 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* 画像に影 */
    border-radius: 5px; /* 角を丸める */
    transform: scale(0.8); /* 初期表示を小さくしてアニメーション準備 */
    opacity: 0; /* 初期表示を透明にしてアニメーション準備 */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out; /* アニメーション */
}

/* ライトボックス表示時の画像スタイル */
.sanroku-lightbox-overlay.active img {
    transform: scale(1); /* 拡大 */
    opacity: 1; /* 表示 */
}

/* 閉じるボタン (任意、今回はオーバーレイクリックで閉じる) */
/* 必要であれば追加:
.sanroku-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
}
*/
