/* ========================================
   The Inside-Out Way - スタイルシート
   デザイン：モダン、シンプル、クリーン
   配色：白背景、ダークシアン(#008B8B)、黒、グレー
======================================== */

/* ========== リセット・基本設定 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* カラーパレット */
    --color-primary: #A4B89C;      /* グリーン（アースカラー） */
    --color-primary-dark: #7A9270; /* グリーン（濃いめ） */
    --color-primary-light: #D4E5CC; /* グリーン（薄いめ） */
    --color-bg: #ffffff;           /* 白背景 */
    --color-bg-alt: #EAE1D7;       /* ベージュ系背景 */
    --color-text: #333333;         /* 黒（テキスト） */
    --color-text-light: #666666;   /* グレー（サブテキスト） */
    --color-text-lighter: #999999; /* 薄いグレー */
    --color-border: #E5E5E5;       /* ボーダー用グレー */
    
    /* フォント */
    --font-main: 'Noto Serif JP', sans-serif;
    
    /* スペーシング */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* コンテンツ幅 */
    --container-width: 1200px;
    --container-narrow: 800px;
    
    /* トランジション */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
}

/* ========== コンテナ ========== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ========== ヒーローセクション ========== */
.hero-section {
    background-image: url('images/hero-bg_LR_reverse.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-bg);
    color: var(--color-text);
    padding: var(--spacing-xxl) var(--spacing-md);
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 251, 245, 0.3);
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--spacing-xl);
    max-width: 1400px;
}

.hero-content {
    flex: 1;
    z-index: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    display: none;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    max-width: var(--container-width);
    width: 100%;
}

.hero-title {
    font-size: clamp(2.8rem, 10vw, 4.2rem);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.008em;
    animation: fadeInUp 1s ease;
    color: var(--color-text);
    position: relative;
    z-index: 1;
    text-align: left;
    line-height: 1.3;
    font-family: 'Noto Serif JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    word-spacing: 0.1em;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-light);
    animation: fadeInUp 1s ease 0.2s both;
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 600px;
    margin: 0 0 var(--spacing-lg);
}

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

/* ========== メインコンテンツ ========== */
.main-content {
    background-color: var(--color-bg);
}

/* ========== セクション共通 ========== */
section {
    padding: var(--spacing-xxl) 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ========== Aboutセクション ========== */
.about-section {
    background-color: var(--color-bg);
    text-align: center;
}

.about-section .section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
}

.mission-vision-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: var(--container-width);
    margin: 0 auto;
}

.mission-card,
.vision-card {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-lg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 139, 139, 0.15);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 3px solid var(--color-primary);
}

.card-text {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.9;
    text-align: left;
}

/* ========== Productsセクション ========== */
.products-section {
    background-color: var(--color-bg);
    padding: var(--spacing-xxl) var(--spacing-md);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: var(--container-width);
    margin: 0 auto;
}

.product-card {
    background-color: var(--color-bg);
    overflow: hidden;
    border-radius: 8px;
    transition: transform var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.learn-more-btn-secondary {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-normal);
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.learn-more-btn-secondary:hover {
    background-color: var(--color-primary-dark);
}

/* ========== Core Valuesセクション ========== */
.values-section {
    background-color: var(--color-bg-alt);
    padding: var(--spacing-lg) var(--spacing-md);
}

.values-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    max-width: 1300px;
    align-items: start;
}

