/* Base
--------------------------- */
:root {
  --color-primary: #4a3d72;
  --color-secondary: #301852;
  --color-accent: #0ed833;
  --color-gray: #666666;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-background: #f7f7f7;
  --color-light-green: #e6f5e9;

  --font-base: "游ゴシック体 Pr6N M", sans-serif;
  --font-bold: "游ゴシック体 Pr6N B", sans-serif;
  --transition-base: 0.3s ease;
  --animation-duration: 0.8s;
}

html {
  font-size: 62.5%;
}

body {
  color: var(--color-text);
  font-family: "游ゴシック体 Pr6N M", "Yu Gothic", YuGothic, sans-serif;
  font-size: 1.6rem;
  line-height: 1.8;
  background: var(--color-white);
}

body.menu-open {
  overflow: hidden;
}

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

/* Header
--------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--color-white);
  transition: all 0.4s ease;
  height: 8rem;
}

.header.is-scrolled {
  height: 7rem;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
}

.header_inner {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header_logo {
  display: block;
  width: 18rem;
  transition: width 0.4s ease;
  position: relative;
  z-index: 110;
}

@media screen and (max-width: 767px) {
  .header_logo {
    width: 14rem;
  }
}

.is-scrolled .header_logo {
  width: 14rem;
}

@media screen and (max-width: 767px) {
  .is-scrolled .header_logo {
    width: 10rem;
  }
}

.header_rightbox {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header_menu {
  margin-bottom: 1rem;
}

.header_menu ul {
  display: flex;
  gap: 2.4rem;
}

.textLink_contact a {
  font-size: 1.2rem;
  font-family: "游ゴシック体 Pr6N B";
  padding-left: 2rem;
  background: url("../img/icon_contact.svg") no-repeat left center;
  background-size: 1.6rem;
}

.header_nav_list {
  display: flex;
  gap: 3rem;
}

.header_nav_list a {
  font-size: 1.5rem;
  font-family: "游ゴシック体 Pr6N B";
  position: relative;
}

.header_nav_list a::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 0;
  height: 0.2rem;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.header_nav_list a:hover::after {
  width: 100%;
}

/* ドロップダウンメニュー */
.dropdown {
  position: relative;
}

.dropdown_content {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  width: 24rem;
  padding: 1.6rem;
  visibility: hidden;
  opacity: 0;
  transform: translateY(1rem);
  transition: all 0.3s ease;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
}

.dropdown:hover .dropdown_content {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.dropdown_content ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.dropdown_content a {
  font-size: 1.4rem;
  padding: 0.5rem 0;
}

/* モダンなハンバーガーメニュー */
.menu_button {
  display: none;
  width: 5rem;
  height: 5rem;
  position: relative;
  border: none;
  background: none;
  z-index: 110;
  cursor: pointer;
}

.menu_button_inner {
  position: relative;
  width: 3rem;
  height: 3rem;
  margin: 0 auto;
}

.menu_button span {
  display: block;
  width: 3rem;
  height: 0.2rem;
  background: var(--color-primary);
  position: absolute;
  left: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0.1rem;
}

.menu_button span:nth-child(1) {
  top: 0.7rem;
}
.menu_button span:nth-child(2) {
  top: 1.4rem;
  width: 2.4rem;
  right: 0;
  left: auto;
}
.menu_button span:nth-child(3) {
  top: 2.1rem;
}

/* アクティブ状態のアニメーション */
.menu_button.is-active span {
  background: var(--color-white);
}

.menu_button.is-active span:nth-child(1) {
  transform: rotate(45deg);
  top: 1.4rem;
  width: 3rem;
}

.menu_button.is-active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu_button.is-active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 1.4rem;
  width: 3rem;
}

/* SPナビゲーション（新しいスタイル） */
.sp_nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
}

.sp_nav_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.sp_nav_container {
  position: absolute;
  top: 0;
  right: -35rem; /* 初期状態では画面外に */
  width: 35rem;
  height: 100%;
  background-color: var(--color-primary);
  overflow-y: auto;
  transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 10rem 3rem 4rem;
  display: flex;
  flex-direction: column;
}

.sp_nav.is-active {
  opacity: 1;
  visibility: visible;
}

.sp_nav.is-active .sp_nav_overlay {
  opacity: 1;
}

.sp_nav.is-active .sp_nav_container {
  right: 0;
}

.sp_nav_list {
  margin-bottom: 4rem;
}

.sp_nav_list > li:not(:first-child) {
  margin-top: 1rem;
}

.sp_nav_button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.8rem 0;
  color: var(--color-white);
  font-size: 1.8rem;
  font-family: "游ゴシック体 Pr6N B";
  position: relative;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sp_nav_button:not(.has-submenu):hover {
  padding-left: 1rem;
}

.sp_nav_button span {
  position: relative;
  z-index: 2;
}

.sp_nav_button.has-submenu::after {
  content: "";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border-right: 0.2rem solid var(--color-white);
  border-bottom: 0.2rem solid var(--color-white);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.3s ease;
}

.sp_nav_button.has-submenu.is-active::after {
  transform: translateY(-25%) rotate(-135deg);
}

.sp_nav_icon {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
}

.sp_nav_arrow {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.5rem;
}

.sp_nav_arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.3rem;
  width: 0.8rem;
  height: 0.8rem;
  border-top: 0.2rem solid var(--color-white);
  border-right: 0.2rem solid var(--color-white);
  transform: translateY(-50%) rotate(45deg);
}

.sp_nav_submenu {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}

.sp_nav_submenu.is-active {
  max-height: 50rem;
  opacity: 1;
  padding: 1rem 0 1.5rem 2rem;
}

.sp_nav_submenu li {
  margin: 1.2rem 0;
  opacity: 0;
  transform: translateX(-1rem);
  transition: all 0.4s ease;
}

.sp_nav_submenu.is-active li {
  opacity: 1;
  transform: translateX(0);
}

.sp_nav_submenu.is-active li:nth-child(1) {
  transition-delay: 0.1s;
}
.sp_nav_submenu.is-active li:nth-child(2) {
  transition-delay: 0.15s;
}
.sp_nav_submenu.is-active li:nth-child(3) {
  transition-delay: 0.2s;
}
.sp_nav_submenu.is-active li:nth-child(4) {
  transition-delay: 0.25s;
}

.sp_nav_submenu a {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  color: var(--color-white);
  padding: 0.6rem 0;
  position: relative;
}

.sp_nav_submenu a::before {
  content: "";
  display: block;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 1rem;
  border-top: 0.2rem solid var(--color-white);
  border-right: 0.2rem solid var(--color-white);
  transform: rotate(45deg);
}

.sp_nav_submenu a:hover span {
  transform: translateX(0.5rem);
  transition: transform 0.3s ease;
}

/* SPメニュー内のコンタクト情報 */
.sp_nav_contact {
  margin-top: auto;
  padding-top: 3rem;
  color: var(--color-white);
  text-align: center;
}

