@charset "UTF-8";

@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;700&family=Shippori+Mincho:wght@400;700&display=swap');

/* ここから通常のCSSルールを記述 */
body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
}
h1 {
    font-family: 'Shippori Mincho', serif;
}

/* --- 下層ページ用メインビジュアルのスタイル --- */
.mv-under {
    width: 100%;
    min-height: 980px;
    background-image: url('../images/concept/default-concept-mv-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    position: relative; /* 子要素の配置基準になるので必須 */
    overflow: hidden;

    /* ★★★ PCでのレイアウト調整 (Flexbox を利用) ★★★ */
    display: flex; /* Flexbox を有効にする */
    flex-direction: column; /* 子要素を縦に並べる */
    justify-content: space-between; /* mv-content と mv-content3 を上下に引き離す */
    align-items: flex-start; /* 全体の子要素を左寄せにする */
    padding: 40px; /* 全体の内側に余白を追加 (コンテンツが端に寄りすぎないように) */
    box-sizing: border-box; /* padding を含めて高さ計算 */
    /* ★★★ ここまでPCでのレイアウト調整 ★★★ */
}

/* メインビジュアル内のコンテンツのスタイル */
.mv-under .mv-content {
    z-index: 1;
    /* padding-top をヘッダーの高さなどを考慮して調整 */
    padding: 280px 20px 20px;
    width: 1280px; /* 中央寄せの幅 */
    margin: 0 auto; /* 中央寄せ */
    text-align: center; /* コンテンツ内のテキストは中央寄せを維持 */

    /* Flexbox で配置されるため、absolute 関連のスタイルは不要 */
}

.mv-under .mv-content h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.mv-under .mv-content h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 2.0em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.mv-under .mv-content p {
    font-size: 1.5em;
    margin-bottom: 40px;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.mv-under .mv-content p span {
    font-size: 0.8em;
    font-family: "Libertinus Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

/* --- .mv-content-title 内の <p> タグのスタイル --- */
.mv-content-title p {
    /* ★★★ ここを修正し、PCでも縦書き風を維持 ★★★ */
    position: absolute; /* 親要素 .mv-under を基準に配置 */
    left: 20px; /* 左からの位置を調整 (必要に応じて) */
    top: 20%; /* 垂直方向の中央に配置 */
    transform: translateY(50%) rotate(90deg); /* 自身の高さの半分で垂直中央に寄せ、-90度回転 */
    transform-origin: left center; /* 回転の基準点を左中央に設定 */
    white-space: nowrap; /* 文字列を折り返さない */

    /* 文字色やフォントサイズなどの調整 (必要に応じて) */
    color: #fff;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 10; /* 他のコンテンツの上に表示されるように */
    /* margin-bottom は position: absolute のため不要 */
}

.mv-content-title .content-title {
    font-size: 2.4rem !important;
    font-family: "Libertinus Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

/* --- .mv-content3 のスタイル --- */
.mv-content3 {
    /* ★★★ ここからPCでのスタイル変更 (absolute を使用しない) ★★★ */
    width: 1280px; /* 中央寄せの幅 */
    margin: 0 auto; /* 中央寄せ */
    text-align: left; /* ★PCでは左寄せに変更★ */
    color: #fff;
    z-index: 10;
    
    /* 下線（白い線）の適用 */
    padding: 20px;
    padding-bottom: 5px;

    display: inline-block; /* 内容に合わせて幅を調整し、下線を適用 */
    /* bottom: 40px; right: 40px; など absolute に関連するプロパティは削除 */
    margin-top: auto; /* flexアイテムとして下部に配置されるように */
    margin-right: auto; /* text-align: left と合わせて、flexアイテムとして左寄せを強調 */
    /* ★★★ ここまでPCでのスタイル変更 ★★★ */
}

.mv-content3 p {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: left; /* 念のためここも左寄せ */
}

.mv-content3 h3 {
    width: 240px;
    display: inline-block;
    font-size: 1.8rem;
    font-weight: normal;
    margin-top: 0;
    text-align: left; /* 念のためここも左寄せ */
        border-bottom: 1px solid #fa4617;
}


.content-header {
    display: flex;
    align-items: flex-end;
    margin-bottom: 60px;
    justify-content: flex-start;
}

.content-title-horizontal {
    font-size: 2.2em; /* PCでの基本フォントサイズ */
    font-family: 'Shippori Mincho', serif; /* フォントファミリー共通化 */
    margin: 0;
    padding-bottom: 5px;
    color: #333; /* ★変更点: デフォルトの文字色を#333に設定（Priceセクションのデフォルト色） */
    flex-shrink: 0; /* 要素が縮まないようにする (PCレイアウト用) */
    white-space: nowrap; /* テキストが改行されないようにする (PCレイアウト用) */
}

.content-title-horizontal h2 {
        font-size: 0.8em;
}

.content-title-vertical {
    line-height: 1; /* 行間を詰める */
    font-size: 2.5em; /* PCでの基本フォントサイズ */
    font-weight: bold;
    color: #333; /* デフォルトの文字色 (各セクションで上書き) */
    padding-right: 20px; /* 日本語タイトルとの間隔 */
    flex-shrink: 0; /* 要素が縮まないようにする (PCレイアウト用) */
    white-space: nowrap; /* テキストが改行されないようにする (PCレイアウト用) */
}

/* --- Shape Life Section --- */
.shape-life-section {
    padding: 180px 20px; /* 上下の余白と左右のpadding */
    text-align: center; /* 全体のテキストを中央寄せ */
}

.shape-life-section .container {
    max-width: 1280px; /* コンテンツの最大幅を設定 */
    margin: 0 auto; /* 中央寄せ */
}

.shape-life-section .section-title-en {
    font-size: 1.8em; /* 英語タイトルのフォントサイズ */
    color: #333; /* テキスト色 */
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase; /* 大文字に変換 */
    text-align: center;
}

.shape-life-section .section-subtitle {
    font-family: 'Shippori Mincho', serif; /* 明朝体 */
    font-size: 2.5em; /* サブタイトルのフォントサイズ */
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: center;
}

.shape-life-section .section-catchphrase {
    font-size: 1.2em; /* キャッチコピーのフォントサイズ */
    color: #666;
    margin-bottom: 40px; /* 画像との間にスペース */
}

.shape-life-section .section-image {
    margin-bottom: 40px; /* 説明テキストとの間にスペース */
    text-align: center;
}

.shape-life-section .section-image img {
    max-width: 100%; /* 画像が親要素からはみ出さないように */
    height: auto; /* アスペクト比を維持 */
    display: block; /* 余分な下余白をなくす */
    margin: 0 auto; /* 画像を中央寄せ */
}

.shape-life-section .section-description p {
    font-size: 1.1em; /* 説明テキストのフォントサイズ */
    color: #555;
    line-height: 1.8; /* 行の高さ */
    max-width: 700px; /* 説明テキストの最大幅 */
    margin: 0 auto; /* 中央寄せ */
        text-align: center;
}

/* --- Image Gallery Section --- */
.image-gallery-section {
    padding: 80px 20px; /* 上下の余白と左右のパディング */
    /* PCでは中央寄せ、最大幅960px */
    max-width: 1280px;
    margin: 0 auto;
    box-sizing: border-box; /* paddingを含めて幅を計算 */
}

.gallery-container {
    display: flex;
    flex-direction: column; /* ギャラリーアイテムを縦に並べる */
    gap: 60px; /* 各ギャラリーアイテム間の余白 */
}

.gallery-item {
    display: flex;
    align-items: center; /* 画像とテキストを垂直方向中央に揃える */
    opacity: 0; /* JSでフェードインさせるため初期値は透明 */
    transform: translateY(20px); /* わずかに下から浮き上がるように */
    transition: opacity 1s ease-out, transform 1s ease-out; /* アニメーション設定 */
}

.gallery-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-image {
    flex-shrink: 0; /* 画像が縮まないようにする */
    overflow: hidden; /* 画像の枠からはみ出るのを防ぐ */
    width: 60%; /* PCでの画像の幅 */
    height: auto; /* 画像の高さは自動調整 */
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-text {
    flex-grow: 1; /* 残りのスペースを埋める */
    padding: 0 20px; /* テキストの左右パディング */
    color: #333; /* テキストの色 */
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 縦書きテキストのスタイル */
.vertical-text {
    writing-mode: vertical-rl; /* 縦書き（右から左へ） */
    -webkit-writing-mode: vertical-rl; /* Safari対応 */
    -ms-writing-mode: vertical-rl; /* IE対応 */
    text-orientation: upright; /* 英数字を縦向きに表示（一部ブラウザで効果） */
    white-space: nowrap; /* テキストの折り返しを禁止 */
    line-height: 2.2; /* 縦書き時の行間 */
    letter-spacing: 0.1em; /* 文字間隔 */
    font-size: 2.4rem; /* ベースのフォントサイズ */
    margin-right: 60px;
}
.vertical-text p {
    margin: 0; /* pタグのデフォルトマージンをリセット */
    text-align: left; /* 縦書き内でのテキストの揃え方 (左端揃えが自然) */
    padding: 0; /* pタグのデフォルトパディングをリセット */
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
}

/* --- 画像が左、テキストが右 --- */
.gallery-item.item-left-text-right {
    flex-direction: row; /* デフォルトの並び順 (画像が左、テキストが右) */
    padding-left: 20px; /* 左余白20px */
}

.gallery-item.item-left-text-right .gallery-image {
    margin-right: 20px; /* 画像とテキスト間の余白 */
}

/* --- 画像が右、テキストが左 --- */
.gallery-item.item-right-text-left {
    flex-direction: row-reverse; /* 画像が右、テキストが左になるように反転 */
    padding-right: 0; /* 右端余白なし */
}

.gallery-item.item-right-text-left .gallery-image {
    margin-left: 0; /* 画像とテキスト間の余白 (右端に詰めるため) */
    margin-right: 0; /* 余計なマージンを消す */
}

.gallery-item.item-right-text-left .gallery-text {
    text-align: right; /* 縦書きテキストが左側に寄るように */
    padding-right: 80; /* テキストの右パディングをリセット */
    padding-left: 20px; /* テキストの左パディング (画像との間隔) */
}

/* --- コンセプトセクション --- */
.concept-section {
    position: relative; /* 背景画像の位置決めの基準とする */
    background-color: transparent; /* 背景色なし */
    padding: 80px 20px; /* 上下の余白 */
    /* max-width は削除し、画面いっぱいに広がるように */
    overflow: hidden; /* 子要素がはみ出る可能性があるので */
    box-sizing: border-box;
    color: #333;
    min-height: 500px; /* 必要に応じて高さを確保 */
    display: flex; /* コンテナを中央に配置するためにflexboxを使用 */
    align-items: center; /* 垂直方向中央寄せ */
    justify-content: center; /* 水平方向中央寄せ */
    width: 100%; /* セクション自体は画面幅いっぱいに広がる */
}

.concept-container {
    position: relative; /* テキストが背景画像の上にくるように */
    z-index: 2; /* 背景画像より前面に表示 */
    max-width: 1280px; /* ★コンテナの最大幅を1280pxに設定 */
    width: 100%; /* 常に親要素の幅いっぱいに広がる */
    margin: 0 auto; /* ★中央寄せにする */
    padding: 20px; /* コンテナ内のパディング */
    /*background-color: rgba(255, 255, 255, 0.7); *//* テキストの可読性向上のため、半透明の背景を追加（任意） */
    /*border-radius: 8px; *//* 角丸（任意） */
    /*box-shadow: 0 4px 15px rgba(0,0,0,0.1);*/ /* 影（任意） */
    text-align: left; /* ★テキストを左寄せにする */
}

/* モニター右半分に表示する背景画像 */
.concept-background-right {
    position: absolute;
    top: 0;
    left: 50vw; /* 画面の50%から開始 */
    width: 50vw; /* 画面の50%の幅 */
    height: 100%; /* 親要素の高さに合わせる */
    background-image: url('../images/concept/concept-background-r.png'); /* ★ここに背景画像のURLを設定 */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1; /* コンテンツより背面に表示 */
}

/* テキストのスタイル (変更なし) */
.concept-text {
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    line-height: 1.6;
    margin-bottom: 1em;
}

.concept-text:last-child {
    margin-bottom: 0;
}

.concept-text.main-message {
    font-family: "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "HG明朝E", "ＭＳ Ｐ明朝", "ＭＳ 明朝", serif;
    font-size: 2.8em;
    font-weight: bold;
    color: #222;
    letter-spacing: 0.05em;
    margin-bottom: 0.8em;
}

.concept-text.sub-message {
    font-size: 1.4em;
    color: #555;
    margin-bottom: 1em;
}

.concept-text.call-to-action {
    font-size: 1.6em;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 1.5em;
}

.concept-text.final-action {
    font-size: 2.5em;
    font-weight: bolder;
    margin-top: 20px;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

/* --- ロゴコンテンツセクション --- */
.logo-section {
    width: 100%;
    padding: 80px 20px; /* 上下の余白と左右のパディング */
    box-sizing: border-box;
    display: flex; /* ロゴを中央に配置するためflexboxを使用 */
    justify-content: center; /* 水平方向中央寄せ */
    align-items: center; /* 垂直方向中央寄せ */
    min-height: 300px; /* セクションの最低高さを確保（ロゴのサイズに合わせて調整） */
    background-color: transparent; /* 背景色なし */
}

.logo-container {
    max-width: 800px; /* ロゴコンテナの最大幅（ロゴのサイズに合わせて調整） */
    width: 100%;
    text-align: center; /* ロゴ画像を中央に配置 */
}

.company-logo {
    max-width: 100%; /* 親要素の幅に合わせて縮小 */
    height: auto; /* アスペクト比を維持 */
    display: block; /* img要素の下にできる余白をなくすため */
    margin: 0 auto; /* 中央寄せ */
    /* 必要に応じてロゴ画像の最大サイズを設定 */
    max-height: 200px; /* ロゴの高さの最大値を制限する例 */
}


/* --- サブギャラリーセクション --- */
.sub-gallery-section {
    width: 100%;
    overflow: hidden; /* 子要素のはみ出しを隠す */
    box-sizing: border-box;
    /* 背景カラーはなしなので、設定しません */
}

.b-sub-gallery-container { /* セレクタ名を変更 */
    max-width: 100%; /* コンテナ自体は画面幅いっぱい */
    margin: 0 auto;
}

/* 各ギャラリーアイテムの共通スタイル (アニメーションの初期状態) */
.b-gallery-item { /* セレクタ名を変更 */
    display: grid; /* PCでの2カラム/1カラムレイアウトの基本 */
    width: 100%;
    height: 600px; /* 各ギャラリーアイテムの高さ (必要に応じて調整) */
    overflow: hidden;
    opacity: 0; /* 初期状態は透明 */
    transform: translateY(30px); /* 初期状態は少し下に移動 */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out; /* アニメーションの時間とイージング */
    margin-bottom: 0; /* 各アイテム間のマージン */
}

/* アニメーション後の状態 (JSで追加されるクラス) */
.b-gallery-item.is-visible { /* セレクタ名を変更 */
    opacity: 1;
    transform: translateY(0);
}

/* 画像ラッパーの共通スタイル */
.b-gallery-image-wrapper { /* セレクタ名を変更 */
    background-size: cover; /* 画像を要素にフィットさせる */
    background-position: center center; /* 画像を中央に配置 */
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
}

/* 各レイアウトの具体的なスタイル */

/* 1) 2カラム：画面フルの左4/5画像　右空白 */
.b-gallery-item.b-gallery-layout-left-image { /* セレクタ名を変更 */
    grid-template-columns: 4fr 1fr; /* 4/5と1/5の比率 */
}
.b-gallery-item.b-gallery-layout-left-image .b-gallery-image-wrapper { /* セレクタ名を変更 */
    background-image: url('../images/concept/b-gallery1.png'); /* ★画像URLをここに設定 */
}

/* 2) 1カラム：画面フル (画像) */
.b-gallery-item.b-gallery-layout-full-image { /* セレクタ名を変更 */
    grid-template-columns: 1fr; /* 1カラム */
}
.b-gallery-item.b-gallery-layout-full-image .b-gallery-image-wrapper { /* セレクタ名を変更 */
    background-image: url('../images/concept/b-gallery2.png'); /* ★画像URLをここに設定 */
}

/* 3) 2カラム：画面フルの左空白　右4/5画像 */
.b-gallery-item.b-gallery-layout-right-image { /* セレクタ名を変更 */
    grid-template-columns: 1fr 4fr; /* 1/5と4/5の比率 */
}
.b-gallery-item.b-gallery-layout-right-image .b-gallery-image-wrapper { /* セレクタ名を変更 */
    background-image: url('../images/concept/b-gallery3.png'); /* ★画像URLをここに設定 */
}

/* 空白スペース */
.b-gallery-blank-space { /* セレクタ名を変更 */
    background-color: transparent; /* 空白なので背景は透明 */
    width: 100%;
    height: 100%;
}

/* --- レスポンシブ対応 --- */
@media screen and (min-width: 769px) { /* PC向け (769px以上) */
    .concept-section {
        /* justify-content: flex-start; は削除 */
        /* padding-left は削除 */
        /* concept-container の margin: 0 auto; で中央寄せされるため */
    }

    .concept-container {
        /* max-width: 50%; は削除 */
        /* text-align: left; は元々設定済み */
        /* padding-right は元の padding: 20px; でカバーされる */
    }
}

/* ////.min-width:751px | 751px ~
---------------------------------------------------------------------
------------
------------
------------
------------
------------
------------
------------
------------
------------
------------
max-width:750px | ~ 750px
------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {

    /* @media screen
    ------------------------------------------------------------------------- */

    /* モバイル時のメインビジュアルエリア */
    .mv-under {
        height: auto;
        min-height: 400px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 20px; /* スマホでの余白を統一 */
    }

    /* モバイル時のメインビジュアル内の見出し */
    .mv-under .mv-content {
        text-align: left; /* スマホでは左寄せ */
        padding: 180px 0 20px; /* 左右のpaddingを0にするか、mv-underのpaddingに任せる */
        width: auto; /* スマホでは幅を自動調整 */
        margin: 0; /* マージンをリセット */
    }

    .mv-under .mv-content h2 {
        font-size: 1.6em;
    }

    .mv-under .mv-content h3 {
        font-size: 1.2em;
    }

    /* モバイル時のメインビジュアル内の段落 */
    .mv-under .mv-content p {
        font-size: 1em;
        font-family: "Libertinus Mono", monospace;
        font-weight: 400;
        font-style: normal;
    }

    /* ボタンを左寄せにする */
    .mv-under .mv-content .btn-contact {
        font-size: 0.8em;
        text-align: center;
        display: block;
        margin-left: 0;
        margin-right: auto;
    }

    /* mv-content2 のスタイル (ご提示のコードにはありませんが、もし存在すれば調整) */
    .mv-under .mv-content2 {
        padding: 15px;
        margin-top: 0;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-left: 20px;
    }

    /* --- .mv-content-title p (スマホでも同じ縦書きスタイルを維持) --- */
    .mv-content-title p {
        position: absolute; /* 引き続き absolute */
        left: 10px; /* スマホでの左からの位置調整 */
        top: 44%; /* スマホでの垂直方向の位置調整 (必要に応じて) */
        transform: translateY(-50%) rotate(-90deg); /* 引き続き回転 */
        transform-origin: left center;
        white-space: nowrap;
        font-size: 1rem;
        margin-bottom: 0; /* スマホでは margin-bottom をリセット */
    }

    .mv-content-title .content-title {
        font-size: 1.6rem !important;
    }


    /* --- .mv-content3 (スマホでは absolute + 右寄せを再適用) --- */
    .mv-content3 {
        position: absolute; /* スマホでは absolute に戻す */
        bottom: 20px;
        right: 20px;
        text-align: right; /* スマホでは右寄せに戻す */
        display: inline-block; /* absolute と合わせる */
        width: auto; /* 幅を自動調整 */
        margin-top: 0; /* 不要なマージンをリセット */
        margin-right: 0; /* 右寄せにするためリセット */
        padding: 0;
    }
    
    .mv-content3 p {
        font-size: 1.2rem;
        text-align: right; /* スマホでは右寄せに戻す */
    }

    .mv-content3 h3 {
        font-size: 1rem;
        text-align: right; /* スマホでは右寄せに戻す */
    }

    .content-title-vertical {
        font-size: 1.8em; /* スマホでのフォントサイズ */
        padding-right: 0; /* 縦並びになるため間隔不要 */
        margin-bottom: 5px; /* 日本語タイトルとの間に少し余白 */
    }

    .content-title-horizontal {
        font-size: 1.6em; /* スマホでのフォントサイズ */
        /* その他のスタイルは共通のものを継承 */
    }

    .shape-life-section {
        padding: 120px 15px 0; /* モバイル時の余白を調整 */
    }

    .shape-life-section .section-title-en {
        font-size: 1.4em;
    }

    .shape-life-section .section-subtitle {
        font-size: 1.4em;
    }

    .shape-life-section .section-catchphrase {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .shape-life-section .section-image {
        margin-bottom: 30px;
    }

    .shape-life-section .section-description p {
        font-size: 0.95em;
        line-height: 1.7;
    }

    .image-gallery-section {
        padding: 40px 0; /* スマホでは左右パディングなし */
        max-width: 100%; /* 横幅100% */
    }

    .gallery-container {
        gap: 40px; /* スマホでのアイテム間の余白 */
    }

    .gallery-item {
        /* スマホでも横並びを維持 */
        align-items: center; /* 垂直方向中央揃えを維持 */
        padding: 0; /* 個別のパディングは後述のクラスで調整 */
        box-sizing: border-box; /* paddingを含めて幅を計算 */
        /* flex-direction: column; を削除し、デフォルトの row に戻すか、個別に設定 */
    }

    .gallery-image {
        width: 70%; /* スマホでの画像の幅を調整 (例: 50%) */
        height: auto;
        margin: 0; /* マージンをリセット */
    }

    .gallery-text {
        width: 50%; /* スマホでのテキストの幅を調整 (例: 50%) */
        padding: 0; /* 個別のパディングは後述のクラスで調整 */
        margin-right: 10px;
        /* スマホでも縦書きを維持 */
        writing-mode: vertical-rl;
        -webkit-writing-mode: vertical-rl;
        -ms-writing-mode: vertical-rl;
        text-orientation: upright;
        white-space: nowrap;
        line-height: 2.2;
        letter-spacing: 0.1em;
        font-size: 1.2rem; /* スマホでのフォントサイズを調整 */
    }
    .gallery-text p {
        text-align: left;
    }


    /* 各ギャラリーアイテムの個別のスタイルをスマホで調整 */

    /* --- スマホ: 画像が左、テキストが右 --- */
    .gallery-item.item-left-text-right {
        flex-direction: row; /* 横並びを維持 */
        padding-left: 20px; /* 左余白20px */
    }
    .gallery-item.item-left-text-right .gallery-image {
        margin-right: 15px; /* 画像とテキスト間の余白 (スマホ用) */
    }
    .gallery-item.item-left-text-right .gallery-text {
        padding-right: 0; /* 右側パディングをリセット */
        padding-left: 0; /* 左側パディングをリセット (画像とのマージンで調整) */
        text-align: left; /* 縦書きなのでleft */
    }


    /* --- スマホ: 画像が右、テキストが左 --- */
    .gallery-item.item-right-text-left {
        flex-direction: row-reverse; /* 横並びを維持 */
        padding-right: 0; /* 右余白なし */
        padding-left: 20px; /* 全体として左側に余白を持たせる */
    }
    .gallery-item.item-right-text-left .gallery-image {
        margin-left: 15px; /* 画像とテキスト間の余白 (スマホ用) */
        margin-right: 0; /* 余計なマージンを消す */
    }
    .gallery-item.item-right-text-left .gallery-text {
        text-align: right; /* 縦書きなのでright */
        padding-left: 0; /* 左側パディングをリセット */
        padding-right: 0; /* 右側パディングをリセット (画像とのマージンで調整) */
    }

    .concept-section {
        padding: 50px 15px; /* スマホでのパディング */
        min-height: auto; /* 高さを自動調整 */
    }

    .concept-background-right {
        /*display: none;*/ /* スマホでは背景画像を非表示 */
        top: 0;
        left: 0;
        width: 100vw;
    }

    .concept-container {
        max-width: 100%; /* スマホでは幅いっぱいに */
        text-align: center; /* テキストを中央寄せ */
        padding: 20px;
        /*background-color: rgba(255, 255, 255, 0.9); *//* スマホでは背景を不透明に近づける（任意） */
    }

    /* テキストのスタイル (スマホでの調整) */
    .concept-text.main-message {
        font-size: 1.8em;
        margin-bottom: 0.5em;
        color: #fff;
    }

    .concept-text.sub-message {
        font-size: 1.1em;
        margin-bottom: 0.8em;
        color: #fff;
    }

    .concept-text.call-to-action {
        font-size: 1.3em;
        margin-top: 20px;
        margin-bottom: 1em;
        color: #fff;
    }

    .concept-text.final-action {
        font-size: 2em;
        margin-top: 15px;
        color: #fff;
    }

    .logo-section {
        padding: 40px 15px; /* スマホでのパディング調整 */
        min-height: 200px; /* スマホでの最低高さを調整 */
    }

    .company-logo {
        max-height: 150px; /* スマホでのロゴの高さの最大値を調整 */
    }

    .b-gallery-item { /* セレクタ名を変更 */
        grid-template-columns: 1fr; /* スマホでは全て1カラム */
        height: 400px; /* スマホでの高さ調整 */
        margin-bottom: 0;
        /* スマホで画像が中央寄せになるように調整 */
        display: flex; /* flexboxに変更 */
        justify-content: center; /* 水平方向中央寄せ */
        align-items: center; /* 垂直方向中央寄せ */
    }

    /* 空白スペースはスマホでは非表示にする */
    .b-gallery-blank-space { /* セレクタ名を変更 */
        display: none;
    }

    /* 各画像ラッパーはスマホで全幅 */
    .b-gallery-image-wrapper { /* セレクタ名を変更 */
        width: 100%;
        height: 100%;
        /* background-positionがcenter centerなので、自動的に画像は中央に表示されます */
    }


    /* @media screen
    ------------------------------------------------------------------------- */
}