/*
Theme Name:   Mobility Agent コーポレートサイト
Theme URI:    (ここにサイトのURLが入ったら書く)
Author:       (あなたの名前 または 会社名)
Author URI:   (あなたのサイトのURLなど)
Description:  モビリティエージェント株式会社様のコーポレートサイト用カスタムテーマです。ブログ機能と提携キッチンカーのカスタム投稿機能を搭載しています。
Version:      1.0.1
Requires at least: 6.2
Requires PHP:      7.4
License:      (通常は空白か、GPLv2 or later と書きます)
License URI:  (通常は空白か、https://www.gnu.org/licenses/gpl-2.0.html と書きます)
Text Domain:  mobility-agent-theme
Tags:         custom-background, custom-logo, custom-menu, featured-images, theme-options

*/


/*
  ===============
  Design Tokens
  ===============
*/
:root {
    /* Colors */
    --color-primary: #ffc107; /* メインの黄色 */
    --color-text-base: #333333; /* 基本のテキスト色 */
    --color-text-light: #ffffff; /* 明るいテキスト色（ヘッダーなど） */
    --color-background-dark: #3c3c3c; /* フッターなどの暗い背景色 */
    --color-background-light: #f5f5f5; /* 薄いグレーの背景色 */
  
    /* Typography */
    --font-family-base: 'M PLUS Rounded 1c', sans-serif;
    --font-size-base: 16px;
  
    /* Layout */
    --content-width-pc: 900px;
    --content-width-tab: 725px;
    --content-width-sp: 335px;
  
    --header-height: 80px; /* ヘッダーの高さ */
  }
  
  /*
    ===============
    Basic & Layout Settings
    ===============
  */
  body {
    
    /* ↓元からあったスタイルはそのまま残す */
    font-family: var(--font-family-base);
    color: var(--color-text-base);
    font-size: var(--font-size-base);
    line-height: 1.8;
    margin: 0;
  }

  body::before {
  content: ''; /* 擬似要素には必須のプロパティ */
  
  /* 画面全体に固定で配置 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* コンテンツより後ろに配置 */
  z-index: -1;

  /* 背景の指定は、すべてこちらに移動します */
  background-image: url('img/texture.webp');
  background-size: cover;
  background-repeat: no-repeat; /* 1枚の画像で覆う前提に変更 */
  background-position: center center;

  /* background-attachment: fixed; は不要になります */
}

  .main {
    background-color: #fff; /* 見た目上の背景色はこっちに付ける */
  }
  
  img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom; /* 画像下の余白対策 */
  }
  
  /* サイト全体のコンテンツ幅を管理するクラス */
  .l-container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 20px; /* スマホ時の左右の余白 */
    padding-left: 20px;
    box-sizing: border-box;
  }
  
  .section {
    padding: 80px 0;
  }
  
  
  /* ブレークポイントに合わせて最大幅を切り替える */
  /* モバイル (375px以上) */
  @media (min-width: 375px) {
    .l-container {
      max-width: calc(var(--content-width-sp) + 40px);
    }
  }
  
  /* タブレット (765px以上) */
  @media (min-width: 765px) {
    .l-container {
      max-width: calc(var(--content-width-tab) + 40px);
    }
  }
  
  /* PC (1080px以上) */
  @media (min-width: 1080px) {
    .l-container {
      max-width: calc(var(--content-width-pc) + 40px);
    }
  }
/* 中央寄せタイトル */
  .copy_title_center-box {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
  }
/* 左寄せタイトル */
  .copy_title_left-box {
    text-align: left;
    margin-bottom: 30px;
    color: #fff;
    display: inline-block;
  }

/* タイトル黒文字 */
  .copy_title-dark {
    font-size: 32px;
    margin: 0;
    line-height: 1.6;
    color: #000;
    font-weight: 700;
  }
/* タイトル白文字 */
  .copy_title-light {
    font-size: 32px;
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #fff;
    font-weight: 700;
  }


/* サブタイトル共通 */
  .copy_subtitle {
    color: var(--color-primary); /* サブタイトルは黄色に */
    display: block;
    font-size: 20px;
    margin: 0;
  }

  

/* ================
   p-header (ヘッダー)
   ================ */
   .p-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    display: flex;
    align-items: center;

    /* ▼▼▼ ここからが変更点 ▼▼▼ */
    background-color: transparent; /* 背景を透明に */
    /* background-image と box-shadow を削除 */
    /* ▲▲▲ ここまで ▲▲▲ */

    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(0);
}

/* ★変更：ヘッダー内のテキスト色を白に戻し、影を追加 */
.p-header,
.p-header a {
    color: var(--color-text-light); /* 文字を白に */
    text-shadow: 0 1px 3px rgba(0,0,0,0.4); /* 背景画像と重なっても読みやすくするために影を追加 */
}
.p-hamburger span {
    background-color: var(--color-text-light); /* ハンバーガーメニューの線も白に */
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
/* ★変更ここまで */

/* JSによってこのクラスが付いたら、ヘッダーを画面外（上）に隠す */
.p-header.is-hidden {
    transform: translateY(-100%);
}

.p-header__inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    box-sizing: border-box;
}
.p-header__brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--color-text-light);
}
.p-header__logo {
    width: 300px;
}
@media (max-width :765px) {
    .p-header__logo {
        width: 250px;
    }
}
.p-header__company-name {
    font-size: 14px;
    font-weight: bold;
}

/* ================================
   固定ヘッダーの重なり対策
   ================================ */
   .p-hero-bg-slider,
   .p-hero-service,
   .p-single-hero,
   .p-static-page,
   .p-archive-head {
       /* ヘッダーの高さ(80px)分、コンテンツの開始位置を下げる */
       padding-top: var(--header-height);
   }
   
   

/* ================
   p-nav (PC用ナビゲーション)
   ================ */
.p-nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}
.p-nav__list > .menu-item {
    position: relative;
}
.p-nav__list > .menu-item > a {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: bold;
    padding: 10px 0;
    display: block;
    transition: opacity 0.3s;
}
.p-nav__list > .menu-item > a:hover {
    opacity: 0.7;
}
.p-nav__list > .menu-item-has-children > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 8px;
}

/* ================
   p-nav__submenu (ドロップダウンメニュー)
   ================ */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fff;
    border-radius: 5px;
    list-style: none;
    padding: 10px 0;
    margin-top: 10px;
    min-width: 200px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, margin-top 0.3s;
}
.sub-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--color-text-base);
    text-decoration: none;
    white-space: nowrap;
}
.sub-menu a:hover {
    background-color: #f5f5f5;
}
.menu-item.is-active > .sub-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    z-index: 1000;
}

/* ================
   p-hamburger (ハンバーガーボタン)
   ================ */
.p-hamburger {
    display: none;
    position: relative;
    z-index: 100;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}
.p-hamburger span {
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--color-text-light);
    position: absolute;
    left: 5px;
    transition: transform 0.3s, opacity 0.3s;
}
.p-hamburger span:nth-child(1) { top: 10px; }
.p-hamburger span:nth-child(2) { top: 19px; }
.p-hamburger span:nth-child(3) { top: 28px; }
.p-hamburger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.p-hamburger.is-open span:nth-child(2) { opacity: 0; }
.p-hamburger.is-open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
/* ================
   p-hero (ヒーローセクション / Swiper)
   ================ */
   .p-hero {
    width: 100%;
    position: relative;
}


/* ヒーローのSwiperに限定 */
.p-hero .swiper {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

/* Fadeモード用: 初期は非表示 */
.p-hero .swiper-slide {
    opacity: 0 !important;
    transition: opacity 1s;
    position: absolute;  /* 横並びで重ならないよう修正 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: bottom;
  }
  
  /* Swiperでアクティブなスライドだけ表示 */
  .p-hero .swiper-slide.swiper-slide-active {
    opacity: 1 !important;
    z-index: 2;
  }

  .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の縦横比を維持して、コンテナをカバー */
    object-position: center;
    position: absolute; /* テキストの背面に敷くため */
    top: 0;
    left: 0;
    z-index: 1;
  }
  
.swiper-slide__under img {
    object-position: bottom;
}

.swiper-slide__top {
    object-position: top;
}

@media (min-width: 865px) {
    .swiper-slide__under img {
        object-position: top;
    }
}

@media (min-width: 1200px) {
    .swiper-slide__under img {
        object-position: 50% 15%;
    }
}

/* 【ここが最重要！】ヒーローのスライドのオーバーレイに限定 */
.p-hero .swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    border: #000 solid 1px;
}



.p-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    top: 17%;
    left: 0vh;
}
.p-hero__text-box {
    /* background-color: rgba(234, 228, 222, 0.85); */
    color: var(--color-background-light);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    /* padding: 3px 20px 3px 10px; */
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    display: inline-block;
    /* border: #000 solid 1px; */
}
.p-hero .swiper-button-prev,
.p-hero .swiper-button-next {
    color: var(--color-primary);
    --swiper-navigation-size: 30px;
}

.text-blue {
    color: blue;
}

.text-white {
    color: white;
}

.text-orange {
    color: orange;
}

/* ================================
   ヒーロースライダー カスタムトランジション (V2)
   ================================ */
   .p-hero {
    position: relative;
}

.p-hero__transition {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

/* 1. ワイプ用パネルのスタイル */
.p-hero__transition-wipe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary, #ffc107);
    transform: scaleX(0); /* 初期状態は幅0 */
    transform-origin: left;
}

/* 2. 分割用パネルのスタイル */
.p-hero__transition-split {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary, #ffc107);
    opacity: 0; /* 初期状態は非表示 */
}

