/*!
Theme Name: NINE
Theme URI: https://example.com/
Author: isao sudo
Description: ベースCSS（NINEテーマ用）
Version: 1.0.0
License: GNU General Public License v2 or later
*/

/***************************************************/
/* RESET & BASE */
/***************************************************/
*,
*::before,
*::after {
  box-sizing: border-box;
}

.debug * {
  outline: 1px solid rgba(0, 150, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}
html,
body {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
  cursor: auto;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #232323;
  background: #fff;
  overflow-x: hidden;
  cursor: auto;
}

@media screen and (max-width: 499px) {
  body {
    font-size: 14px;
  }
}

img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
}

/***************************************************/
/* FONT (Noto + Poppins) */
/***************************************************/
.poppins {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}
.noto500 {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}
.noto700 {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/***************************************************/
/* HEADING / TEXT BASE */
/***************************************************/
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
  font-weight: normal;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
}

p {
  line-height: 1.8;
}

/***************************************************/
/* LAYOUT WRAPPER */
/***************************************************/
.wrapper {
  position: relative;
  flex: 1;
}

.main_all,
.main980,
.main1440 {
  width: 100%;
  margin: 0 auto;
  padding: 15vw 50px;
  position: relative;
}
.main_p-last,
.main_p,
.main_p2 {
  padding: 150px 0;
}

.main980 {
  max-width: 980px;
}
.main1440 {
  max-width: 1280px;
}

.main600 {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

@media screen and (max-width: 768px) {
  .main_all,
  .main980,
  .main1440 {
    padding: 80px 30px;
  }
	.main_p-last {
    padding: 15vw 0;
	}
  .main_p {
    padding: 15vw 0;
    padding-top: 0 !important;
  }
}

@media screen and (max-width: 499px) {
  .main_all,
  .main980,
  .main1440 {
    padding: 60px 20px;
  }
  .main_p {
    padding: 10vw 0;
    padding-top: 0;
  }
	.main_p-last {
    padding: 10vw 0;
	}
}

.wrapper01,
.wrapper02,
.wrapper03 {
  width: 100%;
  overflow: hidden;
}
.wrapper01 {
  border-radius: 0 0 80px 0;
}
.wrapper02 {
  border-radius: 80px 0 80px 0;
}
.wrapper03 {
  border-radius: 80px 0 0 0;
}
/***************************************************/ /* HEADER */ /***************************************************/
/* =============================== 共通ヘッダー基本設定 =============================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s ease;
}
.site-footer {
  width: 100%;
  transition: all 0.4s ease;
}
.header-inner {
  margin: 0 auto;
  padding: clamp(6px, 1.2vw, 12px) clamp(10px, 2vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 60px !important;
  position: relative;
  z-index: 99;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.header-logo img,
.header-logo svg {
  height: 50px;
  width: auto;
  fill: #3e9a4f;
  stroke: #3e9a4f;
  aspect-ratio: 62/17;
}


/* =============================== TOP TEXT =============================== */

.top-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;        /* 中央揃えの基準を画面幅に */
  text-align: center;
  pointer-events: none;
}

.top-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  width: 100%;        /* ★絶対必要：折返し防止＋ロゴが画面から消えるのを防ぐ */
  margin: 0;
  padding: 0;
}


/* ロゴ */
.top-logo {
  max-width: 70%;     /* ★ロゴの大きさ（自由に調整OK） */
  height: auto;
  display: block;
  pointer-events: none;
}

@media (max-width: 599px) {
.top-logo {
  max-width: 90%;     /* ★ロゴの大きさ（自由に調整OK） */
  height: auto;
  display: block;
}
}

/* =============================== 通常ページ（TOP以外） =============================== */
.site-header:not(.top-header) .header-inner {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.site-header:not(.top-header) .header-nav a {
  color: #232323;
}
.site-header:not(.top-header) .header-nav .menu-name {
  color: #232323;
}
.title-font {
  width: 100%;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.4;
}
.normal_text {
  font-size: clamp(16px, 2vw, 19px) !important;
  font-weight: 500 !important;
  line-height: 1.8;
  text-align: left;
}
.normal_text_bold {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 500 !important;
  line-height: 1.8;
}
.sub-title-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2vw;
  flex-wrap: wrap;
}
.title-font_sub {
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.4;
}
.w-btn {
  width: calc(100% - 250px);
  text-align: left;
}
.title_sub-btn {
  width: 200px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  text-align: center;
  background: #fff;
  color: #3e9a4f;
  padding: clamp(5px, 1vw, 10px);
  border-radius: 100px;
  border: 2px solid #fff;
  transition: all 0.2s ease;
}
.title_sub-btn_white {
  background: #3e9a4f;
  color: #fff;
  border: 2px solid #3e9a4f;
}
.title_sub-btn a {
  color: #3e9a4f;
  display: block;
}
.title_sub-btn_white a {
  color: #fff;
  display: block;
}
@media (max-width: 599px) {
  .w-btn {
    width: 100%;
  }
}
.title_sub-btn:hover {
  background: #3e9a4f;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.title_sub-btn:hover a {
  color: #fff;
}
.title_sub-btn_white:hover {
  background: #fff;
  color: #3e9a4f;
}
.title_sub-btn_white:hover a {
  color: #3e9a4f;
}
.section-label {
  width: 100%;
  color: #3e9a4f;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.4;
  margin-bottom: 5px;
  letter-spacing: 0;
  text-align: right !important;
}
.section-title {
  width: 100%;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  margin-bottom: clamp(20px, 5vw, 40px);
  text-align: right !important;
}

/* =============================== TOPページ：初期（透明ヘッダー） =============================== */
.top-header .header-inner {
  background: transparent;
}
.top-header .header-nav a {
  color: #fff;
  transition: color 0.4s ease;
}
.top-header .header-nav .menu-name {
  color: #fff;
  transition: color 0.4s ease;
}
.top-header .header-inner .header-logo img,
.top-header .header-inner .header-logo svg {
  height: 50px;
  width: auto;
  fill: #fff;
  stroke: #fff;
  aspect-ratio: 62/17;
}

