/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

#root,
#__next {
  isolation: isolate;
}

/*
header
*/
/* --- 共通モバイルメニュー --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 99;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
  text-align: center;
}
.mobile-menu li {
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.mobile-menu.is-open li {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.is-open li:nth-child(1) {
  transition-delay: 0.1s;
}
.mobile-menu.is-open li:nth-child(2) {
  transition-delay: 0.2s;
}
.mobile-menu.is-open li:nth-child(3) {
  transition-delay: 0.3s;
}
.mobile-menu.is-open li:nth-child(4) {
  transition-delay: 0.4s;
}
.mobile-menu a {
  font-family: "Orbitron", sans-serif;
  font-size: 2rem;
  color: #ff8a8a;
  text-decoration: none;
}

/* --- 共通ハンバーガーボタン --- */
.hamburger-button {
  display: flex; /* スマホでは表示 */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}
.hamburger-button span {
  width: 30px;
  height: 2px;
  background: #ff3333;
  transition: all 0.3s ease;
  border-radius: 2px;
}
.hamburger-button.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-button.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger-button.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* PC表示ではハンバーガーを非表示 */
@media (min-width: 768px) {
  .hamburger-button {
    display: none;
  }
}

/* === システム・フレーム デザイン === */
.site-header.header-frame {
  position: fixed; /* ページスクロールに追従させる */
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  justify-content: space-between; /* ロゴとメニューを両端に配置 */
  align-items: center;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 51, 51, 0.3);
  background: rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}
.header-frame::before,
.header-frame::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: #ff3333;
}
.header-frame::before {
  top: -2px;
  left: -2px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.header-frame::after {
  top: -2px;
  right: -2px;
  border-top: 2px solid;
  border-right: 2px solid;
}
.site-branding .site-logo {
  width: 50px;
  height: auto;
  transition: transform 0.3s ease;
  display: block;
}
.site-branding .site-logo:hover {
  transform: rotate(15deg);
}
.header-frame .main-navigation {
  display: none;
}
.header-frame .main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-frame .main-navigation li:not(:last-child)::after {
  content: "|";
  color: rgba(255, 51, 51, 0.5);
  margin-left: 1rem;
}
.header-frame .main-navigation a {
  color: #ff8a8a;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}
.header-frame .main-navigation a:hover {
  color: #fff;
}
@media (min-width: 768px) {
  .header-frame .main-navigation {
    display: block;
  }
}

.site-branding .site-logo {
  width: 50px; /* お好みのサイズに調整してください */
  height: auto;
  transition: transform 0.3s ease;
}

.site-branding .site-logo:hover {
  transform: rotate(15deg);
}
@media (min-width: 768px) {
  .header-frame .main-navigation {
    display: block;
  }
}

/*
MVcss
*/

body,
html {
  margin: 0;
  padding: 0;
  background-color: #000;
}

.mv {
  width: 100%;
  height: 100vh;
  position: relative;
  background: radial-gradient(circle, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
  font-family: "Source Code Pro", monospace;
  color: #ff3333;
  overflow: hidden;
  /* ↓↓↓ ヘッダーの高さ分（約100px）のパディングを追加 ↓↓↓ */
  padding-top: 100px;
  box-sizing: border-box;
}
.scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 50, 50, 0.3);
  animation: v-scan 4s linear infinite;
}
@keyframes v-scan {
  from {
    top: -10px;
  }
  to {
    top: 100%;
  }
}
.data-stream {
  position: absolute;
  font-size: 0.8rem;
  white-space: pre;
  opacity: 0.8;
}
/* ↓↓↓ ヘッダーと被らないように位置を調整 ↓↓↓ */
#data-top-left {
  top: 100px;
  left: 2rem;
}
#data-bottom-right {
  bottom: 2rem;
  right: 2rem;
  text-align: right;
}
.main-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.main-target.visible {
  opacity: 1;
}
.main-target-name {
  font-family: "Orbitron", sans-serif;
  font-size: 5vw;
  text-shadow: 0 0 20px #ff3333;
}
.main-target-status {
  font-size: 2vw;
  color: #4ade80; /* Green for success */
}
.target-box {
  position: absolute;
  /* width, heightはJSで制御するため削除 */
  border: 2px solid #ff3333;
  box-shadow: 0 0 20px #ff3333 inset, 0 0 20px #ff3333;
  transition: all 0.5s ease-in-out;
}
.target-box::before,
.target-box::after {
  content: "";
  position: absolute;
  background: #ff3333;
}
.target-box::before {
  width: 20px;
  height: 2px;
  top: 50%;
  left: -22px;
  transform: translateY(-50%);
}
.target-box::after {
  width: 2px;
  height: 20px;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
}
.target-info {
  position: absolute;
  bottom: -2.5rem;
  left: 0;
  width: 100%;
  font-size: 1rem;
}
.flicker {
  animation: flicker-anim 0.1s infinite;
}
@keyframes flicker-anim {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

/*
--- WORKS Section ---
*/

/* セクション共通スタイル */
.works-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 51, 51, 0.3);
}

