/*
Theme Name: Twenty Twenty-Three
Theme URI: https://wordpress.org/themes/twentytwentythree
Author: the WordPress team
Author URI: https://wordpress.org
Description: Twenty Twenty-Three is designed to take advantage of the new design tools introduced in WordPress 6.1.
Version: 1.6
Text Domain: twentytwentythree
*/

@charset "UTF-8";

/* ==========================================================================
   1. リセットCSS
   ========================================================================== */
ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}



/* ==========================================================================
   2. タイポグラフィ基本設定
   ========================================================================== */
body {
  font-family: var(--wp--preset--font-family--yu-gothic), "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.8;
  color: #4a4036;
}

.en-title {
  font-family: var(--wp--preset--font-family--unna);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 60px;
}

/* ==========================================================================
   TOP画像
   ========================================================================== */
.top{
  margin-top: 138px;
}
   /* 親コンテナ */
.top-title {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* 動画・画像共通のスタイル */
.video-container, .top-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-container video, .top-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 動画コンテナ：切り替わりの設定 */
.video-container {
  z-index: 2;
  transition: opacity 1.5s ease;
}

/* 動画が消える時のクラス（JSで付与） */
.video-container.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* 画像コンテナ */
.top-photo {
  z-index: 1;
}

/* ==========================================================================
   3. レイアウト補助
   ========================================================================== */
.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.flex-container {
  display: flex;
  gap: var(--wp--preset--spacing--40);
  flex-wrap: wrap;
}

.sp_only {
  display: none;
}
p,
li{
  font-size: 16px;
}

/* ==========================================================================
   4. ヘッダー
   ========================================================================== */
#header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fffbf8;
  padding: 20px;
  z-index: 999;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

#header.is-scrolled {
  position: fixed;
  background-color: rgba(255, 251, 248, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 10px 20px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.site-logo img {
  height: 98px;
  width: auto;
  vertical-align: middle;
  transition: height 0.3s ease;
}

#header.is-scrolled .site-logo img {
  height: 58px;
}

.main-nav .nav-list {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--wp--preset--font-family--zen-kaku-gothic-new);
}

.main-nav .nav-item a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding-bottom: 5px;
  color: #333;
}

.main-nav .nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #fd780f;
  transition: width 0.3s ease;
}

.main-nav .nav-item a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
}

/* ==========================================================================
   5. TOPページ セクションタイトル
   ========================================================================== */
h2.title {
  font-size: 42px;
  font-family: var(--wp--preset--font-family--unna);
  font-weight: 400;
  text-align: center;
  margin-top: 0;
  letter-spacing: .8px;
}

h2.title span {
  display: block;
  font-size: 16px;
  margin-top: -18px;
  font-family: var(--wp--preset--font-family--yu-gothic);
  letter-spacing: 0;
}

/* ==========================================================================
   6. Concept
   ========================================================================== */
#concept {
  background-image: url('images/br-concept.png');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #f8f1eb;
  padding: 100px 0;
  width: 100%;
  box-sizing: border-box;
}

#concept .topbox {
  margin: 0 auto;
}

#concept h2.title {
  margin: 0 5% 40px;
  text-align: left;
}

#concept .text-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

#concept .inner-card {
  flex: 4;
  background: #ffffff;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  box-sizing: border-box;
  margin-left: 5%;
}

#concept p {
  font-family: var(--wp--preset--font-family--yu-gothic);
  line-height: 2.2;
  margin: 0;
}

#concept .photo {
  flex: 4;
}

#concept .photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* ==========================================================================
   7. Service - 背景動画・SPマック風スライダー・PC横並び固定
   ========================================================================== */
#service {
  padding: 100px 0;
  width: 100%;
  position: relative;
  background-color: #f8f1eb;
  box-sizing: border-box;
  overflow: hidden;
}

#service .service-section-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#service .service-video,
#service .service-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#service .service-video video,
#service .service-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#service .service-photo {
  z-index: 1;
}

#service .service-video {
  z-index: 2;
}

#service .topbox {
  position: relative;
  z-index: 10;
}

#service .swiper-slide {
  height: auto;
  background: #fff;
  transition: all 0.4s ease;
  box-sizing: border-box;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  display: flex;
}

#service a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 30px;
  width: 100%;
  min-height: 420px;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