/* =============================== TOPページ：スクロール後 =============================== */
.top-header.scrolled .header-inner {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.top-header.scrolled .header-nav a {
  color: #232323;
}
.top-header.scrolled .header-nav .menu-name {
  color: #232323;
}
.top-header.scrolled .header-inner .header-logo img,
.top-header.scrolled .header-inner .header-logo svg {
  height: 50px;
  width: auto;
  fill: #3e9a4f;
  stroke: #3e9a4f;
  aspect-ratio: 62/17;
}

/* =============================== ロゴ共通 =============================== */
.header-logo img,
.header-logo svg {
  height: 50px;
  width: auto;
  fill: #3e9a4f;
  stroke: #3e9a4f;
  aspect-ratio: 62/17;
}

.header-nav {
  width: 100%;
  padding-right: clamp(180px, 24vw, 240px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
/* ナビ */
.header-nav ul {
  display: flex;
  gap: clamp(5px, 1.5vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav a {
  font-weight: 700;
  color: #fff;
  transition: all 0.3s ease;
  display: block;
  background: none;
  text-decoration: none;
}
.header-nav .menu-name {
  font-weight: 700;
  color: #fff;
  transition: all 0.3s ease;
  display: block;
  background: none;
}
.header-nav ul li {
  font-size: clamp(16px, 1.5vw, 19px);
  background: rgba(22, 146, 67, 0);
  transition: background 0.3s ease;
  padding: 5px clamp(5px, 1vw, 10px);
  border-radius: 5px;
  position: relative;
  transition: all 0.3s ease;
}
@media (max-width: 1200px) {
  .header-nav ul {
    gap: 6px;
  }
  .header-nav a {
    font-size: 16px;
  }
  .header-nav ul li {
    padding: 5px;
  }
}
.site-header.scrolled .header-inner {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.site-header.scrolled a {
  color: #232323;
}
.site-header.scrolled .menu-name {
  color: #232323;
}
.header-nav ul li:hover {
  color: #fff;
  background: rgba(22, 146, 67, 1);
  transition: all 0.3s ease;
}
.header-nav ul li:hover .menu-name {
  color: #fff !important;
}
.header-nav ul li:hover .menu-name a {
  color: #fff !important;
}

/* ボタン */
.header-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
}
.btn-outline {
  background: linear-gradient(to right, #0a78c8, #4abbff);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
  background-size: 200% auto; /* ← グラデを横に広く用意 */
  background-position: left center; /* ← 初期位置 */
  transition: background-position 0.5s ease, box-shadow 0.3s ease,
    opacity 0.3s ease;
  position: absolute;
  top: 0;
  right: clamp(90px, 12vw, 120px);
  width: clamp(90px, 12vw, 120px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 1.8vw, 18px);
}
.btn-outline:hover {
  background-position: right center; /* ← グラデがスライド */
  box-shadow: 0 4px 12px rgba(10, 120, 200, 0.4);
}
.btn-entry {
  background: linear-gradient(to right, #2e8b30, #f8c400);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
  background-size: 200% auto; /* ← グラデを横に広く用意 */
  background-position: left center; /* ← 初期位置 */
  transition: background-position 0.5s ease, box-shadow 0.3s ease,
    opacity 0.3s ease;
  position: absolute;
  top: 0;
  right: 0;
  width: clamp(90px, 12vw, 120px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(14px, 1.8vw, 18px);
}
.btn-entry:hover {
  background-position: right center; /* ← グラデがスライド */
  box-shadow: 0 4px 12px rgba(248, 196, 0, 0.4); /* ← 光を足してリッチ感UP */
}
/* サブメニュー本体 */ /* ▼ ラッパー全体（hover検知用） */
.header-nav ul li {
  position: relative;
}
/* ▼ サブメニューラッパー（吹き出し＋メニュー本体まとめ） */
.header-nav .submenu-wrap {
  position: absolute;
  top: 100%; /* ← 親ボタンの真下 */
  left: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  z-index: 10;
  padding-top: 15px;
}
/* ▼ 吹き出しの三角部分 */
.header-nav .submenu-arrow {
  position: relative;
  top: 5px;
  left: 24px; /* ← 三角位置（中央なら50%に変更） */
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}
/* ▼ サブメニュー本体 */
.header-nav .submenu_pc {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  padding: 8px 10px;
  margin-top: 5px;
  list-style: none;
  min-width: 220px;
  display: block;
  width: max-content;
  white-space: nowrap;
}

/* ▼ サブメニュー内リンク */
.submenu_pc li {
  color: #fff !important;
  display: block;
  transition: all 0.3s ease;
  margin: 2px 0;
}
.smallmenu {
  font-size: clamp(12px, 1.2vw, 14px)!important;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  max-width: 250px;
  padding-top: 2px;
}
.submenu_pc a {
  padding: 2px 0;
  display: block;
  color: #232323 !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(14px, 1.5vw, 18px);
}
.header-nav ul li:hover .submenu_pc li {
  color: #fff !important;
  display: block;
  transition: all 0.3s ease;
  margin: 2px 0;
}
.header-nav ul li:hover .submenu_pc li .smallmenu {
  font-size: clamp(12px, 1.2vw, 14px)!important;
  font-weight: 500;
  line-height: 1.3;
  white-space: normal;
  max-width: 250px;
  padding-top: 2px;
}
.header-nav ul li:hover .submenu_pc a {
  padding: 2px 0;
  display: block;
  color: #232323 !important;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: clamp(14px, 1.5vw, 18px);
}
.header-nav ul li:hover .submenu_pc li:hover a {
  color: #fff !important;
  transition: all 0.3s ease;
}

/* ▼ hoverで全体表示 */
.header-nav ul li:hover .submenu-wrap {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ▼ スマホでは非表示 */
@media (max-width: 768px) {
  .header-nav .submenu-wrap {
    display: none;
  }
}

/* =============================== SP表示 =============================== */
@media (max-width: 1024px) {
  .header-nav {
    display: none;
  }
  .header-inner {
    justify-content: space-between;
    padding-right: 70px;
    height: 60px !important;
  }
  .header-logo img,
  .header-logo svg {
    height: 40px!important;
  }
  .btn-outline {
    width: 120px;
    right: 190px;
  }
  .btn-entry {
    width: 120px;
    right: 70px;
  }
  .btn-outline,
  .btn-entry {
    padding: 4px 10px;
  }
  .header-inner {
    padding-right: 70px;
  }
}
@media (max-width: 599px) {
  .header-inner {
    padding-right: 60px;
  }
  .btn-outline {
    width: 70px;
    right: 130px;
	  letter-spacing:0;
	  font-size:13px;
    padding: 4px 0!important;
  }
  .btn-entry {
    width: 70px;
    right: 60px;
    padding: 4px 0!important;
	  letter-spacing:0;
	  font-size:13px;
  }
}
@media (max-width: 499px) {
  .header-inner {
    gap: 5px !important;
    height: 50px !important;
    padding: clamp(3px, 1.2vw, 12px) clamp(5px, 2vw, 30px);
    padding-right: 65px;
  }
  .header-logo img {
    height: 30px !important;
  }
  .header-btns {
    gap: 5px;
  }
  .btn-entry {
    padding: clamp(8px, 1.2vw, 5px) clamp(5px, 2.5vw, 10px);
    font-size: clamp(14px, 2vw, 14px);
  }
}
.sp_menu {
  width: 60px;
  height: 60px;
  top: 0;
  right: 0;
  position: fixed;
  z-index: 999;
  display: none;
  overflow: hidden;
  transition: 0.5s;
}
@media screen and (max-width: 1024px) {
  .sp_menu {
    display: block;
  }
}
@media screen and (max-width: 599px) {
  .sp_menu {
    width: 50px;
    height: 50px;
    top: 5px;
    right: 5px;
  }
}
.sp_menu1 {
  width: 40px;
  height: 3px;
  position: absolute;
  top: 12px;
  left: 5px;
}
.sp_menu2 {
  width: 40px;
  height: 3px;
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
}
.sp_menu3 {
  width: 40px;
  height: 3px;
  position: absolute;
  bottom: 12px;
  left: 5px;
}
.sp_menu1,
.sp_menu2,
.sp_menu3 {
  transition: all 0.2s ease-out;
  -o-transition: all 0.2s ease-out; /* opera */
  -moz-transition: all 0.2s ease-out; /* firefox */
  -webkit-transition: all 0.2s ease-out; /* chrome, safari */
  -ms-transition: all 0.2s ease-out; /* ie */
  background: #00a040;
  border-radius: 3px;
}
.menuclick1 {
  width: 45px;
  top: 23px;
  left: 2.5px;
  -moz-transform: rotate(225deg);
  -webkit-transform: rotate(225deg);
  -o-transform: rotate(225deg);
  -ms-transform: rotate(225deg);
  transform: rotate(225deg);
}
.menuclick2 {
  left: 50%;
  opacity: 0;
  animation: active-menu-bar02 0.8s forwards;
}
@keyframes active-menu-bar02 {
  100% {
    height: 0;
  }
}
.menuclick3 {
  width: 45px;
  top: 23px;
  left: 2.5px;
  -moz-transform: rotate(-225deg);
  -webkit-transform: rotate(-225deg);
  -o-transform: rotate(-225deg);
  -ms-transform: rotate(-225deg);
  transform: rotate(-225deg);
}

/* ===============================   スマホメニュー =============================== */
.menuBoxGreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0); /* 完全透明 */
  z-index: 21;
  display: flex; /* 中身を中央寄せ */
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 15px !important;
  padding-top: 75px !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
}

/* メニュー本体（ここがふわっと出る） */
.menuBoxoff {
  background: #fff;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  padding: 50px; /* ✅ スクロール設定 */
  overflow-y: auto; /* ← 縦スクロールを有効化 */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; /* ← iOSの慣性スクロール対応 */
}

/* 表示時 */
.menuBoxGreen.menuBoxGreen_open {
  opacity: 1;
  pointer-events: auto;
}
.menuBoxGreen.menuBoxGreen_open .menuBoxoff {
  opacity: 1;
  visibility: visible;
}
@media screen and (max-width: 499px) {
  .menuBoxoff {
    padding: 20px;
  }
}

/* =============================== メインナビゲーション =============================== */
.menu-nav ul {
  list-style: none;
  margin: 0 0 clamp(20px, 4vw, 40px) 0;
  padding: 0;
} 
.menu-item {
  margin: 0 !important;
  padding: 0 !important;
}
.menu-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 10px 0 20px 0;
  width: 100%;
  line-height: 1;
  color: #232323;
  font-size: 24px;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  text-decoration: none;
  flex: 1;
  line-height: 1.4;
  transition: all 0.2s ease;
  border-bottom: 2px solid #eee;
}
.menu-title:hover {
  border-bottom: 2px solid #3e9a4f;
  color: #3e9a4f;
} /* ＋マーク */
.toggle-btn {
  color: #3e9a4f;
  font-size: 32px;
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 700;
  margin-left: 12px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.menu-title:hover .toggle-btn {
  color: #3e9a4f;
}
.submenu {
  list-style: none;
  margin: 0;
  padding: 4px 0 4px 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.25s ease-out, opacity 0.25s ease-out;
}
.submenu li {
  padding: 6px 0;
}
.submenu li a {
  color: #3b3b3b;
  text-decoration: none;
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 700;
  display: block;
  transition: color 0.2s ease;
}
.submenu li a span.smalls {
	font-size:100px!important;
}
.submenu li a:hover {
  color: #3e9a4f;
} 
.menu-item.open .menu-title {
  border-bottom: 2px solid #3e9a4f;
  color: #3e9a4f;
}
.menu-item.open .submenu {
  max-height: 380px;
  opacity: 1;
  padding: 4px 0 4px 16px;
  margin-top: 4px;
  margin-bottom: 0;
}
.menu-item:not(.open) .submenu {
  margin: 0 !important;
  padding: 4px 0 4px 16px;
}
.menu-item.open .toggle-btn {
  transform: rotate(45deg);
}



/* ===============================
   募集要項ボタン群
=============================== */
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-links a {
  color: #fff !important;
  font-weight: 700;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  transition: 0.25s;
  font-size: clamp(21px, 3vw, 28px);
}

.menu-links .sp_guide {
  background: linear-gradient(to right, #0a78c8, #4abbff);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
  background-size: 200% auto; /* ← グラデを横に広く用意 */
  background-position: left center; /* ← 初期位置 */
  transition: background-position 0.5s ease, box-shadow 0.3s ease,
    opacity 0.3s ease;
}

.menu-links .sp_guide:hover {
  background-position: right center; /* ← グラデがスライド */
  box-shadow: 0 4px 12px rgba(10, 120, 200, 0.4);
}

/* ENTRYボタン（グラデスライドアニメ） */
.menu-links .sp_entry {
  background: linear-gradient(to right, #2e8b30, #f8c400);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
  background-size: 200% auto; /* ← グラデを横に広く用意 */
  background-position: left center; /* ← 初期位置 */
  transition: background-position 0.5s ease, box-shadow 0.3s ease,
    opacity 0.3s ease;
}

/* ENTRY hover：グラデーションが右に流れて光る */
.menu-links .sp_entry:hover {
  background-position: right center; /* ← グラデがスライド */
  box-shadow: 0 4px 12px rgba(248, 196, 0, 0.4); /* ← 光を足してリッチ感UP */
}




/* ===============================
   ボタン
=============================== */

.btn-wrap {
  width: 100%;
  display: flex;
  margin: 0 auto;
}

/* ボタン本体 */
.btn-pill {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: clamp(7px, 1vw, 10px) clamp(10px, 2vw, 10px);
  background: var(--btn-bg);
  color: var(--btn-text);
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 700;
  transition: 0.3s;
  position: relative;
  border-radius: 100px;
  max-width: 280px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
@media screen and (max-width: 499px) {
  .btn-pill {
    max-width: 200px;
  }
}
.btn-pill:hover {
  transform: translateY(-2px);
}

/* 右丸アイコン */
.btn-pill .arrow {
  position: absolute;
  right: clamp(10px, 1.5vw, 15px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(24px, 5vw, 32px);
  height: clamp(24px, 5vw, 32px);
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SVGアイコン */
.arrow-svg {
  width: 20px;
  height: 20px;
  fill: var(--btn-icon-color);
}
@media screen and (max-width: 499px) {
.arrow-svg {
  width: 16px;
  height: 16px;
}
}

.btn-left {
  justify-content: flex-start;
}
.btn-center {
  justify-content: center;
}
.btn-right {
  justify-content: flex-end;
}

/* ======== GREEN ======== */
.btn-green {
  background: #3e9a4f;
}
.btn-green .arrow-svg {
  fill: #3e9a4f;
}
/* ======== YELLOW ======== */
.btn-yellow {
  background: #c2da6b;
}
.btn-yellow .arrow-svg {
  fill: #c2da6b;
}
/* ======== BLUE ======== */
.btn-blue {
  background: #425fab;
}
.btn-blue .arrow-svg {
  fill: #425fab;
}
/* ======== RED ======== */
.btn-red {
  background: #d33226;
}
.btn-red .arrow-svg {
  fill: #d33226;
}

/* ======== Hoverアニメーション（追加） ======== */

.btn-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-pill:hover .arrow {
  transform: translateY(-50%) translateX(5px);
}

.btn-pill .arrow,
.btn-pill .arrow-svg {
  transition: transform 0.3s ease;
}



/* ===============================
   ヒーロー
=============================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #FFF;
}

/* ===============================
   contents
=============================== */

section {
  width: 100%;
  position: relative;
}

#top {
  width: 100%;
  height: 100vh; /* ← ここが重要！ */
  overflow: hidden;
  position: relative;
  background: #FFF;
}

#top video {
  position: absolute; /* ← これで絶対に全画面に広がる */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← 全画面フィット */
}

#gallery {
  background: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 30px;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  transform-origin: center center;
}
.gallery-item {
  overflow: hidden;
  width: calc((100vw - 60px) / 3);
  height: calc((100vh - 60px) / 3);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.2;
}
@media screen and (max-width: 768px) {
  #gallery {
    gap: 20px;
  }
  .gallery-item {
    width: calc((100vw - 40px) / 3);
    height: calc((100vh - 40px) / 3);
  }
}
@media screen and (max-width: 499px) {
  #gallery {
    gap: 10px;
  }
  .gallery-item {
    width: calc((100vw - 20px) / 3);
    height: calc((100vh - 20px) / 3);
  }
}

.about-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #232323;
  text-align: center;
  opacity: 0;
}

.title_eng {
  font-size: clamp(16px, 3vw, 24px);
  line-height: 1.2;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}
.title_eng_single {
  font-size: clamp(18px, 3vw, 28px);
  text-align: left !important;
}
.title_jpn {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
}
.title_jpn_single {
  font-size: clamp(32px, 6vw, 58px);
  text-align: left !important;
}
.normal_text {
  font-size: clamp(16px, 2vw, 21px);
  line-height: 2;
  text-align: left;
}

@media screen and (max-width: 768px) {
  .title_eng_single {
    font-size: clamp(21px, 3vw, 28px);
  }
  .title_jpn_single {
    font-size: clamp(38px, 6vw, 58px);
  }
  .title_eng {
    font-size: clamp(18px, 3vw, 28px);
  }
}

.title_jpn_only {
  padding: 0 !important;
}
.title_space {
  padding-top: 80px !important;
}

@media screen and (max-width: 768px) {
  .title_space {
    padding-top: 0 !important;
  }
}

#after-gallery {
  position: relative;
  width: 65%;
  height: auto;
  min-height: 100vh;
  padding: clamp(40px, 10vw, 100px) clamp(20px, 6vw, 50px);
  overflow: hidden;
  z-index: 2;
}
@media screen and (max-width: 768px) {
  #after-gallery {
    width: 100%;
	  padding-left:0;
	  padding-right:0;
  }
}
.left-box {
  width: 100%;
  color: #333;
  position: relative;
  z-index: 1;
  text-align: center;
}
.right-box {
  position: fixed;
  top: 50%;
  right: -40%;
  transform: translateY(-50%);
  width: 35%;
  height: 100vh;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  pointer-events: none;
  z-index: 3 !important;
}
.right-box img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
@media screen and (max-width: 768px) {
  .right-box {
    width: 100%;
    height: auto;
	  aspect-ratio:16/6;
    top: 60px; /* ← ヘッダー分下げる！ */
    right: -100%; /* 初期位置は画面外 */
    transform: none;
  }
	.ceo-image {
    width: 100%;
    height: auto;
		padding-bottom:clamp(20px, 4vw, 40px);
	}
}
#right-reset-trigger {
  height: 1px;
}

/* -------------------------------
   1〜3枚の縦並び画像
--------------------------------- */
.vertical-wrapper {
  width: 100%;
  height: auto;
  padding: 0;
  position: relative;
  z-index: 9;
  background: #fff;
  padding-top: 100px;
	margin-top:-1px;
}

.v-img {
  width: 50vw;
  aspect-ratio: 10/7;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .v-img {
    width: 70vw;
  }
}

.v-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  overflow: hidden;
}

.image-spacer {
  height: 5px;
}

/* -------------------------------
   4枚目の拡大エリア
--------------------------------- */
.scene {
  height: 100vh;
  position: relative;
  z-index: 9;
  overflow: hidden;
  background: #fff;
}
@media (max-width: 768px) {
.scene {
	margin-top:10px;
	}
}

.expand-img {
  position: absolute;
  top: 0%;
  left: 50%;
  transform: translateX(-50%);
  width: 50vw;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 12px;
  z-index: 10;
  width: 100%;
  height: 100vh;
}

.expand-img img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.pause-content {
  width: calc(100% - 10%);
  position: relative;
  z-index: 11;
  position: absolute;
  top: 100px;
  left: 5%;
}
@media (max-width: 768px) {
  .pause-content {
    width: calc(100% - 6%);
    top: 80px;
    left: 3%;
  }
}

.mask_flex {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
	gap:0!important;
}
.mask_flex_c {
	width:680px;
	margin: 0 auto;
}


.mask-wrap {
  position: relative;
  display: inline-block;
  overflow: hidden;
}
.mask-wrap-m10 {
	margin-top:-10px;
}

.mask-wrap .mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
}
.shadow-S {
  padding: 0 10px;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6), 0 0 8px rgba(0, 0, 0, 0.3);
}

