/* Main Styles */
:root {
    --primary-color: #000;
    --primary-color-rgb: 0, 0, 0;
    --secondary-color: #333;
    --secondary-color-rgb: 51, 51, 51;
    --accent-color: #fff;
    --text-color: #333;
    --bg-color: #fff;
    --header-height: 65px;
    --footer-height: 80px;
    --transition: all 0.3s ease;
    --grid-gap: 15px;
    --white: #ffffff;
    --gray-color: #666666;
}

/* レスポンシブスタイル - フッター */
@media (max-width: 992px) {
    .privacy-policy-link {
        position: static;
        transform: none;
        text-align: center;
        margin-top: 20px;
        width: 100%;
        display: block;
    }
    
    .copyright {
        text-align: center;
        width: 100%;
    }
}

/* レスポンシブスタイル */
@media (max-width: 768px) {
    .footer-container {
        width: 100%;
        text-align: center;
    }
}

body {
    font-family: Arial, Helvetica,Meiryo, Noto Sans JP, "sans-serif";
    color: var(--text-color);
    background-color: var(--bg-color);
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0.05em;
    padding-top: var(--header-height); /* ヘッダー高さ分のパディングを追加 */
}

main {
    background: #ffffff; /* 白一色に変更 */
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.75em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.25em; }
h6 { font-size: 1em; }

p {
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    opacity: 0.7;
}

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

@media (min-width: 1500px) {
    .container {
        max-width: 1400px;
    }
}

@media (min-width: 1800px) {
    .container {
        max-width: 1600px;
    }
}

@media (min-width: 2100px) {
    .container {
        max-width: 1800px;
    }
}

@media (min-width: 2400px) {
    .container {
        max-width: 2000px;
    }
}

@media (min-width: 3000px) {
    .container {
        max-width: 2400px;
    }
}

@media (min-width: 4000px) {
    .container {
        max-width: 3000px;
    }
}

@media (min-width: 5000px) {
    .container {
        max-width: 4000px;
    }
}

.section {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2.2em;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 25px;
    font-size: 1em;
    line-height: 1.6;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-color);
    z-index: 9999; /* z-indexを高く設定 */
    transition: var(--transition);
    will-change: transform; /* パフォーマンス改善のため */
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-logo {
    font-size: 4em;
    font-weight: bold;
}

.site-logo img {
    max-height: 40px;
    width: auto;
}

.global-nav .menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.site-header.scrolled {
    box-shadow: 0px 20px 20px 10px rgba(255, 255, 255, 0.95);
    background-color: rgba(255, 255, 255, 0.95);
}

/* アイコンの共通スタイル */
.social-icon, .ec-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
    margin: 0 8px;
    position: relative; /* 下線表示のために追加 */
}

.social-icon:hover, .ec-icon:hover {
    opacity: 1;
}

/* ホバー時の下線表示 - メニューリンクと同様の効果 */
.social-icon::after, .ec-icon::after {
    content: '';
    position: absolute;
    bottom: -8px; /* 下線とアイコンの間の間隔調整 */
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateY(8px);
}

.social-icon:hover::after, .ec-icon:hover::after {
    width: 100%;
}

/* アイコングループの設定 */
.icon-container {
    margin-left: auto;
}

.icons-group {
    display: flex;
    align-items: center;
}

/* SNSアイコン */
.icon-facebook {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z"></path></svg>');
}

.icon-instagram {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="2" width="20" height="20" rx="5" ry="5"></rect><path d="M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z"></path><line x1="17.5" y1="6.5" x2="17.51" y2="6.5"></line></svg>');
}

.icon-x {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z"></path></svg>');
}

.icon-tiktok {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M9 12a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm10-9v5h-5"/><path d="M12 8v13"/><path d="M19 8c-5-2-5-8-5-8"/></svg>');
}

/* ECアイコン */
.icon-shop {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="21" r="1"></circle><circle cx="20" cy="21" r="1"></circle><path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6"></path></svg>');
}

.icon-outlet {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20.38 3.46 16 2a4 4 0 0 1-8 0L3.62 3.46a2 2 0 0 0-1.34 2.23l.58 3.47a1 1 0 0 0 .99.84H6v10c0 1.1.9 2 2 2h8a2 2 0 0 0 2-2V10h1.15a1 1 0 0 0 .99-.84l.58-3.47a2 2 0 0 0-1.34-2.23z"/></svg>');
}

.global-nav .menu li {
    margin: 0;
}

.global-nav .menu a {
    position: relative;
    padding: 10px 0;
    font-size: 0.9em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.global-nav .menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: var(--accent-color);
    padding: 20px 0;
    position: relative;
}

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

/* プライバシーポリシーリンク */
.privacy-policy-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.privacy-policy-link a {
    color: var(--accent-color);
    font-size: 0.8em;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    opacity: 0.7;
}

.privacy-policy-link a:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav .menu {
    display: flex;
}

.footer-nav .menu li {
    margin: 0 15px;
}

.footer-nav .menu a {
    color: var(--accent-color);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.copyright {
    text-align: center;
    font-size: 0.8em;
    opacity: 0.7;
}

/* Hero Section */
.hero {
    height: 40vh; /* さらに縦幅を短く */
    min-height: 300px; /* 最小高さも調整 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 暗めのオーバーレイ */
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    color: #fff; /* テキストカラーを白に */
    position: relative;
}

.hero-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* テキストシャドウ追加 */
}

.hero-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* テキストシャドウ追加 */
}

.hero-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

/* Company Table Styles */
.company-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    overflow: hidden;
}

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

.company-table th {
    width: 30%;
    text-align: center;
    font-weight: 500;
    color: #333;
}

/* 会社情報ブロックのスタイル */
.company-info-block th,
.company-info-block td {
    background-color: #f9f9f9;
    border-left: 3px solid var(--primary-color);
}

/* オフィスヘッダースタイル */
.office-block-header th {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
    border-bottom: none;
    padding: 12px 15px;
}

.office-block th,
.office-block td {
    background-color: #fff;
}

/* Map Section */
.map-section {
    padding: 40px 0;
}

.map-container {
    width: 100%;
    max-width: 100%;
}

.office-map {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.office-map h3 {
    text-align: center;
    font-size: 1.8em;
    margin-bottom: 20px;
    font-weight: 700;
    position: relative;
}

.office-map h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

.office-details {
    max-width: 600px;
    margin: 0 auto 25px;
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid var(--primary-color);
}

.office-details p {
    margin-bottom: 5px;
}

.map-frame {
    width: 100%;
    max-width: 100%;
}

.map-frame iframe {
    width: 100%;
    height: 320px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
