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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    line-height: 1.6;
    overflow-x: hidden;
}

.wrapper {
    display: flex;
    width: 100%;
}

/* ================================
   PC用：左側固定エリア (70%)
================================ */
.left-pane {
    position: fixed;
    top: 0;
    left: 0;
    width: 60vw;
    height: 100vh;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    color: #fff;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/emboss-can.png'); 
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* ロゴエリア（高級ゴールド＆立体影） */
.logo {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.05;
    color: #ffffff;
    font-family: 'Times New Roman', 'YuMincho', '游明朝', serif;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.5),
        0 16px 32px rgba(0, 0, 0, 0.4);
        
    margin: 20px; 
}

.logo span {
    display: block;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    margin-top: 6px;
    font-family: 'YuMincho', '游明朝', 'MS Mincho', serif;
    color: #e5c060;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
}

/* 左側メニュー */
.side-nav {
    position: relative;
    z-index: 2;
    margin-top: auto;
    margin-bottom: 10px; /* PC版の余白を10pxに設定 */
}
.side-nav ul {
    list-style: none;
}
.side-nav li {
    margin-bottom: 10px;
}
.side-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
    
    /* PC版：文字の上下左右に濃い影を配置し、背景画像に負けない圧倒的な輪郭を作ります */
    text-shadow: 
        1px  1px 2px rgba(0, 0, 0, 1.0),
       -1px -1px 2px rgba(0, 0, 0, 1.0),
        1px -1px 2px rgba(0, 0, 0, 1.0),
       -1px  1px 2px rgba(0, 0, 0, 1.0),
        0    3px 6px rgba(0, 0, 0, 0.9),
        0    8px 16px rgba(0, 0, 0, 0.7);
}
.side-nav a:hover {
    opacity: 0.6;
}

/* ハンバーガーボタン（PCは非表示） */
.menu-trigger {
    display: none;
}

.sns-icons {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 20px;
}
.sns-icons a {
    color: #fff;
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}
.sns-icons a:hover {
    opacity: 0.6;
}

/* ================================
   PC用：右側スクロールエリア (30%)
================================ */
.right-pane {
    margin-left: 60vw;
    width: 40vw;
    min-height: 100vh;
    background-color: #fff;
}

/* ファーストビューのデザイン（クリーンアップ＆視認性向上） */
.right-hero {
    width: 100%;
    /* JSが発火する前の表示崩れ（ガタつき）を防ぐため、初期値として高さを確保 */
    height: 100vh; 
    
    /* 背景画像に先ほどのクッキー缶を指定。
       高級感を損なわないレベルで「ごく薄い黒のグラデーション」を上に重ねることで、
       エンボス調の白い背景部分と白い文字（Premium Cookie Can）が同化して見えなくなるのを防ぎます。
    */
    background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25)), url('images/premium_cookie_can.png'); 
    
    /* レスポンシブ対応の要：比率を維持して中央揃え */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* 文字配置用のフレックスボックス（維持） */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    
    /* 文字の影を少しだけ強めて、高級感と視認性をアップ */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.right-hero-text h2 {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Noto Serif JP', serif;
    color: #e5c060;    /* ★追加：文字色を金色に変更 */
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    line-height: 1.3;
 
	 text-shadow: 
	        1px 1px 0px rgba(0, 0, 0, 0.9),    /* 文字の輪郭を硬くする立体的な影① */
	        2px 2px 0px rgba(0, 0, 0, 0.7),    /* 文字の輪郭を硬くする立体的な影② */
	        0 4px 10px rgba(0, 0, 0, 0.9),     /* 直下に落ちる濃い影 */
	        0 15px 30px rgba(0, 0, 0, 0.75),   /* 中距離に広がる柔らかい影 */
	        0 30px 60px rgba(0, 0, 0, 0.6);    /* 一番遠くに落とす、浮遊感を出すための大きな影 */
}