/* 分割用パネルを三角形に切り抜く */
.p-hero__transition-split--top {
    clip-path: polygon(0 0, 100% 0, 0 100%);
}
.p-hero__transition-split--bottom {
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

/* ★JSで .is-animating が付いたら、各アニメーションを開始 */
.p-hero__transition.is-animating .p-hero__transition-wipe {
    animation: wipe-effect 1.2s ease-in-out forwards;
}
.p-hero__transition.is-animating .p-hero__transition-split--top {
    animation: split-effect-top 1.2s ease-in-out forwards;
}
.p-hero__transition.is-animating .p-hero__transition-split--bottom {
    animation: split-effect-bottom 1.2s ease-in-out forwards;
}

/* アニメーションの定義 */
@keyframes wipe-effect {
    0%   { transform: scaleX(0); } /* 開始時 */
    25%  { transform: scaleX(1); } /* 25%の時間で画面を覆う */
    50%  { transform: scaleX(1); opacity: 1; } /* 50%まで待機 */
    75% { transform: scaleX(1); opacity: 0; } /* 75%でワイプパネルが消える */
    100% { transform: scaleX(1); opacity: 0; }
}

@keyframes split-effect-top {
    0%   { opacity: 0; transform: translate(0, 0); }
    40%  { opacity: 0; transform: translate(0, 0); } /* 40%まで待機 */
    41%  { opacity: 1; transform: translate(0, 0); } /* ワイプが消えるのと同時に出現 */
    100% { opacity: 1; transform: translate(-100%, -100%); } /* 左上に消える */
}

@keyframes split-effect-bottom {
    0%   { opacity: 0; transform: translate(0, 0); }
    40%  { opacity: 0; transform: translate(0, 0); }
    41%  { opacity: 1; transform: translate(0, 0); }
    100% { opacity: 1; transform: translate(100%, 100%); } /* 右下に消える */
}



/* ===================================================
   レスポンシブ対応 (1023px以下)
   =================================================== */
@media (max-width: 1023px) {
    /* --- ヘッダー関連 --- */
    .p-header__inner {
        padding: 0 20px; /* スマホ・タブレットでは余白を少し詰める */
    }
    .p-header__company-name {
        display: none;
    }
    .p-hamburger {
        display: block;
    }
    .p-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background-color: rgba(51, 51, 51, 0.95);
        backdrop-filter: blur(5px);
        padding-top: var(--header-height);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    .p-nav.is-open {
        transform: translateX(0);
    }
    .p-nav__list {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px;
        gap: 0;
    }
    .p-nav__item {
      width: 100%;
    }
    .p-nav__item > a {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }
    .p-nav__item > a:hover {
      opacity: 1;
      background: rgba(255,255,255,0.1);
    }
    .p-nav__item--has-submenu > a::after {
        transition: transform 0.3s;
    }
    .p-nav__item.is-active > a::after {
        transform: rotate(180deg);
    }
    .p-nav__submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: none;
        box-shadow: none;
        padding: 0 0 0 20px;
        margin: 0;
        width: 100%;
        min-width: auto;
        display: none;
    }
    .p-nav__item.is-active .p-nav__submenu {
        display: block;
    }
    .p-nav__submenu a {
      padding: 12px 0;
      color: #ddd;
      border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .p-nav__submenu a:hover {
      background: none;
      color: #fff;
    }

    /* --- ヒーロースライダー関連 --- */
    .swiper {
        height: 500px;
    }
    .p-hero__text-box {
        font-size: 18px;
    }
}

/* ================
   c-section-title (共通セクションタイトル)
   ================ */
   .c-section-title {
    display: inline-block; /* 中身に合わせて幅が決まるように */
    background-color: var(--color-primary);
    padding: 5px 40px;
    margin-bottom: 40px;
}
.c-section-title h2 {
    font-size: 24px;
    color: var(--color-text-base);
    margin: 0;
    font-weight: bold;
}


/* ================
   p-vision (ビジョンセクション)
   ================ */
.p-vision {
    padding: 80px 0 0 0;
}
.p-vision__inner {
    display: flex;
    align-items: center; /* カラムの高さを中央で揃える */
    gap: 60px; /* カラム間の余白 */
}
.p-vision__text-content,
.p-vision__image-content {
    flex: 1; /* 左右のカラムが同じ幅を分け合う */
}

/* テキスト関連 */
.p-vision__text-content {
    display: flex;
    flex-direction: column; /* テキストブロックを縦に並べる */
    gap: 30px; /* テキストブロック間の余白 */
}


.p-vision__text-block p {
    margin: 0;
    font-size: 18px;
    line-height: 2;
}

/* 縦書きラベル */
.p-vision__catchphrase-wrapper {
    display: flex;
    align-items: stretch; /* ラベルとテキストブロックの高さを揃える */
    margin-bottom: 50px;
}
.p-vision__label {
    background-color: var(--color-primary);
    color: var(--color-text-base);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    writing-mode: vertical-rl; /* テキストを縦書きにする（今回のテクニックポイント！） */
    border-bottom: var(--color-text-base) solid 1px;
    border-top: var(--color-text-base) solid 1px;
    border-left: var(--color-text-base) solid 1px;
}

/* 画像 */
.p-vision__image-content img {
    width: 100%;
    border-radius: 15px;
}

/* ================
   レスポンシブ対応 (1023px以下)
   ================ */
@media (max-width: 1023px) {
    .p-vision__inner {
        flex-direction: column; /* カラムを縦積みにする */
    }
    .p-vision__text-content {
        order: 2; /* テキストを下に */
    }
    .p-vision__image-content {
        order: 1; /* 画像を上に */
        width: 100%;
        max-width: 500px; /* スマホで画像が大きくなりすぎないように */
        margin-bottom: 40px;
    }
}

@media (max-width: 425px) {
    .p-vision__inner {
        gap: 0;
    }
}

/* ================
   p-partner (パートナーセクション)
   ================ */
   .p-partner {
    padding: 80px 0;
}

.p-partner .c-section-title {
    margin-left: 20px;
}

.p-partner-logos {
    width: 100%;
    overflow: hidden; /* はみ出しを隠す指定！これが大事 */
    margin-top: 40px;
    padding: 20px 0;
    /* background-color: var(--color-background-light); */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.p-partner-logos__list {
    --logo-item-width: 200px;
    --logo-count: 5;
    --scroll-width: calc(var(--logo-item-width) * var(--logo-count));
    
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    animation: scroll-left 20s linear infinite;
}

/* 【修正箇所！】margin-left をやめて、animation-delay を使う */
.p-partner-logos__list--bottom {
    /* margin-left: -100px; を削除！ */
    animation-delay: -10s; /* アニメーションを半分の地点からスタートさせる */
}

.p-partner-logos__item {
    flex-shrink: 0;
    margin: 0 20px;
}

.p-partner-logos__item img {
    width: 160px;
    height: 50px;
    object-fit: contain;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-1 * var(--scroll-width)));
    }
}

/* ===============================================
   ミッションの特長部分 (.p-mission__features)
   =============================================== */

/* 3つのアイテムを囲む親要素のスタイル */
.p-mission__features {
    display: flex;
    flex-direction: column; /* スマホでは3つのアイテムを縦に並べる */
    gap: 32px; /* 各アイテム間の余白 */
    margin-bottom: 40px; /* 下の画像との余白 */
}

/* 各アイテムの基本スタイル（モバイル用：横並び） */
.p-mission__feature-item {
    display: flex;
    /* ▼ 変更点③：縦方向の揃えを中央に */
    align-items: center; /* baselineからcenterに変更 */
    /* ▼ 変更点②：隙間を少し広げる */
    gap: 1em; /* 0.5emから1emに変更（文字サイズ基準の余白） */
}

.p-mission__feature-number {
    /* ▼ 変更点①：フォントサイズを大きく */
    font-size: 28px; /* 20pxから28pxに変更 */
    font-weight: 700;
    color: var(--color-primary); /* 色はデザイントークンに合わせて変更してくださいね */
    flex-shrink: 0;
}

.p-mission__feature-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}


/* タブレットサイズ以上（765px以上）のスタイル */
@media (min-width: 765px) {

    /* タブレット以上では3つのアイテムを横に並べる */
    .p-mission__features {
        flex-direction: row;
        justify-content: space-between;
        gap: 40px;
    }

    /* 各アイテムのレイアウトを縦並びに変更 */
    .p-mission__feature-item {
        flex-direction: column;
        align-items: flex-start; /* こちらは左揃えのままが綺麗です */
        gap: 8px;
        flex: 1;
    }

    .p-mission__feature-number {
        font-size: 32px; /* タブレットでも少し大きく調整 */
    }

    .p-mission__feature-title {
        font-size: 18px;
    }
}

/* ================
   c-button (共通ボタン)
   ================ */
.p-mission__cta {
    text-align: center;
    margin-top: 40px;
}
.c-button {
    display: inline-flex; /* 横並び&中央揃えのため */
    align-items: center;
    gap: 15px; /* テキストと矢印の間隔 */
    background-color: #fff;
    border: 1px solid var(--color-text-base);
    color: var(--color-text-base);
    padding: 7px 15px;
    font-size: 18px;
    white-space: nowrap;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
}
.c-button__arrow {
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--color-text-base);
    border-right: 2px solid var(--color-text-base);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}
/* ホバーアニメーション */
.c-button:hover {
    background-color: var(--color-text-base);
    color: #fff;
}
.c-button:hover .c-button__arrow {
    border-color: #fff;
    transform: rotate(45deg) translateX(3px); /* 少し右に動かす */
}


/* ================
   レスポンシブ対応
   ================ */
@media (max-width: 1023px) {
    /* ミッションセクションのGridを1カラムに */
    .p-mission__features {
        grid-template-columns: 1fr; /* 1カラムにする */
    }
}
@media screen and (max-width: 764px) {

    .c-button {
      /* 文字サイズを少し小さく調整 */
      font-size: 16px;
  
      /* 上下の余白は15pxのまま、左右の余白を40pxから25pxへ狭くする */
      padding: 15px 25px;
  
      /* アイコン（矢印）とテキストの間隔を少し詰める */
      gap: 10px;

      white-space: wrap;
      margin: 0 10px;
    }
  }


/* ================
   p-service (サービスセクション)
   ================ */
   .p-service {
    padding: 60px 0; /* ← 上下の余白を80pxから60pxに */
}
.p-service__content-block {
    border: 1px solid var(--color-text-base);
    background-color: #fff;
}
.p-service__header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-text-base);
}
.p-service__logo,
.p-service__catchphrase {
    padding: 20px;
}
.p-service__logo {
    flex: 0 0 auto; /* ロゴの幅は縮まないように */
}
.p-service__logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}
.p-service__catchphrase {
    flex: 1;
    border-left: 1px solid var(--color-text-base);
    font-size: 20px;
    font-weight: bold;
}
.p-service__overview {
    padding: 30px 20px;
}
.p-service__overview p {
    margin: 0;
}

/* 画像スクローラー */
.p-service__scroller {
    width: 100%;
    overflow: hidden; /* ←【重要】はみ出しを隠す魔法！ */
    
    padding: 40px 0; /* ← 上下の余白を復活させる */
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 各スライドのスタイル（セレクタを汎用的に変更！） */
.p-service__scroller .swiper-slide {
    width: 280px;
    height: 180px;
    background-position: center;
    background-size: cover;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.p-service__scroller .swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

/* 中央以外のスライドを少し半透明にする */
.p-service__scroller .swiper-slide:not(.swiper-slide-active) {
    opacity: 0.5;
}

/* CTAボタン */
.p-service__cta {
    text-align: center;
    margin-top: 60px;
}

/* レスポンシブ */
@media (max-width: 767px) {
    .p-service__header {
        flex-direction: column;
        align-items: flex-start;
    }
    .p-service__catchphrase {
        border-left: none;
        border-top: 1px solid var(--color-text-base);
        width: 100%;
        box-sizing: border-box;
    }

    .p-service__scroller .swiper-slide {
        width: 200px;
        height: 100px;
    }
    /* スマホでは表示枚数を3枚にする */
    /* .service-swiper-top,
    .service-swiper-bottom {
        /* ここにスマホ用のSwiper設定をJSで適用することも可能 
    } */

}


/* ================
   Project: Showcase
   ================ */
   .p-showcase {
    padding-top: 60px;
    /* セクション自体に余白は不要 */
}

/* 上部スクローラー */
.p-showcase__scroller {
    width: 100%;
    overflow: hidden;
}
.p-showcase__scroller-list {
    --item-width: 440px;
    --item-count: 5;
    --scroll-width: calc(var(--item-width) * var(--item-count));
    display: flex;
    width: calc(var(--scroll-width) * 2);
    animation: showcase-scroll 40s linear infinite;
}
.p-showcase__scroller-item {
    flex-shrink: 0;
    width: 400px;
    margin: 0 20px;
}
.p-showcase__scroller-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

@keyframes showcase-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-1 * var(--scroll-width))); }
}

