/* 全体のスクロールをスムーズにする */
html {
	scroll-behavior: smooth;
	  overflow-x: hidden;
}
/* 基本スタイル設定 */
body {
	background-color: #000;
	font-family: 'Noto Sans JP', 'Inter', sans-serif; /* 日本語と英語のフォント優先順位 */
	background-color: #FFFFFF; /* 白背景を基調に */
	color: #333333; /* 暗いテキスト色 */
	overflow-x: hidden; /* 水平スクロールを防止 */
	line-height: 1.5; /* 全体の行間を1.5倍に設定 */
}
nav{
	margin-top:10px;
}
.container {
	max-width: 1200px; /* コンテンツの最大幅 */
	margin: 0 auto; /* 中央寄せ */
	padding: 0 1rem; /* 左右のパディング */
}

/* 説明文のスタイル */
p {
	text-align: left; /* 説明文を左揃えに */
	line-height: 2; /* 行間を広げる */
}

.sticky_container{
/*	height:200vh;
*/
}
.section_title{
	color:#fff;
	opacity:0.2;
	font-size: 7em;
	margin:0 0 0 20px;
	position: sticky;
	top:250px;
	font-family: 'Times New Roman', Times, serif;
}



/* タイポグラフィ */
#hero-section{
	z-index: 10;
}
.hero-title {
	font-size: clamp(2.0rem, 7vw, 5rem);
	font-weight: 500;
	line-height: 1.5em;
	letter-spacing: -0.05em;
}
.hero-subtitle {
	font-size: clamp(1.2rem, 3.5vw, 2.5rem);
	font-weight: 600;
	line-height: 2; /* 行間を広げる */
	color: #8BC34A;
	text-align: center;
}
.section-title {
	font-size: clamp(2rem, 6vw, 4rem);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 2rem;
	text-align: center;
	color: #212121;
}
.english-impact {
	font-family:'Times New Roman', Times, serif;
	font-weight: 300;
	font-size: clamp(1.0rem, 6vw, 2.0rem);
	color:#ccc;
	text-transform: uppercase;
	letter-spacing: 0em;
	text-align: center;
	line-height: 1.3em;
}

/* アニメーション定義 */
@keyframes fadeInScale {
	from { opacity: 0; transform: scale(0.9); }
	to { opacity: 1; transform: scale(1); }
}
.animate-fadeInScale {
	animation: fadeInScale 0.8s ease-out forwards;
}
.scroll-reveal {
	opacity: 0;
	transform: translateY(2px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.scroll-reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ファーストビューの背景 */
.hero-bg {
	background: linear-gradient(180deg, #070335 0%, #3F51B5 100%);
}

/* ボタン */
.btn-primary {
	transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn-primary:hover {
	background-color: #E65100;
	transform: translateY(-2px);
}

/* 制作事例のグリッド */
.case-study-grid {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) {
	.case-study-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
.case-card {
	background-color: #FFFFFF;
	border-radius: 0.75rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}
.case-card .p-6 {
		padding: 1.5rem;
}
.case-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

/* フッター */
footer {
	background-color: #070335;
	color: #F3F4F6;
}
footer a {
	color: #8BC34A;
	transition: color 0.3s ease;
}
footer a:hover {
	color: #AED581;
}

/* --- 雑誌風デザインのスタイル --- */
.magazine-section-wrapper {
	background-color: #f8f8f8; /* 背景色を少し変える */
	padding: clamp(2rem, 10vw, 8rem) 0;
}
.magazine-section {
	display: grid;
	grid-template-columns: 1fr; /* モバイルは1列 */
	min-height: 80vh;
	background-color: #ffffff;
	box-shadow: 0 20px 40px -15px rgba(0,0,0,0.15);
}
@media (min-width: 768px) {
	.magazine-section {
		grid-template-columns: repeat(2, 1fr); /* PCは2列 */
	}
}
.magazine-image {
	background-size: cover;
	background-position: center;
	min-height: 40vh; /* モバイルでの高さを確保 */
}
.magazine-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2rem, 8vw, 6rem);
	
	position:sticky;
	top:100px;
}
.magazine-title {
	font-family: 'Playfair Display', serif; /* 雑誌風のセリフ体フォント */
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 2rem;
	color: #1a1a1a;
}
.magazine-text {
	font-size: 1.1rem;
	line-height: 1.8; /* テキストの行間を広めに */
	color: #555;
	max-width: 500px;
}
/* 左右反転レイアウト用 */
@media (min-width: 768px) {
	.magazine-section--reverse .magazine-image {
		order: 2; /* PC表示で画像を右側に */
	}
	.magazine-section--reverse .magazine-content {
		order: 1; /* PC表示でテキストを左側に */
	}
}
/* --- ここまで雑誌風デザインのスタイル --- */

.thumb h3{
	margin:10px 0 6px; font-size:20px; font-weight:700
}

/* ハンバーガーメニューアイコン */
.hamburger {
	cursor: pointer;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 30px;
	height: 20px;
	z-index: 50;
}
.hamburger span {
	display: block;
	width: 100%;
	height: 3px;
	background-color: #333;
	transition: all 0.3s ease-in-out;
	border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.98);
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 40;
	transform: translateX(100%);
	transition: transform 0.3s ease-in-out;
	display: none;
}
.mobile-menu.active {
	transform: translateX(0);
	display: flex;
}
.mobile-menu a {
	font-size: 1.8rem;
	margin: 1rem 0;
	color: #333;
	font-weight: 700;
}
.close-button {
	position: absolute;
	top: 20px;
	right: 20px;
	font-size: 2.5rem;
	color: #333;
	cursor: pointer;
	z-index: 50;
	transition: transform 0.3s ease-in-out;
}
.close-button:hover { transform: rotate(90deg); }

/* ページトップボタン */
#page-top-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background-color: #FF7043;
	color: white;
	padding: 1rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
	opacity: 0;
	transform: translateY(20px);
	visibility: hidden;
	pointer-events: none;
	z-index: 20;
}
#page-top-btn.show {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
	pointer-events: auto;
}