#service .icon img {
  width: 100px;
  margin-bottom: 10px;
}

#service .icon span {
  display: block;
  font-size: 16px;
}

#service p {
  text-align: left;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

#service .btn {
  margin-top: auto;
  text-align: center;
  background-color: #febb87;
  border-radius: 25px;
  display: inline-block;
  padding: 10px 40px;
  font-size: 15px;
  flex-grow: 0;
}

/* ==========================================================================
   8. Member
   ========================================================================== */
#member ul {
  background: #fffbf8;
  padding: 100px 0;
}

#member ul li {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 100px;
  font-size: 0;
}

#member ul li:last-child {
  margin-bottom: 0;
}

#member ul li .pic {
  display: inline-block;
  margin-right: 100px;
  width: calc(50% - 100px);
}

#member ul li .txt {
  display: inline-block;
  width: 50%;
  vertical-align: top;
}

#member ul li h3 {
  font-size: 36px;
  border-bottom: 6px solid #fd780f;
  font-family: var(--wp--preset--font-family--yu-gothic);
  width: 230px;
  font-weight: 500;
}

#member ul li h4 {
  color: #fd780f;
  font-size: 20px;
  font-family: var(--wp--preset--font-family--yu-gothic);
  font-weight: 500;
  margin: 30px 0 10px;
}

#member ul li p {
  margin: 0;
}

#member ul li .skill p {
  text-indent: -1em;
  padding-left: 1em;
}

/* ==========================================================================
   9. Contact
   ========================================================================== */
#contact {
  background-image: url('images/contact.png');
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 100px 0;
  width: 100%;
  box-sizing: border-box;
}

#contact .topbox {
  font-size: 0;
  max-width: 1000px;
  margin: 0 auto;
}

#contact h2 {
  display: inline-block;
  width: 40%;
}

#contact p {
  display: inline-block;
  width: 60%;
  font-size: 18px;
  text-align: center;
  font-weight: 600;
}

#contact a {
  display: block;
  background-color: #51c567;
  color: #fff;
  padding: 15px 10px;
  font-size: 18px;
  border-radius: 50px;
  width: 200px;
  margin: 0 auto;
}

/* ==========================================================================
   Work - Device Mockup Style
   ========================================================================== */
#work,
#member {
  padding: 100px 0 0;
}
.work-list {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
  padding: 0;
  list-style: none;
  margin: 50px auto 0;
  max-width: 1000px;
}

.work-item {
  width: calc(33.333% - 14px);
  text-align: center;
}

/* --- 画像コンテナ基本 --- */
.work-img-container {
  width: 100%;
  height: 237px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  margin-bottom: 25px;
}

/* --- 2枚重ね時のコンテナ --- */
.frame-double {
  height: 237px;
}

/* --- 2枚重ね時のPC枠 --- */
.frame-double .pc-screen {
  width: 85%;
  height: 237px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

/* PC スクリーンショット */
.frame-double .pc-screen img {
  display: block;
  width: 83%;
  height: 130px;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 0;
  bottom: -4%;
  left: 21px;
}

/* PC 枠画像を最前面に */
.frame-double .pc-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/wp-content/themes/twentytwentythree/images/bg-pc.png') no-repeat center / 100% 100%;
  z-index: 3;
  pointer-events: none;
}

/* --- 2枚重ね時のSP枠 --- */
.frame-double .sp-screen {
  width: 88px;
  height: 174px;
  position: absolute;
  bottom: 0;
  right: 5px;
  z-index: 4;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

/* SP スクリーンショット */
.frame-double .sp-screen img {
  display: block;
  width: 85%;
  height: 153px;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 0;
  bottom: -3%;
  border-radius: 5px;
}
#work .frame-double .sp-screen img,
#list .frame-double .sp-screen img  {
  left: 8%;
}

/* SP 枠画像を最前面に */
.frame-double .sp-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/wp-content/themes/twentytwentythree/images/bg-sp.png') no-repeat center / 100% 100%;
  z-index: 5;
  pointer-events: none;
}

/* --- 1枚のみの場合 (frame-pc-single) --- */
.pc-screen-single {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
}

.pc-screen-single img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.12));
}

/* --- ホバーアクション --- */
.work-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.3s;
}

.work-item a:hover {
  opacity: 0.9;
}

.work-item a:hover .work-img-container {
  transform: translateY(-10px);
}