/* 下部コンテンツ */
.p-showcase__content {
    /* background-color を削除！これでbodyの背景が見えるようになる */
    padding: 60px 0;
}
.p-showcase__content-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.p-showcase__text {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}
.p-showcase__text h3 {
    font-size: 28px;
    margin: 0;
    line-height: 1.6;
    /* ↓デフォルトの文字色を白に変更 */
    color: #fff;
    font-weight: bold;
}
.p-showcase__details {
    flex: 1;
}
.p-showcase__details p {
    margin: 0 0 30px 0;
    /* ↓デフォルトの文字色を白に変更 */
    color: #fff;
}


/* ボタンのアイコンを四角にする修飾子 */
.c-button--square-icon .c-button__arrow {
    width: 12px;
    height: 12px;
    background-color: var(--color-text-base);
    border: none;
    transform: none;
    transition: background-color 0.3s ease;
}
.c-button--square-icon:hover .c-button__arrow {
    background-color: #fff;
    transform: none;
}

/* ▼▼▼ 【ここからが重要！】ダークモード時の文字とボタンの色変更 ▼▼▼ */

/* デフォルトの文字色を白にしているので、ダークモードじゃない時は黒に戻す */
.p-showcase__text h3,
.p-showcase__details p {
    transition: color 0.6s ease; /* 色がふわっと変わるように */
}
body:not(.is-dark-mode) .p-showcase__text h3,
body:not(.is-dark-mode) .p-showcase__details p {
    color: #fff;
}

/* ダークモードじゃない時のボタンのスタイル */
body:not(.is-dark-mode) .p-showcase__details .c-button {
    background-color: #fff;
    border-color: var(--color-text-base);
    color: var(--color-text-base);
}
body:not(.is-dark-mode) .p-showcase__details .c-button .c-button__arrow {
    background-color: var(--color-text-base);
}
/* ダークモードじゃない時のボタンのホバー */
body:not(.is-dark-mode) .p-showcase__details .c-button:hover {
    background-color: var(--color-text-base);
    color: #fff;
}
body:not(.is-dark-mode) .p-showcase__details .c-button:hover .c-button__arrow {
    background-color: #fff;
}

/* ダークモード時のボタンのスタイル */
.is-dark-mode .p-showcase__details .c-button {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}
.is-dark-mode .p-showcase__details .c-button .c-button__arrow {
    background-color: #fff;
}
/* ダークモード時のボタンのホバー */
.is-dark-mode .p-showcase__details .c-button:hover {
    background-color: #fff;
    color: var(--color-text-base);
}
.is-dark-mode .p-showcase__details .c-button:hover .c-button__arrow {
    background-color: var(--color-text-base);
}

/* レスポンシブ */
@media (max-width: 767px) {
    .p-showcase__content-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .p-showcase__text h3 {
        font-size: 22px;
        font-weight: bold;
    }
}

/* ================
   背景色変更のスタイル
   ================ */

/* bodyに、背景色を変化させるための「黒い膜」を疑似要素として用意する */
body::after {
    content: '';
    position: fixed; /* 画面に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0d0d30; /* ダークネイビー */
    z-index: -1; /* コンテンツの背面に配置 */

    /* JSから受け取る変数を使って透明度を制御する */
    opacity: calc(var(--dark-bg-opacity, 0) * 0.6);
    
    /* ↓透明度が変化する時に、急に変わらずふわっと変化させる */
    transition: opacity 0.1s ease-out;
}

/* ================
   Project: Space
   ================ */
.p-space {
    padding: 80px 0;
    /* このセクション自体の背景色は透明にして、bodyの背景が見えるようにする */
}
/* 暗い背景用のタイトル修飾子 */
.c-section-title--dark h2 {
    color: var(--color-text-light); /* 文字色を白に */
}
.c-section-title--dark .c-section-title__sub {
    color: var(--color-primary); /* サブタイトルは黄色に */
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.c-section-title__sub {
    color: var(--color-primary);
}

/* ===============================================
   無限スクローラー (.p-space__scroller)
   =============================================== */

   .p-space__scroller {
    overflow: hidden; /* はみ出た部分は隠す */
}

.p-space__scroller-list {
    display: flex; /* ← アイテムを横一列に並べる魔法の言葉です！ */
}

.p-space__scroller-item {
    /* 画像の幅や余白はここで調整 */
    flex-shrink: 0; /* アイテムが縮まないように */
    width: 400px;   /* PCでの基本幅 */
    padding: 0 10px; /* アイテム間の余白 */
    box-sizing: border-box;
}

.p-space__scroller-item img {
    width: 100%;
    height: 250px; /* 高さは親要素に合わせる */
    object-fit: cover;
    display: block;
}

/* スマホ用のサイズ調整の例 */
@media (max-width: 764px) {
    .p-space__scroller-item {
        width: 250px; /* スマホでは少し小さく */
    }

    .p-space__scroller-item img {
        height: 150px; /* 高さは親要素に合わせる */
    }
}


/* ================
   Project: About
   ================ */
   .p-about {
    padding: 80px 0;
}
.p-about__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

/* カード型ボタン（共通コンポーネント） */
.c-card-button {
    display: block;
    position: relative;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}
.c-card-button__image-wrapper {
    width: 100%;
    padding-top: 75%; /* 高さを幅の75%にする（アスペクト比4:3） */
    position: relative;
    overflow: hidden; /* はみ出した画像を隠す（重要！） */
    background-color: var(--color-background-light);
}
.c-card-button__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
/* ホバーで画像を拡大 */
.c-card-button:hover .c-card-button__image {
    transform: scale(1.1);
}

.c-card-button__label {
    position: absolute;
    bottom: 20px;
    left: -5px;
    background-color: #fff;
    border: 1px solid var(--color-text-base);
    padding: 10px 20px;
    font-size: 18px;
    font-weight: bold;
    color: var(--color-text-base);
}

/* ================
   Project: Contact Modal
   ================ */
   .p-contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    /* 初期状態は非表示 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s, visibility 0.4s;
}
.p-contact-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.p-contact-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}
/* 白いボックスのスタイル */
.p-contact-modal__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    border-radius: 5px;
    padding: 40px 50px;
    box-sizing: border-box;
    text-align: center;
    padding-left: 70px; /* 黄色い帯の分、左の余白を多めに */
}
/* 左側の黄色の帯 */
.p-contact-modal__content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: 5px 0 0 5px;
}

/* タイトルと下線 */
.p-contact-modal__title {
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    font-size: 22px;
    border-bottom: 1px solid #ddd;
}

/* メニューリストのスタイル */
.p-contact-modal__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}
.p-contact-modal__menu li a {
    position: relative; /* ← 基準点にするために追加 */
    display: block;
    padding: 20px 0;
    color: var(--color-text-base);
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    transition: color 0.3s;
}
.p-contact-modal__menu li:first-child a {
    border-top: 1px solid #ddd; /* ← 一番上にも線を追加して統一感を */
}
.p-contact-modal__menu li a:hover {
    background-color: transparent;
    color: var(--color-primary);
}

/* ==================================
   PCサイズだけのホバーアニメーション
   ================================== */
@media (min-width: 1024px) {
    /* 下線の元になる架空の線を用意 */
    .p-contact-modal__menu li a::after {
        content: '';
        position: absolute;
        bottom: -1px; /* 枠線と重なるように少し下に */
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--color-primary);
        
        /* 普段は幅を0にして隠しておく */
        transform: scaleX(0);
        transform-origin: left; /* 左を起点に伸びるように */
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    /* マウスが乗ったら、隠しておいた線を表示する */
    .p-contact-modal__menu li a:hover::after {
        transform: scaleX(1);
    }
}

/* 閉じるボタン */
.p-contact-modal__close-btn {
    display: block; /* ← まず表示するように変更 */
    position: absolute; /* ← 白いボックスを基準に配置 */
    top: 15px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2; /* コンテンツより手前に表示 */
}
.p-contact-modal__close-btn::before,
.p-contact-modal__close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-base); /* ← 白い背景で見えるように、色を濃くする */
    transition: background-color 0.3s ease;
}
.p-contact-modal__close-btn::before {
    transform: rotate(45deg);
}
.p-contact-modal__close-btn::after {
    transform: rotate(-45deg);
}
.p-contact-modal__close-btn:hover::before,
.p-contact-modal__close-btn:hover::after {
    background-color: var(--color-primary); /* ホバーで黄色に */
}


/* ================
   Project: Footer
   ================ */
   .p-footer {
    background-color: var(--color-background-dark);
    color: var(--color-text-light);
    padding: 60px 0 0 0;
    position: relative;
}
.p-footer a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: opacity 0.3s;
}
.p-footer a:hover {
    opacity: 0.7;
}

/* フッター内部のレイアウト（Grid） */
.p-footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr; /* カラムの比率を指定 */
    gap: 40px;
    padding-bottom: 60px;
}

/* 左：企業情報エリア */
.p-footer__company-name {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
}
.p-footer__address {
    font-size: 14px;
    line-height: 1.8;
    margin: 0 0 30px 0;
}
.p-footer__sns-title {
    font-size: 16px;
    font-weight: normal;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}
.p-footer__sns-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* 中央：サイトマップエリア */
.p-footer__sitemap,
.p-footer__sitemap-sub {
    list-style: none;
    padding: 0;
    margin: 0;
}
.p-footer__sitemap-main > li {
    margin: 10px 0 10px 0;
}
.p-footer__sitemap-main > li > a {
    font-weight: bold;
}
.p-footer__sitemap-main li p {
    margin: 0;
    font-weight: 700;
}

.p-footer__sitemap-sub li a {
    font-weight: normal;
    padding-left: 10px;
}

/* 右：CTAエリア */
.p-footer__cta-logos,
.p-footer__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.p-footer__cta-logos {
    flex-direction: row;
    margin-bottom: 15px;
}
.p-footer__cta-logo-link {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: #555;
    border: 1px solid #777;
}
.p-footer__cta-button {
    display: block;
    text-align: center;
    padding: 15px;
    background-color: #555;
    border: 1px solid #777;
}

/* コピーライト */
.p-footer__copyright {
    border-top: 1px solid #555;
    text-align: center;
    padding: 20px;
    font-size: 12px;
}