.sp_nav_contact_title {
  font-size: 1.6rem;
  font-family: "游ゴシック体 Pr6N B";
  margin-bottom: 1.5rem;
}

.sp_nav_contact_tel {
  font-size: 2.4rem;
  font-family: "游ゴシック体 Pr6N B";
  margin-bottom: 1rem;
  display: inline-block;
  background: url("../img/icon_tel.svg") no-repeat left center;
  background-size: 2.2rem;
  padding-left: 2.8rem;
}

.sp_nav_contact_address {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.sp_nav_contact_button {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-secondary);
  padding: 1.2rem 3rem;
  border-radius: 3rem;
  font-size: 1.5rem;
  font-family: "游ゴシック体 Pr6N B";
  transition: all 0.3s ease;
  font-weight: bold;
}

.sp_nav_contact_button:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-0.3rem);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

.sp_nav_sns {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.sp_nav_sns a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.sp_nav_sns a:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-0.3rem);
}

.sp_nav_sns img {
  width: 2rem;
  height: 2rem;
}

/* Footer
--------------------------- */
/* Footer Redesign */
.footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 5rem 0;
}

.footer_container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer_column {
  display: flex;
  flex-direction: column;
}

.footer_column_title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer_column ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer_column a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
  position: relative;
  padding-left: 2rem;
}

.footer_column a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer_column a::before {
  content: "→";
  position: absolute;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer_column a:hover::before {
  opacity: 1;
}

.contact_column {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 1rem;
}

.footer_contact_info address {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.footer_tel {
  margin: 1rem 0;
}

.footer_tel a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #fff;
  font-family: var(--font-bold);
  padding-left: 0;
}

.footer_tel svg {
  stroke: #fff;
}

.contact_column a.footer_contact_button {
  display: inline-block;
  background-color: #fff;
  color: var(--color-primary);
  padding: 1rem 2rem;
  border-radius: 5rem;
  font-family: var(--font-bold);
  text-align: center;
  transition: transform 0.3s ease;
  font-size: 1.4rem;
  font-weight: bold;
  font-family: "游ゴシック体 Pr6N M", "Yu Gothic", YuGothic, sans-serif;
}

.contact_column a.footer_contact_button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}

.footer_bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.footer_bottom_content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer_sns {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer_sns a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
}

.footer_sns a:hover {
  color: var(--color-accent);
}