.values-left {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.values-left .section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.values-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.values-illustration {
    display: none;
}

.illustration-img {
    width: 100%;
    max-width: 350px;
    height: auto;
}

.values-right {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.value-item {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    background-color: var(--color-bg);
    padding: var(--spacing-sm);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 139, 139, 0.15);
}

.value-item + .value-item {
    margin-top: 0.2rem;
}

.value-badge {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-badge img {
    width: 100%;
    height: 100%;
    display: block;
}

.value-content {
    flex: 1;
}

.value-content .value-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.value-content .value-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Per-item accent rings (subtle) */
.value-item--evidence .value-badge img { box-shadow: 0 0 0 6px rgba(122,146,112,0.12); border-radius:50%; }
.value-item--balance .value-badge img { box-shadow: 0 0 0 6px rgba(164,111,111,0.12); border-radius:50%; }
.value-item--personal .value-badge img { box-shadow: 0 0 0 6px rgba(111,142,164,0.12); border-radius:50%; }
.value-item--sustainable .value-badge img { box-shadow: 0 0 0 6px rgba(120,160,106,0.12); border-radius:50%; }
.value-item--honest .value-badge img { box-shadow: 0 0 0 6px rgba(178,143,193,0.12); border-radius:50%; }

/* ========== 書籍セクション ========== */
.book-section {
    background-color: var(--color-bg);
}

.book-container {
    display: flex;
    gap: var(--spacing-xl);
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    background-color: var(--color-bg-alt);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.book-cover {
    flex: 0 0 300px;
    text-align: center;
}

.cover-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-normal);
}

.cover-image:hover {
    transform: scale(1.05);
}

.book-info {
    flex: 1;
}

.book-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    line-height: 1.5;
}

.book-subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.book-author {
    font-size: 1.05rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm);
    background-color: var(--color-primary-light);
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
}

.book-description {
    font-size: 1.05rem;
    color: var(--color-text);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

/* ========== Let's Connectセクション ========== */
.connect-section {
    background-color: var(--color-primary);
    color: white;
    padding: var(--spacing-xxl) var(--spacing-md);
}

.connect-section .section-title {
    color: white;
    text-align: left;
    margin-bottom: var(--spacing-lg);
    margin-top: 120px;        /* タイトルを画像の中央の高さに移動 */
}

.connect-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
    align-items: end;         /* 下揃えに戻す */
    max-width: 1300px;
    min-height: 300px;        /* 400px → 300px に縮小 */
}

.contact-info-grid {
    display: flex;
    justify-content: flex-start;
    gap: var(--spacing-lg);
}

.contact-item {
    text-align: center;
    margin-top: -200px;       /* 元の下部位置に戻す */
}

.contact-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;    /* ラベルとアイコンの間隔 */
    margin-top: -30px;        /* ラベル自体の上マージン */
}

.contact-value {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.social-icons {
    display: flex;
    gap: 32px;              /* アイコン間の間隔（横） */
    margin-top: 16px;       /* ラベルからの上マージン */
    margin-left: 0;         /* デフォルトは中央揃え */
    justify-content: center; /* 中央揃え */
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;            /* アイコンの幅 */
    height: 48px;           /* アイコンの高さ */
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.3rem;      /* アイコンフォントサイズ */
    font-family: 'Font Awesome 6 Brands', 'Noto Serif JP', serif;  /* フォント指定 */
    transition: all var(--transition-normal);
    position: relative;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

/* ツールチップ（マウスオーバー時に表示） */
.social-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.social-icon:hover::after {
    opacity: 1;
}

/* 準備中のアイコン */
.social-icon--disabled {
    pointer-events: none;
    opacity: 0.6;
}

/* noteアイコン（テキスト）のフォント */
.social-icon--note {
    font-family: 'Noto Serif JP', serif !important;
    font-weight: 500;
}

.connect-illustration {
    text-align: right;          /* 画像の水平位置（right/center/left） */
    align-self: start;          /* 画像の垂直位置（start=上 / center=中央 / end=下） */
    margin-top: -150px;         /* 上からの距離調整（-50px → -150px でさらに上に） */
    margin-right: 0px;          /* 右からの距離調整 */
    padding-top: 0px;           /* 画像内側の上余白 */
}

.connect-illustration .illustration-img {
    max-width: 100%;            /* スマホ：画面幅に合わせる */
    width: 100%;                /* スマホ：全幅表示 */
    height: auto;               /* 高さは自動調整（縦横比維持） */
    margin-top: 0px;            /* 画像自体の上マージン */
}
}
    font-weight: 700;
}

.social-text {
    font-weight: 500;
}

/* ========== フッター ========== */
.footer {
    background-color: var(--color-text);
    color: var(--color-text-lighter);
    padding: var(--spacing-lg) 0;
    text-align: center;
    border-top: 4px solid var(--color-primary);
}