/* トップへ戻るボタン */
.p-footer__back-to-top {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    writing-mode: vertical-rl; /* テキストを縦書きに */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-text-base);
    font-weight: bold;
    font-size: 14px;
}
.p-footer__back-to-top::before {
    content: '▲';
    display: block;
    margin-bottom: 10px;
}

/* レスポンシブ */

/* ================
   PC・タブレット用の追加レスポンシブ設定
   ================ */
   @media (min-width: 768px) {
    .p-showcase__text {
        flex: 1.5; /* 左側の比率を1.5に増やして広くする */
        flex-shrink: 0; /* コンテンツが縮まないようにするおまじない */
    }
    .p-showcase__text h3 {
        white-space: nowrap; /* テキストの折り返しを強制的に禁止する */
    }
    .p-showcase__details {
        flex: 1; /* 右側は比率1のまま */
    }
}

@media (max-width: 1023px) {
    .p-footer__inner {
        grid-template-columns: 1fr 1fr; /* タブレットでは2カラムに */
    }
}
@media (max-width: 767px) {
    .p-footer__inner {
        grid-template-columns: 1fr; /* スマホでは1カラムに */
    }
    .p-footer__back-to-top {
        display: none; /* スマホでは非表示に */
    }
    .p-about__grid {
        grid-template-columns: 1fr;
    }
    .p-footer__sitemap-main li {
        margin: 8px 0 8px 0;
    }
}

/* ===================================================
   ABOUTページ用のスタイル
   =================================================== */



/* 各セクション共通の余白 */
.p-about-section {
    padding: 80px 0;
}

.p-about-section .c-section-title {
    margin-bottom: 60px;
}

/* トップメッセージ */
.p-about-message {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.p-about-message__text {
    flex: 2; /* テキストエリアを少し広めに */
    
}
.p-about-message__text p {
    margin: 0 0 1.8em 0;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}
.p-about-message__image {
    flex: 1;
}
.p-about-message__image p {
    font-size: 14px;
    text-align: right;
    margin-top: 10px;
}

/* ミッション・ビジョン */
.p-mission-vision {
    display: flex;
    gap: 40px;
    align-items: center;
}
.p-mission-vision__image {
    flex: 1;
    order: 2; /* 画像を右側に */
}
.p-mission-vision__text {
    flex: 1;
    order: 1; /* テキストを左側に */
}
.p-mission-vision__text h3 {
    font-size: 22px;
    margin-top: 0;
    font-weight: bold;
}
.p-mission-vision__text p {
    margin-top: 10px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

.text-shadow-basic {
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5);
}

/* 会社概要 */
.p-company-profile {
    display: grid;
    grid-template-columns: 200px 1fr; /* 左：項目名、右：内容 */
    border-top: 1px solid #ddd;
}
.p-company-profile dt,
.p-company-profile dd {
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid #ddd;
}
.p-company-profile dt {
    font-weight: bold;
    background-color: var(--color-background-light);
}

/* 役員紹介 */
.p-team-member h3 {
    font-size: 16px; /* 他のテキストと馴染むようにサイズ調整 */
    font-weight: normal; /* ← これで太字が解除されるわ */
    margin: 0 0 5px 0; /* 名前と説明の間に少しだけ余白を */
}
.p-team-member p {
    margin-top: 10px;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .p-about-message,
    .p-mission-vision {
        flex-direction: column;
    }
    .p-mission-vision__image,
    .p-mission-vision__text {
        order: 0; /* スマホでは順番をリセット */
    }
    .p-company-profile {
        grid-template-columns: 1fr; /* 1カラムにする */
    }
    .p-company-profile dt {
        border-bottom: none;
        padding-bottom: 5px;
    }
}

/* ===================================================
   サービスページ：ヒーローセクション
   =================================================== */
   .p-hero-service {
    display: flex;
    margin-bottom: 72px;
    min-height: calc(55vh - var(--header-height)); /* 画面の高さからヘッダー分を引いた高さを確保 */
}

/* 左カラム：コンテンツ */
.p-hero-service__content {
    flex: 1;
    display: flex; /* ← 中の.l-containerを中央揃えにするため */
    align-items: center; /* ← 中の.l-containerを中央揃えにするため */
    margin-left: 30px;
    margin-top: 20px;
    margin-bottom: 20px; 
    
}
.p-hero-service__logo img {
    height: 10vh; /* ← ロゴのサイズを60pxから80pxに変更 */
    width: auto;
}
.p-hero-service__title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.6;
    margin: 30px 0;
}
.p-hero-service__title span {
    font-size: 24px;
    display: block;
    margin-top: 10px;
}
.p-hero-service__nav ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    border-top: 1px solid #ddd; /* ← liからulに移動 */
}

.p-hero-service__nav a {
    /* ▼▼▼ ホバーエフェクトのためにスタイルをaタグに移動・追加 ▼▼▼ */
    display: block; /* ← 領域いっぱいに広げる */
    padding: 15px 10px; /* ← 上下の余白を増やす */
    border-bottom: 1px solid #ddd; /* ← liから移動 */
    text-decoration: none;
    color: var(--color-text-base);
    font-weight: bold;
    transition: background-color 0.3s ease; /* ← アニメーションを追加 */
}
/* ▼▼▼ ホバーで背景色が変わる効果を追加 ▼▼▼ */
.p-hero-service__nav a:hover {
    background-color: #e9e9e9; /* 少し濃いグレーに */
}

.p-hero-service .c-button {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    align-self: flex-start;
    white-space: wrap;
}

/* 右カラム：画像 */
.p-hero-service__image {
    flex: 1.2; /* 比率1 */
    background-size: cover;
    background-position: bottom;
    border-radius: 0 25px 25px 0;
}

.hero-image-ps {
    background-image: url('img/ps_kv.webp'); /* 仮の画像 */
}

.hero-image-ad {
    background-image: url('img/ad_kv.webp'); /* 仮の画像 */ 
}


/* レスポンシブ */
@media (max-width: 1023px) {
    .p-hero-service {
        flex-direction: column; /* 縦積みに変更 */
    }
    .p-hero-service__image {
        order: -1; /* 画像を上に持ってくる */
        flex: 0 0 300px; /* 高さを300pxに固定 */
        border-radius: 0;
    }
    .p-hero-service__content {
        padding: 0 20px;
        margin-left: 0;
    }
    .p-hero-service__title {
        font-size: 24px;
    }
    .p-hero-service__title span {
        font-size: 18px;
    }
}


/* ===================================================
   サービスページ：実績セクション
   =================================================== */
   .p-achievements {
    padding: 80px 0 0 0;
}

/* 3カラムのグリッドレイアウト */
.p-achievements__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; /* ← 30pxから少し詰めた */
}

.p-achievements__card {
    border: 1px solid #ddd;
    text-align: center;
    background-color: var(--color-primary);
    border-radius: 35px;
}

.p-achievements__card-text {
    padding: 25px 20px; /* ← 30pxから少し詰めた */
    color: #fff;
}

.p-achievements__card h3 {
    font-size: 18px; /* ← 20pxから少し小さく */
    margin: 0 0 15px 0;
    white-space: nowrap; /* ← これでテキストが折り返さなくなるわ！ */
}

.p-achievements__card-stat {
    font-size: 32px; /* ← 36pxから少し小さく */
    font-weight: bold;
    margin: 0;
    white-space: nowrap; /* ← こちらも念のため */
}

.p-achievements__card-stat .is-highlight {
    font-size: 44px; /* ← 50pxから少し小さく */
}

.p-achievements__card-image img {
    width: 100%;
    height: 180px; /* ← 200pxから少し小さく */
    object-fit: cover;
    padding: 10px;
    background-color: var(--color-primary);
    border-radius: 35px;
}


/* レスポンシブ対応 */
@media (max-width: 1023px) {
    .p-achievements__card h3 {
        font-size: 16px;
    }
    .p-achievements__card-stat {
        font-size: 28px;
    }
    .p-achievements__card-stat .is-highlight {
        font-size: 38px;
    }
}

@media (max-width: 767px) {
    /* スマホでは、カードを縦1列に */
    .p-achievements__grid {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    
    .p-achievements__card {
        display: flex;
        align-items: center;
        text-align: center;
       
    }

    /* ▼▼▼ ここから下を修正 ▼▼▼ */
    .p-achievements__card-text {
        flex: 1; /* ← テキスト側が余ったスペースをすべて埋めるように */
        padding: 4px 10px 4px 10px;
    }
    .p-achievements__card-image {
        flex-shrink: 0; /* ← これ以上縮まないようにするおまじない */
        width: 150px; /* ← 幅を固定 */
        height: 120px; 
    }
    /* ▲▲▲ ここまでを修正 ▲▲▲ */

    .p-achievements__card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

}

/* ================================
   ピースポット 導入メリット（新デザイン）
   ================================ */
   .p-spot-merits {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.p-spot-merits__header {
    text-align: center;
    margin-bottom: 60px;
}

.p-spot-merits__subtitle {
    color: var(--color-primary, #f39c12);
    font-weight: bold;
    margin-bottom: 8px;
}

.p-spot-merits__title {
    font-size: 28px;
    font-weight: bold;
}

.p-spot-merits__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px; /* 上下の隙間40px、左右の隙間30px */
}

.p-spot-merits__item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.p-spot-merits__icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    margin: auto 0;
}

.p-spot-merits__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の比率を保ったままフィットさせる */
}

.p-spot-merits__text h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.p-spot-merits__text p {
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

.p-spot-merits__text small {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    color: #888;
}

.p-why-peacespot__intro {
    color: var(--color-text-base);
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    .p-spot-merits__grid {
        grid-template-columns: 1fr; /* スマホでは1列に */
        gap: 15px;
    }
}

/* ===================================================
   サービスページ：導入の流れセクション
   =================================================== */
   .p-steps {
    padding: 80px 0;
    color: #fff;
}

/* セクションヘッダー */
.p-steps__header {
    text-align: center;
    margin-bottom: 60px;
}

.p-steps__title {
    font-size: 32px;
    margin: 5px 0 15px 0;
    font-weight: bold;
}
.p-steps__title-sub {
    color: var(--color-primary);
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: normal;
}
.p-steps__subtitle {
    font-size: 16px;
    margin: 0;
}

/* ステップのリスト */
.p-steps__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.p-steps__item {
    background-color: #fff;
    color: var(--color-text-base);
    padding: 30px;
    border-radius: 5px;
    display: grid;
    grid-template-columns: 100px 180px 1fr;
    align-items: center;
    gap: 30px;
}

/* ステップ番号のラベル */
.p-steps__item-label {
    font-size: 48px;
    font-weight: bold;
    color: var(--color-primary);
    text-align: center;
    line-height: 0.9; /* ← 「step」と数字の間隔を詰める */
}
.p-steps__item-label span {
    display: block;
    font-size: 16px;
    font-weight: normal;
    text-transform: uppercase;
    color: #ccc;
}

/* テキスト */
.p-steps__item-text h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}
.p-steps__item-text p {
    margin: 0;
}