.works-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem; /* スマホ用の基本サイズ */
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 15px #ff3333;
  animation: flicker 3s infinite alternate;
}
/* PCなどの大きい画面では文字を大きくする */
@media (min-width: 768px) {
  .works-title {
    font-size: 3rem;
  }
}

@keyframes flicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    text-shadow: 0 0 15px #ff3333, 0 0 30px #ff3333;
  }
  20%,
  24%,
  55% {
    text-shadow: none;
  }
}

.work-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.work-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.work-item-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 51, 51, 0.5);
  background: rgba(255, 51, 51, 0.05);
  transition: all 0.3s ease;
}

.work-thumbnail {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 51, 51, 0.5);
}

.work-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease;
}

.work-info {
  padding: 1rem;
}

.work-info h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.work-info .role {
  font-size: 0.8rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

.work-info p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.work-link {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* --- デザイン7: Holo-Data Cards --- */
.holo-card {
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(5px);
}
.holo-card:hover {
  border-color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  transform: translateY(-5px);
}
.holo-card .work-thumbnail img {
  filter: grayscale(50%) contrast(1.2) brightness(0.9) sepia(80%)
    hue-rotate(100deg) saturate(300%);
}
.holo-card:hover .work-thumbnail img {
  filter: none;
}
.holo-card .work-info h3 {
  color: #6ee7b7;
}
.holo-card .work-info .role {
  color: #a7f3d0;
}
.holo-card .work-info p {
  color: #d1fae5;
}
.holo-card .work-link {
  color: #6ee7b7;
  border-color: #6ee7b7;
}
.holo-card .work-link:hover {
  background: #6ee7b7;
  color: #000;
}
.holo-card .scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  animation: holo-scan 3s linear infinite;
}
@keyframes holo-scan {
  from {
    top: -10%;
  }
  to {
    top: 110%;
  }
}

/*
--- SKILL Section ---
*/

/* セクション共通スタイル */
.skill-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 51, 51, 0.3);
}

.skill-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem; /* スマホ用の基本サイズ */
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 15px #ff3333;
  animation: flicker 3s infinite alternate;
}
/* PCなどの大きい画面では文字を大きくする */
@media (min-width: 768px) {
  .skill-title {
    font-size: 3rem;
  }
}

@keyframes flicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    text-shadow: 0 0 15px #ff3333, 0 0 30px #ff3333;
  }
  20%,
  24%,
  55% {
    text-shadow: none;
  }
}

/* カテゴリ見出し */
.skill-category-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 51, 51, 0.3);
  padding-bottom: 0.5rem;
  color: #ff8a8a;
}

.skill-grid-title {
  grid-column: 1 / -1; /* グリッドの全カラムにまたがるように指定 */
}

/* JSで制御するための初期状態 */
.skill-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
/* JSによって追加される表示状態 */
.skill-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- データカード・グリッド --- */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  border: 1px solid rgba(255, 51, 51, 0.3);
  background: rgba(255, 51, 51, 0.05);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.skill-card:hover {
  background: rgba(255, 51, 51, 0.1);
  transform: translateY(-5px);
  border-color: #ff3333;
}

.skill-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-card-icon {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  /* 画像をテーマカラーに合わせるフィルター */
  filter: grayscale(1) sepia(100%) hue-rotate(-55deg) saturate(800%)
    contrast(1.5) brightness(0.9);
}

.skill-card-title {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  color: #ff8a8a;
}

.skill-card-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  /* color: #ff8a8a; */
  color: #fff;
}

/* --- ABOUT Section (AGENT PROFILE v3) --- */

.about-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 51, 51, 0.3);
  line-height: 1.7;
}

.about-section p {
  color: #fff;
}

.about-section li {
  color: #fff;
}

/* Make sure the title has the same style as other sections */
.about-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem; /* スマホ用の基本サイズ */
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 15px #ff3333;
  animation: flicker 3s infinite alternate;
}

@media (min-width: 768px) {
  .about-title {
    font-size: 3rem;
  }
}

/* More semantic class name for the wrapper */
.about-section .about-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