.right-hero-text p {
    font-size: 1.4rem; /* 0.95rem から大幅に拡大 */
    font-weight: 900;  /* 超太字 */
    font-family: 'Noto Serif JP', serif;
    line-height: 1.6;

	 text-shadow: 
	        1px 1px 0px rgba(0, 0, 0, 0.9),    /* 文字の輪郭を硬くする立体的な影① */
	        2px 2px 0px rgba(0, 0, 0, 0.7),    /* 文字の輪郭を硬くする立体的な影② */
	        0 4px 10px rgba(0, 0, 0, 0.9),     /* 直下に落ちる濃い影 */
	        0 15px 30px rgba(0, 0, 0, 0.75),   /* 中距離に広がる柔らかい影 */
	        0 30px 60px rgba(0, 0, 0, 0.6);    /* 一番遠くに落とす、浮遊感を出すための大きな影 */
}

.right-hero-text .hero-description {
    display: inline-block;    /* 背景の幅を文字の長さに合わせる */
    text-align: left;         /* 枠内の文章を左寄せにして読みやすくする */
    background-color: rgba(0, 0, 0, 0.7); /* ★黒の透過0.7を設定 */
    padding: 20px 25px;       /* ★背景の内側に適度な余白を作る */
    border-radius: 6px;       /* ★角を少し丸くして高級感を出す */
    
    font-size: 1.05rem;       /* 読みやすい標準的なサイズに調整 */
    font-weight: 500;         /* 文字の太さをミディアムに抑える */
    margin-top: 25px;         /* 上のキャッチコピーとの間の余白 */
    font-family: 'Noto Serif JP', serif;
    line-height: 1.8;         /* 行間を広げて視認性を向上 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* 背景自体に薄い影をつけて立体感を出す */
}

/* ================================
   再修正：絶対横並び保証 ＆ 豪華ゴールド二重線枠装飾
================================ */
.hero-features {
    /* 強制的に絶対横並び・折り返し禁止に設定 */
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; 
    justify-content: center !important;
    
    gap: 10px;                /* アイテム同士の隙間 */
    margin-top: 30px;         /* 上の文章ブロックとの間の余白 */
    width: 100%;
    max-width: 100%;         /* 親要素の40vwからはみ出さないようガード */
    padding: 0 10px;
    box-sizing: border-box;
}

.feature-item {
    flex: 1 1 0% !important;  /* 3つの幅を完全に均等（均一）に強制割当 */
    min-width: 0;             /* 幅が狭まってもボックスが潰れるのを防ぐ */
    background: linear-gradient(135deg, #1f1f1f, #111111); /* 高級感のある黒の微グラデーション */
    
    /* ★枠の豪華装飾：王室や高級感を演出する「ゴールドの二重線」 */
    border: 3px double #e5c060; 
    padding: 12px 2px;
    border-radius: 4px;       /* 上品に見える僅かな角丸 */
    text-align: center;
    
    /* ★立体感を出すシャドウ装飾 */
    box-shadow: 
        0 6px 15px rgba(0, 0, 0, 0.6),                   /* 外側の重厚な影 */
        inset 0 0 10px rgba(229, 192, 96, 0.25);          /* 枠の内側から放つほのかな金色の光沢 */
}

.feature-label {
    display: block;
    font-size: 0.7rem;        /* 狭い幅でも文字がはみ出さない絶妙なサイズ */
    color: #cccccc;           /* 品のある薄グレー */
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    white-space: nowrap;      /* ★ラベル文字の意図しない改行を絶対禁止 */
}

.feature-value {
    display: block;
    font-size: 1.15rem;       /* 3つ並んでも綺麗に収まる強調サイズ */
    color: #e5c060;           /* 輝くゴールドカラー */
    font-weight: 900;
    font-family: 'Noto Serif JP', serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 1); /* 文字の輪郭を際立たせる黒影 */
    white-space: nowrap;      /* ★数字・単位の意図しない改行を絶対禁止 */
}
/* ▲ここまで追加 */


/* ================================
   修正：2列2行の特徴グリッド（黒背景・高級感スタイル）
================================ */
.overview-grid-section {
    background-color: #1a1a1a; /* 全体の背景を高級感のある黒に変更 */
    padding: 35px 25px !important; /* 内側にゆったりとした余白を確保 */
    border-radius: 8px; /* 角を少し丸めてスタイリッシュなボックスに */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* 重厚感を出すシャドウ */
    margin-bottom: 50px !important;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* PC時は2列 */
    gap: 20px;
    width: 100%;
}