.footer-text {
    font-size: 0.9rem;
}

/* ========================================
   レスポンシブデザイン
======================================== */

/* タブレット（768px以下） */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
    }
    
    .hero-container {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.8rem;
        text-align: center;
        letter-spacing: 0.03em;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .mission-vision-container {
        grid-template-columns: 1fr;
    }
    
    .values-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .values-left {
        text-align: center;
    }
    
    .values-left .section-title {
        text-align: center;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .connect-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        min-height: auto;           /* モバイルでは高さ自動調整 */
    }
    
    .connect-section .section-title {
        margin-top: 0;              /* モバイルではタイトルを上部に */
        text-align: center;         /* 中央揃え */
    }
    
    .contact-item {
        margin-top: 0;              /* モバイルではマージンリセット */
        text-align: center;         /* 中央揃え */
    }
    
    .contact-label {
        text-align: center;         /* ラベルも中央揃え */
        margin-left: 0;             /* 左マージンリセット */
    }
    
    .connect-illustration {
        text-align: center;
        margin-top: 0;              /* モバイルでは画像のマージンもリセット */
        margin-left: 0;             /* 左マージンもリセット */
        margin-right: 0;            /* 右マージンもリセット */
        padding: 0;                 /* パディングもリセット */
        order: 2;                   /* 画像を下に配置 */
        width: 100%;                /* 幅を100%に */
    }
    
    .contact-info-grid {
        order: 1;                   /* SNSアイコンを上に配置 */
    }
    
    .social-icons {
        margin-left: 0 !important;  /* モバイルでは左マージンを確実にリセット */
        justify-content: center;    /* アイコンを中央揃え */
        display: flex;
        gap: 24px;                  /* モバイルではアイコン間隔を少し狭く */
    }
    
    .connect-illustration .illustration-img {
        width: 100%;                /* モバイル：全幅 */
        max-width: 100%;            /* 最大幅も100% */
        margin: 0 auto;             /* 中央揃え */
        display: block;             /* ブロック要素として扱う */
    }
}

/* スマホ（480px以下） */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: 50vh;
        padding: var(--spacing-lg) var(--spacing-sm);
        background-position: center center;
        text-align: center;
        justify-content: center;
    }
    
    .hero-section::before {
        background: rgba(255, 251, 245, 0.5);
    }
    
    .hero-title {
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
        max-width: 100%;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .welcome-lead {
        font-size: 1.3rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
    
    .card-text {
        font-size: 1rem;
    }
    
    .value-icon {
        font-size: 2.5rem;
    }
    
    .value-title {
        font-size: 1.05rem;
    }
    
    .value-text {
        font-size: 0.9rem;
    }
    
    .cover-image {
        max-width: 200px;
    }
    
    .book-title {
        font-size: 1.5rem;
    }
    
    .book-subtitle {
        font-size: 0.9rem;
    }
    
    .amazon-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .social-link {
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }
    
    /* スマホでもSNSアイコンを確実に中央揃え */
    .social-icons {
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: center !important;
        width: 100%;
        padding: 0;
    }
    
    .contact-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-label {
        text-align: center !important;
    }
}

/* 大画面（1400px以上） */
@media (min-width: 1400px) {
    :root {
        --container-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .hero-section {
        min-height: 75vh;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
    
    .welcome-lead {
        font-size: 2.25rem;
    }
    
    /* PC大画面では左寄せ */
    .social-icons {
        margin-left: 200px;
        justify-content: flex-start;
    }
    
    .contact-item {
        text-align: left;
    }
    
    .connect-illustration .illustration-img {
        width: 100%;            /* PC：右側グリッド幅に合わせる */
        max-width: 100%;        /* 自然な幅制限 */
    }
}

/* ========== アニメーション・その他 ========== */

/* フェードインアニメーション用 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* プリント用スタイル */
@media print {
    .hero-section,
    .footer {
        background: none;
        color: var(--color-text);
    }
    
    .amazon-button,
    .social-link {
        border: 1px solid var(--color-text);
        color: var(--color-text);
        background: none;
    }
}