.work-item a:hover .pc-screen,
.work-item a:hover .sp-screen,
.work-item a:hover .pc-screen-single {
  transition: box-shadow 0.4s ease;
}

/* --- カテゴリーラベル --- */
.work-cat-label {
  display: inline-block;
  background: #4a4036;
  color: #fff;
  font-size: 16px;
  letter-spacing: 0.05em;
  padding: 6px 25px;
  border-radius: 25px;
  margin-top: 10px;
}

/* --- Moreボタンの設定 --- */
.more {
  max-width: 1000px;
  margin: 0 auto;
  text-align: right;
}

.more p {
  margin: 60px 10px 0;
  font-size: 17px;
}

.more a {
  text-decoration: none;
  color: inherit;
}

.more a span {
  display: inline-block;
  transition: transform 0.3s ease;
}

.more a:hover span {
  transform: translateX(8px);
}

#load-more-btn {
  background: none;
  border: 1px solid #4a4036;
  color: #4a4036;
  font-size: 17px;
  padding: 10px 40px;
  border-radius: 25px;
  cursor: pointer;
  margin: 60px auto 0;
  display: block;
  transition: all 0.3s;
  letter-spacing: 0.05em;
}

#load-more-btn:hover {
  background: #4a4036;
  color: #fff;
}

#load-more-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

#list .sbox{
  overflow: hidden;
}
#list h2.title{
  margin-top: 100px;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.fbox {
  background: #fffbf8;
  padding: 80px 0;
  text-align: center;
}

.fbox .logo {
  width: 211px;
  margin-bottom: 44px;
}

.fbox ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.fbox ul.sns {
  gap: 30px;
  margin-bottom: 40px;
}

.fbox ul.sns li a {
  display: block;
  width: 56px;
}

.fbox ul.fotter-menu {
  gap: 20px;
  margin-bottom: 60px;
}

.fbox ul.fotter-menu li a {
  display: block;
  font-family: var(--wp--preset--font-family--zen-kaku-gothic-new);
  font-size: 16px;
  text-decoration: underline;
}

.fbox ul.fotter-menu li a:hover {
  text-decoration: none;
}

.footer {
  margin: 0;
}