.overview-item {
    background-color: rgba(255, 255, 255, 0.04); /* 背景に馴染むごく薄い白（ダークモードのカード風） */
    border: 1px solid rgba(255, 255, 255, 0.08); /* 繊細な境界線 */
    border-top: 3px solid #e5c060; /* ゴールドのアクセントラインは黒背景でさらに映えます */
    padding: 20px;
    border-radius: 4px;
    box-shadow: none; /* 背景が黒のため、外側の軽い影は不要なのでリセット */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overview-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15); /* 区切り点線を黒背景用の薄い白に変更 */
    padding-bottom: 8px;
}

.overview-label {
    font-size: 0.85rem;
    color: #b3b3b3; /* 項目名を視認性の高い明るいグレーに調整 */
    font-weight: 700;
    letter-spacing: 0.05em;
}

.overview-value {
    font-size: 1.4rem;
    color: #e5c060; /* 強調のゴールドはそのまま維持 */
    font-weight: 900;
    font-family: 'Noto Serif JP', serif;
}

.overview-desc {
    font-size: 0.9rem !important;
    line-height: 1.6;
    color: #e0e0e0 !important; /* 説明文を読みやすいホワイトグレーに変更 */
    margin-bottom: 0 !important;
}


/* ================================
   追加：おしゃれな見出し装飾
================================ */
.stylish-title {
    text-align: center;
    border-bottom: none !important; /* 既存の content-section h2 の下線をリセット */
    margin-bottom: 40px;
    padding-bottom: 0 !important;
}

.stylish-title .en {
    display: block;
    font-size: 0.85rem;
    color: #e5c060; /* テーマカラーのゴールド */
    letter-spacing: 0.15em;
    font-family: 'Times New Roman', 'YuMincho', serif;
    margin-bottom: 4px;
}

.stylish-title .ja {
    display: inline-block;
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Noto Serif JP', serif;
    color: #1a1a1a;
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 12px;
}

/* 見出し下部の中央揃えゴールドライン */
.stylish-title .ja::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #e5c060, #b89634);
    border-radius: 2px;
}



/* padding を各セクションに移動 */
.content-section {
    margin-bottom: 100px;
    padding: 60px 40px 0; /* ★上と左右にpaddingを設定 */
}

.content-section {
    margin-bottom: 100px;
    padding-top: 40px;
}

.content-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    letter-spacing: 0.05em;
}

.content-section p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #555;
}

.content-section ul {
    list-style: none;
    color: #555;
    font-size: 0.95rem;
}

.dummy-image {
    width: 100%;
    height: 250px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    margin-bottom: 20px;
}

.buy-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}
.buy-button:hover {
    background-color: #333;
}

.footer {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 50px;
    padding: 20px 40px; /* ★左右のpaddingを追加 */
    border-top: 1px solid #eee;
}

/* JSアニメーション用クラス */
.js-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.js-fade-in.is-active {
    opacity: 1;
    transform: translateY(0);
}


/* ================================
   選ばれる4つの理由（詳細グリッド）
================================ */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2列に設定 */
    gap: 25px;
    margin-top: 40px;
}

.reason-item {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-top: 3px solid #e5c060; /* 上部にゴールドのアクセントライン */
    padding: 30px 25px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 軽い影で浮き上がらせる */
    display: flex;
    flex-direction: column;
}

.reason-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
    line-height: 1.4;
    border-bottom: 1px dashed #dddddd;
    padding-bottom: 15px;
}

.reason-title i {
    color: #e5c060; /* アイコンをゴールドに */
    margin-right: 8px;
    font-size: 1.2rem;
}

.reason-title .en-sub {
    display: block;
    font-size: 0.8rem;
    color: #888888;
    margin-top: 6px;
    font-family: 'Times New Roman', 'YuMincho', serif;
    letter-spacing: 0.05em;
}

.reason-text {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1; /* テキスト量が違っても外枠ボタンを一番下に揃える */
}

/* 外枠をつけて強調するデザイン */
.reason-highlight {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #e5c060;
    color: #e5c060;
    font-weight: 900;
    font-size: 1.05rem;
    border-radius: 4px;
    text-align: center;
    background-color: rgba(229, 192, 96, 0.05); /* ほんのりゴールド背景 */
    align-self: flex-start; /* 左寄せ */
    font-family: 'Noto Serif JP', serif;
    letter-spacing: 0.05em;
}