.shadow-L {
  padding: 6px 10px;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.3);
}

/* -------------------------------
   横スクロールパネル
--------------------------------- */
.panels-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  height: 100%;
  z-index: 20;
  opacity: 0; /* 最初は非表示 */
}

.panel {
  flex: 0 0 100vw;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: bold;
  border-radius: 20px;
  transform: scale(0.9, 0.85);
  overflow: hidden;
  margin-top: 30px;
  position: relative;
  z-index: 9;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.panel-image {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  width: 30%;
  height: 100%;
  background: #ccc;
  z-index: 1;
}

.panel-image img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.panel-inner {
  position: absolute;
  top: 0%;
  left: 30%;
  width: 70%;
  height: 100%;
  padding: 50px;
  z-index: 3;
}

@media (max-width: 768px) {
  .panel-image {
    top: 0%;
    left: 0%;
    transform: none;
    width: 100%;
    height: 25%;
    background: #ccc;
    z-index: 1;
  }
  .panel-inner {
    position: absolute;
    top: 25%;
    left: 0%;
    width: 100%;
    height: 70%;
    padding: 50px 30px;
    z-index: 3;
  }
}
@media (max-width: 499px) {
  .panel-image {
    height: 20%;
  }
  .panel-inner {
    padding: 30px 15px;
    top: 20%;
  }
}
.panel1 {
  opacity: 0;
}

.p2 {
  background: transparent !important;
  box-shadow: none;
  padding: 0px !important;
  transform: scale(1, 1);
}

.end-spacer {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.panel .jp {
  font-size: clamp(16px, 3vw, 32px);
  line-height: 1;
  padding-bottom: 5px;
  display: inline-block;
}
.panel .en {
  font-size: clamp(30px, 5vw, 60px);
  line-height: 1;
  display: inline-block;
  padding-bottom: 10px;
}

/* ===============================
   service
=============================== */
.tsukasa-layout {
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  max-width: 980px;
  margin: 0 auto;
}

.center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  max-width: 450px;
}

/* ボタン共通 */
.service-box {
  position: absolute;
  background: #fff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #232323;
  text-align: left;
  width: auto;
  max-width: none;
  white-space: nowrap;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  transition: transform 0.3s ease;
	width:auto;
}
.service-box .jp {
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1;
  padding-bottom: 10px;
  display: inline-block;
}

.service-box .en {
  font-size: clamp(21px, 3vw, 32px);
  line-height: 1;
  display: inline-block;
}
.tag2 {
  font-size: clamp(13px, 3vw, 24px);
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  color: #fff;
  margin-top: 5px;
  text-align: left;
}

/* — 各ボックスの“手作業っぽい” 位置 — */

/* 左上（画像の位置に寄せた） */
.box-sol {
  top: 50%;
  left: 50%;
  transform: translateX(calc(-100% - 12vw)) translateY(calc(-100% - 1vh));
}

/* 右上（少し上げて右寄せ） */
.box-tech {
  top: 50%;
  left: 50%;
  transform: translateX(calc(0% + 6vw)) translateY(calc(-100% - 10vh));
}

/* 左下（ロゴの下に自然に見える位置） */
.box-intl {
  top: 50%;
  left: 50%;
  transform: translateX(calc(-100% - 6vw)) translateY(calc(0% + 8vh));
}

/* 右下（少し内側に寄せてバランス調整） */
.box-manu {
  top: 50%;
  left: 50%;
  transform: translateX(calc(0% + 12vw)) translateY(calc(0% + 2vh));
}

@media (hover: hover) {
.box-sol:hover {
  transform: translateX(calc(-100% - 12vw)) translateY(calc(-100% - 1vh)) scale(1.05);
}
.box-tech:hover {
  transform: translateX(calc(0% + 6vw)) translateY(calc(-100% - 10vh)) scale(1.05);
}
.box-intl:hover {
  transform: translateX(calc(-100% - 6vw)) translateY(calc(0% + 8vh)) scale(1.05);
}
.box-manu:hover {
  transform: translateX(calc(0% + 12vw)) translateY(calc(0% + 2vh)) scale(1.05);
}
}


/* タグ帯の色 */
.tag {
  display: inline-block;
  padding: 5px 12px; /* ボタン感を出す */
  border-radius: 6px;
  font-size: 13px;
  color: #fff;
  margin-top: 10px;
}

.yellow {
  background: #c2da6b;
}
.green {
  background: #3e9a4f;
}
.red {
  background: #d33226;
}
.blue {
  background: #425fab;
}

/* —— スマホは縦並び —— */
@media (max-width: 768px) {
  .tsukasa-layout {
    padding: 20px;
  }
  .center-logo {
    z-index: 10;
    width: 60%;
  }

  /* 各ボックス（50%で左右配置） */
  .service-box {
    position: absolute;
    width: 40%;
    max-width: none;
    padding: 10px 12px;
    white-space: normal; /* 日本語は折返しOK */
    z-index: 20;
  }

  .service-box .jp {
    font-size: clamp(13px, 2.5vw, 16px);
  }
  .service-box .en {
    font-size: clamp(21px, 3vw, 32px);
  }

  .tag {
    font-size: 11px;
    margin-top: 5px;
  }
	
.box-sol {
  top: 50%;
  left: 50%;
  transform: translateX(calc(-100% - 4vw)) translateY(calc(-100% - 8vh));
}

/* 右上（少し上げて右寄せ） */
.box-tech {
  top: 50%;
  left: 50%;
  transform: translateX(calc(0% + 4vw)) translateY(calc(-100% - 15vh));
}

/* 左下（ロゴの下に自然に見える位置） */
.box-intl {
  top: 50%;
  left: 50%;
  transform: translateX(calc(-100% - 4vw)) translateY(calc(0% + 15vh));
}

/* 右下（少し内側に寄せてバランス調整） */
.box-manu {
  top: 50%;
  left: 50%;
  transform: translateX(calc(0% + 4vw)) translateY(calc(0% + 8vh));
}
	
@media (hover: hover) {
.box-sol:hover {
  transform: translateX(calc(-100% - 4vw)) translateY(calc(-100% - 8vh)) scale(1.05);
}
.box-tech:hover {
  transform: translateX(calc(0% + 4vw)) translateY(calc(-100% - 15vh)) scale(1.05);
}
.box-intl:hover {
  transform: translateX(calc(-100% - 4vw)) translateY(calc(0% + 15vh)) scale(1.05);
}
.box-manu:hover {
  transform: translateX(calc(0% + 4vw)) translateY(calc(0% + 8vh)) scale(1.05);
}
}
}

@media (max-width: 499px) {
  .tsukasa-layout {
    padding: 0;
  }
  .center-logo {
    width: 80%;
  }
  .service-box {
    width: 45%;
  }
  .service-box .en {
    font-size: clamp(18px, 2.5vw, 32px);
  }
}

/* -------------------------------
   STORY
--------------------------------- */
.story-block {
  position: relative;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #fff;
  z-index: 12;
}
.story-content {
  position: relative;
  width: 100%;
  padding-bottom: 40px;
}
.story-content:last-child {
  padding-bottom: 0px;
}

.story-bg {
  width: 100%;
  display: block;
  object-fit: cover;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 6;
	border-radius:9px;
}

.story-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 1;
}
.story-bg .img_black {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  mix-blend-mode: multiply;
  z-index: 2;
  pointer-events: none;
}