.back-to-top {
  position: fixed;
  bottom: 60px;
  right: 30px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 9999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top.show:hover {
  bottom: 70px;
}

.back-to-top img {
  width: 60px !important;
  height: auto;
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   下層ページ
   ========================================================================== */
.site-main {
  padding: 0 0 100px;
  margin-top: 138px;
}

/* site-serviceページ（HP・SNS）はmargin-topをhp-top-imageが担う */
.site-main.site-service {
  margin-top: 0;
}

.site-main .box {
  margin: 0 auto 100px;
  max-width: 1000px;
}

.site-main .box h2,
.site-main .box h3 {
  font-family: var(--wp--preset--font-family--yu-gothic), "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.2;
}

/* アイキャッチシンプル表示（SNS・その他下層ページ用） */
.service-top-image {
  width: 100%;
  height: 600px;
  margin-top: 138px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  background-image: url('images/bg.png');
  background-attachment: scroll;
  background-position: center bottom;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-top-image img {
  max-width: 500px;
  max-height: 500px;
  width: auto;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .service-top-image {
    height: 385px;
    margin-top: 0;
  }

  .service-top-image img {
    max-width: 80%;
    max-height: 300px;
  }

  .site-main {
    margin-top: 0;
  }
}

.hp-top-image {
  margin-top: 138px;
  margin-bottom: 60px;
  height: 600px;
  position: relative;
  overflow: hidden;
  background-image: url('images/bg.png');
  background-attachment: scroll;
  background-position: center bottom;
  background-size: cover;
  width: 100%;
  box-sizing: border-box;
}

.hp-top-image .inner {
  width: 100%;
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hp-top-image .frame-double {
  height: 550px;
  position: relative;
}

/* PCスクロール領域 */
.hp-top-image .frame-double .pc-screen {
  width: 464px;
  height: 269px;
  top: unset;
  bottom: 205px;
  left: calc(5% + 55px);
  position: absolute;
  z-index: 1;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  clip-path: inset(0 0 0 0);
}

.hp-top-image .frame-double .pc-screen::-webkit-scrollbar {
  display: none;
}

/* PC内スクロールラッパー */
.hp-top-image .frame-double .pc-screen .scroll-inner {
  width: 100%;
  min-height: 100%;
  height: auto;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  box-sizing: border-box;
}

.hp-top-image .frame-double .pc-screen .scroll-inner::-webkit-scrollbar {
  display: none;
}

/* PC枠（スクロール領域より大きく・固定） */
.hp-top-image .frame-double .pc-frame {
  width: 573px;
  height: 500px;
  position: absolute;
  bottom: 0;
  left: 5%;
  z-index: 10;
  pointer-events: none;
  background-image: url('/wp-content/themes/twentytwentythree/images/bg-pc.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}

/* PC ::after 完全無効化 */
.hp-top-image .frame-double .pc-screen::after {
  display: none !important;
}

/* SPスクロール領域 */
.hp-top-image .frame-double .sp-screen {
  width: 195px;
  height: 395px;
  bottom: 28px;
  right: calc(8% + 12px);
  position: absolute;
  z-index: 2;
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  clip-path: inset(0 0 0 0);
  border-radius: 14px;
}

.hp-top-image .frame-double .sp-screen::-webkit-scrollbar {
  display: none;
}

/* SP内スクロールラッパー */
.hp-top-image .frame-double .sp-screen .scroll-inner {
  width: 100%;
  min-height: 100%;
  height: auto; 
  overflow-y: scroll;
  overflow-x: hidden;
  scrollbar-width: none;
  box-sizing: border-box;
}

.hp-top-image .frame-double .sp-screen .scroll-inner::-webkit-scrollbar {
  display: none;
}

/* SP枠（スクロール領域より大きく・固定） */
.hp-top-image .frame-double .sp-frame {
  width: 220px;
  height: 450px;
  position: absolute;
  bottom: 0;
  right: 8%;
  z-index: 10;
  pointer-events: none;
  background-image: url('/wp-content/themes/twentytwentythree/images/bg-sp.png');
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
}

/* SP ::after 完全無効化 */
.hp-top-image .frame-double .sp-screen::after {
  display: none !important;
}

/* PC img */
.hp-top-image .frame-double .pc-screen img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
  left: 0;
}

/* SP img */
.hp-top-image .frame-double .sp-screen img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 0;
}

/* ::before も完全無効化（Work一覧用の枠と二重になるため） */
.hp-top-image .frame-double .pc-screen::before,
.hp-top-image .frame-double .sp-screen::before {
  display: none !important;
}

/* ==========================================================================
   Work詳細ページ
   ========================================================================== */
.work-single-box {
  padding: 0 20px;
}

.work-single-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}

.work-single-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.work-single-cat {
  display: inline-block;
  background: #f8f1eb;
  color: #4a4036;
  font-size: 14px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid #d9cec6;
}

.work-single-content {
  line-height: 2;
  margin-bottom: 60px;
}

.work-single-content p {
  margin-bottom: 1.5em;
}

/* 前後ナビゲーション */
.work-single-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e8e0d8;
  font-family: var(--wp--preset--font-family--unna);
  font-size: 16px;
}

.work-single-prev,
.work-single-next {
  flex: 1;
}

.work-single-next {
  text-align: right;
}

.work-single-back-link {
  flex: 1;
  text-align: center;
}

.work-single-back-link a {
  color: #4a4036;
  font-size: 14px;
  font-family: var(--wp--preset--font-family--yu-gothic);
  text-decoration: none;
  transition: opacity 0.3s;
}

.work-single-back-link a:hover {
  opacity: 0.6;
}

.work-single-prev a,
.work-single-next a {
  color: #4a4036;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.3s;
}

.work-single-prev a .nav-arrow,
.work-single-next a .nav-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.work-single-prev a:hover .nav-arrow {
  transform: translateX(-8px);
}

.work-single-next a:hover .nav-arrow {
  transform: translateX(8px);
}

@media (max-width: 768px) {
  .work-single-title {
    font-size: 20px;
  }

  .work-single-box {
    padding: 0 10px;
  }

  .work-single-nav {
    font-size: 13px;
    gap: 8px;
  }
  /* SP詳細ページ：PCとSPを縦一列（枠つきのまま） */
  #work-single .hp-top-image {
    height: auto;
    min-height: 0;
    padding-top: 80px;
    padding-bottom: 40px;
    overflow: visible;
    margin-top: 0;
  }

  #work-single .hp-top-image .inner {
    position: relative;
    top: unset;
    left: unset;
    transform: none;
    padding: 0;
  }

  /* 縦一列 */
  #work-single .hp-top-image .frame-double {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    position: relative;
  }

  /* PC画像エリア：absolute+topで枠内に配置 */
  #work-single .hp-top-image .frame-double .pc-screen {
    position: absolute;
    width: 300px;
    height: 170px;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    bottom: unset;
    right: unset;
    overflow: hidden;
    clip-path: inset(0 0 0 0);
    z-index: 1;
  }

  #work-single .hp-top-image .frame-double .pc-screen::-webkit-scrollbar {
    display: none;
  }

  #work-single .hp-top-image .frame-double .pc-screen .scroll-inner {
    width: 100%;
    height: 170px;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  #work-single .hp-top-image .frame-double .pc-screen .scroll-inner::-webkit-scrollbar {
    display: none;
  }

  #work-single .hp-top-image .frame-double .pc-screen img {
    width: 100%;
    bottom: 1%;
  }

  /* PC枠 */
  #work-single .hp-top-image .frame-double .pc-frame {
    position: relative;
    width: 100%;
    height: 314px;
    bottom: unset;
    left: unset;
    background-size: contain;
    background-position: center;
    z-index: 10;
    margin-top: 0;
    pointer-events: none;
    flex-shrink: 0;
  }

  /* SP画像エリア：/hpと同じスクロール設定 */
  #work-single .hp-top-image .frame-double .sp-screen {
    position: relative;
    width: 175px;
    height: 350px;
    top: -30px;
    bottom: unset;
    right: unset;
    left: unset;
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    clip-path: inset(0 0 0 0);
    z-index: 1;
    margin-top: 40px;
    border-radius: 20px;
  }

  #work-single .hp-top-image .frame-double .sp-screen::-webkit-scrollbar {
    display: none;
  }

  #work-single .hp-top-image .frame-double .sp-screen .scroll-inner {
    width: 100%;
    height: auto;
    min-height: 100%;
  }

  #work-single .hp-top-image .frame-double .sp-screen img {
    width: 98%;
    left: 1%;
  }

  /* SP枠：SP画像の上に重ねる */
  #work-single .hp-top-image .frame-double .sp-frame {
    position: relative;
    width: 198px;
    height: 392px;
    bottom: unset;
    right: unset;
    background-size: contain;
    background-position: center;
    z-index: 10;
    margin-top: -390px;
    pointer-events: none;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   カテゴリーフィルター・一覧
   ========================================================================== */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 30px 0 60px;
  width: 100%;
  text-align: center;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid #4a4036;
  background: none;
  color: #4a4036;
  cursor: pointer;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #4a4036;
  color: #fff;
}