/* ================================
   追加：製作の流れ (Flow)
================================ */
.flow-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.flow-list li {
    display: flex;
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}
.flow-step {
    font-family: 'Noto Serif JP', serif;
    font-weight: 900;
    color: #e5c060;
    font-size: 1.2rem;
    min-width: 80px;
    border-right: 2px solid #e5c060;
    margin-right: 25px;
    padding-right: 25px;
    display: flex;
    align-items: center;
}
.flow-content h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #1a1a1a;
}
.flow-content p {
    margin-bottom: 0 !important;
    font-size: 0.95rem;
    color: #555555;
}

/* ================================
   追加：よくある質問 (FAQ)
================================ */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 4px;
    overflow: hidden;
}
.faq-question {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    background: #fdfdfd;
    color: #1a1a1a;
    position: relative;
    list-style: none; /* デフォルトのマーカーを消す */
}
.faq-question::-webkit-details-marker {
    display: none; /* Safari用 */
}
.faq-question::before {
    content: "Q.";
    color: #e5c060;
    font-family: 'Noto Serif JP', serif;
    font-weight: 900;
    margin-right: 12px;
    font-size: 1.3rem;
}
.faq-answer {
    padding: 20px;
    border-top: 1px dashed #dddddd;
    color: #555555;
    background: #ffffff;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.7;
}
.faq-answer::before {
    content: "A.";
    color: #b3b3b3;
    font-family: 'Noto Serif JP', serif;
    font-weight: 900;
    margin-right: 12px;
    font-size: 1.3rem;
}

/* ================================
   追加：Aboutセクションのダークテーマ化
================================ */
#about.content-section {
    background-color: #1a1a1a;
    padding: 50px 40px !important; /* セクション内側に余白を確保 */
    border-radius: 8px; /* 角を少し丸めて柔らかさを出す */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); /* セクション全体に重厚感のある影 */
}

/* タイトルの日本語部分を白に変更 */
#about .stylish-title .ja {
    color: #ffffff;
}

/* 説明文を読みやすい明るいグレーに変更 */
#about p {
    color: #e0e0e0;
}

/* <strong>タグ（太字）をゴールドにして目立たせる */
#about strong {
    color: #e5c060;
    font-weight: 900;
}


/* ================================
   追加：活用事例 (Cases) セクションのダークテーマ＆レイアウト
================================ */
#cases.content-section {
    background-color: #1a1a1a;
    padding: 50px 40px !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

#cases .stylish-title .ja {
    color: #ffffff;
}

#cases .cases-intro {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 40px;
}

.cases-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.case-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 25px;
    transition: background 0.3s ease;
}

.case-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* 画像を右に配置する反転クラス */
.case-item.reverse {
    flex-direction: row-reverse;
}

.case-image {
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.case-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

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

.case-content {
    flex: 1;
    color: #e0e0e0;
}

.case-content h3 {
    font-size: 1.3rem;
    color: #e5c060;
    margin-bottom: 15px;
    line-height: 1.5;
    border-bottom: 1px dashed rgba(229, 192, 96, 0.3);
    padding-bottom: 10px;
}

.case-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #cccccc;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.case-tags span {
    font-size: 0.75rem;
    color: #1a1a1a;
    background-color: #e5c060;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ================================
   追加：Contactセクションのゴールドテーマ化
================================ */
#contact.content-section {
    /* 上品で高級感のあるゴールドグラデーション */
    background: linear-gradient(135deg, #fef4cd 0%, #e5c060 100%);
    padding: 50px 40px !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(229, 192, 96, 0.2); /* 影もほんのりゴールド */
}

/* タイトルの英語部分（濃いブラウンゴールドに調整） */
#contact .stylish-title .en {
    color: #997515;
}

/* タイトルの日本語部分（黒で引き締める） */
#contact .stylish-title .ja {
    color: #1a1a1a;
}

/* タイトル下の中央ライン（黒系のグラデーションに変更） */
#contact .stylish-title .ja::after {
    background: linear-gradient(135deg, #333333, #1a1a1a);
}

/* テキスト（視認性を高めるため濃い黒に） */
#contact p {
    color: #1a1a1a !important;
    font-weight: 500;
}