/* 画像 */
.p-steps__item-image img {
    width: 60%;
    aspect-ratio: 1 / 1; /* ← 画像を常に正方形にする */
    object-fit: contain;
}


/* レスポンシブ */
@media (max-width: 767px) {
    .p-steps__item {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 4px;
        padding: 20px;
    }
    .p-steps__item-label {
        order: 1;
        font-size: 40px;
    }
    .p-steps__item-image {
        order: 2;
        width: 100%;
        max-width: 200px; /* ← スマホでの画像の最大幅を制限して小さくする */
        margin: 0 auto; /* 中央揃えにする */
    }
    .p-steps__item-text {
        order: 3;
    }
    .p-steps__title {
        font-size: 23px; /* ← スマホでは文字サイズを小さくして、折り返しを防ぐ */
    }

    .p-spot__title {
        font-size: 5vw;
    }
}

/* 基本的なスタイルリセット（必要に応じて） */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --- .p-safety セクション全体のスタイル --- */
.p-safety {
  padding: 80px 0; /* 上下の余白 */
  background-color: #f9f9f9; /* 背景色（任意） */
}

/* --- コンテンツの最大幅を制御するインナー --- */
.p-safety__inner {
  max-width: 900px; /* PCでの最大幅 */
  margin: 0 auto;
  padding: 0 20px; /* 左右の余白 */
}

/* --- タイトルブロック --- */
.p-safety__header {
  text-align: center; /* タイトルを中央揃えに */
  margin-bottom: 60px; /* タイトルとコンテンツの間の余白 */
}

.p-safety__subtitle {
  font-size: 16px;
  color: var(--color-primary);
  margin: 0;
}

.p-safety__title {
  font-size: 32px;
  font-weight: bold;
  margin: 8px 0 0 0;
}

/* --- コンテンツブロック全体 --- */
.p-safety__contents {
  display: flex;
  flex-direction: column;
  gap: 60px; /* 各段（item）の間の余白 */
}

/* --- 各段のレイアウト（1段目、2段目共通） --- */
.p-safety__item {
  display: flex;
  align-items: center; /* 上下中央揃え */
  gap: 40px; /* 画像とテキストの間の余白 */
}

/* --- 画像エリア --- */
.p-safety__item-image {
  flex: 1; /* テキストエリアと同じ幅を確保 */
  min-width: 0;
  /* ★★★ 追加：画像の高さを固定 ★★★ */
  height: 250px; 
}

.p-safety__item-image img {
  width: 100%;
  /* ★★★ 変更：高さを100%にして、object-fit を適用 ★★★ */
  height: 100%;
  object-fit: cover; /* 画像の比率を保ったままエリアを埋める */
  object-position: center; /* 中央を基準にトリミング */
  display: block; 
}

/* --- テキストエリア --- */
.p-safety__item-text {
  flex: 1; /* 画像エリアと同じ幅を確保 */
}

.p-safety__point-title {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.6;
  border-bottom: 2px solid #333; /* pointの下線 */
  padding-bottom: 12px; /* 下線と文字の間の余白 */
  margin: 0 0 24px 0; /* タイトル下の余白 */
}

.p-safety__point-number {
  display: block;
  font-size: 18px;
  font-weight: normal;
  color: var(--color-primary); /* ポイントの色（任意） */
}

.p-safety__point-description {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}


/* --- レスポンシブ対応（タブレット・スマホ） --- */
@media (max-width: 765px) {
  .p-safety__item {
    flex-direction: column; /* 縦積みに変更 */
  }

  /* ★★★ 2段目のレイアウトを「画像→テキスト」の順にするための設定 ★★★ */
  /* HTMLの記述順は「テキスト→画像」ですが、スマホでは順番を入れ替えます */
  .p-safety__item--reverse .p-safety__item-text {
    order: 2; /* テキストを2番目に */
  }
  .p-safety__item--reverse .p-safety__item-image {
    order: 1; /* 画像を1番目に */
  }
  
  /* 画像の高さをスマホ用に調整 */
  .p-safety__item-image {
    height: 250px;
    width: 100%;
  }
}

/* モバイル用の最大幅設定 */
@media (max-width: 764px) {
  .p-safety__inner {
    max-width: 335px;
  }
}

/* タブレット用の最大幅設定 */
@media (min-width: 765px) and (max-width: 1079px) {
  .p-safety__inner {
    max-width: 725px;
  }
}


/* ===================================================
   お問い合わせセクション
   =================================================== */
   .p-contact-section {
    padding: 80px 0; /* セクションとしての上下の余白 */
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('img/kv_01.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* 背景画像を固定 */
    background-repeat: no-repeat;
    height: 100%;
}

.p-contact-form-wrapper {
    /* max-widthはl-containerが担当するので不要に */
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    padding: 40px 50px;
}

.p-contact-form__header {
    text-align: left;
    margin-bottom: 40px;
}
.p-contact-form__subtitle {
    color: var(--color-primary);
    font-weight: normal;
    text-transform: uppercase;
    margin: 0;
}
.p-contact-form__title {
    font-size: 28px;
    margin: 2px 0 0 0;
    font-weight: bold;
}

/* フォームの各パーツのスタイルは変更なしでOK */
.p-form-group {
    margin-bottom: 25px;
}
.p-form-group__label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}
.p-form-group__label-note {
    font-size: 12px;
    font-weight: normal;
    margin-left: 10px;
    color: #555;
}
.p-form-group__input,
.p-form-group__textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    box-sizing: border-box;
}
.p-form-group__input:focus,
.p-form-group__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

.p-form-submit {
    text-align: center;
    margin-top: 40px;
}
.p-form-submit .c-button {
    width: 100%;
    max-width: 300px;
    background-color: var(--color-primary);
}

/* style.css の一番下に追加 */

/* ===================================================
   サービスページ：whyピースポット セクション
   =================================================== */
.p-why-peacespot {
    padding: 80px 0;
}

.p-why-peacespot__title {
    color: var(--color-primary);
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 40px 0;
    text-align: center;
}

.p-why-peacespot__grid {
    display: flex;
    flex-direction: column;
    gap: 20px; /* 上段と下段の間の余白 */
}

.p-why-peacespot__row {
    display: flex;
    gap: 20px; /* 画像間の余白 */
}

/* 下段の行だけ、中身を中央揃えにする */
.p-why-peacespot__row--bottom {
    justify-content: center;
    width: 75%; /* 全体の幅を75%にして、3つのアイテムが4つの時と同じくらいの大きさになるように */
    margin: 0 auto; /* 中央揃えにするためのおまじない */
}

.p-why-peacespot__item {
    flex: 1; /* 親要素の幅を均等に分け合う */
    aspect-ratio: 1 / 1; /* 幅に応じて高さが自動で決まり、正方形を維持する */
}

.p-why-peacespot__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* レスポンシブ */
@media (max-width: 767px) {
    .p-why-peacespot__row {
        flex-direction: column; /* スマホでは画像を縦積みに */
    }
    .p-why-peacespot__row--bottom {
        width: 100%; /* スマホでは幅を100%に戻す */
    }
}



/* ===================================================
   イエローモードのスタイル
   =================================================== */
body.is-yellow-mode {
    /* ← 優しいクリームイエローに変更 */
    background-image: none;
    transition: background-color 0.6s ease;
}
body.is-yellow-mode::after {
    opacity: 0;
}

/* スタイルシートに追加してください */

/* --- 全体のコンテナ --- */
.p-hero-bg-slider {
    position: relative; /* 子要素を絶対配置するための基準点 */
    overflow: hidden; /* はみ出した画像を隠す */
    height: 50vh; /* 例えば画面の高さに合わせる */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* CSS変数でオーバーレイの透明度を管理 */
    --overlay-opacity: 0;
}

/* --- 背景要素（画像とオーバーレイの親） --- */
.p-hero-bg-slider__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* コンテンツより背面へ */
}

/* --- 画像ループのラッパー --- */
.p-hero-bg-slider__image-wrapper {
    width: 100%;
    height: 100%;
    /* ▼ 用意した横長のシームレス画像のパスを指定 */
    background-image: url('img/ad_background.webp');
    background-repeat: repeat-x; /* 横方向にだけリピートさせる */
    background-size: auto 100%;   /* 高さを画面に合わせ、幅は画像の比率を保つ */
    
    /* ▼ アニメーションの指定（60sの部分が速度） */
    animation: scroll-background 25s linear infinite;
}

/* --- 画像ループ内の各画像 --- */
.p-hero-bg-slider__image-wrapper img {
    width: auto;
    height: 100%;
    object-fit: cover; /* 画像の比率を保ったまま要素を埋める */
    flex-shrink: 0; /* 画像が縮まないようにする */
}


/* ★★★ カクつきをなくすためのアニメーション定義 ★★★ */
@keyframes scroll-background {
    from {
        background-position-x: 0;
    }
    to {
        /* ▼ 画像1枚分の「横幅」だけ動かす。画像の幅が1920pxの場合 */
        background-position-x: -2312px;
    }
}


/* --- オレンジ色のオーバーレイ --- */
.p-hero-bg-slider__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    opacity: var(--overlay-opacity); /* 変数を使って透明度を制御 */
    transition: opacity 0.3s ease-in-out; /* なくても良いが、念のため */
    z-index: 1;
    pointer-events: none;
}

/* --- 前面のテキストコンテンツ --- */
.p-hero-bg-slider__content {
    position: relative; /* 背景より前面に表示 */
    z-index: 2;
    text-align: center;
}

.p-hero-bg-slider__text {
    font-size: 2.5vw;
    font-weight: bold;
    text-shadow: 2px 2px 4px var(--cta-color-exhibit);
}

.p-hero-bg-slider__title {
    font-size: 4.2vw;
    font-weight: bold;
    text-shadow: 2px 2px 4px var(--cta-color-exhibit);
}

@media (max-width: 765px) {
    .p-hero-bg-slider__text {
        font-size: 3.7vw;
        font-weight: bold;
    }
    
    .p-hero-bg-slider__title {
        font-size: 7vw;
        font-weight: bold;
    }
}


@media (max-width: 375px) {
    .p-hero-bg-slider__text {
        font-size: 4vw;
        font-weight: bold;
    }
    
    .p-hero-bg-slider__title {
        font-size: 8vw;
        font-weight: bold;
    }
}

/* ===================================================
   Services Section (最終修正版)
   =================================================== */

.p-services {
    padding: 80px 0;
}

/* 横スクロールの親要素 */
.p-services__list {
    display: flex;
    overflow-x: auto; /* はみ出した分をスクロールさせる */
    padding: 0px;
    -webkit-overflow-scrolling: touch; /* スマホでの慣性スクロール */
    scroll-snap-type: x mandatory; /* スクロールがピタッと止まるように */
    scrollbar-width: none; /* スクロールバーを非表示（Firefox） */
}
.p-services__list::-webkit-scrollbar {
    display: none; /* スクロールバーを非表示（Chrome, Safari） */
}