.story-content:hover .story-bg img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* ▼ 左下 白テキスト */
.story-text {
  position: absolute;
  bottom: 20px;
  left: 0;
  color: #fff;
  z-index: 12;
  width: 100%;
}

.story-num {
  font-size: clamp(42px, 7vw, 62px);
  font-weight: 700;
  line-height: 1;
}
.single-num {
  font-size: clamp(42px, 7vw, 62px);
  font-weight: 700;
  line-height: 1;
	position:absolute;
	left:0;
	bottom:0;
	z-index:3;
	color:#FFF;
}

.story-lead {
  font-size: clamp(21px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  padding-bottom: 10px;
}
@media (max-width: 499px) {
.story-lead {
  font-size: clamp(20px, 3vw, 30px);
  padding-bottom: 5px;
}
}

/* ▼ 本文（背景の下にある白地部分） */
.story-flex {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  position: relative;
}
.story-flex2 {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  position: relative;
}
.story-desc {
  width: calc(100% - 300px);
	line-height:1.6;
}

.story-profile {
  padding: 10px;
  border: 1px solid #3e9a4f;
  width: 260px;
  font-weight: 500;
}

.profile-dept {
  color: #3e9a4f;
  font-weight: 500;
  line-height: 1.4;
  font-size: clamp(13px, 2.5vw, 16px);
}

.profile-name {
  font-size: clamp(16px, 3vw, 20px);
  font-weight: 700;
  line-height: 1.4;
}

.profile-comment {
  font-size: clamp(10px, 1.2vw, 12px);
  line-height: 1.4;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .story-content {
    margin-bottom: 20px;
  }
  .story-bg {
  aspect-ratio: 16 / 7;
  }
   .story-flex {
    flex-direction: column;
    align-items: flex-end;
  }
  .story-desc {
    width: 100%;
  }
  .story-profile {
    width: 60%;
    max-width: 250px;
    padding: 7px;
    margin-top: 10px;
    margin-left: auto;
  }
}
@media (max-width: 499px) {
  .story-bg {
  aspect-ratio: 16 / 11;
  }
}

.story-content:last-child {
  margin-bottom: 0;
}



.story-single-block {
    margin-bottom: 60px;
}
.story-single-block:last-child,
.story-single-block:nth-last-child(2){
    margin-bottom: 20px;
}
.story-single-image {
margin-bottom:20px;
  width: 100%;
  display: block;
  object-fit: cover;
	border-radius:9px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 8;
}

.story-single-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 1;
}