.footer_team_logo {
  display: flex;
  align-items: center;
  width: 5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer_team_logo:hover {
  opacity: 1;
}

.footer_team_logo img {
  width: 100%;
  height: auto;
}

.footer_copyright {
  font-size: 1.2rem;
}

.footer_misc_links {
  display: flex;
  gap: 1.5rem;
}

.footer_misc_links a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer_misc_links a:hover {
  color: var(--color-accent);
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .footer_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .footer_grid {
    grid-template-columns: 1fr;
  }

  .footer_bottom_content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer_misc_links {
    margin-top: 1rem;
  }
}

/* Media Queries
--------------------------- */
@media screen and (max-width: 1024px) {
  .header_rightbox {
    display: none;
  }

  .menu_button {
    display: block;
  }

  .footer_nav {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media screen and (min-width: 1025px) {
  .sp_nav {
    display: none !important;
  }
}

.display_pc {
  display: block;
}

.display_sp {
  display: none;
}

@media screen and (max-width: 767px) {
  .display_pc {
    display: none;
  }

  .display_sp {
    display: block;
  }
}
.menu-open .header_heading {
  z-index: 0;
}

/* コンポーネントスタイル
--------------------------- */

.mv-full-width-content h1 {
  position: relative;
  display: inline-block;
  font-size: 4.2rem;
  color: var(--color-white);
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-bold);
}

@media screen and (max-width: 767px) {
  .mv-full-width-content h1 {
    font-size: 3.2rem;
  }
}

/* .mv-full-width-content h1::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.4rem;
  background: linear-gradient(to right, var(--color-accent), var(--color-primary));
  opacity: 0.8;
} */

.mv-title-image-grid .content h2 {
  position: relative;
  display: inline-block;
  font-size: 3.6rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-family: var(--font-bold);
}

@media screen and (max-width: 767px) {
  .mv-title-image-grid .content h2 {
    font-size: 2.8rem;
  }
}

.mv-left-title .typesquare_option {
  position: relative;
  display: inline-block;
  font-size: 3.6rem;
  font-family: var(--font-bold);
  color: var(--color-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-bold);
}
@media screen and (max-width: 767px) {
  .mv-left-title .typesquare_option {
    font-size: 2.8rem;
  }
}
.card-links {
  display: grid;
  gap: 3rem;
}

.card-links.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-link {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.card-link:hover {
  transform: translateY(-0.5rem);
  box-shadow: 0 0.6rem 1.5rem rgba(0, 0, 0, 0.15);
}

.card-link > * {
  width: 100%;
}

.card-link img {
  height: 30rem;
  object-fit: cover;
}

.card-link-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 2rem;
}

.card-link-content .heading {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  flex-grow: 0;
}

.card-link-content p {
  font-size: 1.4rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.card-link-viewmore {
  align-self: flex-end;
  color: var(--color-primary);
  font-size: 1.4rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.card-link-viewmore::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.card-link-viewmore:hover {
  transform: translateX(0.3rem);
}

@media screen and (max-width: 768px) {
  .card-links.grid-3 {
    grid-template-columns: 1fr;
  }
}

/* セクション共通スタイル */
section {
  padding: 10rem 0;
  background: var(--color-white);
}

.section-inner {
  max-width: 112rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 見出し */
.section-title {
  text-align: center;
  margin-bottom: 6rem;
  font-weight: bold;
}

.section-title .en {
  display: block;
  color: var(--color-primary);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-family: var(--font-bold);
}

.section-title .ja {
  font-size: 3.2rem;
  font-family: var(--font-bold);
  letter-spacing: 0.05em;
  font-family: var(--font-bold);
}

/* メインビジュアル */
.main-visual {
  position: relative;
  width: 100%;
  height: 70vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
}

.main-visual::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.main-visual-content {
  position: relative;
  z-index: 1;
  max-width: 80%;
}

.main-visual-title {
  font-size: 4rem;
  font-family: var(--font-bold);
  margin-bottom: 2rem;
}

.main-visual-text {
  font-size: 1.8rem;
}

/* 見出し系 */
.heading-2 {
  position: relative;
  font-size: 3.2rem;
  font-family: var(--font-bold);
  color: var(--color-primary);
  display: inline-block;
  margin-bottom: 2rem;
  width: 100%;
  margin-top: 6rem;
  font-weight: bold;
}

@media screen and (max-width: 767px) {
  .heading-2 {
    font-size: 2.8rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.heading-3 {
  position: relative;
  font-size: 3.2rem;
  font-family: var(--font-bold);
  color: var(--color-primary);
  display: inline-block;
  margin-bottom: 2rem;
  width: 100%;
  margin-top: 6rem;
  font-weight: bold;
}

@media screen and (max-width: 767px) {
  .heading-3 {
    font-size: 2.8rem;
  }
}

.heading-4 {
  font-size: 2.8rem;
  font-family: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  position: relative;
  border-bottom: solid 3px var(--color-primary);
  width: 100%;
  margin-top: 6rem;
  font-weight: bold;
}

@media screen and (max-width: 767px) {
  .heading-4 {
    font-size: 2.6rem;
  }
}

.heading-4::before {
  position: absolute;
  content: " ";
  display: block;
  border-bottom: solid 3px var(--color-accent);
  bottom: -3px;
  left: 0;
  width: 10%;
}

.heading-5 {
  font-size: 2.4rem;
  font-family: var(--font-bold);
  color: var(--color-primary);
  border-left: 0.6rem solid var(--color-primary);
  padding-left: 1rem;
  margin-bottom: 1rem;
  margin-top: 4rem;
}

@media screen and (max-width: 767px) {
  .heading-5 {
    font-size: 2.2rem;
  }
}

.heading-6 {
  font-size: 2rem;
  font-family: var(--font-bold);
  color: #000;
  position: relative;
  margin-top: 3rem;
}

/* タイトル付き2カラムレイアウト */
.title-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.title-image-grid .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title-image-grid img {
  width: 100%;
  height: 40rem;
  object-fit: cover;
  border-radius: 1rem;
}

/* カードリンク */
.card-links {
  display: grid;
  gap: 3rem;
}

.card-links.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-links.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-link {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
}

.card-link:hover {
  transform: translateY(-0.5rem);
}

.card-link img {
  width: 100%;
  height: 30rem;
  object-fit: cover;
}

.card-link-content {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-link-content .heading {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  flex-grow: 1;
  font-family: var(--font-bold);
  font-weight: bold;
}

.card-link-content p {
  font-size: 1.4rem;
  color: var(--color-gray);
  margin-bottom: 2rem;
}

.card-link-viewmore {
  align-self: flex-end;
  color: var(--color-primary);
  font-size: 1.4rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.card-link-viewmore::after {
  content: "→";
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.card-link-viewmore:hover {
  transform: translateX(0.3rem);
}

/* MV コンポーネント */
.mv-section {
  margin-bottom: 6rem;
}

.mv-section.v2 {
  margin-top: 10rem;
  padding-left: 10rem;
}

.mv-section.v3 {
  max-width: 112rem;
  margin: 10rem auto;
  padding: 0 2rem;
}

.mv-section.v3 .heading {
  font-size: 3.6rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-family: var(--font-bold);
}

@media screen and (max-width: 767px) {
  .mv-section.v2 {
    padding-left: 0;
  }
  .mv-section.v2 .mv-title-image-grid .content h2,
  .mv-section.v2 .mv-title-image-grid .content p {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .mv-section.v2 .mv-title-image-grid .content a {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .mv-section.v2 .heading-2 {
    margin-top: 2rem;
  }
}

.mv-full-width {
  position: relative;
  width: 100%;
  height: 40vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
}

.mv-full-width::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.mv-full-width-content {
  position: relative;
  z-index: 1;
  max-width: 80%;
}

.mv-title-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.mv-title-image-grid .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.mv-title-image-grid img {
  width: 100%;
  height: 50rem;
  object-fit: cover;
  border-radius: 1rem;
}

.mv-left-title {
  text-align: left;
}

@media screen and (max-width: 768px) {
  .mv-title-image-grid {
    grid-template-columns: 1fr;
  }

  .mv-title-image-grid img {
    height: 30rem;
    margin-top: 2rem;
    border-radius: 0;
  }
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 1.5rem 3rem;
  border-radius: 0.8rem;
  text-decoration: none;
  position: relative;
  transition: all 0.3s ease;
  font-family: var(--font-bold);
}

.btn-primary {
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-secondary)
  );
  color: var(--color-white);
}

.btn-secondary {
  background: linear-gradient(to right, var(--color-accent), #0ea333);
  color: var(--color-white);
}

.btn-anchor {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-arrow {
  padding-right: 4.5rem;
}

.btn-arrow::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.btn-anchor.btn-arrow::after {
  content: "↓";
  transition: transform 0.3s ease;
  transform: translateY(-50%);
}

.btn-arrow:hover::after {
  transform: translate(0.5rem, -50%);
}

.btn-anchor.btn-arrow:hover::after {
  transform: translateY(1px);
}

/* テキストリンク */
.text-link {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.text-link:hover {
  color: var(--color-accent);
}

.text-link-external::after {
  content: "↗";
  margin-left: 0.3rem;
}

.text-link-pdf::before {
  content: "PDF";
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 0.3rem;
  margin-right: 0.5rem;
  display: inline-block;
}

.text-link-list {
  list-style-type: none;
  padding: 0;
}

.text-link-list li {
  margin-bottom: 1rem;
}

/* レイアウト */
.layout-grid {
  display: grid;
  gap: 3rem;
}

.layout-grid-2-2 {
  grid-template-columns: 1fr 1fr;
}

.layout-grid-1-3 {
  grid-template-columns: 1fr 3fr;
}

.layout-grid-3-1 {
  grid-template-columns: 3fr 1fr;
}

.layout-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* タブ */
.tabs {
  display: flex;
  overflow-x: auto; /* SP時に横スクロール可能に */
  -webkit-overflow-scrolling: touch; /* iOS用のスムーススクロール */
  scrollbar-width: thin; /* Firefoxで細いスクロールバー */
  scrollbar-color: rgba(0, 0, 0, 0.2) transparent; /* スクロールバーの色 */
  border-bottom: solid 2px var(--color-primary);
  margin-bottom: 4rem;
}

.tabs::-webkit-scrollbar {
  height: 6px; /* 横スクロールバーの高さ */
}

.tabs::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.tabs-button {
  padding: 1rem 4rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

@media screen and (max-width: 767px) {
  .tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem; /* タブ間の余白 */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
    padding: 0 1rem; /* 両端に少し余白 */
  }

  .tabs-button {
    flex: 0 0 auto; /* 固定幅を維持 */
    white-space: nowrap;
    padding: 1rem;
    min-width: 100px; /* タブの最小幅を指定 */
    text-align: center;
  }

  .tabs::-webkit-scrollbar {
    height: 6px;
  }

  .tabs::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
  }
}

.tabs-button.active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
  flex-shrink: 0; /* タブが縮小しないように */
  white-space: nowrap; /* テキストを折り返さない */
  background-color: rgba(74, 61, 114, 0.1);
  font-family: var(--font-bold);
}

.tabs-content {
  display: none;
}

.tabs-content.active {
  display: block;
}

/* アコーディオン */
.accordion {
  border: 1px solid var(--color-gray);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  cursor: pointer;
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-gray);
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: rgba(230, 245, 233, 0.5);
}

.accordion-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 2rem;
  background-color: var(--color-light-green);
  transition: max-height 0.5s cubic-bezier(0, 1, 0, 1), opacity 0.5s ease,
    padding 0.5s ease;
}

.accordion.active .accordion-content {
  max-height: inherit;
  opacity: 1;
  padding: 2rem;
  transition: max-height 0.5s cubic-bezier(1, 0, 1, 0), opacity 0.5s ease,
    padding 0.5s ease;
}

/* テーブル */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 1rem;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  background-color: var(--color-white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 50rem;
}

@media screen and (max-width: 768px) {
  table {
    min-width: auto;
    font-size: 1.4rem;
  }

  th,
  td {
    padding: 0.8rem 1rem;
    font-size: 1.3rem;
  }
}

th,
td {
  border: 1px solid var(--color-gray);
  padding: 1rem;
  text-align: left;
}

th {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* 背景付きボックス */
.background-box {
  background-color: var(--color-light-green);
  border-left: 0.5rem solid var(--color-accent);
  padding: 2rem;
  border-radius: 0.5rem;
  margin-top: 4rem;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .card-links.grid-3,
  .card-links.grid-2,
  .layout-grid-2-2,
  .layout-grid-1-3,
  .layout-grid-3-1,
  .layout-grid-3 {
    grid-template-columns: 1fr;
  }

  .layout-grid-2-2 img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .layout-grid-2-2 .table-container {
    max-width: 100%;
    overflow-x: auto;
  }

  .title-image-grid {
    grid-template-columns: 1fr;
  }

  .title-image-grid img {
    height: 25rem;
    margin-top: 2rem;
  }
}

/* お知らせリンクアイテム */
.news-list {
  width: 100%; /* 横幅いっぱいに */
  list-style-type: none;
  padding: 0;
}

.news-list li:last-child .news-link {
  border-bottom: none;
}

.news-list li:first {
  border-top: none;
}

.news-link {
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 0.1rem solid #dddddd;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.news-link:hover {
  background-color: rgba(74, 61, 114, 0.05);
}

.news-link-date {
  width: 12rem;
  color: var(--color-gray);
  font-size: 1.4rem;
  margin-right: 2rem;
}

.news-link-tags {
  display: flex;
  gap: 0.8rem;
  margin-right: 2rem;
}

.news-link-content {
  flex-grow: 1;
}

.news-link-title {
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--color-primary);
  font-family: var(--font-bold);
}

/* レスポンシブ調整 */
@media screen and (max-width: 767px) {
  .news-tabs {
    scrollbar-width: thin;
    -ms-overflow-style: -ms-autohiding-scrollbar; /* IE/Edgeのスクロールバー */
    padding-left: 0;
    padding-right: 0;
  }

  .news-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .news-link-date,
  .news-link-tags {
    margin-bottom: 0.5rem;
  }
}

/* タグ */
.tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  border-radius: 0.4rem;
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
}

.tag-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.tag-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.tag-green {
  background-color: #0ed833;
  color: var(--color-white);
}

.tag-gray {
  background-color: var(--color-gray);
  color: var(--color-white);
}

.tag-outline-primary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.tag-outline-accent {
  background-color: transparent;
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
}

/* お知らせ一覧ページ用のスタイル */
.breadcrumb {
  background: var(--color-background);
  padding: 1.5rem 0;
  margin-top: 8rem;
}

.breadcrumb-inner {
  max-width: 112rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
}

.breadcrumb li {
  font-size: 1.4rem;
  color: var(--color-gray);
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 1rem;
}

.breadcrumb a {
  color: var(--color-primary);
  transition: color 0.3s ease;
  font-family: var(--font-bold);
}

.breadcrumb a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.page-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 6rem 0;
  text-align: center;
}

.page-header-inner {
  max-width: 112rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-title {
  position: relative;
  display: inline-block;
}

.page-title .en {
  display: block;
  font-size: 2rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.page-title .ja {
  font-size: 3.6rem;
  font-family: var(--font-bold);
  letter-spacing: 0.05em;
}

.news-section {
  padding: 6rem 0;
}

.news-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.category-link {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 5rem;
  background: var(--color-background);
  color: var(--color-gray);
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.category-link.active,
.category-link:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.pagination {
  display: flex;
  justify-content: center;
  margin-top: 5rem;
  gap: 0.5rem;
}

.pagination-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--color-background);
  color: var(--color-gray);
  font-size: 1.4rem;
  transition: all 0.3s ease;
  font-family: var(--font-bold);
}

.pagination-item.current {
  background: var(--color-primary);
  color: var(--color-white);
}

.pagination-item:not(.current):not(.dots):hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.pagination-item.dots {
  background: transparent;
  cursor: default;
}

.pagination-item.next {
  width: auto;
  padding: 0 1.5rem;
  border-radius: 2rem;
}

@media screen and (max-width: 768px) {
  .page-title .ja {
    font-size: 2.8rem;
  }

  .news-categories {
    gap: 1rem;
    margin-bottom: 3rem;
  }

  .category-link {
    padding: 0.8rem 1.5rem;
    font-size: 1.2rem;
  }
}

/* 記事詳細ページ専用のコンポーネントスタイル
--------------------------- */

/* ニュース記事メタ情報 */
.news-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.news-date {
  font-size: 1.4rem;
  color: var(--color-gray);
}

.news-tags {
  display: flex;
  gap: 0.8rem;
}

/* 記事コンテンツスタイル */
.news-detail-section {
  padding: 6rem 0;
}

.news-content {
  font-size: 1.6rem;
  line-height: 1.8;
}

.news-content p {
  margin-bottom: 1.5rem;
}

/* リストスタイル */
.list-disc {
  list-style-type: disc;
  padding-left: 2rem;
  /* margin-bottom: 2rem; */
}

.list-disc li {
  margin-bottom: 0.8rem;
}

/* 関連記事セクション */
.related-news {
  margin-top: 6rem;
  padding-top: 4rem;
  border-top: 1px solid #eee;
}

/* 前後の記事ナビゲーション */
.post-navigation {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid #eee;
}

.post-navigation-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-navigation-prev,
.post-navigation-next,
.post-navigation-list {
  display: flex;
  flex-direction: column;
  max-width: 33%;
  color: var(--color-primary);
  transition: all 0.3s ease;
  text-decoration: none;
}

.post-navigation-prev:hover,
.post-navigation-next:hover,
.post-navigation-list:hover {
  color: var(--color-accent);
}

.post-navigation-list {
  align-items: center;
}

.post-navigation-prev {
  align-items: flex-start;
}

.post-navigation-next {
  align-items: flex-end;
}

.nav-label {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}

.nav-title {
  font-size: 1.4rem;
  font-family: var(--font-bold);
}

.nav-icon {
  margin-bottom: 0.5rem;
}

/* レスポンシブ調整 */
@media screen and (max-width: 767px) {
  .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .post-navigation-inner {
    gap: 2rem;
  }

  .post-navigation-prev,
  .post-navigation-next,
  .post-navigation-list {
    max-width: 100%;
    width: 100%;
  }

  .post-navigation-prev,
  .post-navigation-next {
    align-items: baseline;
  }

  .related-news .card-links {
    grid-template-columns: 1fr;
  }
}

/* アンカーリンクコンポーネント
--------------------------- */
.anchor-links {
  padding: 2rem 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 4rem;
}

.anchor-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.anchor-links-list li {
  list-style: none;
}

@media screen and (max-width: 768px) {
  .anchor-links-list {
    flex-direction: column;
    align-items: center;
  }

  .anchor-links-list li {
    width: 100%;
    max-width: 30rem;
  }

  .anchor-links-list li a {
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* 特徴カードコンポーネント
--------------------------- */
.feature-card {
  background: var(--color-white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-0.5rem);
}

.feature-card img {
  width: 100%;
  height: 25rem;
  object-fit: cover;
}

.feature-card-content {
  padding: 2rem;
}

.feature-card-content .heading {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-family: var(--font-bold);
  font-weight: bold;
}

/* 強みポイントコンポーネント
--------------------------- */
.strength-points {
  margin-top: 4rem;
}

.strength-points .background-box {
  background-color: var(--color-light-green);
  border-left: 0.5rem solid var(--color-accent);
  padding: 2rem;
  border-radius: 0.5rem;
}

.strength-points .background-box .heading-4 {
  margin-top: 0;
}

.strength-points .list-disc {
  list-style-type: disc;
  padding-left: 2rem;
}

.strength-points .list-disc li {
  margin-bottom: 1.5rem;
}

.strength-points .list-disc li:last-child {
  margin-bottom: 0;
}

/* 施工の流れコンポーネント
--------------------------- */
.flow-container {
  position: relative;
}

.flow-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 3rem;
  width: 0.3rem;
  height: 100%;
  background-color: var(--color-primary);
  opacity: 0.3;
}

.flow-item {
  display: flex;
  position: relative;
  margin-bottom: 4rem;
}

.flow-item:last-child {
  margin-bottom: 0;
}

.flow-number {
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-family: var(--font-bold);
  z-index: 1;
}

.flow-content {
  flex-grow: 1;
  margin-left: 2rem;
  background: var(--color-white);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.05);
}

.flow-content .heading-4 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.flow-period {
  margin-top: 1.5rem;
  font-size: 1.4rem;
  color: var(--color-gray);
  font-style: italic;
}

@media screen and (max-width: 768px) {
  .flow-container::before {
    left: 2rem;
  }

  .flow-number {
    width: 4rem;
    height: 4rem;
    font-size: 1.8rem;
  }

  .flow-content {
    margin-left: 1.5rem;
  }
}

/* 料金テーブルコンポーネント
--------------------------- */
.price-table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 2rem;
}

.price-table {
  width: 100%;
  min-width: 500px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.05);
}

.price-table thead {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.price-table th,
.price-table td {
  padding: 1.5rem 2rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease;
}

.price-table th {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.4rem;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tbody tr:hover {
  background-color: rgba(74, 61, 114, 0.05);
}

.price-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.02);
}

/* レスポンシブ調整 */
@media screen and (max-width: 768px) {
  .price-table th,
  .price-table td {
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
  }
}

/* 価格関連の追加スタイル */
.price-notes {
  background-color: var(--color-light-green);
  border-left: 0.4rem solid var(--color-accent);
  padding: 1.5rem 2rem;
  border-radius: 0.5rem;
  margin-top: 2rem;
}

.price-notes p {
  color: var(--color-gray);
  margin-bottom: 0.5rem;
}

.price-notes p:last-child {
  margin-bottom: 0;
}

.price-contact {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.price-contact .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.price-contact .btn::after {
  content: "→";
  font-size: 1.5rem;
}
@media screen and (max-width: 767px) {
  .price-table {
    width: 100%;
  }

  .price-table th,
  .price-table td {
    padding: 1rem; /* モバイル時は少し余白を減らす */
  }
}

/* 施工事例ページ用コンポーネントスタイル
--------------------------- */

/* 表示切り替えボタン */
.view-switch {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.view-switch-button {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0.8rem 1.5rem;
  margin-left: 1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  color: var(--color-gray);
  transition: all 0.3s ease;
}

.view-switch-button svg {
  margin-right: 0.5rem;
}

.view-switch-button.active {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.view-switch-button:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
}

/* カードリンク内のタグスタイル */
.card-link-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* リスト表示モード */
.view-mode-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.view-mode-list .card-link {
  display: flex;
  flex-direction: row;
  height: auto;
}

.view-mode-list .card-link img {
  width: 30%;
  height: 25rem;
  object-fit: cover;
}

.view-mode-list .card-link-content {
  width: 70%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.view-mode-list .card-link-viewmore {
  align-self: flex-end;
  margin-top: auto;
}

/* 施工事例フィルターセクション */
.works-filter {
  margin-bottom: 3rem;
  padding: 2rem;
  background-color: var(--color-background);
  border-radius: 1rem;
}

.works-filter-title {
  font-size: 1.8rem;
  font-family: var(--font-bold);
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.works-filter-group {
  margin-bottom: 1.5rem;
}

.works-filter-group:last-child {
  margin-bottom: 0;
}

.works-filter-label {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: var(--color-gray);
}

.works-filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.works-filter-checkbox {
  display: none;
}

.works-filter-checkbox + label {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: var(--color-white);
  color: var(--color-gray);
  border-radius: 5rem;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.works-filter-checkbox:checked + label {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ベフォーアフター比較スライダー */
.before-after-slider {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
  background-color: #f4f4f4;
}

.before-after-slider .before-image,
.before-after-slider .after-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.before-after-slider .before-image {
  z-index: 1;
  width: 50%; /* 初期状態 */
  border-right: 3px solid white;
}

.before-after-slider .slider-control {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%; /* 初期位置 */
  width: 10px;
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  background-color: white;
}

.before-after-slider .slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 4;
  border: 2px solid var(--color-primary);
}

.before-after-slider .slider-label {
  position: absolute;
  bottom: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 14px;
  z-index: 5;
}

.before-after-slider .before-label {
  left: 20px;
}

.before-after-slider .after-label {
  right: 20px;
}

@media screen and (max-width: 767px) {
  .before-after-slider {
    height: 30vh;
  }

  .before-after-slider .slider-handle {
    width: 30px;
    height: 30px;
  }

  .before-after-slider .slider-label {
    font-size: 12px;
    padding: 3px 8px;
  }
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .view-switch {
    justify-content: center;
    margin-top: 2rem;
  }

  .view-mode-list .card-link {
    flex-direction: column;
  }

  .view-mode-list .card-link img,
  .view-mode-list .card-link-content {
    width: 100%;
  }

  .view-mode-list .card-link img {
    height: 20rem;
  }

  .before-after-slider {
    height: 30rem;
  }

  .works-filter-options {
    gap: 0.5rem;
  }

  .works-filter-checkbox + label {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }
}

/* チェックボックススタイル */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  padding-left: 2.2rem;
  margin-bottom: 1rem;
}

.checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkbox-custom {
  position: absolute;
  top: 0;
  left: 0;
  height: 2rem;
  width: 2rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  transition: all 0.3s ease;
  margin-top: 0.4rem;
}

.checkbox-label:hover .checkbox-custom {
  border-color: var(--color-primary);
}

.checkbox-input:checked ~ .checkbox-custom {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-custom:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-input:checked ~ .checkbox-custom:after {
  display: block;
}

.checkbox-text {
  margin-left: 0.5rem;
}

.privacy-label {
  margin-top: 1rem;
}

/* スマホ対応 */
@media screen and (max-width: 767px) {
  .checkbox-group {
    flex-direction: column;
    gap: 1rem;
  }

  .checkbox-label {
    padding-left: 2.5rem;
  }

  .checkbox-custom {
    height: 1.8rem;
    width: 1.8rem;
  }

  .checkbox-custom:after {
    left: 6px;
    top: 2px;
  }
}

/* ユーティリティクラス
--------------------------- */

/* マージン - 上下左右 */
.m-0 {
  margin: 0 !important;
}
.m-1 {
  margin: 0.5rem !important;
}
.m-2 {
  margin: 1rem !important;
}
.m-3 {
  margin: 1.5rem !important;
}
.m-4 {
  margin: 2rem !important;
}
.m-5 {
  margin: 2.5rem !important;
}
.m-6 {
  margin: 3rem !important;
}
.m-8 {
  margin: 4rem !important;
}
.m-10 {
  margin: 5rem !important;
}
.m-12 {
  margin: 6rem !important;
}

/* マージン - 上 */
.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 0.5rem !important;
}
.mt-2 {
  margin-top: 1rem !important;
}
.mt-3 {
  margin-top: 1.5rem !important;
}
.mt-4 {
  margin-top: 2rem !important;
}
.mt-5 {
  margin-top: 2.5rem !important;
}
.mt-6 {
  margin-top: 3rem !important;
}
.mt-8 {
  margin-top: 4rem !important;
}
.mt-10 {
  margin-top: 5rem !important;
}
.mt-12 {
  margin-top: 6rem !important;
}

/* マージン - 右 */
.mr-0 {
  margin-right: 0 !important;
}
.mr-1 {
  margin-right: 0.5rem !important;
}
.mr-2 {
  margin-right: 1rem !important;
}
.mr-3 {
  margin-right: 1.5rem !important;
}
.mr-4 {
  margin-right: 2rem !important;
}
.mr-5 {
  margin-right: 2.5rem !important;
}
.mr-6 {
  margin-right: 3rem !important;
}
.mr-8 {
  margin-right: 4rem !important;
}
.mr-10 {
  margin-right: 5rem !important;
}
.mr-12 {
  margin-right: 6rem !important;
}

/* マージン - 下 */
.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 0.5rem !important;
}
.mb-2 {
  margin-bottom: 1rem !important;
}
.mb-3 {
  margin-bottom: 1.5rem !important;
}
.mb-4 {
  margin-bottom: 2rem !important;
}
.mb-5 {
  margin-bottom: 2.5rem !important;
}
.mb-6 {
  margin-bottom: 3rem !important;
}
.mb-8 {
  margin-bottom: 4rem !important;
}
.mb-10 {
  margin-bottom: 5rem !important;
}
.mb-12 {
  margin-bottom: 6rem !important;
}

/* マージン - 左 */
.ml-0 {
  margin-left: 0 !important;
}
.ml-1 {
  margin-left: 0.5rem !important;
}
.ml-2 {
  margin-left: 1rem !important;
}
.ml-3 {
  margin-left: 1.5rem !important;
}
.ml-4 {
  margin-left: 2rem !important;
}
.ml-5 {
  margin-left: 2.5rem !important;
}
.ml-6 {
  margin-left: 3rem !important;
}
.ml-8 {
  margin-left: 4rem !important;
}
.ml-10 {
  margin-left: 5rem !important;
}
.ml-12 {
  margin-left: 6rem !important;
}

/* マージン - X軸（左右） */
.mx-0 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.mx-1 {
  margin-left: 0.5rem !important;
  margin-right: 0.5rem !important;
}
.mx-2 {
  margin-left: 1rem !important;
  margin-right: 1rem !important;
}
.mx-3 {
  margin-left: 1.5rem !important;
  margin-right: 1.5rem !important;
}
.mx-4 {
  margin-left: 2rem !important;
  margin-right: 2rem !important;
}
.mx-5 {
  margin-left: 2.5rem !important;
  margin-right: 2.5rem !important;
}
.mx-6 {
  margin-left: 3rem !important;
  margin-right: 3rem !important;
}
.mx-8 {
  margin-left: 4rem !important;
  margin-right: 4rem !important;
}
.mx-10 {
  margin-left: 5rem !important;
  margin-right: 5rem !important;
}
.mx-12 {
  margin-left: 6rem !important;
  margin-right: 6rem !important;
}
.mx-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* マージン - Y軸（上下） */
.my-0 {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.my-1 {
  margin-top: 0.5rem !important;
  margin-bottom: 0.5rem !important;
}
.my-2 {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}
.my-3 {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}
.my-4 {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}
.my-5 {
  margin-top: 2.5rem !important;
  margin-bottom: 2.5rem !important;
}
.my-6 {
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}
.my-8 {
  margin-top: 4rem !important;
  margin-bottom: 4rem !important;
}
.my-10 {
  margin-top: 5rem !important;
  margin-bottom: 5rem !important;
}
.my-12 {
  margin-top: 6rem !important;
  margin-bottom: 6rem !important;
}

/* パディング - 上下左右 */
.p-0 {
  padding: 0 !important;
}
.p-1 {
  padding: 0.5rem !important;
}
.p-2 {
  padding: 1rem !important;
}
.p-3 {
  padding: 1.5rem !important;
}
.p-4 {
  padding: 2rem !important;
}
.p-5 {
  padding: 2.5rem !important;
}
.p-6 {
  padding: 3rem !important;
}
.p-8 {
  padding: 4rem !important;
}
.p-10 {
  padding: 5rem !important;
}
.p-12 {
  padding: 6rem !important;
}

/* パディング - 上 */
.pt-0 {
  padding-top: 0 !important;
}
.pt-1 {
  padding-top: 0.5rem !important;
}
.pt-2 {
  padding-top: 1rem !important;
}
.pt-3 {
  padding-top: 1.5rem !important;
}
.pt-4 {
  padding-top: 2rem !important;
}
.pt-5 {
  padding-top: 2.5rem !important;
}
.pt-6 {
  padding-top: 3rem !important;
}
.pt-8 {
  padding-top: 4rem !important;
}
.pt-10 {
  padding-top: 5rem !important;
}
.pt-12 {
  padding-top: 6rem !important;
}

/* パディング - 右 */
.pr-0 {
  padding-right: 0 !important;
}
.pr-1 {
  padding-right: 0.5rem !important;
}
.pr-2 {
  padding-right: 1rem !important;
}
.pr-3 {
  padding-right: 1.5rem !important;
}
.pr-4 {
  padding-right: 2rem !important;
}
.pr-5 {
  padding-right: 2.5rem !important;
}
.pr-6 {
  padding-right: 3rem !important;
}
.pr-8 {
  padding-right: 4rem !important;
}
.pr-10 {
  padding-right: 5rem !important;
}
.pr-12 {
  padding-right: 6rem !important;
}

/* パディング - 下 */
.pb-0 {
  padding-bottom: 0 !important;
}
.pb-1 {
  padding-bottom: 0.5rem !important;
}
.pb-2 {
  padding-bottom: 1rem !important;
}
.pb-3 {
  padding-bottom: 1.5rem !important;
}
.pb-4 {
  padding-bottom: 2rem !important;
}
.pb-5 {
  padding-bottom: 2.5rem !important;
}
.pb-6 {
  padding-bottom: 3rem !important;
}
.pb-8 {
  padding-bottom: 4rem !important;
}
.pb-10 {
  padding-bottom: 5rem !important;
}
.pb-12 {
  padding-bottom: 6rem !important;
}

/* パディング - 左 */
.pl-0 {
  padding-left: 0 !important;
}
.pl-1 {
  padding-left: 0.5rem !important;
}
.pl-2 {
  padding-left: 1rem !important;
}
.pl-3 {
  padding-left: 1.5rem !important;
}
.pl-4 {
  padding-left: 2rem !important;
}
.pl-5 {
  padding-left: 2.5rem !important;
}
.pl-6 {
  padding-left: 3rem !important;
}
.pl-8 {
  padding-left: 4rem !important;
}
.pl-10 {
  padding-left: 5rem !important;
}
.pl-12 {
  padding-left: 6rem !important;
}

/* パディング - X軸（左右） */
.px-0 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.px-1 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.px-2 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}
.px-3 {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
.px-4 {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}
.px-5 {
  padding-left: 2.5rem !important;
  padding-right: 2.5rem !important;
}
.px-6 {
  padding-left: 3rem !important;
  padding-right: 3rem !important;
}
.px-8 {
  padding-left: 4rem !important;
  padding-right: 4rem !important;
}
.px-10 {
  padding-left: 5rem !important;
  padding-right: 5rem !important;
}
.px-12 {
  padding-left: 6rem !important;
  padding-right: 6rem !important;
}

/* パディング - Y軸（上下） */
.py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.py-1 {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
}
.py-2 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}
.py-3 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}
.py-4 {
  padding-top: 2rem !important;
  padding-bottom: 2rem !important;
}
.py-5 {
  padding-top: 2.5rem !important;
  padding-bottom: 2.5rem !important;
}
.py-6 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
.py-8 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}
.py-10 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}
.py-12 {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

/* テキスト位置 */
.text-left {
  text-align: left !important;
}
.text-center {
  text-align: center !important;
}
.text-right {
  text-align: right !important;
}

/* テキストサイズ */
.text-xs {
  font-size: 1.2rem !important;
}
.text-sm {
  font-size: 1.4rem !important;
}
.text-base {
  font-size: 1.6rem !important;
}
.text-lg {
  font-size: 1.8rem !important;
}
.text-xl {
  font-size: 2rem !important;
}
.text-2xl {
  font-size: 2.4rem !important;
}
.text-3xl {
  font-size: 3rem !important;
}
.text-4xl {
  font-size: 3.6rem !important;
}

/* フォント太さ */
.font-normal {
  font-weight: normal !important;
}
.font-medium {
  font-weight: 500 !important;
}
.font-bold {
  font-family: var(--font-bold) !important;
  font-weight: bold !important;
}

/* 表示・非表示 */
.hidden {
  display: none !important;
}
.block {
  display: block !important;
}
.inline-block {
  display: inline-block !important;
}
.flex {
  display: flex !important;
}
.inline-flex {
  display: inline-flex !important;
}
.grid {
  display: grid !important;
}

/* フレックスボックスユーティリティ */
.items-start {
  align-items: flex-start !important;
}
.items-center {
  align-items: center !important;
}
.items-end {
  align-items: flex-end !important;
}
.justify-start {
  justify-content: flex-start !important;
}
.justify-center {
  justify-content: center !important;
}
.justify-end {
  justify-content: flex-end !important;
}
.justify-between {
  justify-content: space-between !important;
}
.flex-col {
  flex-direction: column !important;
}
.flex-row {
  flex-direction: row !important;
}
.flex-wrap {
  flex-wrap: wrap !important;
}
.flex-nowrap {
  flex-wrap: nowrap !important;
}
.flex-1 {
  flex: 1 !important;
}
.flex-auto {
  flex: auto !important;
}
.flex-none {
  flex: none !important;
}

/* 幅・高さ */
.w-full {
  width: 100% !important;
}
.w-auto {
  width: auto !important;
}
.h-full {
  height: 100% !important;
}
.h-auto {
  height: auto !important;
}

/* 背景色 */
.bg-white {
  background-color: var(--color-white) !important;
}
.bg-primary {
  background-color: var(--color-primary) !important;
}
.bg-secondary {
  background-color: var(--color-secondary) !important;
}
.bg-accent {
  background-color: var(--color-accent) !important;
}
.bg-gray {
  background-color: var(--color-gray) !important;
}
.bg-light {
  background-color: var(--color-background) !important;
}
.bg-light-green {
  background-color: var(--color-light-green) !important;
}

/* テキスト色 */
.text-white {
  color: var(--color-white) !important;
}
.text-black {
  color: var(--color-black) !important;
}
.text-primary {
  color: var(--color-primary) !important;
}
.text-secondary {
  color: var(--color-secondary) !important;
}
.text-accent {
  color: var(--color-accent) !important;
}
.text-gray {
  color: var(--color-gray) !important;
}

/* 境界線 */
.border {
  border: 1px solid var(--color-gray) !important;
}
.border-t {
  border-top: 1px solid var(--color-gray) !important;
}
.border-r {
  border-right: 1px solid var(--color-gray) !important;
}
.border-b {
  border-bottom: 1px solid var(--color-gray) !important;
}
.border-l {
  border-left: 1px solid var(--color-gray) !important;
}
.border-0 {
  border: none !important;
}

/* 角丸 */
.rounded {
  border-radius: 0.5rem !important;
}
.rounded-lg {
  border-radius: 1rem !important;
}
.rounded-full {
  border-radius: 9999px !important;
}

/* シャドウ */
.shadow {
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.1) !important;
}
.shadow-lg {
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15) !important;
}
.shadow-none {
  box-shadow: none !important;
}

/* ポジション */
.relative {
  position: relative !important;
}
.absolute {
  position: absolute !important;
}
.fixed {
  position: fixed !important;
}
.sticky {
  position: sticky !important;
}

/* オーバーフロー */
.overflow-hidden {
  overflow: hidden !important;
}
.overflow-auto {
  overflow: auto !important;
}
.overflow-scroll {
  overflow: scroll !important;
}
.overflow-x-auto {
  overflow-x: auto !important;
}
.overflow-y-auto {
  overflow-y: auto !important;
}

/* z-index */
.z-0 {
  z-index: 0 !important;
}
.z-10 {
  z-index: 10 !important;
}
.z-20 {
  z-index: 20 !important;
}
.z-30 {
  z-index: 30 !important;
}
.z-40 {
  z-index: 40 !important;
}
.z-50 {
  z-index: 50 !important;
}
.z-auto {
  z-index: auto !important;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  /* SPでのユーティリティクラスの調整 */
  .sp-hidden {
    display: none !important;
  }
}

@media screen and (min-width: 768px) {
  /* PCでのユーティリティクラスの調整 */
  .pc-hidden {
    display: none !important;
  }
}

/* Sitemap Styles
--------------------------- */
.sitemap-container {
  max-width: 100rem;
  margin: 10rem auto;
  padding: 0 2rem;
}

@media screen and (max-width: 767px) {
  .sitemap-container {
    width: 100%;
    padding-left: 5rem;
    padding-right: 1rem;
  }
}

.sitemap-container ul li {
  margin-top: 1rem;
}

.sitemap-container ul li > ul {
  margin-left: 3rem;
}

.sitemap-container ul li a {
  font-family: "游ゴシック体 Pr6N B";
  color: #4A3D72;
  text-decoration: underline;
  font-weight: bold;
}

/* Contact Form 7 Styles
--------------------------- */
/* フォーム全体 */
.wpcf7 {
  margin-top: 3rem;
}

.wpcf7-form {
  background: #fff;
  padding: 3rem;
  border-radius: 0.8rem;
}

@media screen and (max-width: 767px) {
  .wpcf7-form {
    padding: 2rem 1.5rem;
  }
}

/* フォームフィールド */
.wpcf7-form p {
  margin-bottom: 2rem;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: bold;
  color: var(--color-gray);
}

.wpcf7-form-control-wrap {
  display: block;
  position: relative;
}

/* テキスト入力フィールド */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 1.2rem 1.6rem;
  border: 1px solid #ddd;
  border-radius: 0.4rem;
  font-size: 1.6rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="number"]:focus,
.wpcf7-form input[type="date"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(74, 61, 114, 0.1);
}

.wpcf7-form textarea {
  min-height: 15rem;
  resize: vertical;
}

/* セレクトボックス */
.wpcf7-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 1.2rem;
  padding-right: 4rem;
}

/* Contact Form 7 チェックボックス・ラジオボタン */
.wpcf7-form .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.wpcf7-form .wpcf7-checkbox input[type="checkbox"],
.wpcf7-form .wpcf7-radio input[type="radio"],
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  appearance: none;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid #999;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  position: relative;
  margin: 0;
  padding: 0;
}

.wpcf7-form .wpcf7-radio input[type="radio"] {
  border-radius: 50%;
}

.wpcf7-form input[type="checkbox"]:checked,
.wpcf7-form input[type="radio"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.wpcf7-form input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.wpcf7-form .wpcf7-radio input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

/* 必須マーク */
.wpcf7-form .wpcf7-form-control.wpcf7-validates-as-required {
  border-color: #ddd;
}

/* エラーメッセージ */
.wpcf7-form .wpcf7-not-valid-tip {
  display: block;
  color: #dc3545;
  font-size: 1.4rem;
  margin-top: 0.5rem;
}

.wpcf7-form .wpcf7-not-valid {
  border-color: #dc3545 !important;
}

.wpcf7-form .wpcf7-response-output {
  margin: 2rem 0 0;
  padding: 1.5rem;
  border-radius: 0.4rem;
  font-size: 1.5rem;
  border: 2px solid transparent;
}

.wpcf7-form .wpcf7-validation-errors {
  background-color: #fff3cd;
  border-color: #ffc107;
  color: #856404;
}

.wpcf7-form .wpcf7-mail-sent-ok {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.wpcf7-form .wpcf7-mail-sent-ng,
.wpcf7-form .wpcf7-aborted {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

/* 送信ボタン */
.wpcf7-form input[type="submit"] {
  display: inline-block;
  padding: 1.5rem 4rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0.4rem;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 30rem;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.wpcf7-form input[type="submit"]:active {
  transform: translateY(0);
}

@media screen and (max-width: 767px) {
  .wpcf7-form input[type="submit"] {
    width: 100%;
    max-width: 100%;
  }
}


/* スピナー（送信中） */
.wpcf7-form .ajax-loader {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  margin-left: 1rem;
  vertical-align: middle;
}

/* 条件分岐で表示される採用フィールド */
.recruit-fields {
  margin-top: 2rem;
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 0.8rem;
  border-left: 4px solid var(--color-primary);
}

.recruit-fields.hidden {
  display: none;
}

.recruit-fields.show {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* プライバシーポリシー同意欄のレイアウト */
.privacy-checkbox-wrapper {
  margin: 2rem 0;
}

.privacy-checkbox-wrapper p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.privacy-checkbox-wrapper a {
  color: var(--color-primary);
  text-decoration: underline;
}

.privacy-checkbox-wrapper a:hover {
  text-decoration: none;
}

/* CTA Section
--------------------------- */
.contact-cta {
  background-image: url('../img/common/bg_cta.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 2rem;
  margin-top: 8rem;
  text-align: center;
  color: white;
  position: relative;
}

.contact-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.contact-cta > * {
  position: relative;
  z-index: 1;
}

.contact-cta-inner {
  max-width: 100rem;
  margin: 0 auto;
}

.contact-cta-title {
  font-size: 3.2rem;
  font-weight: bold;
  margin-bottom: 2rem;
  line-height: 1.4;
}

.contact-cta-subtitle {
  font-size: 1.8rem;
  line-height: 1.8;
  margin-bottom: 4rem;
  opacity: 0.95;
}

.contact-cta-buttons {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 4rem;
}

.cta-button {
  display: inline-block;
  padding: 1.8rem 4rem;
  font-size: 1.8rem;
  font-weight: bold;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid white;
  color: white;
  background: transparent;
}

.cta-button.primary {
  background: white;
  color: var(--color-primary);
  border-color: white;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.contact-info {
  display: flex;
  gap: 4rem;
  justify-content: center;
  align-items: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-phone {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2rem;
  font-weight: bold;
}

.contact-phone svg {
  width: 2.4rem;
  height: 2.4rem;
}

.contact-hours {
  font-size: 1.5rem;
  line-height: 1.8;
  opacity: 0.9;
}

/* レスポンシブ対応 */
@media screen and (max-width: 767px) {
  .contact-cta {
    padding: 4rem 2rem;
    margin-top: 6rem;
  }

  .contact-cta-title {
    font-size: 2.4rem;
  }

  .contact-cta-subtitle {
    font-size: 1.6rem;
    margin-bottom: 3rem;
  }

  .contact-cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }

  .cta-button {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.6rem;
  }

  .contact-info {
    flex-direction: column;
    gap: 2rem;
  }

  .contact-phone {
    font-size: 1.8rem;
  }
}

/* Map Container
--------------------------- */
.map-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  display: block;
  width: 100%;
}
