:root {
    --main-bg: #ffffff;
    --black: #1a1a1a;
    --accent: #666666;
    --white: #ffffff;
    --transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- 1. 基本設定 --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Helvetica Neue", Arial, sans-serif; background: var(--main-bg); color: var(--black); line-height: 1.8; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* --- 2. ヘッダー・ナビゲーション --- */
.header { width: 100%; padding: 15px 0; position: sticky; top: 0; background: #fff; z-index: 1000; border-bottom: 1px solid #eee; }
.header-logo { height: 70px !important; mix-blend-mode: multiply; filter: brightness(1.05) contrast(1.1); }

.nav-list { display: flex; list-style: none; gap: 40px; }
.nav-list a {
    text-decoration: none;
    color: var(--black);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
    transition: 0.3s;
}
.nav-list a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 2px; background: var(--black); transition: 0.3s;
}
.nav-list a:hover::after { width: 100%; }

/* --- 3. ヒーローセクション --- */
.hero { min-height: 60vh; display: flex; justify-content: center; align-items: center; text-align: center; padding: 40px 0; }
.hero-title { 
    font-family: "Times New Roman", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem); 
    font-weight: 700; 
    margin-bottom: 15px; 
    letter-spacing: 0.15em; 
    color: var(--black);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.08);
}
.hero-sub { font-size: clamp(0.9rem, 2.5vw, 1.1rem); color: var(--accent); letter-spacing: 0.05em; }

.hero-mission {
    margin-top: 25px;      /* 上の外側に25pxの余白を作る（上の文との間隔） */
    font-size: 0.95rem;    /* 文字の大きさを指定（標準より少し小さめ） */
    letter-spacing: 0.15em; /* 文字と文字の間隔を広げる（ゆったりした印象に） */
    opacity: 0.6;          /* 透明度を60%にする（少し薄くして控えめに見せる） */
    font-weight: 500;      /* 文字の太さを指定（中太、標準より少しだけ太い） */
}

/* --- 4. プロダクトカード --- */
.section { padding: 80px 0; }
.bg-black { background: var(--black); color: var(--white); }

.product-list-vertical { display: flex; flex-direction: column; gap: 30px; max-width: 900px; margin: 0 auto; }
.item-vertical { display: flex; align-items: center; gap: 50px; padding: 60px; border: 1px solid #333; position: relative; overflow: hidden; transition: var(--transition); }

.item-vertical .card-img { 
    flex: 0 0 350px; 
    height: 220px; 
    background: #1a1a1a; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 30px; 
    box-sizing: border-box;
    z-index: 1; 
}
.item-vertical .card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card-a .card-img img { opacity: 0.9; }

.item-vertical .card-text { z-index: 1; }
.card-text-header { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.card-text-header h4 { margin: 0; font-family: serif; font-size: 1.8rem; }
.card-icon-small { height: 35px; width: auto; border-radius: 4px; object-fit: contain; }

.item-vertical::after { 
    position: absolute; right: 20px; bottom: -20px; 
    font-size: 10rem; font-weight: 900; 
    color: rgba(255, 255, 255, 0.03); z-index: 0; 
}
.card-a::after { content: "01"; }
.card-b::after { content: "02"; }
.card-c::after { content: "03"; }

.card-link { text-decoration: none; color: inherit; }
.card-link:hover .item-vertical { transform: translateY(-5px); border-color: #666; background: rgba(255, 255, 255, 0.02); }

/* --- 5. 企業理念セクション --- */
.philosophy-content { max-width: 900px; margin: 0 auto; text-align: center; }
.philosophy-lead { 
    font-size: 1.6rem; 
    font-weight: bold; 
    margin-bottom: 40px; 
    color: var(--black); 
    font-family: "Times New Roman", serif; 
}
.message-box { text-align: left; max-width: 700px; margin: 0 auto; }
.philosophy-text { 
    line-height: 2; 
    color: var(--accent); 
    margin-bottom: 25px; 
    text-align: justify; 
    text-justify: inter-character; 
    word-break: auto-phrase; 
}

/* --- 6. フッター・アニメーション --- */
.footer { padding: 60px 0; background: var(--black); color: var(--white); text-align: center; }
.fade-in { opacity: 0; transform: translateY(30px); transition: var(--transition); }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* --- 7. レスポンシブ設定（一箇所に統合） --- */

/* 【1】中型デバイス（タブレットなど：1024px以下） */
@media (max-width: 1024px) {
    .hero-mission { 
        padding: 0 5%;              /* 左右の余白（文字が端に寄りすぎないよう調整） */
    }
    .nav-list { 
        gap: 15px;                  /* メニュー項目同士の間隔（狭い画面に合わせて詰める） */
    }
}

/* 【2】一般的なスマホ・小型タブレット（768px以下） */
@media (max-width: 768px) {
    .hero { 
        min-height: 40vh;           /* ヒーローエリアの高さ（画面全体の40%分を確保） */
    }
    .hero-mission { 
        font-size: 0.85rem;         /* 文字の大きさ（スマホで読みやすいサイズに縮小） */
        margin-top: 20px;           /* 上の要素との間隔（PC版25pxから少し詰める） */
        padding: 0 8%;              /* 左右の余白（画面端から少し離して読みやすくする） */
    }
    .item-vertical { 
        flex-direction: column;     /* 並び順を「縦並び」に変更（スマホ対応の重要設定） */
        text-align: center;         /* テキストを中央揃えにする */
        padding: 30px 15px;         /* 内側の余白（上下30px、左右15px） */
    }
    .item-vertical .card-img { 
        width: 100%;                /* 画像幅を横幅いっぱいに広げる */
        max-width: 400px;           /* 画像が大きくなりすぎないよう最大幅を制限 */
        margin: 0 auto 20px;        /* 中央に配置しつつ、画像の下に20pxの余白を作る */
    }
    .card-text-header { 
        justify-content: center;    /* 見出しやアイコンを中央に寄せる */
    }
    .philosophy-lead { 
        font-size: 1.2rem;          /* リード文の文字サイズ調整 */
        line-height: 1.5;           /* 行の間隔（スマホで重なって見えないよう広げる） */
    }
    .message-box { 
        text-align: center;         /* メッセージ内容を中央揃えにする */
        padding: 20px;              /* ボックス内の余白 */
    }
}

/* 【3】超小型スマホ（iPhone SEなど：375px以下） */
@media (max-width: 375px) {
    .hero-mission { 
        font-size: 0.75rem;         /* 画面が極端に狭いので文字をさらに小さく */
        letter-spacing: 0.1em;      /* 文字の間隔を少し詰めて、不自然な改行を防ぐ */
    }
    .philosophy-lead {
        font-size: 1.1rem;          /* キャッチコピーが画面からはみ出さないよう微調整 */
    }
}

/* 強調テキスト（執筆者の部分）のデザイン */
.philosophy-text strong {
    color: var(--black);
    font-weight: 700;
    background: linear-gradient(transparent 70%, #f0f0f0 70%); /* 控えめなマーカー線 */
    padding: 0 2px;
}

/* 理念全体のバランス調整 */
.philosophy-content {
    max-width: 850px; /* 少しスリムにして読みやすく */
    margin: 0 auto;
}

.philosophy-text {
    margin-bottom: 2rem; /* 段落の間隔を少し広めに */
    line-height: 2.1;    /* 行間をゆったりさせて高級感を出す */
}