.story-single-title {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    margin: 20px 0 10px;
}
.single-pb {
	width:100%;
	padding-bottom:10px;
	margin-bottom:20px;
	border-bottom:3px solid #3e9a4f;
}

.story-single-content {
    font-size: 16px;
    line-height: 1.8;
    margin-top: 10px;
}



/* ===============================
   FOOTER
=============================== */

/* =========================================
   Instagram Background Section
========================================= */

.join_team {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #ffffff;
  z-index: 13;
}

.join_team__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.join_team__bg {
  width: 100%;
  height: 100%;
  position: relative;
}

/* 白オーバーレイ */
.join_team__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.77);
  pointer-events: none;
}

/* PCサイズ */
.join_team__bg img {
  width: 24.25vw;
  max-width: none;
  height: auto;
}

.join_team__bg figure {
  position: absolute;
  transform: rotate(-15deg);
  top: -32vw;
}

.join_team__bg figure:nth-child(1) {
  left: -10vw;
}
.join_team__bg figure:nth-child(2) {
  left: 16vw;
}
.join_team__bg figure:nth-child(3) {
  left: 42vw;
}
.join_team__bg figure:nth-child(4) {
  left: 68vw;
}
.join_team__bg figure:nth-child(5) {
  left: 94vw;
}

/* ================================
   SP（〜1023px）
================================ */
@media (max-width: 768px) {
  .join_team {
    height: 400px; /* SP */
  }

  .join_team__bg img {
    width: 50vw;
  }

  .join_team__bg figure {
    top: -72vw; /* -120vw → 0.6倍 */
  }

  .join_team__bg figure:nth-child(1) {
    left: -100vw;
  } /* -167 → -100 */
  .join_team__bg figure:nth-child(2) {
    left: -46vw;
  } /* -76 → -46 */
  .join_team__bg figure:nth-child(3) {
    left: 8vw;
  } /* 14 → 8 */
  .join_team__bg figure:nth-child(4) {
    left: 63vw;
  } /* 105 → 63 */
  .join_team__bg figure:nth-child(5) {
    left: 118vw;
  } /* 196 → 118 */
}

.join_contents {
  width: 100%;
  height: 100%;
  text-align: center;
  color: #232323;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.join_title {
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 900;
  color: #28a14a;
  letter-spacing: 0.02em;
  line-height: 1;
}

.join_lead {
  font-size: clamp(13px, 2.5vw, 22px);
  line-height: 1.5;
  font-weight: 500;
}

.join_btns {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.join_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  width: clamp(280px, 28vw, 380px);
  padding: clamp(20px, 2vw, 280px);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.btn_blue {
  background: linear-gradient(to right, #0a78c8, #4abbff);
  letter-spacing: 0.05em;
  background-size: 200% auto;
  background-position: left center;
  transition: all 0.3s ease;
}

.btn_green {
  background: linear-gradient(to right, #2e8b30, #f8c400);
  letter-spacing: 0.05em;
  background-size: 200% auto;
  background-position: left center;
  transition: all 0.3s ease;
}

.btn_blue:hover {
  background-position: right center;
  box-shadow: 0 4px 12px rgba(10, 120, 200, 0.4);
  transform: translateY(-5px);
}
.btn_green:hover {
  background-position: right center;
  box-shadow: 0 4px 12px rgba(248, 196, 0, 0.4);
  transform: translateY(-5px);
}

@media (max-width: 768px) {
  .join_contents {
    gap: 10px;
  }
  .join_btns {
    flex-direction: column;
    gap: 15px;
  }
  .join_btn {
    padding: 20px;
    border-radius: 9px;
  }
}

.footer-inner {
  width: 100%;
  margin: 0 auto;
  padding: clamp(6px, 1.2vw, 12px) clamp(10px, 2vw, 30px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  min-height: 60px !important;
  position: relative;
  z-index: 99;
	background:#FFF;
}

.footer-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
	background:#FFF;
}
/* ナビ */
.footer-nav ul {
  display: flex;
  gap: clamp(5px, 1.5vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-nav a {
  transition: all 0.3s ease;
  display: block;
  background: none;
  font-weight: 500;
  color: #232323;
}
.footer-nav .menu-name {
  font-weight: 500;
  color: #232323;
  transition: all 0.3s ease;
  display: block;
  background: none;
}
.footer-nav ul li {
  font-size: clamp(10px, 1.5vw, 15px);
  transition: background 0.3s ease;
  padding: 5px clamp(5px, 1vw, 10px);
  border-radius: 5px;
  position: relative;
  transition: all 0.3s ease;
}

.footer-nav ul li:hover {
  color: #fff !important;
  background: rgba(22, 146, 67, 1);
  transition: all 0.3s ease;
}
.footer-nav ul li:hover a {
  color: #fff !important;
  transition: all 0.3s ease;
}
.footer-nav ul li:hover .menu-name {
  color: #fff !important;
}

@media (max-width: 1200px) {
  .footer-nav ul {
    gap: 6px;
  }
  .footer-nav ul li {
    padding: 5px;
  }
}

/* ===============================
   about
=============================== */

/* =========================
   HERO
========================= */
.single_hero {
  position: fixed;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 10;
}

.single_hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.single_hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.95); /* 画像を少し暗く */
}

.hero-white {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 4;
  pointer-events: none;
}

.single_hero-inner {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  color: #fff;
  z-index: 5;
}

/* =========================
   SCROLL SECTION
========================= */

.scroll-section {
  position: relative;
  display: flex;
  margin-top: 100vh!important;
  z-index: 21;
  background: #fff;
}
.scroll-section3 {
  min-height: 300vh;
}

.scroll-section.scroll1 {
  min-height: auto !important;
}

.image-panel {
  position: relative;
  width: 35%;
  height: 100vh;
  overflow: hidden;
}
@media (max-width: 768px) {
  .scroll-section.scroll1 {
    margin-top: 0;
  }
  .scroll-section3 {
    min-height: auto !important;
  }
  .scroll-section {
    flex-direction: column;
  }
  .image-panel {
    width: 100%;
    height: 25vh;
    position: sticky;
    top: 60px;
  }
}

.image-item {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.image-item.is-active {
  opacity: 1;
}

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

.ceo-name {
	position:absolute;
	bottom:15px;
	left:15px;
	text-align:left;
	margin:0 auto;
	color:#FFF;
	font-weight:700;
	font-size: clamp(10px, 1.4vw, 14px);
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6), 1px 1px 6px rgba(0, 0, 0, 0.3);
}
.ceo-name span {
	font-size: clamp(16px, 1.8vw, 18px);
}
.text-panel {
  width: 65%;
  height: auto;
}
@media (max-width: 768px) {
  .text-panel {
    width: 100%;
    height: auto;
  }
.ceo-name {
	bottom:auto;
	left:55%;
	top:50%;
	transform: translateY(-50%);
	line-height:1.3;
	font-size: clamp(14px, 1.8vw, 18px);
	padding-top:10px;
	}
.ceo-name span {
	font-size: clamp(21px, 2.5vw, 24px);
	line-height:10px;
	padding-top:20px;
	line-height:2;
}
}

.text-block {
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  margin: 0;
}
.text-block1 {
  padding-top: 20vh;
  padding-bottom: 20vh;
}
@media (max-width: 768px) {
  .text-block {
    min-height: auto !important;
    padding: 10vw 5vw 20vw 5vw;
  }
}
@media (max-width: 499px) {
  .text-block {
    padding: 10vw 5vw 20vw 5vw;
  }
}

.single-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700 !important;
  line-height: 1.4;
}
.single-title2 {
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 700 !important;
  line-height: 1.4;
}

@media (max-width: 499px) {
  .title_jpn_only span {
    font-size: clamp(27px, 3vw, 32px);
  }
}

/* ===========================
   CONTENT SECTION
=========================== */

.content-section {
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 21;
  background: #e6f6f1;
}

.content-row {
  display: flex;
  align-items: stretch;
  margin-bottom: clamp(50px, 15vw, 150px);
}
.content-row2 {
  display: flex;
  align-items: stretch;
  margin-bottom: clamp(30px, 4vw, 40px);
  padding-left: 5vw;
  padding-right: 5vw;
	position:relative;
}
.content-row2-c {
  align-items: center;
}
.content-row:last-child {
  margin-bottom: 0;
}


.content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
	position:relative;
}

.text-col {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  flex: 0 0 60%;
  padding: 0 5vw;
}
.image-col {
  min-height: 450px;
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
	overflow:hidden;
}
.image-col img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ← フィットしつつ中央寄せ */
  transform: translate(-50%, -50%);
  overflow: hidden;
}
.image-col-link img {
  transition: transform 0.3s ease;
}