/* 個々のサービス項目 */
.p-services__item {
    flex: 0 0 90%; /* スマホでの幅を画面の90%に */
    max-width: 300px; /* ただし最大幅は360pxまで */
    border: 1px solid #000;
    overflow: hidden; /* 角丸を効かせるため */
    scroll-snap-align: start; /* スクロールの停止位置 */
    margin-right: 20px;
    display: flex; /* 中身（カテゴリとメインコンテンツ）を横並びに */
}
.p-services__item:last-child {
    margin-right: 0;
}

.scroll-icon {
    display: flex;
    justify-content: flex-end;
}

@media (min-width: 766px) {
    .scroll-icon {
        display: none;
    }
}

/* カテゴリ（左の縦書き部分） */
.p-services__category {
    flex: 0 0 50px; /* 幅を50pxで固定 */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    font-weight: bold;
    font-size: 16px;
    writing-mode: vertical-rl;
    text-transform: uppercase;
    border-right: 1px solid #000;
}

/* メインコンテンツ（テキストと画像のラッパー） */
.p-services__main-content {
    flex: 1; /* 残りの幅をすべて使う */
    display: flex;
    flex-direction: column;
    background-color: #fff;
    min-width: 0; /* flexアイテムの幅が縮まるようにするためのおまじない */
}

/* テキストエリア */
.p-services__text-content {
    padding: 20px;
}

.p-services__title,
.p-services__subtitle {
    border-bottom: 1px solid #ddd; /* 線の色を少し薄く */
    padding-bottom: 12px;
    margin: 0 0 12px 0;
}
.p-services__title {
    font-size: 18px;
    font-weight: bold;
}
.p-services__subtitle {
    font-size: 12px;
    color: #888;
}
.p-services__description {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* 画像エリア */
.p-services__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f0f0f0;
    margin: 0 0 0 0; /* ← 画像を一番下に配置するための指定 */

}
.p-services__image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===================================
   PC用のスタイル (768px以上で適用)
   =================================== */
@media (min-width: 768px) {
    .p-services__list {
        display: flex; /* ← PCではFlexboxで縦に並べる */
        flex-direction: column; /* 縦積みに */
        overflow-x: visible; /* 横スクロールは解除 */
        gap: 20px; /* 項目間の余白 */
        padding: 0;
    }

    .p-services__item {
        display: flex; /* 中身を横並びに */
        flex-direction: row; /* 横並びの方向 */
        max-width: 100%; /* 最大幅の制限を解除 */
        margin-right: 0;
        border-radius: 0;
        border: 1px solid #000;
    }

    .p-services__category {
        flex: 0 0 80px; /* PCではカテゴリの幅を80pxに */
    }

    .p-services__main-content {
        flex: 1;
        display: flex; /* 中身（テキストと画像）を横並びに */
        flex-direction: row;
    }
    
    .p-services__text-content {
        flex: 1; /* テキストが可変幅 */
        border-right: 1px solid #000;
        display: flex;
        flex-direction: column;
        justify-content: center; /* テキストを上下中央に */
    }

    .p-services__image-wrapper {
        flex: 0 0 30%; /* 画像エリアの幅を40%で固定 */
        aspect-ratio: auto; /* 比率指定を解除 */
        height: auto; /* 高さを自動に */
        align-self: stretch; /* 親の高さに合わせる */
        margin-top: 0; /* autoをリセット */
        
    }
}

/* style.css の一番下に追加 */

/* ===================================================
   個別ページ
   =================================================== */

/* キービジュアル */
.p-single-hero {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.p-single-hero__title-wrapper {
    position: absolute; /* ← 絶対配置に変更 */
    bottom: 20px;       /* ← 下から40pxの位置に */
    width: auto;        /* ← 横幅を自動（中身に合わせる）に変更 */
    display: inline-block; /* ↑ width: auto を効かせるため */
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 10px 10px; /* ← 左右にも余白を追加 */
}
.p-single-hero__title-wrapper h1 {
    font-size: 32px;
    margin: 0;
}

/* メインコンテンツエリア */
.p-single-content {
    padding: 80px 10px;
}
.p-single-content__grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右で1:1の比率 */
    gap: 60px;
}
.p-single-content__info h2,
.p-single-content__gallery h2 {
    font-size: 24px;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--color-text-base);
}

/* 店舗情報リスト */
.p-info-list__item {
    display: flex;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
}
.p-info-list__item dt {
    flex: 0 0 120px; /* 項目名の幅を120pxで固定 */
    font-weight: bold;
}
.p-info-list__item dd {
    flex: 1;
    margin: 0;
}

/* ギャラリー */
.p-gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 画像を2列で表示 */
    gap: 15px;
}
.p-gallery-grid__item {
    display: block;
    aspect-ratio: 1 / 1; /* 正方形を維持 */
}
.p-gallery-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* レスポンシブ */
@media (max-width: 767px) {
    .p-single-hero {
        height: 500px;
    }
    .p-single-hero__title-wrapper h1 {
        font-size: clamp(18px, 6vw, 24px);
    }
    .p-single-content__grid {
        grid-template-columns: 1fr; /* スマホでは1カラムに */
    }
}


/* ===================================================
   キッチンカー一覧ページ
   =================================================== */
   .p-archive-head {
    margin-top: 80px;
    padding: 20px 0;
    background-color: var(--color-background-light);
    border-bottom: 1px solid #ddd;
}
.p-archive-head__title {
    margin: 0 0 30px 0;
    text-align: center;
}
.p-archive-head__subtitle {
    display: block;
    font-size: 16px;
    text-transform: uppercase;
    color: var(--color-primary);
}
.p-archive-filter {
    display: flex;
    gap: 10px;
}
.p-archive-filter select { flex: 1; padding: 10px; }
.p-archive-filter button { flex: 0 0 80px; }

.p-archive-body {
    padding: 60px 0;
}
.p-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCでは3カラム */
    gap: 30px;
    margin-bottom: 60px;
}

/* キッチンカーカードのスタイル */
.c-kitchen-car-card {
    border: 1px solid #0d0d30;
    border-radius: 5px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
    background-color: #fff;
}
.c-kitchen-car-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.c-kitchen-car-card a {
    text-decoration: none;
    color: inherit;
    display: flex; /* ← 中身を縦に並べるために追加 */
    flex-direction: column; /* ← 中身を縦に並べるために追加 */
    height: 100%; /* ← 高さを100%に */
}

/* 画像エリア */
.c-kitchen-car-card__image {
    position: relative; /* ← 店舗名を重ねるための基準点 */
    aspect-ratio: 4 / 3;
    padding: 20px 20px 3px;
    height: 180px;
}
.c-kitchen-car-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: solid 1px #000;
}

/* 店舗名（画像の上に重ねる） */
.c-kitchen-car-card__name {
    position: absolute;
    bottom: 10px;
    left: 21px;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 8px 15px;
    font-size: 16px;
    margin: 0;
    border-top: 1px solid #eee;
    border-right: 1px solid #eee;
    border-top-right-radius: 5px;
}

/* コンテンツエリア */
.c-kitchen-car-card__content {
    padding: 20px;
    flex: 1; /* ← 残りの高さをすべて埋めるように */
}

/* 店舗情報リスト */
.c-kitchen-car-card__info {
    font-size: 13px;
    margin: 0;
    /* display: gridは不要なので削除 */
}
.c-kitchen-car-card__info-item {
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #000; /* 項目ごとの下線 */
}
.c-kitchen-car-card__info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.c-kitchen-car-card__info dt {
    font-weight: bold;
    color: #888;
    font-size: 12px;
    margin-bottom: 5px;
}
.c-kitchen-car-card__info dd {
    margin: 0;
}
/* テキストを「...」で省略するための指定 */
.c-kitchen-car-card .is-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ページネーション */
.c-pagination { text-align: center; }
.c-pagination ul { display: inline-flex; list-style: none; padding: 0; margin: 0; }
.c-pagination li a, .c-pagination li span { display: block; padding: 10px 15px; border: 1px solid #ddd; margin: 0 2px; }
.c-pagination li.is-current a { background-color: var(--color-primary); color: var(--color-text-base); }


/* レスポンシブ */
@media (max-width: 1023px) {
    .p-archive-grid { grid-template-columns: repeat(2, 1fr); } /* タブレットでは2カラム */
}
@media (max-width: 767px) {
    .p-archive-grid { grid-template-columns: 1fr; } /* スマホでは1カラム */
    .p-archive-filter { flex-direction: column; }
    .p-archive-filter button {
        padding: 0 20px 0 20px;
        max-height: 40px;
        align-self: center; /* 中央揃えにする */
        text-align: center;
    }
}

/* ================================
   アーカイブページの絞り込みフォーム
   ================================ */
   .p-archive-filter {
    /* 背景を白に */
    background-color: #fff;

    /* 黒い枠線を追加 */
    border: 1px solid #000;

    /* 角を丸くする（8pxは一例です。お好みで調整してください） */
    border-radius: 8px;

    /* 内側に余白を追加して、窮屈に見えないようにする */
    padding: 20px;

    /* フォーム内の要素を横並びに */
    display: flex;
    flex-wrap: wrap; /* スマホなどで幅が足りなくなったら折り返す */
    gap: 15px; /* 要素間の隙間 */
    align-items: center;
    margin-top: 30px; /* タイトルとの距離を調整 */
}

/* フォーム内のセレクトボックスやボタンの見た目を調整 */
.p-archive-filter select,
.p-archive-filter input[type="text"],
.p-archive-filter button {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    height: 40px; /* 高さを揃える */
}

.p-archive-filter select,
.p-archive-filter input[type="text"] {
    flex: 1; /* 横幅を均等に分ける */
    min-width: 150px; /* 最小幅を指定 */
}

.p-archive-filter button {
    background-color: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

.p-archive-filter button:hover {
    background-color: #555;
}

/* ===================================================
   採用情報ページ
   =================================================== */
/* キービジュアル＆ページヘッダー */
.p-recruit-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}
.p-recruit-hero__subtitle {
    display: block;
    color: var(--color-primary);
    font-weight: bold;
    font-size: clamp(14px, 2.5vw, 18px); /* ← サブタイトルも可変サイズに！ */
}
.p-recruit-hero__title {
    font-size: clamp(22px, 4vw, 32px);
    margin: 5px 0 0 0;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    font-weight: bold;
}

/* 目次セクション */
.p-recruit-toc {
    padding: 20px 0;
    /* border-bottom: 1px solid #ddd; */
}
.p-recruit-toc summary {
    font-weight: bold;
    cursor: pointer;
    padding: 10px 0;
}
/* ブラウザ標準の▼マークを消して、自作の＋/－に */
.p-recruit-toc summary {
    list-style: none; /* for Firefox */
}
.p-recruit-toc summary::-webkit-details-marker {
    display: none; /* for Chrome, Safari */
}
.p-recruit-toc summary::after {
    content: '+'; /* 閉じてる時は＋ */
    margin-left: 10px;
}
.p-recruit-toc details[open] summary::after {
    content: '−'; /* 開いてる時は－ */
}
.p-recruit-toc nav {
    padding: 20px;
    background-color: var(--color-background-light);
    border-radius: 5px;
}
.p-recruit-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2; /* 目次を2カラムに */
}
.p-recruit-toc a {
    text-decoration: none;
    color: var(--color-text-base);
    display: block;
    padding: 5px 0;
}
.p-recruit-toc a:hover {
    text-decoration: underline;
}