/* The actual styled panel */
.about-section .profile-panel {
  width: 100%;
  border: 1px solid rgba(255, 51, 51, 0.5);
  padding: 1.5rem;
  position: relative;
  background: rgba(10, 0, 0, 0.8);
  box-shadow: 0 0 25px rgba(255, 51, 51, 0.5),
    inset 0 0 15px rgba(255, 51, 51, 0.3);
}

.about-section .profile-panel::before,
.about-section .profile-panel::after {
  content: "";
  position: absolute;
  width: 25px;
  height: 25px;
  border-color: #ff3333;
  z-index: 10;
}
.about-section .profile-panel::before {
  top: -2px;
  left: -2px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.about-section .profile-panel::after {
  bottom: -2px;
  right: -2px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.about-section .profile-layout {
  display: flex;
  gap: 1.5rem;
}

/* --- Left Panel --- */
.about-section .id-panel {
  flex: 0 0 250px;
  text-align: center;
}
.about-section .panel-title {
  font-family: "Source Code Pro", monospace;
  font-weight: 700;
  background-color: #ff3333;
  color: #000;
  padding: 0.25rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.about-section .photo-wrapper {
  position: relative;
  border: 1px solid #ff3333;
  background: #000;
  margin-bottom: 1rem;
}
.about-section .photo-wrapper img {
  display: block;
  max-width: 100%;
  filter: grayscale(1) contrast(1.1);
  opacity: 0.9;
  margin: 0 auto;
}
.about-section .photo-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ff3333;
  mix-blend-mode: color;
  opacity: 0.7;
}
.about-section .photo-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.7) 2px,
    rgba(0, 0, 0, 0.7) 3px
  );
  pointer-events: none;
}

.about-section .agent-name {
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
}
.about-section .agent-status {
  font-size: 1rem;
  color: #4ade80;
  text-shadow: 0 0 5px #4ade80;
  margin-bottom: 1rem;
}
.about-section .agent-info {
  font-size: 0.9rem;
  text-align: left;
  color: #fff;
}
.about-section .agent-info p {
  margin-bottom: 0.5rem;
}

/* --- Right Panel --- */
.about-section .details-panel {
  flex: 1 1 auto;
  border-left: 1px solid rgba(255, 51, 51, 0.3);
  padding-left: 1.5rem;
}
.about-section .details-header h1 {
  font-family: "Orbitron", sans-serif;
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}
.about-section .tab-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.about-section .tab-nav a {
  padding: 0.25rem 0.75rem;
  border: 1px solid #4ade80;
  color: #4ade80;
  text-decoration: none;
  font-family: "Source Code Pro", monospace;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.about-section .tab-nav a:hover,
.about-section .tab-nav a.active {
  background: #4ade80;
  color: #000;
  box-shadow: 0 0 10px #4ade80;
}

.about-section .content-area section {
  display: none;
}
.about-section .content-area section.active {
  display: block;
}
.about-section .content-area h2 {
  font-family: "Source Code Pro", monospace;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
}
.about-section .content-area p,
.about-section .content-area ul li {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.about-section .content-area ul {
  list-style: none;
  padding-left: 1.2rem;
}
.about-section .content-area ul li {
  position: relative;
  margin-bottom: 0.5rem;
}
.about-section .content-area ul li::before {
  content: "●";
  color: #ff3333;
  position: absolute;
  left: -1.2rem;
  top: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .about-section .profile-layout {
    flex-direction: column;
  }
  .about-section .details-panel {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(255, 51, 51, 0.3);
    padding-top: 1.5rem;
  }
}

/* --- CONTACT Section --- */

.page-section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 51, 51, 0.3);
}

.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem; /* Fallback for smaller screens */
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 15px #ff3333;
  animation: flicker 3s infinite alternate;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3rem;
  }
}

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-description {
  margin-bottom: 3rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  color: #ff8a8a;
}