.intro{
	padding:20px;
	background:rgba(0, 0, 0, 0.2);

	position: sticky;
	top:250px;
}
.intro h3{
	font-size:2.7em;
}
.intro p{
	text-align:center;
	font-size:1.3em;
	font-weight:500;
}
/* 比較表 */
.comparison-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 2rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	border-radius: 0.75rem;
	overflow: hidden;
}
.comparison-table th, .comparison-table td {
	padding: 1.25rem;
	border: 1px solid #E2E8F0;
	text-align: left;
}
.comparison-table th {
	background-color: #3F51B5;
	font-weight: bold;
	color: white;
}
.comparison-table tr:nth-child(even) { background-color: #F9FAFB; }
.comparison-table tr:hover { background-color: #E5E7EB; }

/* ご利用の流れ */
p.section_exp{
	padding:20px;
	text-align: center;
	font-size: 1.7rem;
}
.flow_num{
	position:absolute;
	left:10px;
	top:10px;
	background-color: #0078D4;
	padding:20px;
	border-radius: 10px;
	font-size: 2rem;
	font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.flow-step { position: relative; margin-bottom: 2rem; }
.flow-step:last-child { margin-bottom: 0; }
.flow-icon-container {
	position: absolute; left: 0; top: 0; width: 2.5rem; height: 2.5rem;
	background-color: #8BC34A; color: white; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-weight: bold; font-size: 1.25rem; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	z-index: 10;
}
.flow-step-content {
	background-color: #F3F4F6; padding: 1.5rem; border-radius: 0.75rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.flow-step-title { font-size: 1.5rem; font-weight: bold; color: #212121; margin-bottom: 0.5rem; }
.flow-step-description { color: #4B5563; line-height: 1.3; }

/* 横スクロール */
.scroll_wrap {
	width: 100%; overflow: hidden; background: #0A1E27;
	margin: 0 auto; padding: 120px 0;
}
.scroll_contents {
	display: flex; width: auto; align-items: center;
	flex-wrap: nowrap; will-change: transform;
}
.scroll_item {
	width: 380px; min-width: 380px; background: #fff; padding: 24px;
	margin-right: 60px; border-radius: 1rem;
	box-shadow: 0 15px 25px -5px rgba(0,0,0,0.2), 0 5px 10px -5px rgba(0,0,0,0.1);
	display: flex; flex-direction: column; align-items: center;
	text-align: center; flex-shrink: 0;
	position:relative;
}
.scroll_item:last-child { margin-right: 0px; }
.scroll_item img {
	width: 100%; height: 200px; object-fit: cover;
	border-radius: 0.75rem; margin-bottom: 1.5rem;
}

/* 新しい紙っぽいデザインのセクション */
.paper-box {
	background-color: #ffffff; /* 白い紙の背景 */
	border-radius: 1rem; /* 角を丸く */
	box-shadow: 0 20px 40px -15px rgba(0,0,0,0.25); /* 浮かび上がったような強い影 */
	position: relative;
	transform: translateY(0); /* 初期状態 */
	transition: transform 0.5s ease-out;
	line-height: 2; /* 行間を広げて読みやすく */
}
/* 紙の質感を出すための点線グリッド（方眼紙風） */
.paper-box::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: linear-gradient(to right, rgba(0,0,0,0.05) 1px, transparent 1px),
						linear-gradient(to bottom, rgba(0,0,0,0.05) 1px, transparent 1px);
	background-size: 20px 20px; /* グリッドのサイズ */
	opacity: 0.3;
	border-radius: 1rem;
	z-index: -1; /* コンテンツの背後に配置 */
}

/* ----- START: GSAP Stacking Card Effect CSS ----- */
#recommendation {
	padding-bottom: 10vh; /* アニメーション後の余白 */
	background-color: #f3f4f6; /* 背景色を設定 */
	width: 100%;
	height:320vh;
	overflow: hidden;
}
.recommendation-container {
	position: relative;
	width: 100%;
	height: 250vh; /* スクロール領域の確保 */
	margin-top: 5rem;
}
.recommendation-sticky-wrapper {
	position: sticky;
	top: 0;
	width: 100%;
	height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;

	margin: 0 auto;
	width: 80%;
	display: grid;
	row-gap: 100px;
}
.recommendation-item {
	position: absolute;
	width: 80%;
	border-radius: 1rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	will-change: transform, opacity;
	display: flex;
	justify-content: center;
	align-items: center;
	background-size: cover;
	background-position: center;
	overflow: hidden;
	width: 100%;
	height: 75vh;
}
.recommendation-item .overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background-color: rgba(143, 143, 143, 0.25);
	z-index: 1;
}
.recommendation-item .card-text {
	position: relative;
	z-index: 2;
	color: white;
	font-size: clamp(1.25rem, 3vw, 1.75rem);
	font-weight: 700;
	text-align: center;
	padding: 2rem;
	line-height: 1.6;
	text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.inner {
	margin-bottom: 100svh;
}

.list {
margin: 0 auto;
width: 80%;
display: grid;
row-gap: 100px;
}

.item {
width: 100%;
height: 75vh;
background-color: #ddd;
	border-radius: 1rem;

	 position: relative;
}
.item--02 {
background-color: #bbb;
}

.item--03 {
background-color: #aaa;
}
/* ----- END: GSAP Stacking Card Effect CSS ----- */



/* PDCA FLOW */

/* コンテナ */


/* セクションタイトル */
.how-it-works h2 {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #222;
}

/* リード文 */
.how-it-works p {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: #666;
}

/* 流れのステップ */
.flow-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.flow-steps li {
  background-color: #fff;
  border-left: 4px solid #0078D4;
  padding: 24px 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.flow-steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.flow-steps h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #0078D4;
}

.flow-steps p {
  margin: 0;
  font-size: 16px;
  color: #444;
}

/* CTAボックス */
.cta-box {
  text-align: center;
  margin-top: 50px;
  background-color: #0078D4;
  padding: 30px 20px;
  border-radius: 8px;
  color: #fff;
}

.cta-box p {
  font-size: 20px;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background-color: #fff;
  color: #0078D4;
  font-weight: 600;
  padding: 14px 28px;
  font-size: 16px;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #e5f1ff;
}
/* PDCA FLOW */




/*　VIDEO	*/
 
	.grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 10px;
      padding: 10px;
    }
   .thumb {
    position: relative;
    cursor: pointer;
	display: inline;
   }

  .thumb img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
  }
  .play-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .play-icon::before {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-left: 13px solid #000;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }
    .thumb:hover img {
      transform: scale(1.05);
    }
    .overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.9);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 999;
    }
    .overlay video {
      max-width: 90%;
      max-height: 90%;
    }
    .close-btn {
      position: absolute;
      top: 20px; right: 20px;
      font-size: 30px;
      color: #fff;
      cursor: pointer;
	  z-index: 999;
    }
