/*
Theme Name: My Theme
Description: Static EXCEED CONSULTING site converted for WordPress.
Version: 1.0.0
*/

    body {
      margin: 0;
      padding: 0;
    }

    body.is-loading {
      overflow: hidden;
    }

    /* プリローダー */
    .site-loader {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background-color: #000;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 9999;
      transition: opacity 0.8s ease;
    }

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

    .loader-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 15px;
    }

    .loader-dots {
      display: flex;
      gap: 7.5px;
    }

    .loader-dot {
      width: 6px;
      height: 6px;
      background-color: #666;
      border-radius: 50%;
      animation: bounce 1.0s infinite ease-in-out both;
    }

    .loader-dot:nth-child(1) { animation-delay: -0.3s; }
    .loader-dot:nth-child(2) { animation-delay: -0.15s; }
    .loader-dot:nth-child(3) { animation-delay: 0s; }

    @keyframes bounce {
      0%, 80%, 100% { transform: translateY(0); }
      40% { transform: translateY(-10px); }
    }

    .loader-text {
      color: #666;
      font-size: 0.75rem;
      letter-spacing: 0.2em;
      font-family: 'Poppins', sans-serif;
      text-transform: uppercase;
      animation: pulseOpacity 0.04s step-end infinite;
    }

    /* 常にサイトの背景に固定されるキャンバスのコンテナ */
    .bg-canvas-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      z-index: -1;
      /* すべてのコンテンツの背面に配置 */
      background-color: #000;
    }

    /* 画面の中央上部から差し込む光の筋（ゴッドレイ） */
    .bg-canvas-container::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 2;
      /* キャンバスとほこりの上に光をかぶせる */

      /* 強い光源（radial）と、広がる光の筋（conic）を重ねて表現 */
      /* 中心から右下（135度方向）の女神像に向かって光を斜めに照射 */
      background:
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 250, 0.5) 0%, rgba(255, 255, 250, 0) 60%),
        conic-gradient(from 105deg at 50% -10%,
          transparent 0deg,
          rgba(255, 255, 250, 0.15) 15deg,
          rgba(255, 255, 250, 0.35) 30deg,
          rgba(255, 255, 250, 0.15) 45deg,
          transparent 60deg);

      /* 光の筋の方向に合わせて、右下に向かって自然にフェードアウトするマスク */
      -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
      mask-image: linear-gradient(135deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);

      /* 画面合成で光を明るく自然になじませる */
      mix-blend-mode: screen;

      /* JavaScriptでスクロールに応じて透明度を変化させるための変数 */
      opacity: var(--light-opacity, 1);
    }

    #mv-canvas {
      width: 100%;
      height: 100%;
      object-fit: cover;
      /* 背景を覆うように表示 */
    }

    /* ほこりを描画するキャンバス */
    #dust-canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      /* クリックなどを透過させる */
      z-index: 1;
      /* メインキャンバスより上に配置 */
    }

    /* アニメーション進行のためのスクロール区間（空のセクション） */
    .mv-scroll-section {
      position: relative;
      height: 250vh;
      z-index: 1;
    }

    /* アニメーション後のコンテンツエリア */
    .content-area {
      position: relative;
      z-index: 1;
      background: transparent;
      /* 背景なし */
      min-height: 150vh;
      /* スクロール確認用 */
      padding: 100px 0;
      /* 左右のpaddingを0にする（下層で調整） */
      box-sizing: border-box;
    }

    .content-section-title {
      font-family: 'Poppins', sans-serif;
      font-size: 1.125rem;
      /* 18px相当 */
      color: rgba(255, 255, 255, 0.85);
      margin: 0 0 20px 40px;
      /* 左端(40px)に寄せる */
      letter-spacing: 0.1em;
      font-weight: 400;
      position: sticky;
      top: calc(2vh - var(--concept-move, 0px));
      z-index: 10;
    }



    /* コンセプトセクションのレイアウト（画像とテキストグループを横並びに） */
    .concept-content-group {
      display: flex;
      align-items: flex-start;
      width: 100%;
      /* 画面幅いっぱい */
    }

    /* コンセプトセクション全体を囲うラッパー */
    .concept-wrapper {
      margin: 0 2%;
      margin-bottom: 180vh;
      /* 01と02の間隔（自然なペースに調整） */
      position: sticky;
      z-index: 5;

      /* 背景を濃くして、重なった時に下のテキストが透けてごちゃごちゃするのを防ぐ */
      background: rgba(10, 10, 10, 0.95);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      padding: 40px;
      border-radius: 0;
      border: none;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      box-sizing: border-box;
    }

    #concept-01 {
      top: calc(2vh + 60px - var(--concept-move, 0px));
      /* タイトルと01の間隔をさらに詰める */
    }

    #concept-02 {
      /* 01のtop位置(60px) + 01内の画像までの距離(75px) */
      top: calc(2vh + 135px - var(--concept-move, 0px));
    }

    #concept-03 {
      /* 02のtop位置(135px) + 02内の画像までの距離(75px) */
      top: calc(2vh + 210px - var(--concept-move, 0px));
      /* margin-bottomはスペーサーに任せるため削除 */
    }

    .concept-wrapper:last-child {
      margin-bottom: 0vh;
      /* コンセプト03のアクション後、間髪入れずに次のセクションへ移行する */
    }

    .concept-image-left {
      width: 40%;
      /* 親要素の40% */
      flex-shrink: 0;
      position: relative;
      /* テキストを重ねるための基準位置 */
    }

    /* 画像の上（タイトルの横線と画像の間）の数字（01） */
    .concept-image-number {
      font-family: 'Poppins', sans-serif;
      font-size: 1.125rem;
      /* 18px相当 */
      font-weight: 300;
      color: rgba(255, 255, 255, 0.85);
      letter-spacing: 0.1em;
      margin: 0 0 15px 0;
      /* マージンを明示 */
      /* 計算を正確にするため明示 */
    }

    /* Templateセクション */
    .template-section {
      position: relative;
      background-color: transparent;
      z-index: 10;
    }

    /* Siteセクション */
    .site-pin-wrapper {
      position: relative;
      width: 100%;
      /* height is set by JavaScript */
    }
    .site-section {
      position: sticky;
      top: 0;
      height: 100vh;
      background-color: transparent;
      z-index: 10;
      overflow: hidden;
    }

    .site-body {
      display: flex;
      width: 96%;
      margin: 0 auto;
      gap: 6vw;
      align-items: flex-start;
    }

    .site-left-image-wrapper {
      width: 45vw;
      flex-shrink: 0;
      perspective: 1500px;
      /* 上部の余白(4.5vh)・タイトル高さと、下部の4vh（4%）余白を引いた高さ */
      height: calc(91.5vh - 65px);
    }

    .site-left-image-cylinder {
      width: 100%;
      height: 100%;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) 0.1s;
      transform: translateZ(-22.5vw);
    }

    .cylinder-face {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); /* ボケ足を短く調整 */
    }

    .cylinder-front  { transform: rotateY(  0deg) translateZ(22.5vw); }
    .cylinder-right  { transform: rotateY( 90deg) translateZ(22.5vw); }
    .cylinder-back   { transform: rotateY(180deg) translateZ(22.5vw); }
    .cylinder-left   { transform: rotateY(-90deg) translateZ(22.5vw); }

    .site-text-section {
      flex: 1;
      padding-right: 2vw; /* サムネイルとの間隔 */
    }
    .site-text-group-wrapper {
      position: relative;
      perspective: 1500px;
      height: 400px;
      width: 100%;
    }

    .site-text-group-prism {
      width: 100%;
      height: 100%;
      position: relative;
      transform-style: preserve-3d;
      transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
      transform: translateZ(-10vw);
    }

    .text-face {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .text-front  { transform: rotateY(  0deg) translateZ(10vw); }
    .text-right  { transform: rotateY( 90deg) translateZ(10vw); }
    .text-back   { transform: rotateY(180deg) translateZ(10vw); }
    .text-left   { transform: rotateY(-90deg) translateZ(10vw); }


    .site-text-category {
      font-family: 'Poppins', sans-serif;
      font-size: 0.8rem;
      color: #999;
      letter-spacing: 0.1em;
      margin-bottom: 5px;
    }

    .site-text-title {
      font-family: 'Poppins', sans-serif;
      font-size: 2.5rem; /* 40px相当 */
      font-weight: 500;
      color: #111;
      margin: 0 0 30px 0;
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .site-text-ja {
      font-family: sans-serif;
      font-size: 1rem;
      font-weight: 400;
      color: #666;
    }

    .site-text-desc {
      font-size: 1rem;
      color: #444;
      line-height: 1.8;
      margin: 0;
      width: 20vw;
    }

    .site-view-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: 30px;
      padding: 12px 28px;
      background: #111;
      color: #fff;
      text-decoration: none;
      font-family: 'Poppins', sans-serif;
      font-size: 0.9rem;
      letter-spacing: 0.1em;
      transition: all 0.3s ease;
      border: 1px solid #111;
    }

    .site-view-btn:hover {
      background: transparent;
      color: #111;
    }

    .external-link-icon {
      width: 14px;
      height: 14px;
    }

    .footer-external-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: rgba(255, 255, 255, 0.85);
      text-decoration: none;
      transition: color 0.3s ease, opacity 0.3s ease;
    }

    .footer-external-link:hover {
      color: #fff;
      opacity: 0.7;
    }

    .site-thumb-section {
      width: 120px;
      flex-shrink: 0;
    }

    .site-thumb-nav {
      display: flex;
      gap: 10px;
      margin-bottom: 15px;
    }

    .site-thumb-nav .filter-btn {
      flex: 1;
      padding: 10px 0;
      text-align: center;
      font-size: 1rem;
    }

    .site-thumb-list {
      display: flex;
      flex-direction: column;
      gap: 15px;
      height: calc(96vh - 100px); /* ナビゲーションの高さ分を引く */
      overflow-y: auto;
      scrollbar-width: none;
    }
    
    .site-thumb-list::-webkit-scrollbar {
      display: none;
    }

    .site-thumb-list img {
      width: 120px;
      height: auto;
      border-radius: 4px;
      object-fit: cover;
      opacity: 0.3;
      filter: grayscale(100%);
      transition: all 0.3s ease;
    }

    .site-thumb-list img.is-active {
      opacity: 1;
      filter: grayscale(0%);
    }

    /* Site Section Entrance Animation */
    .site-section .template-header,
    .site-left-image-wrapper,
    .template-filters,
    .mobile-progress-indicator,
    .site-text-group-wrapper,
    .site-thumb-section {
      opacity: 0;
      transform: translateY(60px);
      transition: opacity 1.0s cubic-bezier(0.25, 1, 0.5, 1), transform 1.0s cubic-bezier(0.25, 1, 0.5, 1);
      will-change: opacity, transform;
    }

    .site-section.is-visible .template-header,
    .site-section.is-visible .site-left-image-wrapper,
    .site-section.is-visible .template-filters,
    .site-section.is-visible .mobile-progress-indicator,
    .site-section.is-visible .site-text-group-wrapper,
    .site-section.is-visible .site-thumb-section {
      opacity: 1;
      transform: translateY(0);
    }

    /* Staggered delays */
    .site-section.is-visible .template-header { transition-delay: 0s; }
    .site-section.is-visible .site-left-image-wrapper { transition-delay: 0.15s; }
    .site-section.is-visible .template-filters { transition-delay: 0.3s; }
    .site-section.is-visible .mobile-progress-indicator { transition-delay: 0.35s; }
    .site-section.is-visible .site-text-group-wrapper { transition-delay: 0.45s; }
    .site-section.is-visible .site-thumb-section { transition-delay: 0.6s; }

    .template-video-spacer {
      height: 150vh;
      width: 100%;
    }

    .template-bg-image {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      object-fit: cover;
      opacity: 0;
      will-change: opacity;
      z-index: 0;
      pointer-events: none;
    }

    .template-content {
      position: relative;
      z-index: 1;
      width: 100%;
      /* 従来の1.5倍からさらに1.5倍の上下余白（PCのみ） */
      padding-top: 4.5vh;
      padding-bottom: 45vh;
    }

    /* 新規追加セクション */
    .new-custom-section {
      position: relative;
      z-index: 20; /* テンプレート背景より上に配置 */
      width: 100%;
      min-height: 50vh; /* 仮の高さ（コンテンツ量に応じて自動で広がります） */
      /* 上部を200pxに指定、下部は現在の135pxを維持 */
      padding: 200px 0 135px 0;
      box-sizing: border-box; /* paddingによる横幅のはみ出しを防止 */
      /* 背景色を指定しないことで、テンプレートセクションの固定背景画像がそのまま透けて見えます */
    }

    .company-wrapper {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      width: 96%;
      margin: 0 auto;
    }

    .company-header-col {
      width: 30%;
      flex-shrink: 0;
    }

    .company-content-col {
      width: 70%;
      flex-shrink: 0;
    }

    .company-title {
      font-family: 'Poppins', sans-serif;
      font-size: 2.25rem; /* 36px相当 */
      font-weight: 900;
      color: #000;
      letter-spacing: 0.1em;
      margin: 0;
      display: flex;
      align-items: baseline;
    }

    .company-subtitle {
      font-size: 0.875rem; /* 14px相当 */
      font-weight: 400;
      color: #666;
      margin-left: 20px;
      letter-spacing: 0.05em;
    }

    .main-company-info {
      width: 100%;
      margin: 0;
      padding: 0;
      color: #000;
      font-size: 1rem;
      line-height: 1.8;
      letter-spacing: 0.05em;
    }

    .main-company-info .info-row {
      display: flex;
      padding: 1.5vw 0;
      border-bottom: 1px solid rgba(0, 0, 0, 0.15); /* 黒い区切り線 */
    }

    .main-company-info .info-row:first-child {
      border-top: 1px solid rgba(0, 0, 0, 0.15);
    }

    .main-company-info dt {
      width: 15vw; /* 項目名の幅をゆとりを持たせて広げる */
      flex-shrink: 0;
      font-weight: 600; /* 見出しを少し太く */
      color: #000;
      padding: 0 20px;
      box-sizing: border-box;
    }

    .main-company-info dd {
      margin: 0;
      flex: 1;
      color: #000;
      padding: 0 20px;
      box-sizing: border-box;
    }

    .main-company-info .info-sub {
      display: inline-block;
      margin-top: 0.3vw;
      font-size: 0.875rem;
      color: rgba(0, 0, 0, 0.6);
    }



    .footer-pin-wrapper {
      position: relative;
      width: 100%;
      margin-top: 100px;
      /* アニメーションは自動再生になるため、スクロール用の余白は不要 */
      height: 100vh;
    }

    .footer-section {
      position: relative; /* stickyによる固定を解除 */
      top: 0;
      width: 100%;
      height: 100vh;
      overflow: hidden;
      z-index: 10;
    }

    .footer-bg-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: 0;
    }

    .footer-section::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 1;
      pointer-events: none;
    }

    /* スマホ専用プログレスインジケーター（PCでは非表示） */
    .mobile-progress-indicator {
      display: none;
    }

    .footer-black-panel {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0);
      width: 70vw;
      height: auto;
      background-color: #080808;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
      z-index: 2; /* オーバーレイより上、コピーライトと同じ階層 */
      opacity: 0;
      pointer-events: none;
      transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease-out;
      
      display: flex;
      align-items: stretch;
      gap: 2vw;
      padding: 2.5vw 80px;
      box-sizing: border-box;
      color: #fff;
    }

    .footer-black-panel.is-visible {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
      pointer-events: auto;
    }

    .footer-contact-wrapper {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      height: 100%;
      gap: 4vw;
    }

    .footer-contact-text {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
    }

    .footer-contact-image {
      flex: 1;
      display: flex;
      justify-content: flex-end;
      align-items: stretch;
    }

    .footer-panel-title {
      font-size: 1.125rem;
      font-weight: 400;
      letter-spacing: 0.1em;
      margin-top: 0;
      margin-bottom: 2vw;
      font-family: 'Poppins', sans-serif;
      align-self: center;
      text-align: left;
      color: #aaa;
    }

    .footer-company-info {
      width: 100%;
      margin: 0;
      padding: 0;
      color: #aaa;
      font-size: 1rem;
      line-height: 1.8;
      letter-spacing: 0.05em;
    }

    .footer-company-info .info-row {
      display: flex;
      padding: 0.6vw 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* 1ピクセルの区切り線 */
    }

    .footer-company-info .info-row:first-child {
      border-top: 1px solid rgba(255, 255, 255, 0.15); /* 先頭にも線を入れる */
    }

    .footer-company-info dt {
      width: 6vw; /* 項目名の幅 */
      flex-shrink: 0;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.85);
    }

    .footer-company-info dd {
      margin: 0;
      flex: 1;
    }

    .footer-company-info .info-sub {
      display: inline-block;
      margin-top: 0.3vw;
      font-size: 0.875rem;
      color: rgba(255, 255, 255, 0.5);
    }

    .footer-panel-desc {
      font-size: 1.125rem; /* 18px相当 */
      line-height: 2.2;
      color: #aaa;
      margin-bottom: 2.5vw;
      letter-spacing: 0.05em;
    }

    .footer-panel-note {
      display: block;
      font-size: 0.875rem;
      margin-top: 1.2vw;
    }

    .footer-contact-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 1vw 2vw;
      border: 1px solid #aaa;
      color: #aaa;
      text-decoration: none;
      font-size: 1rem;
      letter-spacing: 0.1em;
      transition: all 0.4s ease;
      background: transparent;
      margin-top: 1vw; /* 少し上に余白を追加 */
      white-space: nowrap;
    }

    .footer-contact-btn.sm {
      padding: 0.6vw 1.2vw;
      font-size: 0.875rem;
      margin-top: 0;
    }

    .footer-contact-btn:hover {
      background: linear-gradient(
        90deg,
        #e8c872 0%,
        #fff9e6 25%,
        #e8c872 50%,
        #d1a93e 75%,
        #e8c872 100%
      );
      background-size: 200% auto;
      color: #000;
      border-color: #e8c872;
      animation: goldShine 6s linear infinite;
    }

    .footer-contact-btn svg {
      width: 14px;
      height: 14px;
      transition: transform 0.4s ease;
    }

    .footer-contact-btn:hover svg {
      transform: translateX(5px);
    }

    .template-animate-wrapper {
      width: 100%;
      display: flex;
      flex-direction: column;
    }

    .template-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 96%;
      margin: 0 auto 20px auto;
    }

    .template-title {
      font-family: 'Poppins', sans-serif;
      font-size: 2.25rem; /* 36px相当 */
      font-weight: 900;
      color: #000;
      letter-spacing: 0.1em;
      margin: 0;
      flex-shrink: 0;
      display: flex;
      align-items: baseline;
    }

    .template-subtitle {
      font-size: 0.875rem; /* 14px相当 */
      font-weight: 400;
      color: #666; /* 少し落ち着いたグレーに */
      margin-left: 20px;
      letter-spacing: 0.05em;
    }

    .template-filters {
      display: flex;
      gap: 10px;
    }

    .filter-btn {
      background: rgba(255, 255, 255, 0.4);
      border: 1px solid #aaa;
      color: #111;
      padding: 10px 24px;
      border-radius: 0;
      font-family: 'Poppins', sans-serif;
      font-size: 0.8rem;
      cursor: pointer;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .filter-btn:hover {
      background: #111;
      color: #fff;
      border-color: #111;
    }

    .filter-btn.active {
      background: #111;
      color: #fff;
      border-color: #111;
    }

    .template-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(3, 1fr);
      gap: 15px;
      width: 96%;
      margin: 0 auto;
      flex: 1;
      padding-bottom: 2vh;
    }

    .template-panel {
      position: relative;
      background: rgba(255, 255, 255, 0.4);
      border: 1px solid rgba(255, 255, 255, 0.6);
      backdrop-filter: blur(15px);
      -webkit-backdrop-filter: blur(15px);
      border-radius: 8px;
      min-height: 20vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
      transition: opacity 0.4s ease, transform 0.4s ease;
      opacity: 1;
      transform: translateY(0);
    }

    .template-panel.hide {
      display: none !important;
    }

    .template-panel.animating {
      opacity: 0;
      transform: translateY(20px);
    }

    .panel-image-wrapper {
      position: relative;
      width: 100%;
      aspect-ratio: 2.19 / 1;
      overflow: hidden;
    }

    .panel-thumbnail {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.4s ease;
    }

    .template-panel:hover .panel-thumbnail {
      transform: scale(1.05);
    }

    .panel-category {
      position: absolute;
      bottom: 10px;
      right: 10px;
      background: rgba(0, 0, 0, 0.7);
      color: #fff;
      padding: 4px 10px;
      border-radius: 4px;
      font-size: 0.7rem;
      letter-spacing: 0.05em;
      font-family: 'Poppins', sans-serif;
    }

    .panel-content {
      padding: 15px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .panel-title {
      font-family: 'Poppins', sans-serif;
      font-size: 1.25rem; /* 20px相当 */
      font-weight: 500;
      color: #111;
      margin: 0 0 8px 0;
      display: flex;
      align-items: baseline;
      flex-wrap: wrap;
      gap: 10px;
    }

    .panel-title-ja {
      font-family: sans-serif;
      font-size: 0.875rem; /* 14px相当 */
      font-weight: 400;
      color: #999;
    }

    /* 各パネルのゴールドアニメーションをランダムにずらす */
    .template-panel:nth-child(1) .luminous-gold { animation-delay: 0s; animation-duration: 6.5s; }
    .template-panel:nth-child(2) .luminous-gold { animation-delay: -2s; animation-duration: 5.8s; }
    .template-panel:nth-child(3) .luminous-gold { animation-delay: -4s; animation-duration: 7.2s; }
    .template-panel:nth-child(4) .luminous-gold { animation-delay: -1.5s; animation-duration: 6.1s; }
    .template-panel:nth-child(5) .luminous-gold { animation-delay: -3.5s; animation-duration: 5.5s; }
    .template-panel:nth-child(6) .luminous-gold { animation-delay: -5s; animation-duration: 6.8s; }
    .template-panel:nth-child(7) .luminous-gold { animation-delay: -0.5s; animation-duration: 5.9s; }
    .template-panel:nth-child(8) .luminous-gold { animation-delay: -2.8s; animation-duration: 7.5s; }
    .template-panel:nth-child(9) .luminous-gold { animation-delay: -4.2s; animation-duration: 6.3s; }

    .panel-concept {
      font-size: 0.875rem; /* 14px相当 */
      color: #444;
      line-height: 1.6;
      margin: 0 0 15px 0;
      flex: 1;
    }

    .panel-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 15px;
      border: 1px solid #aaa;
      color: #111;
      text-decoration: none;
      font-size: 0.8rem;
      border-radius: 0;
      transition: all 0.3s ease;
      font-family: 'Poppins', sans-serif;
      margin-top: auto;
    }

    .panel-btn::after {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 10;
    }

    .template-panel:hover .panel-btn {
      background: #111;
      color: #fff;
      border-color: #111;
    }

    .panel-btn .arrow {
      margin-left: 8px;
      transition: transform 0.3s ease;
    }

    .template-panel:hover .panel-btn .arrow {
      transform: translateX(4px);
    }

    .concept-image-mask {
      width: 100%;
      aspect-ratio: 4 / 2.5;
      overflow: hidden;
      position: relative;
    }

    .parallax-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transform: scale(1.25);
      will-change: transform;
    }

    .concept-text-right {
      flex: 1;
      /* 右半分の残りの領域 */
      display: flex;
      justify-content: center;
      /* エリア内でセンター揃え */
    }

    .concept-text-inner {
      width: 60%;
      /* 右エリアの中で60%の幅 */
      font-size: 1.2rem;
      line-height: 1.8;
      color: #3a3a3a;
    }

    span.concept-char {
      color: #3a3a3a;
      transition: color 0.1s ease-out, text-shadow 0.1s ease-out;
    }
    span.concept-char.is-gold {
      color: #e8c872;
    }
    span.concept-char.is-white {
      color: rgba(255, 255, 255, 0.8);
    }

    .concept-title-en {
      font-family: 'Poppins', sans-serif;
      font-size: 2.25rem;
      /* 36px相当 */
      font-weight: 500;
      color: rgba(255, 255, 255, 0.85);
      margin: 0 0 5px 0;
      letter-spacing: 0.05em;
    }

    .concept-title-ja {
      font-size: 0.9rem;
      color: rgba(255, 255, 255, 0.4);
      /* 暗めのグレーに調整 */
      margin: 0 0 30px 0;
      letter-spacing: 0.1em;
    }

    /* サイトロゴ・ヘッダー */
    .site-header {
      position: fixed;
      /* パララックス用に固定しJSで動かす */
      top: 30px;
      left: 0;
      width: 100%;
      z-index: 100;
      /* キャンバスや光よりも手前に配置 */
    }

    .header-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-right: 40px;
    }

    .header-left {
      display: flex;
      align-items: center;
      gap: 30px;
    }

    .header-contact-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 1vw 2vw;
      background-color: #000;
      color: #fff;
      text-decoration: none;
      font-size: 0.9rem;
      border: none;
      border-radius: 0;
      letter-spacing: 0.05em;
      position: relative;
      z-index: 1;
      overflow: hidden;
      transition: color 0.4s ease;
    }

    .header-contact-btn::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(
        90deg,
        #e8c872 0%,
        #fff9e6 25%,
        #e8c872 50%,
        #d1a93e 75%,
        #e8c872 100%
      );
      background-size: 200% auto;
      z-index: -1;
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .header-contact-btn:hover {
      color: #000;
    }

    .header-contact-btn:hover::before {
      opacity: 1;
      animation: goldShine 6s linear infinite;
    }

    .site-logo {
      height: 40px;
      /* 元の50pxから80%に縮小 */
      width: auto;
      margin-left: 40px;
      /* 元の配置位置を維持 */
    }

    .header-right-text {
      color: rgba(255, 255, 255, 0.7);
      font-size: 0.9rem;
      /* 元のサイズに戻す */
      letter-spacing: 0.05em;
    }

    /* ロゴ下の横線 */
    .header-line {
      margin-top: 15px;
      /* ロゴとの間隔 */
      margin-left: 2%;
      margin-right: 2%;
      height: 1px;
      background-color: rgba(255, 255, 255, 0.1);
      /* 10%の透明度 */
    }

    /* メインビジュアルのコピー（左上配置） */
    .mv-copy-container {
      position: fixed;
      /* パララックス用に固定しJSで動かす */
      top: 100px; /* ヘッダーの下端位置 */
      bottom: 310px; /* スライダーの上端位置 */
      left: 40px;
      max-width: 650px;
      display: flex;
      flex-direction: column;
      justify-content: center; /* 領域内で上下中央揃え */
      align-items: flex-start; /* 左寄せ */
      color: rgba(255, 255, 255, 0.85);
      z-index: 10;
      text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }

    .mv-sub-copy {
      display: block;
      font-size: 1.1rem;
      font-weight: 400;
      /* レギュラーの太さに指定 */
      letter-spacing: 0.1em;
      margin-top: 15px;
      /* 上の日本語コピーとの余白 */
      color: rgba(255, 255, 255, 0.2);
      /* 透明度20%の白 */
      font-family: 'Poppins', sans-serif;
    }

    .mv-main-copy {
      font-size: 2.2rem;
      line-height: 1.5;
      font-weight: bold;
      margin: 0 0 35px 0;
      letter-spacing: 0.05em;
    }

    /* ルミナス・ゴールド（輝くゴールドグラデーション） */
    .luminous-gold {
      display: inline-block;
      background: linear-gradient(
        90deg,
        #e8c872 0%,
        #fff9e6 25%,
        #e8c872 50%,
        #d1a93e 75%,
        #e8c872 100%
      );
      background-size: 200% auto;
      color: transparent;
      -webkit-background-clip: text;
      background-clip: text;
      animation: goldShine 6s linear infinite;
    }

    @keyframes goldShine {
      to {
        background-position: 200% center;
      }
    }

    .mv-badges {
      display: flex;
      flex-direction: row;
      gap: 12px;
      margin-top: 10px;
      margin-bottom: 35px;
    }

    .mv-badge {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 8px 16px;
      color: #fff;
      font-size: 1rem;
      letter-spacing: 0.1em;
      background: transparent;
      border-radius: 9999px;
    }

    .mv-badge::before {
      content: "";
      position: absolute;
      inset: 0;
      padding: 1px; /* 境界線の太さ */
      border-radius: 9999px;
      background: linear-gradient(
        90deg,
        #e8c872 0%,
        #fff9e6 25%,
        #e8c872 50%,
        #d1a93e 75%,
        #e8c872 100%
      );
      background-size: 200% auto;
      animation: goldShine 6s linear infinite;
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      pointer-events: none;
    }

    .mv-lead-text {
      font-size: 1.125rem;
      /* 18px相当 (18/16 = 1.125) */
      line-height: 1.9;
      color: rgba(255, 255, 255, 0.8);
    }

    .mv-lead-text p {
      margin: 0 0 20px 0;
    }

    .mv-lead-text .en-lead {
      font-size: 0.85rem;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.55);
      font-family: 'Poppins', sans-serif;
      letter-spacing: 0.03em;
    }

    /* メインビジュアル スライドショー */
    .mv-slider {
      position: fixed;
      /* パララックス用に固定しJSで動かす */
      /* 画面高さ(100vh)から、画像高さ(480pxの16:9)と下の余白(40px)を引いた位置に配置（左下） */
      top: calc(100vh - (480px * 9 / 16) - 40px);
      left: 40px;
      width: 480px;
      aspect-ratio: 16 / 9;
      /* 縦横比を16:9の横長に固定 */
      z-index: 20;
      overflow: visible;
      /* ナビゲーションを枠外（上）に配置するため変更 */
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
      /* 影を薄く調整 */
    }

    .mv-slider-images {
      width: 100%;
      height: 100%;
      position: relative;
      background-color: #111;
      /* 画像読み込み前の背景 */
    }

    .mv-slider-img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transition: opacity 1.5s ease-in-out;
      /* クロスフェード */
    }

    .mv-slider-img.is-active {
      opacity: 1;
    }

    /* スライドショーのUI（数字とゲージ） */
    .mv-slider-ui {
      position: absolute;
      top: -30px;
      /* 写真の枠外（上）に配置 */
      left: 0;
      right: 0;
      display: flex;
      align-items: center;
      gap: 15px;
      z-index: 2;
    }

    .mv-slider-number {
      font-family: 'Poppins', sans-serif;
      color: rgba(255, 255, 255, 0.2);
      /* 透明度20%の白 */
      font-size: 0.75rem;
      /* 12px相当 (12/16 = 0.75) */
      letter-spacing: 0.1em;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    }

    .mv-slider-gauge-bg {
      flex: 1;
      height: 2px;
      background-color: #444;
      /* さらに濃いグレー（アニメーションしない線） */
      position: relative;
      overflow: hidden;
    }

    .mv-slider-gauge-bar {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 0%;
      background-color: #999;
      /* 落ち着きのあるグレー（アニメーションする線） */
    }

    /* 右下固定 お問い合わせバナー */
    .floating-contact-btn {
      position: fixed;
      bottom: 4vh;
      right: 2vw;
      display: block;
      z-index: 100;
      transition: all 0.3s ease;
      text-decoration: none;
      transform-origin: bottom right;
      transform: scale(0.8);
    }

    .floating-contact-btn-inner {
      position: relative;
      overflow: hidden;
    }

    .floating-contact-btn-inner::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 50%;
      height: 100%;
      background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0) 100%
      );
      transform: skewX(-20deg);
      animation: shinePeriodic 5s infinite;
      z-index: 10;
      pointer-events: none;
    }

    @keyframes shinePeriodic {
      0%, 80% {
        left: -100%;
      }
      100% {
        left: 200%;
      }
    }

    .floating-contact-btn:hover {
      transform: scale(0.8) translateY(-4px);
      filter: brightness(1.1);
    }

    .floating-contact-btn.is-inverted {
      /* 画像バナーのため背景色の反転は不要 */
    }

    .floating-contact-btn.is-hidden {
      opacity: 0;
      pointer-events: none;
      transform: scale(0.8) translateY(25px);
    }

    .floating-contact-banner-img {
      display: block;
      width: auto;
      height: auto;
    }

    .floating-contact-banner-img-top {
      position: absolute;
      bottom: 0;
      right: 0;
      display: block;
      width: auto;
      height: auto;
      z-index: 20;
    }

    /* カスタムカーソル（Scrollアイコン） */
    .mouse-follower-wrapper {
      position: fixed;
      top: 0;
      left: 0;
      width: 70px;
      height: 70px;
      pointer-events: none;
      z-index: 9999;
      opacity: 0;
      transition: opacity 0.6s ease;
      will-change: transform, opacity;
    }

    body:not(.is-loading) .mouse-follower-wrapper.is-visible {
      opacity: 1;
    }

    .mouse-follower {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.4);
      background-color: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      display: flex;
      justify-content: center;
      align-items: center;
      color: #fff;
      font-size: 0.8rem;
      font-family: 'Poppins', sans-serif;
      letter-spacing: 0.1em;
      opacity: 1;
    }

    .mouse-follower-wrapper.is-visible .mouse-follower {
      animation: pulseOpacity 0.04s step-end infinite;
    }

    @keyframes pulseOpacity {
      0% { opacity: 1; }
      50% { opacity: 0.1; }
      100% { opacity: 1; }
    }

    .footer-copyright {
      position: absolute;
      bottom: 20px;
      right: 40px;
      color: rgba(255, 255, 255, 0.15); /* かろうじて見える程度の色 */
      font-size: 0.9rem;
      font-family: 'Poppins', sans-serif;
      letter-spacing: 0.05em;
      z-index: 2; /* オーバーレイ(z-index:1)の上に表示 */
    }

    .footer-logo {
      position: absolute;
      bottom: 20px;
      left: 40px;
      height: 30px;
      width: auto;
      opacity: 0.4;
      z-index: 2;
    }

    /* Scroll Animation */
    .fade-in-up {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .fade-in-up.is-visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* スマートフォン向け（768px以下）のレイアウト調整 */
    @media (max-width: 768px) {
      body {
        font-family: 'Poppins', "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
      }

      /* ヘッダーの余白を左右4%に設定し、上からの位置を8pxに変更 */
      .site-header {
        top: 8px;
        padding-left: 4vw;
        padding-right: 4vw;
        box-sizing: border-box;
      }
      
      .header-top {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding-right: 0;
      }

      .header-left {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px; /* ロゴとテキストの縦の間隔を詰める */
      }
      
      .header-contact-btn {
        padding: 12px 12px;
        font-size: 0.7rem;
        gap: 4px;
      }
      
      .header-contact-btn svg {
        width: 14px;
        height: 14px;
      }
      
      .site-logo {
        height: 24px; /* 現状(20px)の1.2倍の大きさに変更 */
        margin-left: 0; /* paddingで余白をとるため0にリセット */
      }
      
      .header-right-text {
        margin-left: 0; /* paddingで余白をとるため0にリセット */
        font-size: 0.675rem; /* 現状(0.75rem)の90%に縮小 (約10.8px) */
        line-height: 1.2;
        white-space: nowrap; /* 改行を強制的に防ぐ */
      }

      .header-line {
        margin-left: 0;
        margin-right: 0;
        margin-top: 6px; /* テキストと横線の間隔を詰める */
        width: 100%;
      }

      /* メインビジュアルテキストの余白と位置設定 */
      .mv-copy-container {
        left: 4vw;
        width: 92vw;
        top: 95px; /* 横線とのスペースを開けるために少し下へ移動 */
        bottom: auto; /* 上下中央揃えによる上への拡張を防ぐためbottom制限を解除 */
        justify-content: flex-start; /* 上揃えにしてヘッダーへの被りを完全に防止 */
      }

      /* メインコピーを元の80%の大きさに縮小 (2.2rem * 0.8 = 1.76rem) */
      .mv-main-copy {
        font-size: 1.76rem;
      }

      /* メインコピー下の英文コピーを元の80%に縮小し、日本語コピーとの間を詰める */
      .mv-sub-copy {
        font-size: 0.88rem;
        margin-top: 4px; /* 日本語コピーとの間を詰める */
        line-height: 1; /* 行間の見えない余白を完全に削る */
      }

      /* 2つの訴求テキスト（バッジ全体）の位置と間隔を詰める */
      .mv-badges {
        margin-top: -16px; /* 行間の余白をマイナス値でさらに強制的に詰め切る */
        margin-bottom: 15px; /* リード文との間を詰める */
      }

      /* 英文テキストの下の2つのテキスト(バッジ)を1.2倍に拡大しつつ改行しないように調整 */
      .mv-badge {
        font-size: 0.9rem; /* 0.75remの1.2倍に拡大 */
        padding: 6px 12px; /* パディングで横幅を調整 */
        white-space: nowrap; /* 改行を防ぐ */
      }

      /* 日本語のリード文を現状(0.675rem)の1.2倍の大きさに拡大 (0.675 * 1.2 = 0.81rem) */
      .mv-lead-text {
        font-size: 0.81rem;
      }

      /* スライドショー画像を元の60%の大きさに縮小し、リード文の下に配置する */
      .mv-slider {
        position: fixed; /* パララックスとPC配置を維持するためにfixedに戻す */
        margin-top: 0;
        width: 288px;
        left: 4vw; /* スマホ画面の左端余白に合わせる */
        top: 415px; /* リード文とのスペースをわずかに広げるために少し下へ調整 */
        box-shadow: none; /* スマホでは影をリセット */
      }

      /* Templateセクションのタイトル、Siteセクション、Companyセクションの横幅を92%（左右4vw余白）に統一 */
      .template-header, .site-body, .company-wrapper {
        width: 92vw;
        margin: 0 auto;
      }

      /* スマホ用のタイトルサイズ変更（30px相当） */
      .template-title,
      .company-title {
        font-size: 1.875rem !important;
      }

      /* スマホ用の余白リセット（PCで1.5倍にしたものを元に戻す） */
      .template-content {
        padding-top: 2vh;
        padding-bottom: 20vh;
      }
      .new-custom-section {
        padding: 60px 0;
      }

      /* Templateセクション（Siteセクション）のスマホ縦並びレイアウト調整 */
      .site-body {
        position: relative; /* 画像を絶対配置するための基準 */
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      
      .site-text-section {
        display: flex;
        flex-direction: column;
        width: 100%;
      }
      
      .template-filters {
        display: flex;
        flex-wrap: nowrap; /* 折り返しを防ぎ1行で表示 */
        justify-content: space-between;
        gap: 8px; /* ボタン間の余白 */
        width: 92vw;
        margin: 0 auto 15px auto !important; /* 中央寄せしつつインジケーターとの間隔を確保 */
      }

      .template-filters .filter-btn {
        flex: 1; /* 3つのボタンで幅を均等に分割 */
        min-width: 0;
        padding: 10px 2px; /* 左右のパディングを減らして文字が収まるように */
        font-size: 3.2vw; /* スマホ幅に合わせて文字サイズを可変に */
        text-align: center;
        white-space: nowrap; /* ボタン内で文字が改行しないように */
        letter-spacing: -0.5px; /* 文字間を少し詰めて収まりを良くする */
      }

      .mobile-progress-indicator {
        display: flex;
        width: 92vw;
        margin: 0 auto;
        gap: 4px;
        /* 絶対配置する画像(アスペクト比6:4 = 61.3vw)が収まる空洞を作る */
        margin-bottom: calc(61.3vw + 30px) !important;
      }
      .mobile-progress-bar {
        flex: 1;
        height: 3px;
        background-color: #ddd;
        border-radius: 2px;
        transition: background-color 0.3s ease;
      }
      .mobile-progress-bar.is-active {
        background-color: #111;
      }
      
      .site-left-image-wrapper {
        position: absolute;
        top: 85px; /* インジケーターの分だけ下に配置 */
        left: 0;
        right: 0;
        width: 92vw;
        height: auto;
        aspect-ratio: 6 / 4; /* 6:4の横長にトリミング */
        margin: 0 auto;
      }
      
      .site-text-group-wrapper {
        width: 92vw;
        height: auto;
        min-height: 300px; /* テキストとボタンが収まる高さを確保しつつ、大きすぎないように調整 */
        margin: 0 auto;
      }
      
      .site-thumb-section {
        display: none !important; /* スマホでは右側のサムネイルと上下ボタンを完全に非表示（正しいクラス名に修正） */
      }

      /* スマホでもPCと同じように3Dの奥行きを持たせるため、translateZを46vw（画面幅92vwの半分）に設定 */
      :root {
        --img-tz: 46vw;
        --txt-tz: 46vw;
      }
      .cylinder-front  { transform: rotateY(  0deg) translateZ(46vw); }
      .cylinder-right  { transform: rotateY( 90deg) translateZ(46vw); }
      .cylinder-back   { transform: rotateY(180deg) translateZ(46vw); }
      .cylinder-left   { transform: rotateY(-90deg) translateZ(46vw); }

      .text-front  { transform: rotateY(  0deg) translateZ(46vw); }
      .text-right  { transform: rotateY( 90deg) translateZ(46vw); }
      .text-back   { transform: rotateY(180deg) translateZ(46vw); }
      .text-left   { transform: rotateY(-90deg) translateZ(46vw); }
      
      /* 回転時のはみ出しで横スクロールが発生するのを防ぐ */
      body, .site-section {
        overflow-x: hidden !important;
      }

      .cylinder-face {
        backface-visibility: hidden;
      }

      /* テキストグループの各要素の上下スペースを詰める */
      .site-text-category {
        margin-bottom: 0;
      }

      /* 大きな英文テキストをスマホ画面に収まるように縮小し、補足や本文との余白を詰める */
      .site-text-title {
        font-size: 1.3rem;
        gap: 2px; /* タイトルと補足テキスト（日本語）の間隔を詰める */
        margin-bottom: 12px; /* 補足テキストと本文テキストの間隔をもっと詰める（元の30pxから大幅減） */
      }
      
      .site-text-title .site-text-ja {
        font-size: 0.9rem; /* 日本語テキストもバランスを見て少し縮小 */
      }

      /* 本文テキストエリアを画面の横幅いっぱいに表示し、行間を少し詰める */
      .site-text-desc {
        width: 100%;
        max-width: 100%;
        line-height: 1.6; /* 1.8から詰めて縦のスペースを節約 */
      }
      .site-text-section {
        padding-right: 0;
      }
      .text-face {
        padding: 0;
      }

      /* フッター内のコンテンツの余白を左右4%に設定 */
      /* ロゴとコピーライトを画面の1番下（底面）の中央に配置し、コピーライトとロゴを入れ替え（ロゴが上、コピーライトが下） */
      .footer-logo {
        top: auto;
        bottom: 45px; /* コピーライトの上に配置 */
        left: 50%;
        right: auto;
        transform: translateX(-50%);
      }

      .footer-copyright {
        top: auto;
        bottom: 15px; /* 画面の最下部に配置 */
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        font-size: 0.65rem; /* 改行を防ぐためにサイズを縮小 */
        white-space: nowrap; /* 強制的に1行にする */
        text-align: center;
      }
      
      .footer-black-panel {
        width: 92vw;
        padding: 6vw 4vw; /* 内側の余白もスマホ向けに調整 */
      }

      /* TemplateおよびCompanyセクションのボタンをスマホで横幅いっぱいに広げ、中身を中央揃えに */
      .site-view-btn {
        padding: 12px 24px;
        margin-top: 20px;
        font-size: 0.9rem;
        width: 100%;
        box-sizing: border-box;
        justify-content: center; /* テキストとアイコンを中央揃え */
      }

      /* カンパニーセクションの縦並びレイアウトへ変更（セクション全体） */
      .company-wrapper {
        flex-direction: column;
        gap: 20px;
      }
      .company-header-col, .company-content-col {
        width: 100%;
      }

      /* カンパニーセクションの表（タイトルと本文）を上下レイアウトに変更 */
      .main-company-info .info-row {
        flex-direction: column;
        padding: 20px 0;
        gap: 10px;
      }
      .main-company-info dt,
      .main-company-info dd {
        width: 100%;
        padding: 0 10px; /* 余白を微調整 */
      }
      
      .main-company-info dd {
        line-height: 1.4; /* 本文のテキスト行間を詰める */
      }

      /* カンパニーセクション最後にあるボタン群を縦レイアウトに変更し、間隔を程よく空ける */
      .main-company-info dd > div {
        flex-direction: column !important;
        gap: 8px !important; /* 少し詰めすぎたため、ほんのわずかな隙間を開ける */
        margin-top: 20px;
      }
      
      /* ボタン間の距離が縮まらなかった原因である「ボタン自身の余白」をゼロにする */
      .main-company-info dd .site-view-btn {
        margin-top: 0 !important;
      }

      /* フッターのコンタクトセクションの縦並びレイアウトと行間・ボタン調整 */
      .footer-contact-wrapper {
        flex-direction: column;
        gap: 20px;
      }
      .footer-contact-text, .footer-contact-image {
        width: 100%;
      }
      .footer-panel-desc {
        font-size: 1rem; /* カンパニーセクションと同じサイズに縮小 */
        line-height: 1.4; /* 行間を詰める */
        margin-bottom: 10px;
      }
      .footer-contact-btn {
        width: 100% !important;
        justify-content: center !important; /* テキストとアイコンを中央揃え */
        box-sizing: border-box;
        padding: 12px 24px !important; /* スマホ向けに高さをしっかり確保（復元） */
      }

      /* 画面下追従バナーのスマホ用調整（左右10px余白で最大化） */
      .floating-contact-btn {
        bottom: 4px; /* 画面下から4ピクセルのスペース */
        left: 10px;
        right: 10px;
        width: calc(100vw - 20px); /* 左右10pxの余白を引いた全幅 */
        transform: none; /* デフォルトのscaleを解除 */
      }
      
      .floating-contact-btn:hover {
        transform: translateY(-4px); /* ホバー時のスケールも解除 */
      }

      /* バナー画像を親要素の幅に合わせて可変にする */
      .floating-contact-banner-img {
        width: 100%;
        height: auto;
      }
      
      /* 上に乗っている画像も、元の比率(230px / 569px = 40.42%)に合わせて可変にする */
      .floating-contact-banner-img-top {
        width: 40.42%;
        height: auto;
      }

      /* スマホではマウスに追従するスクロールアイコンを非表示 */
      .mouse-follower-wrapper {
        display: none !important;
      }

      /* スマホではパラパラ動画の進行スピードを上げるためスクロール距離を短縮 */
      .mv-scroll-section {
        height: 120vh !important;
      }

      /* フッターは自動再生になるため、100svh固定としスクロール領域をなくす */
      .footer-pin-wrapper {
        height: 100svh !important;
      }

      /* アドレスバーの表示/非表示による高さの計算ズレ（余白）を防ぐために100svhを使用 */
      .footer-section {
        height: 100svh !important;
      }

      /* フッター内のロゴとコピーライトの位置調整（モバイル環境で下に移動し、間隔を詰める） */
      .footer-logo {
        bottom: 35px !important; /* 60pxから35pxへ下げて下に移動 */
      }
      .footer-copyright {
        bottom: 15px !important; /* 20pxから15pxへ下げて下に移動 */
      }
      
      /* コンタクトパネルのモバイル最適化 */
      .footer-black-panel {
        width: 90vw !important; /* スマホでは幅を広げる */
        padding: 5vw 20px !important;
        flex-direction: column !important; /* 縦並びに */
        gap: 20px !important;
      }
      .footer-contact-wrapper {
        flex-direction: column !important;
      }
      .footer-contact-text, .footer-contact-image {
        width: 100% !important;
      }
    }

/* --- お問い合わせモーダル --- */
.contact-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 60vw;
}

.contact-modal-content {
  flex-grow: 1;
  height: 92vh;
  background-color: #000;
  border-radius: 0;
  box-sizing: border-box;
  padding: 40px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-modal-close-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background-color: #000;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-modal-close-btn:hover {
  background-color: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .contact-modal-wrapper {
    width: 92vw;
    gap: 0;
    position: relative;
  }
  
  .contact-modal-content {
    width: 100%;
    height: 92vh;
    padding: 30px 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .contact-modal-content::-webkit-scrollbar {
    display: none;
  }
  
  .contact-modal-close-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-right: none;
  }
}

/* モーダル内コンテンツレイアウト */
.contact-modal-body {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  color: #fff;
}

.contact-modal-left {
  width: 40%;
}

.contact-modal-right {
  width: 60%;
}

.contact-modal-left h3 {
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 10px;
}

.contact-modal-left p {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #ccc;
}

/* フォームのスタイル */
.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: #ddd;
}