.btn-directive {
  display: inline-block;
  font-family: "Orbitron", sans-serif;
  text-decoration: none;
  color: #ff3333;
  background: transparent;
  border: 2px solid #ff3333;
  padding: 1rem 3rem;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-directive:hover {
  color: #000;
  background: #ff3333;
  box-shadow: 0 0 30px #ff3333;
}

.btn-directive::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-directive:hover::before {
  left: 100%;
}

/*
--- CONTACT PAGE ---
*/
.page-contact {
  padding: 8rem 2rem 4rem; /* ヘッダーとの重なりを避けるためpadding-topを調整 */
  max-width: 800px;
  margin: 0 auto;
}
.page-contact__title {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 0 15px #ff3333;
}
.page-contact__description {
  text-align: center;
  color: #ff8a8a;
  margin-bottom: 3rem;
}

/* --- HUD Interface for MW WP Form on Contact Page --- */
.page-contact__form-wrapper {
  border: 1px solid rgba(255, 51, 51, 0.3);
  padding: 2.5rem 2rem 1.5rem 2rem;
  position: relative;
}
.page-contact__form-wrapper::before,
.page-contact__form-wrapper::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: #ff3333;
}
.page-contact__form-wrapper::before {
  top: -2px;
  left: -2px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.page-contact__form-wrapper::after {
  bottom: -2px;
  right: -2px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* 各フォーム項目(.form-group)のスタイリング */
.page-contact__form-wrapper .form-group {
  position: relative; /* ラベルを絶対配置するための基準点 */
  margin-bottom: 2.5rem;
}

/* ★★★ 修正点 ★★★ */
/* ラベルとなる「最初のpタグ」のみを絶対配置するようセレクタを修正 */
.page-contact__form-wrapper .form-group > p:first-child {
  position: absolute;
  top: 0; /* 入力欄の上辺に配置 */
  left: 1rem;
  transform: translateY(-50%); /* 高さを半分上にずらして中央に配置 */
  background: #000; /* 背景色と同じにして線を途切れさせる */
  padding: 0 0.5rem;
  font-size: 0.8rem;
  color: #ff8a8a;
  z-index: 1; /* 枠線の上に表示 */
  margin: 0; /* pタグのデフォルトマージンをリセット */
}

.page-contact__form-wrapper .required-indicator {
  color: #ff3333;
  font-weight: bold;
  font-size: 0.7rem;
  margin-left: 0.25rem;
}

/* 入力欄のスタイリング */
.page-contact__form-wrapper input[type="text"],
.page-contact__form-wrapper input[type="email"],
.page-contact__form-wrapper input[type="tel"],
.page-contact__form-wrapper textarea {
  background: transparent;
  border: 1px solid rgba(255, 51, 51, 0.5);
  color: #ff3333;
  padding: 1rem;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.page-contact__form-wrapper input[type="text"]:focus,
.page-contact__form-wrapper input[type="email"]:focus,
.page-contact__form-wrapper input[type="tel"]:focus,
.page-contact__form-wrapper textarea:focus {
  outline: none;
  border-color: #ff8a8a;
  box-shadow: 0 0 15px rgba(255, 51, 51, 0.5);
}
.page-contact__form-wrapper textarea {
  min-height: 150px;
  resize: vertical;
}

/* 送信ボタンのラッパー */
.page-contact__form-wrapper .submit-button-container {
  text-align: center;
  margin-top: 2rem;
}
/* 送信ボタン本体 */
.page-contact__form-wrapper .submit-button {
  border: 1px solid #ff3333;
  background: transparent;
  color: #ff3333;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  transition: all 0.3s ease;
}
.page-contact__form-wrapper .submit-button:hover {
  background: #ff3333;
  color: #000;
}

/* --- MW WP Form 確認画面の調整 --- */

/* 確認画面の各項目をボックスのように見せる */
.mw_wp_form_confirm .form-group {
  position: relative;
  border: 1px solid rgba(255, 51, 51, 0.5);
  padding: 1.5rem 1rem 1rem; /* 上にラベル用の余白を確保 */
  margin-bottom: 2.5rem;
  min-height: 4.5em; /* 最低限の高さを確保 */
  color: #ff8a8a; /* 入力された文字の色 */
}

/* 確認画面でもラベルが枠の上に乗るように調整 */
.mw_wp_form_confirm .form-group > p:first-child {
  /* このスタイルは入力画面と共通のはずですが、念のため記述 */
  position: absolute;
  top: 0;
  left: 1rem;
  transform: translateY(-50%);
  background: #000;
  padding: 0 0.5rem;
  z-index: 1;
}

/* 送信ボタンの見た目を調整 */
.mw_wp_form_confirm .submit-button {
  border: 1px solid #ff3333;
  background: transparent;
  color: #ff3333;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  font-family: "Orbitron", sans-serif;
  transition: all 0.3s ease;
}
.mw_wp_form_confirm .submit-button:hover {
  background: #ff3333;
  color: #000;
}

/* テキストエリアの改行を保持する */
.mw_wp_form_confirm
  .form-group[data-mw-wp-form-form-id="7"]
  > p:last-of-type
  + br
  + * {
  white-space: pre-wrap;
}

/* --- MW WP Form 完了画面の調整 --- */

.mw_wp_form_complete {
  padding: 4rem 1rem; /* 内側に十分な余白を設ける */
  text-align: center; /* メッセージを中央揃えに */
  color: #4ade80; /* トップページの "MATCH CONFIRMED" と同じ成功を表す緑色 */
  line-height: 1.8; /* 行の高さを調整 */
}