/* 各セクション共通の余白 */
.p-recruit-section {
    padding: 80px 0;
}



/* レスポンシブ */
@media (max-width: 767px) {
    .p-page-header__title {
        font-size: 24px;
    }
    .p-recruit-toc ul {
        columns: 1;
    }
}

/* ===================================================
   Mission Section v2
   =================================================== */
   .p-mission-v2 {
    margin-bottom: 72px;
}
.p-mission-v2__header {
    margin-bottom: 60px;
}
.p-mission-v2__subtitle {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-primary);
}
.p-mission-v2__title {
    font-size: 32px;
    margin: -15px 0 10px 0;
}
.p-mission-v2__description {
    font-size: 16px;
    line-height: 1.8;
}

/* CEOメッセージのグリッドレイアウト */
.p-mission-v2__ceo-grid {
    display: grid;
    gap: 30px;
}
.p-mission-v2__ceo-grid p {
    margin: 0;
}
.p-mission-v2__text-1,
.p-mission-v2__text-2 {
    line-height: 2.0; /* 行間を広めに */
}
.p-mission-v2__ceo-title {
    font-size: 24px;
    margin: 0 0 20px 0;
}
.p-mission-v2__ceo-subtitle {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary);
    margin: 0 0 20px 0;
}
.p-mission-v2__image p {
    text-align: right;
    font-size: 14px;
    margin-top: 10px;
}

.p-mission-v2__text-tab {
    display: none;
}

@media screen and (min-width: 766px) and (max-width: 1079px) {
    .p-mission-v2__text-tab {
        display: block;
    }

    .p-mission-v2__text-2 {
        display: none;
    }
  }

  @media (max-width: 768px) {
    .p-mission-v2__ceo-grid {
        gap: 10px;
    }
}


/* ===================================
   PC用のスタイル (768px以上で適用)
   =================================== */
@media (min-width: 768px) {
    .p-mission-v2__ceo-grid {
        grid-template-columns: 1fr 1fr; /* 2カラムに */
        grid-template-areas:
            "text1 image"
            "text2 text2"; /* ← ここでレイアウトを定義！ */
    }
    .p-mission-v2__text-1 { grid-area: text1; }
    .p-mission-v2__image { grid-area: image; }
    .p-mission-v2__text-2 { grid-area: text2; }
}


/* ===================================
   スマホ用のスタイル (767px以下で適用)
   =================================== */
@media (max-width: 767px) {
    .p-mission-v2__ceo-grid {
        grid-template-columns: 1fr; /* 1カラムに */
    }
    .p-mission-v2__text-1 { order: 1; }
    .p-mission-v2__text-2 { order: 2; }
    .p-mission-v2__image { order: 3; } /* 画像を一番下に */
    .p-mission-v2__title { font-size: 24px; }
}


/* ===================================================
   事業内容セクション
   =================================================== */
   .p-business-content {
    margin-bottom: 72px;
}
.p-business-content__title {
    font-size: 28px;
    text-align: center;
    margin: 0 0 40px 0;
}
.p-business-content__body {
    margin: 0 auto;
    font-size: 16px;
    line-height: 2.0; /* 行間をゆったりとる */
}
/* マーカー風ハイライトのスタイル */
.p-business-content__highlight {
    display: inline; /* ← テキストの長さに合わせてハイライトする */
    background: linear-gradient(to top, var(--color-primary) 50%, transparent 50%);
    font-weight: bold;
}

/* ===================================================
   Valueセクション
   =================================================== */
.p-value {
    margin-bottom: 72px;
}

.p-value__section-title {
    font-size: 28px;
    text-align: center;
    margin: 0 0 40px 0;
}
.p-value__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* PCでは3カラム */
    gap: 40px;
}
.p-value__item-title {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0 0 15px 0;
}
.p-value__item p {
    margin: 0;
    line-height: 1.8;
}


/* レスポンシブ */
@media (max-width: 767px) {
    .p-value__grid {
        grid-template-columns: 1fr; /* スマホでは1カラムに */
    }
}

/* ===================================================
   Team Introセクション
   =================================================== */
.p-team-intro {
    margin-bottom: 72px;
}

.p-team-intro__inner {
    display: flex;
    align-items: center; /* テキストと画像を上下中央で揃える */
    gap: 40px;
}

.p-team-intro__text {
    flex: 1; /* 比率1 */
}

.p-team-intro__text h2 {
    font-size: 24px;
    margin: 0 0 20px 0;
}

.p-team-intro__text p {
    margin: 0;
    line-height: 2.0;
}

.p-team-intro__image {
    flex: 1; /* 比率1 */
}

.p-team-intro__image img {
    width: 100%;
    display: block;
}


/* レスポンシブ */
@media (max-width: 767px) {
    .p-team-intro__inner {
        flex-direction: column; /* スマホでは縦積みに */
    }
}

/* ===================================================
   募集職種セクション
   =================================================== */
   .p-positions {
    margin-bottom: 72px;
}
.p-positions__title {
    font-size: 28px;
    margin: 0 0 40px 0;
}

/* カードリスト（スマホの横スクロールが基本） */
.p-positions__list {
    display: flex;
    overflow-x: auto; /* 横方向にはみ出た場合にスクロールさせる */
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* iOSでの慣性スクロール */
    scroll-snap-type: x mandatory; /* スクロールがカードの先頭でピタッと止まる */
}
/* 横スクロールバーを非表示にするおまじない */
.p-positions__list::-webkit-scrollbar { display: none; }
.p-positions__list { scrollbar-width: none; }

/* 各カード */
.p-positions__item {
    flex: 0 0 80%; /* 各カードの幅を画面の80%に */
    max-width: 320px;
    border: 1px solid #000;
    border-radius: 5px;
    overflow: hidden;
    scroll-snap-align: start; /* スクロールの停止位置 */
    margin-right: 20px;
    background-color: #fff;
}
.p-positions__item:last-child {
    margin-right: 0;
}

.p-positions__item-image img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background-color: #f0f0f0;
}
.p-positions__item-content {
    padding: 20px;
    background-color: #fff;
}
.p-positions__item-content h3 {
    font-size: 18px;
    margin: 0 0 10px 0;
}
.p-positions__item-content p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    color: #555;
}

/* PC用のスタイル (768px以上で適用) */
@media (min-width: 768px) {
    /* 横スクロールをやめて、グリッドレイアウトに変更 */
    .p-positions__list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        overflow-x: visible;
        padding-bottom: 0;
        margin: 0;
    }
    .p-positions__item {
        flex: auto; /* flexの指定をリセット */
        max-width: none; /* 最大幅の制限を解除 */
        margin-right: 0;
    }
}

/* ===================================================
   選考ステップセクション
   =================================================== */
.p-selection-steps {
    margin-bottom: 72px;
}
.p-selection-steps__title {
    font-size: 28px;
    text-align: center;
    margin: 0 0 40px 0;
}
.p-selection-steps__list {
    display: grid;
    grid-template-columns: auto 1fr; /* 項目名は文字幅分、説明文は残りの幅全部 */
    row-gap: 1em; /* 行間の余白 */
    column-gap: 1em; /* 列間の余白 */
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}
.p-selection-steps__list dt {
    font-weight: bold;
}
.p-selection-steps__list dd {
    margin: 0;
}

/* ===================================================
   Q&Aセクション
   =================================================== */
   .p-faq {
    margin-bottom: 72px;
}
.p-faq__title {
    font-size: 28px;
    text-align: center;
    margin: 0 0 40px 0;
}
.p-faq__list {
    max-width: 800px;
    margin: 0 auto;
}
.p-faq__list dl {
    margin: 0;
}
.p-faq__list dt,
.p-faq__list dd {
    display: flex; /* ← Q/Aアイコンとテキストを横並びにするため */
    align-items: center; /* ← テキストのベースラインを揃える */
    border-bottom: 1px solid #ddd;
}
.p-faq__list dt { /* 質問 */
    font-weight: bold;
}
.p-faq__list dd { /* 答え */
    margin: 0;
    padding: 0 0 20px 0;
}

/* QとAのアイコンを疑似要素で作成 */
.p-faq__list dt::before {
    content: 'Q';
    flex-shrink: 0;
    color: var(--color-primary);
    font-size: 20px;
    font-weight: bold;
    margin-right: 15px;
}
.p-faq__list dd::before {
    content: 'A';
    flex-shrink: 0;
    font-size: 20px;
    font-weight: bold;
    color: #555;
    margin-right: 15px;
}

/* ===================================================
   お問い合わせフォーム（追加スタイル）
   =================================================== */

/* 横並びのフォームグループ */
.p-form-group-row {
    display: flex;
    gap: 20px;
}
.p-form-group-row .p-form-group {
    flex: 1; /* 比率1で均等に幅を分ける */
}

/* チェックボックスのグループ */
.p-form-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}
.p-form-fieldset legend {
    margin-bottom: 8px; /* labelと同じスタイルを適用 */
    font-weight: bold;
}
.p-form-checkbox-group {
    display: flex;
    flex-wrap: wrap; /* 折り返しを許可 */
    gap: 15px 25px; /* 縦と横の余白 */
}
.p-form-checkbox-group label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.p-form-checkbox-group input {
    margin-right: 8px;
}

.qa-faq-list {
    margin-top: 50px;
}


/* ===================================================
   静的ページ（プライバシーポリシーなど）
   =================================================== */
   .p-static-page {
    padding-top: var(--header-height);
}
.p-static-page__title {
    font-size: 32px;
    text-align: center;
    margin: 0;
    margin-bottom: 50px;
}

.p-privacy-policy__content {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 80px;
}
.p-privacy-policy__content h2 {
    font-size: 22px;
    border-bottom: 2px solid var(--color-text-base);
    padding-bottom: 10px;
    margin: 40px 0 20px 0;
}
.p-privacy-policy__content p {
    margin: 0 0 1.5em 0;
    line-height: 1.8;
}
.p-static-page__title_rubi {
    text-align: center;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: -5px;
}

.p-privacy-policy__content ol {
    list-style: auto;
}

/* ================================
   WordPress 標準ギャラリー用の追加スタイル
   ================================ */

/* ギャラリー全体を囲むdiv */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4列のグリッドレイアウト */
    gap: 10px; /* 画像間の隙間 */
}

/* ギャラリーの各アイテム（画像とキャプションを囲むfigure） */
.gallery-item {
    margin: 0;
    width: 100%;
}