/* ================================
   追加：FAQ 折り畳み（アコーディオン）用のレイアウト調整
================================ */
/* 質問エリア：フレックスボックスでアイコンを右端に配置 */
.faq-question {
    display: flex;
    align-items: center;
}
.faq-question::before {
    flex-shrink: 0; /* 「Q.」の文字が潰れないようにする */
}
.faq-question-text {
    flex-grow: 1;
    padding-right: 15px; /* 右のアイコンとの隙間 */
}

/* 矢印アイコンのスタイルと回転アニメーション */
.faq-icon {
    color: #cccccc;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
/* 折り畳みが開いた時に矢印を上向き(180度)に回転 */
details[open] .faq-question .faq-icon {
    transform: rotate(180deg);
}

/* 回答エリア：フレックスボックスで「A.」と文章を綺麗に並べる */
.faq-answer {
    display: flex;
    align-items: flex-start;
}
.faq-answer::before {
    flex-shrink: 0; /* 「A.」の文字が潰れないようにする */
}
.faq-answer-text {
    flex-grow: 1;
}

/* ================================
   更新：見積もりフォーム（ダークテーマ用）のプレースホルダー・フォーカス調整
================================ */
/* ダーク背景でもプレースホルダー（薄い文字）が見やすくなるよう調整 */
#form-area ::placeholder {
    color: #888888;
    opacity: 1; /* Firefox用の不透明度リセット */
}

/* 入力欄にカーソルが当たった時（フォーカス時）のゴールド発光エフェクト */
#form-area input:focus,
#form-area select:focus,
#form-area textarea:focus {
    outline: none;
    border-color: #e5c060 !important;
    background: #2b2b2b !important; /* 背景を少しだけ明るくして入力中であることを明示 */
    box-shadow: 0 0 0 3px rgba(229, 192, 96, 0.2);
}

/* タイトル下のラインをダークテーマ用にゴールドに変更 */
#form-area .stylish-title .ja::after {
    background: linear-gradient(135deg, #e5c060, #baa050) !important;
}

/* ================================
   追加：送信完了モーダルウィンドウ
================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85); /* 背景を暗くしてフォーカス */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 8px;
    border: 2px solid #e5c060;
    text-align: center;
    max-width: 90%;
    width: 450px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    animation: modalFadeIn 0.4s ease forwards;
}

.modal-content p {
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1rem;
}