.content-row2:hover .image-col-link img {
  transform: translate(-50%, -50%) scale(1.08);
}

.image-col2 {
  flex: 0 0 40%;
  position: relative;
  overflow: hidden;
}
.image-col2 img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.content-row2 .image-col {
  min-height: 320px;
}
.content-row2 .image-col img {
  border-radius: 10px;
}

.content-row:nth-child(odd) .image-col img {
  border-radius: 0 10px 10px 0
}

.content-row:nth-child(even) .image-col img {
  border-radius: 10px 0 0 10px;
}

@media (max-width: 980px) {
  .text-col {
    flex: 0 0 50% !important;
  }
  .image-col,
  .image-col2 {
    flex: 0 0 50% !important;
  }
}
@media (max-width: 768px) {
  .text-col {
    min-height: auto;
    flex: 100% !important;
    padding: 10vw 5vw 20vw 5vw;
  }
  .content-row2 .text-col {
    flex: 100% !important;
    padding: 5vw 0 7vw 0;
  }
  .image-col {
    min-height: 25vh;
    flex: 100% !important;
	  border-radius:0!important;
  }
  .image-col2 {
    flex: 100% !important;
  }
  .content-row2 .image-col {
    min-height: 23vh;
    flex: 100% !important;
  }
  .image-col img {
    border-radius: 0px !important;
  }
  .content-row {
    margin-bottom: 0;
  }
  .content-row2 {
    margin-bottom: 0;
  }
	.gap0 {
		gap:0;
	}
}


.content-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.content-title.green {
  color: #3e9a4f;
}

.content-text {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.8;
  color: #333;
}

/* ====== SP ====== */
@media (max-width: 768px) {
  .content-row {
    flex-direction: column;
  }
  .content-row2 {
    flex-direction: column;
  }
  .content-row.reverse {
    flex-direction: column;
  }
}

/***************************************************/
ENVIRONMENT
/***************************************************/
.pad_contentB {
  position: relative;
}
.content_top_image_box {
  width: 100%;
  height: 400px;
  position: relative;
}
.content_top_image_box {
  width: 100%;
  height: 400px;
  position: relative;
}
.content_top_image_box {
  width: 100%;
  height: 400px;
  position: relative;
}
.content_top_image_box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media only screen and (max-width: 1024px) {
  .content_top_image_box {
    height: 300px;
  }
}
@media only screen and (max-width: 800px) {
  .content_top_image_box {
    height: 260px;
  }
}
@media only screen and (max-width: 599px) {
  .content_top_image_box {
    height: 260px;
  }
}

.job-info-wrapper {
  width: 100%;
  display: flex;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.side-nav {
  position: sticky;
  top: 100px;
  width: 300px;
  border-radius: 8px;
  align-self: flex-start;
  flex-shrink: 0;
}

.side-nav-select-wrap {
  display: none;
}

.job-detail-content {
  flex: 1;
  width: 100%;
}

@media only screen and (max-width: 1280px) {
  .side-nav {
    width: 250px;
  }
  .job-info-wrapper {
    gap: 30px;
  }
}
@media only screen and (max-width: 980px) {
  .side-nav {
    width: 180px;
  }
}
@media only screen and (max-width: 768px) {
  .job-info-wrapper {
    flex-direction: column;
  gap: 0px;
  }
  .side-nav-select-wrap {
    display: block;
    background: none !important;
    z-index: 19;
  }
}

@media only screen and (max-width: 768px) {
.side-nav-select-wrap {
    width: 100%;
	padding-top:20px;
	height:70px;
}
  .side-nav-select-wrap.is-fixed {
    position: fixed;
    top: 50px;
    left: 20px;
    width: calc(100% - 40px);
  }

  .side-nav {
    display: none;
  }
	.job-detail-content {
		padding-top:20px;
	}
}

.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav li {
  border: 2px solid #3e9a4f;
  color: #3e9a4f;
  background-color: #fff;
  border-radius: 6px;
  line-height: 1.2;
  margin-bottom: 15px;
  font-size: clamp(18px, 2vw, 21px);
	color:#3e9a4f;
	font-weight:700;
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}

.side-nav li a {
  padding: 15px 20px;
  text-decoration: none;
  display: block;
	color:#3e9a4f;
  transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease;
}
.side-nav li:hover {
  background: #3e9a4f;
}
.side-nav li:hover a {
  color: #fff;
}
.side-nav li a.active {
  color: #fff;
  background: #3e9a4f;
  padding: 15px 20px;
  display: block;
}

.side-nav a.active {
  color: #009154;       /* 好きな色 */
  font-weight: 700;
  border-left: 3px solid #009154;
  padding-left: 10px;
}



#section-nav-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: none;
  border: none;
  padding: 10px 40px 10px 15px;
  font-size: 16px;
  font-weight: 700;
  color: #3e9a4f;
  border: 2px solid #3e9a4f;
  border-radius: 6px;
  background-color: #FFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  width: 100%;
  outline: none;
  font-size: clamp(18px, 2vw, 21px);
}
  #section-nav-select.is-fixed {
    position: fixed;
    top: 70px;
    left: 20px;
    width: calc(100% - 40px);
    z-index: 100;
  }
@media only screen and (max-width: 599px) {
	#section-nav-select {
	}
}


#solution,
#tech,
#engineer,
#global,
#recruit {
  flex: 1;
  width: auto;
  background: #fff;
  border-radius: 9px;
  margin-bottom: 30px;
  padding: clamp(10px, 2vw, 20px);
	border:2px solid #3e9a4f;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
    flex-direction: column;
}
.work-name {
	width:100%;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
	padding-bottom:clamp(7px, 1vw, 10px);
	border-bottom:2px solid #3e9a4f;
}
.work-name-jp {
	width:100%;
  font-size: clamp(21px, 2.8vw, 28px);
	color:#3e9a4f;
	font-weight:700;
	line-height:1.2;
}
.work-name-en {
	width:100%;
  font-size: clamp(18px, 2.1vw, 21px);
	color:#3e9a4f;
  font-weight: 600;
	line-height:1.2;
}