#list .content-area {
  padding: 100px 0;
}

/* ==========================================================================
   11. レスポンシブ (スマホ対応)
   ========================================================================== */

@media (min-width: 769px) {
  #service .swiper-wrapper {
    display: flex !important;
    justify-content: center !important;
    gap: 40px;
    max-width: 1100px;
    margin: 30px auto 0;
  }

  #service .swiper-slide {
    width: calc(33.333% - 27px) !important;
    flex-shrink: 0;
  }

  #service .swiper-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(253, 120, 15, 0.3);
  }
}

@media (max-width: 768px) {
  h2.title {
    font-size: 34px;
  }

  .pc_only {
    display: none !important;
  }

  .sp_only {
    display: block;
  }

  #header {
    background-color: #fffbf8;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .site-logo img {
    height: 60px;
  }

  .back-to-top.show:hover {
    bottom: 40px;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 251, 248, 0.95);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 998;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #4a4036;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }

  .main-nav.is-open {
    display: flex;
    opacity: 1;
  }

  .menu-toggle.is-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .top {
    margin-top: 0;
  }

  .top-title {
    height: 60vh;
  }

  section {
    scroll-margin-top: 80px;
  }

  .main-nav .nav-list {
    flex-direction: column;
    gap: 20px;
  }

  body.no-scroll {
    overflow: hidden;
  }

  #concept,
  #service,
  #contact,
  #member ul {
    padding: 60px 0;
  }

  #work,
  #member {
    padding: 60px 0 0;
  }

  #service {
    padding: 60px 0;
    overflow: hidden;
  }

  #service a:hover {
    opacity: 1 !important;
  }

  #service .swiper-slide {
    opacity: 1;
    transform: scale(1);
  }

  #service .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
  }

  #service .topbox {
    overflow: visible;
    padding: 0;
    width: 100%;
  }

  #service .swiper,
  .mySwiper {
    overflow: visible;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  #concept .text-content {
    flex-direction: column;
    gap: 30px;
  }

  #concept .inner-card {
    margin: 0 20px;
    width: calc(100% - 40px);
    padding: 20px;
  }

  #member ul li h3 {
    font-size: 28px;
    width: 200px;
    border-bottom: 4px solid #fd780f;
  }

  #member ul li {
    padding: 0 20px;
    width: calc(100% - 40px);
    display: block;
  }

  #member ul li .pic {
    display: block;
    width: 70%;
    margin: 0 auto 45px;
  }

  #member ul li .txt {
    display: block;
    width: 100%;
    margin-bottom: 80px;
  }

  #contact h2 {
    display: block;
    width: 100%;
    margin-bottom: 30px;
  }

  #contact p {
    display: block;
    width: 100%;
  }

  .fbox ul.sns li a {
    width: 35px;
  }

  .fbox .logo {
    width: 100px;
  }

  .back-to-top {
    bottom: 30px;
  }

  .work-item {
    width: calc(50% - 10px);
  }

  .work-img-container {
    height: 180px;
    overflow: hidden;
  }

  .work-cat-label{
    font-size: 14px;
  }

  /* --- SP時のPC枠 --- */
  .frame-double .pc-screen {
    width: 100%;
    height: 180px;
    top: 10px;
    left: 0;
    overflow: hidden;
    z-index: 1;
  }

  .frame-double .pc-screen img {
    width: 82%;
    height: 110px;
    left: 18px;
  }

  /* --- SP時のSP枠 --- */
  .frame-double .sp-screen {
    width: 70px;
    height: 130px;
    bottom: 8px;
    right: 0;
  }

  .frame-double .sp-screen img {
    height: 116px;
  }

  .pc-screen-single {
    width: 100%;
    height: 180px;
    position: absolute;
    top: 0;
    left: 0;
  }

  /* hp-top-image SP対応 */
  .hp-top-image {
    height: 385px;
    margin-top: 0;
  }

  .hp-top-image .frame-double {
    height: 385px;
  }

  .hp-top-image .frame-double .pc-frame {
    width: 275px;
    height: 240px;
    bottom: 0;
    left: 0;
    background-size: contain;
  }

  .hp-top-image .frame-double .pc-screen {
    width: 60%;
    height: 135px;
    bottom: 100px;
    left: 5%;
    border-radius: 7px;
  }

  .hp-top-image .frame-double .pc-screen img{
    top: 1%;
    width: 100%;
    height: auto;
  }

  /* .hp-top-image .frame-double .pc-screen .scroll-inner {
    height: 108px;
  } */

  .hp-top-image .frame-double .sp-frame {
    width: 115px;
    height: 215px;
    bottom: 0;
    right: 5%;
    background-size: contain;
  }

  .hp-top-image .frame-double .sp-screen {
    width: 95px;
    height: 196px;
    bottom: 14px;
    right: calc(5% + 10px);
    border-radius: 15px;
  }

  .hp-top-image .frame-double .sp-screen img{
    top: 1%;
  }

  .hp-top-image .frame-double .sp-screen .scroll-inner {
    height: 177px;
  }


  .site-main .box {
    padding: 0 2%;
    margin-bottom: 0;
  }

  .site-main {
    padding: 60px 0;
  }

  .site-main.site-service {
    padding-top: 0;
  }

  .work-list {
    padding: 0 2%;
  }

  #list .content-area {
    padding: 0;
  }

  #list h2.title{
    margin-top: 0;
  }

  .site-main .box h2{
    font-size: 24px;
  }
  h2.title span{
    font-size: 14px;
  }
  #contact p,
  #contact a{
    font-size: 16px;
  }

  /* Swiperページネーション（ドット）をオレンジに */
  .swiper-pagination-bullet {
    background: #fc770f;
    opacity: 0.3;
  }

  .swiper-pagination-bullet-active {
    background: #fc770f !important;
    opacity: 1;
  }
}