.contact-form .required {
  background-color: #d32f2f;
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 6px;
  margin-left: 8px;
  border-radius: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #323232;
  opacity: 1; /* Firefox overrides */
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.contact-form .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.contact-form .radio-group label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  font-size: 0.9rem;
  cursor: pointer;
  color: #fff;
}

.contact-form .radio-group input[type="radio"] {
  margin-right: 6px;
}

.contact-form .wpcf7-form-control-wrap,
.contact-form .wpcf7-form-control {
  display: block;
  width: 100%;
}

.contact-form .radio-group.wpcf7-form-control {
  display: flex;
  width: auto;
}

.contact-form .wpcf7-list-item {
  margin: 0;
}

.contact-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 0.8rem;
}

.contact-form .form-submit {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-form .submit-btn {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 15px 40px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.1em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-form .submit-btn svg {
  width: 18px;
  height: 18px;
}

.contact-form input.submit-btn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'/%3E%3Cpolyline points='22,6 12,13 2,6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 24px) 50%;
  padding-right: 62px;
}

.contact-form .submit-btn:hover {
  background-color: #ccc;
}

.contact-form .wpcf7-spinner {
  display: block;
  margin: 12px auto 0;
}

.contact-form .wpcf7-response-output {
  margin: 20px 0 0;
  color: #fff;
}

/* スマホ用モーダルコンテンツレイアウト */
@media (max-width: 768px) {
  .contact-modal-body {
    flex-direction: column;
    gap: 30px;
  }
  .contact-modal-left,
  .contact-modal-right {
    width: 100%;
  }
  .contact-form .radio-group {
    flex-direction: column;
    gap: 10px;
  }
  .contact-modal-left p {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
  }
}

/* モーダル表示時はマウス追従アイコンを非表示 */
body.has-modal-open .mouse-follower-wrapper {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