.work_photo {
  width: 100%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover !important;
  padding: 0;
  border-radius: 9px;
  aspect-ratio: 16 / 6;
	overflow:hidden;
	margin-top:10px;
}
.work_photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  overflow: hidden;
}
@media only screen and (max-width: 599px) {
  .work_photo {
    aspect-ratio: 16 / 8;
  }
  #time,
  #holiday,
  #system,
  #education,
  #benefit {
    margin-bottom: 30px;
    padding: 10px;
  }
}


.job-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}
.job-detail-wrap p {
	line-height:1.6!important;
}

.job-block,
.job-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
	padding:5px 0;
}

.job-label {
  color: #3e9a4f;
  flex: 0 0 150px;
  font-size: clamp(16px, 2vw, 19px);
  white-space: nowrap;
	font-weight:700;
	line-height:1.6!important;
	padding-top:5px;
}

.job-value {
  color: #232323;
  flex: 1;
  font-size: clamp(16px, 2vw, 19px);
  display: flex;
  flex-direction: column;
  gap: 10px;
	padding-top:5px;
}


@media (max-width: 768px) {
.job-detail-wrap {
  margin-top: 20px;
    gap: 5px;
}

.job-block,
  .job-row {
    flex-direction: column;
    gap: 0px;
  }
  .job-label {
    flex: none;
  }
}


/* ▼ B グループだけナンバリング */
.job-block-b .job-value {
    counter-reset: alpha;
}

/* job-item を flex化して疑似要素を出す */
.job-block-b .job-item {
    counter-increment: alpha;
    display: flex;
    align-items: flex-start;
    position: relative;
}

/* 疑似要素で (A)(B)(C) を付ける */
.job-block-b .job-item::before {
    content: "(" counter(alpha, upper-alpha) ")";
    flex-shrink: 0;
    margin-right: 10px;
	line-height:1.6!important;
}



/* ===============================
   entry
=============================== */
.contact_form {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 10px 0;
}
.formA {
  box-sizing: border-box;
  width: 200px;
  flex-basis: 200px;
  font-size: 16px !important;
  line-height: 1.5;
  padding-top: 10px;
}
.formB {
  box-sizing: border-box;
  width: calc(100% - 200px);
  flex-basis: calc(100% - 200px);
}
@media screen and (max-width: 599px) {
  .formA {
    width: 100%;
    flex-basis: 100%;
    margin-bottom: 5px;
    font-size: 16px;
  }
  .formB {
    width: 100%;
    flex-basis: 100%;
  }
}
.haveto,
.any {
  box-sizing: border-box;
  font-size: 12px;
  padding: 1px 5px 3px 5px;
  color: #fff;
  border-radius: 2px;
  margin-left: 5px;
  position: relative;
  font-weight: 400;
}
.haveto {
  background: #aa3333;
}

.multistep_display {
  width: 100%;
  height: auto !important;
  line-height: 1.2;
  padding: 10px;
  font-weight: 500;
  color: #232323;
  font-weight: 500;
  border: none;
  border: 1px solid #ccc;
  font-size: 16px;
  border-radius: 5px;
	min-height:45px;
}


.wpcf7 input[name="your_nenshu"],
.wpcf7 input[name="your_name"],
.wpcf7 input[name="your_furi"],
.wpcf7 input[name="your_year"],
.wpcf7 input[name="your_address"],
.wpcf7 input[name="your_email"],
.wpcf7 input[name="your_email-confirm"],
.wpcf7 input[name="your_tel"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: auto !important;
  line-height: 1.2;
  padding: 10px;
  font-weight: 500;
  color: #232323;
  font-weight: 500;
  border: none;
  border: 1px solid #ccc;
  font-size: 16px;
  border-radius: 5px;
}
input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  padding: 10px;
}

input[type="date"]::-webkit-date-and-time-value {
  color: #232323;
  padding: 10px;
  font-size: 16px;
}

.wpcf7 textarea[name="your_gakureki"],
.wpcf7 textarea[name="your_shikaku"],
.wpcf7 textarea[name="your_shokureki"],
.wpcf7 textarea[name="your_appeal"],
.wpcf7 textarea[name="your_question"] {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100% !important;
  height: 120px !important;
  padding: 10px;
  font-weight: 500;
  border: none;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  box-sizing: border-box;
  background: #fff;
  border-radius: 0;
}

.your_job {
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
  width: 100%;
  height: 45px !important;
  line-height: 45px;
  font-weight: 500;
  color: #232323;
  padding: 0 10px;
  font-weight: 500;
  border: none;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px !important;
  background: #ffffff;
  font-weight: 500;
}
.wpcf7 select[name="your_cat"] {
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
  width: 100%;
  height: 45px !important;
  line-height: 45px;
  font-weight: 500;
  color: #232323;
  padding: 0 10px;
  font-weight: 500;
  border: none;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px !important;
  background: #ffffff;
  background-image: url(img/icon_arrow.svg);
  background-repeat: no-repeat;
  background-size: 18px 15px;
  background-position: right 10px center;
  font-weight: 500;
}
.line16 {
  line-height: 1.6;
}

.wpcf7-form-control.wpcf7-checkbox {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
span.wpcf7-list-item {
  position: relative;
  margin: 0 50px 0 0 !important;
  min-width: 180px;
}
.wpcf7-list-item-label {
  color: #232323;
  cursor: pointer;
  font-size: 16px;
  position: relative;
}
input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}
.wpcf7-list-item-label:before {
  position: relative;
  content: "";
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 2px;
  display: inline-block;
  width: 20px;
  height: 20px;
  position: relative;
  top: -3px;
  margin-right: 10px;
  vertical-align: middle;
  cursor: pointer;
  text-align: left;
}
input[type="checkbox"]:checked + .wpcf7-list-item-label:after {
  /*チェックアイコン*/
  content: "";
  display: block;
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  background: url(img/check.svg) no-repeat center;
  background-size: contain;
}
input[type="checkbox"]:checked + .wpcf7-list-item-label::before {
  background-color: #fff;
}


/* ====== CF7 submit ボタンのデザイン ====== */
.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
	max-width:400px;
  height: 60px;
  font-size: 21px;
  font-weight: 700;
  border-radius: 30px;
  color: #fff;
  background: #3e9a4f;
  border: 2px solid #3e9a4f;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
@media screen and (max-width: 599px) {
	.wpcf7-submit {
		max-width:300px;
		max-width:300px;
		height: 55px;
		font-size: 21px;
	}
}

.wpcf7-submit:hover {
  background: #00ab62;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.wpcf7-submit:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ====== Multi-Step 戻るボタン ====== */
.wpcf7-previous {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
	max-width:400px;
  height: 60px;
  font-size: 21px;
  font-weight: 700;
  border-radius: 30px;
  color: #3e9a4f;
  background: #ffffff;
  border: 2px solid #3e9a4f;
  cursor: pointer;
  transition: 0.3s ease;
  box-sizing: border-box;
}

.wpcf7-previous:hover {
  background: #3e9a4f;          /* hoverで反転 */
  color: #ffffff;
  transform: translateY(-2px);
}
@media screen and (max-width: 599px) {
	.wpcf7-previous {
		max-width:300px;
		height: 55px;
		font-size: 21px;
		margin-top:10px;
	}
}



/* ===============================
   single
=============================== */

.story-hero {
  width: 100%;
  display: block;
  object-fit: cover;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 6;
}
@media (max-width: 768px) {
  .story-hero {
  aspect-ratio: 16 / 7;
  }
}
@media (max-width: 499px) {
  .story-hero {
  aspect-ratio: 16 / 11;
  }
}
.story-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 1;
}
.story-text-single {
	max-width:1440px;
	border:5px solid #FFF;
	margin:0 auto;
}



.story-hero .story-lead {
  margin-top: 5px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.4;
  padding-bottom: 10px;
}
@media (max-width: 499px) {
.story-hero .story-lead {
  font-size: clamp(20px, 3vw, 30px);
	}
}





/* ===============================
   content-block
=============================== */
.two-blocks {
  display: flex;
  flex-wrap: wrap; 
  gap: 40px;
  padding: 40px 5%;
}

/* ★ flex-child として扱うため、width 指定はしない */
.block-item {
  flex: 0 0 calc(50% - 20px);
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
}

/* 背景画像：ズーム用 transform */
.block-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  transition: transform .3s ease;
  transform: scale(1);
  z-index: 1;
}

.block-item:hover::before {
  transform: scale(1.08);
}

/* 黒幕＋タイトル */
.block-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
    flex-direction: column;
  transition: background .3s ease;
}
.block-inner-inner {
	margin:0 auto;
	text-align:left;
  color: #fff;
}