/* アイテム内の画像コンテナ */
.gallery-icon {
    width: 100%;
}

/* ギャラリーの画像 */
.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border: none; /* WordPressが付ける場合がある枠線を消す */
    border-radius: 4px; /* 少し角を丸める */
    transition: opacity 0.3s;
}

.gallery-item img:hover {
    opacity: 0.8;
}

/* ギャラリーのキャプション（今回は使わないので非表示に） */
.gallery-caption {
    display: none;
}

/* レスポンシブ対応（スマホなど） */
@media (max-width: 767px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* スマホでは2列にする */
    }
}

/* ================================
   キッチンカー一覧カード (p-kitchencar-card)
   ================================ */
   .p-archive-grid {
    display: grid;
    /* 画面幅に応じて列数を自動調整 */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px; /* カード間の隙間 */
}

.p-kitchencar-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s, transform 0.3s;
}

.p-kitchencar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.p-kitchencar-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.p-kitchencar-card__image {
    width: 100%;
    height: 200px; /* 画像の高さを統一 */
}

.p-kitchencar-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像がコンテナに合わせてトリミングされる */
}

.p-kitchencar-card__body {
    padding: 15px 20px;
}

.p-kitchencar-card__title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 10px 0;
    /* 長い場合に省略記号(...)を表示 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.p-kitchencar-card__terms .c-term-badge {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* ================================
   キッチンカーカード内の詳細情報（修正版）
   ================================ */
   .p-kitchencar-card__info {
    
    font-size: 14px; /* ddの基本フォントサイズを少し調整 */
    color: #555;
    border-top: 1px solid #eee;
   
}

.p-kitchencar-card__info-item {
    display: flex;
    align-items: flex-start; /* 上揃えにする */
    padding: 5px 0;
    /* 変更点：各項目の下に下線を追加 */
    border-bottom: 1px dashed #ddd;
    flex-direction: column;
}

.p-kitchencar-card__info-item:last-child {
    border-bottom: none; /* 最後の項目の下線は消す */
    padding-bottom: 0;
}

.p-kitchencar-card__info-item dt {
    /* 変更点：文字サイズを小さく */
    font-size: 10px;
    font-weight: bold;
    width: 80px;
    flex-shrink: 0;
    padding-right: 10px;
    padding-top: 0px; /* ddと高さを微調整 */
    white-space: nowrap;
}

.p-kitchencar-card__info-item dd {
    margin: 0;
    flex: 1;
    /* 省略表示をやめて、折り返し表示にする */
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-all; /* 長いURLなどでも折り返す */
}

/* ================================
   汎用固定ページ (p-static-page)
   ================================ */
   .p-static-page {
    padding-top: var(--header-height, 80px); /* 固定ヘッダーとの重なり防止 */
    padding-bottom: 60px;
}

.p-static-page__head {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 40px;
}

.p-static-page__title_rubi {
    font-size: 14px;
    color: #888;
    margin: 0 0 8px 0;
}

.p-static-page__title {
    font-size: 28px;
    margin: 0;
}

/* 編集画面から入力したコンテンツのスタイル */
.p-entry-content h2 {
    font-size: 22px;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.p-entry-content p {
    line-height: 1.8;
    margin-bottom: 1.5em;
}

.p-entry-content ol {
    padding-left: 1.2em;
}

.p-entry-content ol li {
    margin-bottom: 1em;
}

/* ================================
   Contact Form 7 汎用スタイル調整
   ================================ */

/* CF7が自動で付けるpタグやbrタグを無効化（レイアウト崩れを防ぐ） */
.wpcf7 p, .wpcf7 br {
    display: block;
}
/* ただし、承諾確認チェックボックスなどではpタグが必要な場合もあるので、
   必要に応じて display: block; などで上書きしてください */

/* フォームの各入力欄のスタイル */
.wpcf7-form-control {
    width: 100%;
}
.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
}

/* フォームの行 */
.p-form-group-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.p-form-group-row .p-form-group {
    flex: 1;
    min-width: 200px;
}
.p-form-group {
    margin-bottom: 20px;
}
.p-form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

.c-form-required {
    display: inline-block;
    margin-left: 8px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: normal;
}

.wpcf7-spinner {
    display: none !important;
}

/* ================================
   CF7 チェックボックス表示問題の最終修正
   ================================ */
   .wpcf7-form input[type="checkbox"] {
    /* ★重要：ブラウザ標準のチェックボックスの見た目を強制的に表示 */
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;

    /* ★重要：サイズを強制的に指定 */
    width: 16px !important;
    height: 16px !important;

    /* 他のスタイルで非表示にされるのを防ぐ */
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ================================
   フォームのレスポンシブ調整
   ================================ */

/* スマホサイズ (767px以下) で適用 */
@media (max-width: 767px) {
    /* 横並びの行の中にある、2番目のグループのラベルだけを非表示にする */
    .p-form-group-row .p-form-group:nth-child(2) > label {
        display: none;
    }
}

/* ================================
   サイト共通ローディングアニメーション（新デザイン）
   ================================ */
   .p-site-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s, visibility 0.8s;
    transition-delay: 0.5s; /* 消える前に0.5秒待つ */
}

.p-site-loader.is-loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.p-site-loader__content {
    width: 250px;
    text-align: center;
}

.p-site-loader__text {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #333;
}

/* プログレスバーの外枠 */
.p-site-loader__progress-bar-container {
    width: 100%;
    height: 12px; /* ★高さを8pxから12pxに太くしました */
    border: 1px solid #333;
    border-radius: 6px; /* 高さに合わせて角丸も調整 */
    overflow: hidden;
}

/* プログレスバー本体 */
.p-site-loader__progress-bar {
    width: 0%;
    height: 100%;
    /* ★背景色をグラデーションに変更 */
    background: linear-gradient(to right, #f39c12, #3498db); /* オレンジから青へ */
    transition: width 0.3s ease-out;
}

/* ===============================================
   オープニングアニメーション (pin機能対応版)
   =============================================== */



/* ローディング画面 */
.oa-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    color: white;
    z-index: 1000; /* 最前面に */
}

.oa_logo {
    width: 70%;
}

.oa_title {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* スクロールアニメーションのコンテンツ本体 */
.oa-demo-wrapper {
    /* position: sticky; を削除 */
    width: 100%;
    overflow: hidden; 
}

/* アニメーション内のヘッダーとフッター */
.oa-demo-wrapper header { height: 100vh; }
.oa-demo-wrapper footer { height: 50vh; }

/* 横スライドのラッパー */
.oa-wrapper {
    display: flex;
}

.oa-demo-gallery:not(.last) {
    padding-bottom: 1rem;
}

.oa-demo-text .oa-text {
    font-size: clamp(4rem, 9vw, 10rem);
    line-height: 1;
    font-weight: 900;
}

/* 汎用クラス */
.oa-df { display: flex; }
.oa-aic { align-items: center; }
.oa-jcc { justify-content: center; }
.oa-opening-animation h1 { font-size: 5rem; }
.oa-opening-animation h2 { font-size: 2rem; }
.oa-opening-animation li {
    flex-shrink: 0;
    width: clamp(500px, 60vw, 800px);
    padding-right: 1rem;
    list-style: none;
}

/* ===============================================
   オープニングアニメーションの画像サイズ統一
   =============================================== */
   .oa-demo-gallery li {
    /* li要素（画像のコンテナ）の高さを画面の高さの80%に固定 */
    height: 50vh;
    /* PCなどで大きくなりすぎないように、最大の高さも指定 */
    max-height: 600px; 
}

.oa-demo-gallery img {
    width: 100%;
    height: 100%;
    /* 画像がli要素いっぱいに表示されるようにし、はみ出た部分はトリミング */
    object-fit: cover;
}

/* ===============================================
   コンテンツ切り替え (接頭辞 oa- 付き)
   =============================================== */
/* 初回訪問時だけメインコンテンツを非表示にする */
body:not(.oa-visited) .main-content {
    display: none;
}
/* 訪問済みなら、オープニングアニメーションは表示しない */
body.oa-visited .oa-opening-animation {
    display: none;
}
/* 訪問済みなら、メインコンテンツを表示する */
body.oa-visited .main-content {
    display: block;
}
/* 訪問済みなら、スクロールを常に許可する */
body.oa-visited {
    overflow: auto;
}

/* ===============================================
   サイトへ進むボタン (接頭辞 oa- 付き)
   =============================================== */
.oa-enter-button {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: 2px solid #000000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background-color 0.3s;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.oa-enter-button:hover {
    transform: translateY(-3px);
    background-color: #f0f0f0;
}

:root {
    --cta-color-exhibit: #3777fe; 
    --cta-color-call: #fd7e14;    
    --cta-color-text: #ffffff;      
    --cta-spacing-base: 8px;       
  }

/* ===============================================
 CTAボタン: 基本スタイル（モバイル表示）
 =============================================== */
 .cta-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    background-color: var(--cta-color-text);
    padding: var(--cta-spacing-base);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    height: 80px;
    line-height: 35px;
  }
  
  .cta-button {
    flex-grow: 1;
    color: var(--cta-color-text);
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    font-size: 14px; 
    padding: calc(var(--cta-spacing-base) * 2) var(--cta-spacing-base); 
    margin: 0 var(--cta-spacing-base);
    border-radius: 8px;
    
    /* アニメーションを滑らかにするための設定を追加 */
    transition: opacity 0.3s ease, 
                transform 0.3s ease, 
                filter 0.3s ease;

    
  }
  
  .cta-button--exhibit {
    background-color: var(--cta-color-exhibit);
  }
  
  .cta-button--call {
    background-color: var(--cta-color-call);
  }
  
  /* モバイル用のホバー効果はシンプルに */
  .cta-button:hover {
    opacity: 0.85;
  }
  
  /* ===============================================
   CTAボタン: タブレット・PC表示 (765px以上)
   =============================================== */
  @media (min-width: 765px) {
    .cta-container {
      /* 位置を画面の上から80%の位置に変更 */
      top: 30%;
      
      /* 以前の中央揃え用のtransformは不要なので削除 */
      transform: none; 
  
      right: 0;
      bottom: auto;
      left: auto;
      width: auto;
      flex-direction: column;
      background-color: transparent;
      padding: 0;
      box-shadow: none;
  
      /* ボタン間の隙間をgapプロパティで設定 */
      gap: 10px;
      height: auto;
    }
    
    .cta-button {
      writing-mode: vertical-rl;
      width: auto;
      height: auto;
      padding: 24px 16px;
      margin: 0; 
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
      border-radius: 10px 0 0 10px; 
      transform-origin: right center;
    }
  
    /* 以前のmargin-bottom指定は不要になったので削除 */
    /* .cta-button:first-child { ... } */
  
    /* タブレット・PC用のリッチなホバーアニメーション */
    .cta-button:hover {
        opacity: 1; 
    
        /* translateX(-5px) を削除し、scaleだけにします */
        transform: scale(1.05); 
        
        filter: brightness(1.15); 
      }
  }

