/* sustainability_styles.css */

/* --- 1. カラー変数とTailwind代替の基本設定 --- */

:root {
    /* 元のカスタムCSSからの移植 */
    --color-bg-dark: #1A1A1A;
    --color-bg-light: #F0EAD6;
    --color-text-dark: #2C2C2C;
    --color-text-light: #F0EAD6;
    --color-accent-gold: #D4AF37;
    --color-accent-bronze: #B27C44;
    --color-accent-blue: #0047AB;
    --color-brand-green: #a3b18a;
    --color-brand-dark: #1a3e6c;
    --color-brand-green-light: #b8c4a5;
    /* Tailwind代替カラー */
    --color-gray-700: #4a5568;
    --color-gray-400: #a0aec0;
    --color-white: #fff;
    --color-blue-400: #63b3ed;
    --color-gray-700-dark-footer: #4a5568; /* フッター内の border-gray-700 の色を仮に再定義 */
}

/* HTMLボックスサイズ設定 - グローバルなフォントリセットは、クリティカルCSSに移動済み */
/* *, *:before, *:after { box-sizing: inherit; } */
/* html { box-sizing: border-box; } */

/* 全体的なスタイル（クリティカルCSSに移動したものを除く） */
body {
    /* 複雑なグラデーション背景を移動 */
    background-image: linear-gradient(112.5deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(157.5deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(135deg, rgb(214, 214, 214) 0%, rgb(214, 214, 214) 10%,rgb(195, 195, 195) 10%, rgb(195, 195, 195) 53%,rgb(176, 176, 176) 53%, rgb(176, 176, 176) 55%,rgb(157, 157, 157) 55%, rgb(157, 157, 157) 60%,rgb(137, 137, 137) 60%, rgb(137, 137, 137) 88%,rgb(118, 118, 118) 88%, rgb(118, 118, 118) 91%,rgb(99, 99, 99) 91%, rgb(99, 99, 99) 100%),linear-gradient(90deg, rgb(195, 195, 195),rgb(228, 228, 228));
    background-blend-mode:overlay,overlay,overlay,normal;
}

/* メガメニューの残りスタイル (クリティカルCSSに移動しなかったもの) */
.header.scrolled .mega-menu-item:hover .mega-menu-trigger {
    color: var(--color-brand-dark);
}

/* --- 2. ページ構造と見出し --- */
.main-content {
    padding-top: 0;
}
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.5;
    letter-spacing: 0.05em;
}
.divider-line {
    height: 2px;
    width: 100px;
    background-color: var(--color-accent-gold);
    margin: 2rem auto;
    box-shadow: 0 0 15px var(--color-accent-gold);
}
.card-container-strict {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.policy-section p {
    line-height: 1.8;
}
.sub-heading {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
}
.sub-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 5px solid var(--color-brand-green);
    padding-left: 1rem;
}
.left-align-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* --- 3. ボタンとCTA --- */
.button-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 10px auto;
    max-width: 400px;
}
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #4f73a9 0%, var(--color-brand-dark) 100%); 
    color: var(--color-white); 
    padding: 15px 30px;
    min-width: 250px; 
    border-radius: 10px; 
    font-size: 22px; 
    font-weight: 800; 
    white-space: nowrap;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden; 
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    transform: skewX(-30deg);
    transition: left 0.5s;
}
.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
}
.button:hover::after {
    left: 150%; 
}
.button-icon-container {
    width: 30px; 
    height: 30px;
    min-width: 30px; 
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) inset;
}
.button-icon {
    fill: var(--color-brand-dark);
    width: 14px; 
    height: 14px; 
    margin-left: 3px; 
}
.home-button .button {
    padding: 12px 25px;
    min-width: 280px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
}
.home-button .button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
}
.home-button .button-icon-container {
    width: 25px; 
    height: 25px;
    min-width: 25px;
    margin-right: 10px;
}
.home-button .button-icon {
    fill: var(--color-brand-dark);
    width: 15px; 
    height: 15px;
    margin-left: 0; 
}

/* --- 4. 特徴カード (Feature Cards) --- */
.feature-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
.feature-card {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    max-width: 350px;
    text-align: center;
    border-top: 5px solid var(--color-brand-green);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.feature-card svg {
    width: 3rem;
    height: 3rem;
    color: var(--color-brand-dark);
    margin: 0 auto 1rem;
}
.feature-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.feature-card p {
    color: #4a5568; /* Tailwind gray-700 */
    line-height: 1.7;
    text-align: left;
}
.cta-section {
    background-color: #f0f0f0;
    text-align: center;
    padding: 3rem 0; /* py-12の代替 */
}

/* --- 5. フッター --- */
.footer {
    background-color: #1a1a1a;
    color: var(--color-white);
    padding: 4rem 0;
    font-family: 'Noto Sans JP', sans-serif;
}
.footer-heading {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-link {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-white);
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-link:hover {
    opacity: 1;
}
.footer-button {
    background-color: transparent;
    color: var(--color-white);
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px; /* full rounded */
    font-weight: 700;
    transition: all 0.3s;
}
.footer-button:hover {
    background-color: var(--color-white);
    color: #1a1a1a;
}
.social-icons-container {
    display: flex;
    gap: 1rem;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
    background-color: transparent;
    border: 1px solid transparent; 
    overflow: hidden;
}
.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.social-icon:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* --- 6. 主要なTailwindユーティリティクラスの代替（非クリティカルなもの） --- */

/* Text and Font */
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-playfair { font-family: 'Playfair Display', serif; }
.italic { font-style: italic; }
.text-white { color: var(--color-white); }
.text-gray-700 { color: var(--color-gray-700); }
.text-gray-400 { color: var(--color-gray-400); }
.text-center { text-align: center; }
.underline { text-decoration: underline; }

/* Layout and Positioning */
.w-full { width: 100%; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.flex { display: flex; }
.hidden { display: none; }
.block { display: block; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; } /* flex-grow: 1, flex-shrink: 1, flex-basis: 0 */
.relative { position: relative; }

/* Margin and Padding */
.mx-auto { margin-left: auto; margin-right: auto; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-8 { margin-top: 2rem; }
.mt-2 { margin-top: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-12 > * + * { margin-left: 3rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.gap-1rem { gap: 1rem; }

/* Border and Shadow */
.border-b { border-bottom-width: 1px; }
/* ★修正点: border-gray-700 の色を、濃いフッター背景でも視認できるよう明るく調整 (以前は #4a5568、変更後は #3b3b3b を使用) */
.border-gray-700 { border-color: #3b3b3b; } 

/* Media Queries for responsive design (md: equivalent) */
@media (min-width: 768px) { /* md: */
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:flex-row { flex-direction: row; }
    .md\:justify-between { justify-content: space-between; }
    .md\:items-center { align-items: center; }
    .md\:space-x-12 > * + * { margin-left: 3rem; }
    .md\:space-y-0 > * + * { margin-top: 0; }
    .md\:mb-0 { margin-bottom: 0; }
}

/* Max Widths */
.max-w-7xl { max-width: 1280px; }
.container { max-width: 1280px; } /* mx-auto と組み合わせて中央寄せ */

/* Hover Effects (Non-Critical) */
.hover\:text-blue-400:hover { color: var(--color-blue-400); }