/**/	

/* レスポンシブ調整 */
@media (max-width: 767px) {
	.comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table th, .comparison-table td {
		display: block; width: 100%;
	}
	.comparison-table thead { display: none; }
	.comparison-table tr { margin-bottom: 1rem; border: 1px solid #E2E8F0; border-radius: 0.75rem; overflow: hidden; }
	.comparison-table td { text-align: right; padding-left: 50%; position: relative; }
	.comparison-table td::before {
		content: attr(data-label); position: absolute; left: 0; width: 50%;
		padding-left: 1rem; font-weight: bold; text-align: left; white-space: nowrap;
	}
	.flow-step .flow-icon-container { left: 1rem; }
	.flow-step .flow-step-content { margin-left: 4rem; }
	.flow-step { padding-left: 0; }
	.flow-vertical-line { left: calc(1rem + 1.25rem - 2px); }
	.scroll_item { width: 90vw; min-width: 90vw; margin-right: 4vw; }
	.scroll_item:last-child { margin-right: 0px; }
}

@media (min-width: 768px) {
	.hamburger { display: none; }
	.mobile-menu { display: none !important; }
	.flow-step .flow-icon-container { left: 0; }
	.flow-step .flow-step-content { margin-left: 3rem; }
	.flow-step { padding-left: 0; }
	.flow-vertical-line { left: calc(1.25rem - 2px); }
}

@media (max-width: 767px) {
  .scroll_wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .scroll_contents {
    flex-wrap: nowrap;
    width: max-content;
  }

  .scroll_item {
    width: 280px;
    min-width: 280px;
    margin-right: 1rem;
  }
}