.modal-close-btn {
    background: #e5c060;
    color: #1a1a1a;
    border: none;
    padding: 14px 40px;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.modal-close-btn:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

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


/* ================================
   スマートフォン・タブレット用対応 (画面幅768px以下)
================================ */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    /* ★追加・修正: 左ペインの固定を解除し、スマホでは全画面のヒーローエリアとして配置 */
    .left-pane {
        position: relative;
        width: 100%;
        height: 100vh;
        padding: 20px;
    }

    /* ★修正: widthを100vwから100%に変更し、横揺れ（水平スクロール）を防止 */
    .right-pane {
        margin-left: 0;
        width: 100%;
    }

	.right-hero-text h2 {
        font-size: 2.2rem; /* スマホに合わせて少し縮小 */
    }
    .right-hero-text p {
        font-size: 1.1rem; /* スマホに合わせて少し縮小 */
    }
	.right-hero-text .hero-description {
        font-size: 0.95rem;   /* スマホ画面に合わせて一回り縮小 */
        padding: 15px 20px;   /* スマホ用に余白を少し狭める */
        margin: 20px 15px 0;  /* 左右にマージンを入れて画面端への張り付きを防止 */
    }
	.hero-features {
        gap: 8px;             /* スマホ画面に合わせて隙間を微調整 */
        padding: 0 15px;      /* 左右の画面端に少し余裕を持たせる */
        margin-top: 25px;
    }
    .feature-item {
        padding: 10px 4px;
        border: 3px double #e5c060; /* スマホでも美しい二重線を維持 */
    }
    .feature-label {
        font-size: 0.65rem;   /* スマホ用に微小調整 */
    }
    .feature-value {
        font-size: 1.1rem;    /* スマホ用に微小調整 */
    }

	.stylish-title {
        margin-bottom: 30px;
    }
    .stylish-title .ja {
        font-size: 1.4rem;
    }

	.overview-grid-section {
        padding: 25px 15px !important; /* スマホ画面に合わせて全体の余白を調整 */
        margin-bottom: 40px !important;
    }
    
    .overview-grid {
        grid-template-columns: 1fr; /* スマホ時は1列に縦並び */
        gap: 15px;
        padding: 0; /* 綺麗に収めるため左右のパディングをリセット */
    }

	.overview-value {
	    font-size: 1.4rem;
	    color: #e5c060;
	    font-weight: 900;
	    font-family: 'Noto Serif JP', serif;
	    font-variant-numeric: tabular-nums; /* ← この1行を追加（数字を等幅にして横揺れを防ぐ） */
	}

/* 理由グリッド スマホ対応（1列にする） */
    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .reason-item {
        padding: 25px 20px;
    }

    .reason-title {
        font-size: 1.1rem;
    }

    .logo {
        font-size: 2rem;
        line-height: 1.1;
        margin: 20px auto; 
    }
    
    .logo span {
        font-size: 0.85rem;
        margin-top: 4px;
    }

    /* スマホ用ハンバーガーボタン */
    .menu-trigger {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        background: rgba(26, 26, 26, 0.85);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        cursor: pointer;
        z-index: 100;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    }
    
    .menu-trigger span {
        display: block;
        position: absolute;
        left: 15px;
        width: 18px;
        height: 2px;
        background-color: #fff;
        transition: all 0.3s ease;
    }
    .menu-trigger span:nth-child(1) { top: 16px; }
    .menu-trigger span:nth-child(2) { top: 23px; }
    .menu-trigger span:nth-child(3) { bottom: 16px; }

    /* ボタンアクティブ時（三本線から「×」印に変形） */
    .menu-trigger.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(-45deg);
    }
    .menu-trigger.is-active span:nth-child(2) {
        opacity: 0;
    }
    .menu-trigger.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(45deg);
    }

    /* スマホ用全画面レスポンシブメニュー（初期状態は隠す） */
    .side-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(26, 26, 26, 0.98);
        z-index: 90;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    
    /* アクティブ時（ふわっとフェードイン表示） */
    .side-nav.is-active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .side-nav ul {
        display: flex;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .side-nav li {
        margin-bottom: 0;
    }
    
    .side-nav a {
        font-size: 1.1rem;
        background-color: transparent;
        padding: 8px 20px;
        border-radius: 0;
        color: #fff;
        font-family: 'YuMincho', '游明朝', serif;
        transition: color 0.3s ease;
        text-shadow: none; 
    }
    
    .side-nav a:hover {
        color: #e5c060;
    }

    /* スマホ版SNSアイコン（画像エリアの最下部へ完全に固定） */
    .sns-icons {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        gap: 25px;
    }
    
    .sns-icons a {
        font-size: 1.4rem;
        background-color: rgba(0, 0, 0, 0.4);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        color: #fff;
        transition: opacity 0.3s ease;
    }
    
    .sns-icons a:hover {
        opacity: 0.7;
    }

    .content-section {
        margin-bottom: 70px;
        padding: 50px 24px 0;
    }

    .footer {
        padding: 20px 24px;
    }

    .content-section h2 {
        font-size: 1.3rem;
    }

    .dummy-image {
        height: 200px;
    }
    
    .buy-button {
        padding: 18px;
        font-size: 1.1rem;
    }

/* Flow のスマホ対応 */
    .flow-list li {
        flex-direction: column;
        padding: 20px;
    }
    .flow-step {
        border-right: none;
        border-bottom: 2px solid #e5c060;
        margin-right: 0;
        margin-bottom: 15px;
        padding-right: 0;
        padding-bottom: 5px;
        width: fit-content;
    }

	#about.content-section {
        padding: 35px 20px !important;
    }

#cases.content-section {
        padding: 35px 20px !important;
    }
    
    .case-item, .case-item.reverse {
        flex-direction: column; /* スマホでは縦並びに統一 */
        gap: 20px;
        padding: 20px;
    }
    
    .case-content h3 {
        font-size: 1.15rem;
    }
    
    .case-tags {
        gap: 8px;
    }

	#contact.content-section {
        padding: 35px 20px !important;
    }

	#form-area {
        padding: 40px 15px !important;
    }
    #form-area div[style*="padding: 40px 30px"] {
        padding: 30px 15px !important;
    }
}