.block-item:hover .block-inner {
  background: rgba(0,0,0,0.2);
}
.block-inner .en {
  font-size: clamp(24px, 4vw, 38px);
	padding:0!important;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.3);
	margin-top:3px;
	line-height:1.1;
}
.block-inner h2 {
  color: #fff;
  font-size: clamp(21px, 3vw, 28px);
  text-align: left;
  font-weight: 700;
  padding: 0;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.3);
}
.block-inner h2.jp {
  color: #fff;
  font-size: clamp(16px, 3vw, 24px);
  text-align: left;
  font-weight: 700;
  padding: 0;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.3);
}
.block-small {
  color: #fff;
  font-size: clamp(14px, 1.6vw, 18px);
  font-weight: 700;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 0, 0, 0.3);
	padding-top:5px;
}

@media (max-width: 768px) {
  .two-blocks {
    flex-direction: column;
  gap: 20px;
  }
.block-inner h2 {
  font-size: clamp(28px, 4vw, 38px);
}

  .block-item {
    width: 90%;
	  margin:0 5%;
    flex: none;         /* ← これが最重要！縦並びで高さが消えるのを防ぐ */
    aspect-ratio: 16/8; /* ← 念のため明示しておくと完璧 */
  }
.block-item:hover::before {
  transform: scale(1.05);
}
}
@media (max-width: 599px) {
.block-inner h2 {
  font-size: clamp(21px, 3vw, 32px);
}
}



/* ===============================
   basic
=============================== */
.line14 {
  line-height: 1.4 !important;
}
.kaigyo {
  display: inline-block;
  line-height: 1.4 !important;
  text-align: left !important;
}
.kaigyo2 {
  width: auto;
  display: inline-block;
  margin: 0 auto;
  line-height: 1.4 !important;
  text-align: center !important;
}
.kaigyo span,
.kaigyo2 span {
  display: inline-block;
  white-space: nowrap;
}
.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 768px) {
  .reverse {
    flex-direction: column;
  }
}
.text_center {
  text-align: center !important;
}
.text_left {
  text-align: left !important;
}
.index9 {
  z-index: 9;
}
.opa06 {
  opacity: 0.6;
}

.white_inner {
  background: #fff;
  width: 100%;
  position: relative;
  z-index: 2;
}

.bg_white {
  background: #fff;
  position: relative;
}
.bg_green {
  background: #3e9a4f !important;
  position: relative;
}
.bg_black {
  background: #232323 !important;
  position: relative;
}
.bg-work01 {
  position: relative;
  background: linear-gradient(to top right, #217f49, #cab82e) !important;
}
.bg-work02 {
  position: relative;
  background: linear-gradient(to top right, #44668a, #2d995a) !important;
}
.bg-work03 {
  position: relative;
  background: linear-gradient(to top right, #425fab, #ab4c68) !important;
}
.bg-work04 {
  position: relative;
  background: linear-gradient(to top right, #b3333d, #e0965c) !important;
}
.col_white {
  color: #fff !important;
}
.col_black {
  color: #232323 !important;
}
.col_green {
  color: #3e9a4f !important;
}

.forpc {
  display: flex;
}
.forsp {
  display: none;
}

.next_pt {
  padding-top: clamp(20px, 5vw, 40px);
}

@media screen and (max-width: 768px) {
  .forpc {
    display: none;
  }
  .forsp {
    display: flex;
  }
}

.link_absolute {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 33;
}
.button-form-wrap {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.flex-btn {
  flex-direction: column;
	gap:30px;
	margin: 0 auto;
	width:100%;
}
.flex-column {
  flex-direction: column;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-center p {
  display: contents;
}
.txt-small {
  font-size: clamp(12px, 1.4vw, 14px)
}
.txt-link a {
	text-align:center;
	margin-top:10px;
	color:#3e9a4f;
	text-decoration:underline;
}
.about-inner {
	padding-top:40px;
}
.about-inner_text {
  max-width: 820px;
  margin: 0 auto;
}

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

.pad50 {
  padding: 50px;
}
@media screen and (max-width: 768px) {
  .pad50 {
    padding: 40px;
  }
}
@media screen and (max-width: 499px) {
  .pad50 {
    padding: 30px;
  }
}
.p-lr {
  padding-left: 5%;
  padding-right: 5%;
}
@media screen and (max-width: 768px) {
  .p-lr {
  padding-left: 0%;
  padding-right: 0%;
  }
}

.pb20 {
  padding-bottom: 20px;
}
.mt10 {
  margin-top: clamp(8px, 2vw, 15px);
}
@media screen and (max-width: 768px) {
.mt-10 {
	margin-top:-10px!important;
	padding-bottom:5px;
}
}
.mb10 {
  margin-bottom: clamp(8px, 2vw, 15px);
}
.mt20 {
  margin-top: clamp(10px, 3vw, 20px);
}
.mt30 {
  margin-top: clamp(10px, 4vw, 30px);
}
.mt40 {
  margin-top: clamp(30px, 6vw, 40px);
}
.mt60 {
  margin-top: 80px;
}

@media screen and (max-width: 1024px) {
.mt60 {
  margin-top: 60px;
}
}
.mb40 {
  margin-bottom: clamp(24px, 6vw, 40px);
}

.p10 {
  padding: 2vw !important;
}
@media screen and (max-width: 768px) {
  .p10 {
    padding: 10vw 5vw 5vw 5vw !important;
  }
.mt-top {
  margin-top: 80px;
}
}

.pt0 {
  padding-top: 0!important;
}
.pt10 {
  padding-top: 10px;
}
.pb0 {
  padding-bottom: 0;
}
.pl0 {
  padding-left: 0;
}
.pr0 {
  padding-right: 0;
}
.radius-br {
  border-bottom-right-radius: clamp(60px, 8vw, 120px) !important;
}
.radius-tl {
  border-top-left-radius: clamp(60px, 8vw, 120px) !important;
}

.br1280 {
  display: none;
}
@media screen and (max-width: 1280px) {
  .br1280 {
    display: block;
  }
}
.br-sp-none {
	display:block;
}
.br980 {
  display: none;
}
.br768 {
  display: none;
}
@media screen and (max-width: 980px) {
  .br980 {
    display: block;
  }
}
@media screen and (max-width: 768px) {
  .br768 {
    display: block;
  }
}

@media screen and (max-width: 499px) {
.br-sp-none {
	display:none;
}
}

.pic_pc {
	display:block;
}
.pic_tab {
	display:none;
}
@media screen and (max-width: 768px) {
.pic_pc {
	display:none;
}
.pic_tab {
	display:block;
}
}


.policy-box p {
  font-size: clamp(16px, 2vw, 19px) !important;
  font-weight: 500 !important;
  line-height: 1.8;
  text-align: left;
	padding:clamp(16px, 2vw, 19px) 0;
}

.policy-box h2 {
	width:100%;
	padding:clamp(16px, 2vw, 19px) 0;
  line-height: 1.9;
  font-size: clamp(18px, 2.8vw, 28px);
	font-weight:700;
}
.policy-box ol,
.policy-box ul {
	width:100%;
  line-height: 1.9;
  font-size: clamp(14px, 1.6vw, 18px);
  color: #222;
}
.policy-box ol li,
.policy-box ul li {
	width:100%;
	padding:5px 0;
}
.wid100 {
	width:100%!important;
}



@media (max-height: 680px) {
	.normal_text,.normal_text_bold {
		line-height: 1.7;
	}
	.normal_text {
		font-size: clamp(14px, 2vw, 17px) !important;
	}
  .title_jpn {
    font-size: clamp(28px, 5vw, 42px);
  }
	
  .service-box {
    padding: 10px 12px;
    white-space: normal; /* 日本語は折返しOK */
    z-index: 20;
  }
  .service-box .jp {
    font-size: clamp(13px, 2.5vw, 16px);
  }
  .service-box .en {
    font-size: clamp(21px, 3vw, 32px);
  }
.tag {
  margin-top: 0;
}
	
	
.panel .jp {
  font-size: clamp(14px, 3vw, 24px);
  padding-bottom: 2px;
}
.panel .en {
  font-size: clamp(21px, 5vw, 48px);
	}
	
  .service-box .jp {
    font-size: clamp(13px, 2.5vw, 16px);
  }
  .service-box .en {
    font-size: clamp(21px, 3vw, 32px);
  }
.tag2 {
  font-size: clamp(13px, 3vw, 21px);
	}
	
.right-box {
  width: 28%;
	}
	
.mt40 {
  margin-top: clamp(15px, 3vw, 30px);
}
	
.image-panel {
  width: 28%;
}
	
  .pad50 {
    padding: 30px;
  }
}