/* ================================================
   Dainichik Kako Theme - Tailwind風デザイン
   ================================================ */

/* CSS Variables */
:root {
  /* Colors */
  --color-primary: #6a9981;
  --color-bg: #f8f9fa;
  --color-bg-light-green: #eef3ef;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Gray Scale */
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;

  /* Blue */
  --color-blue-700: #1d4ed8;

  /* Fonts */
  --font-heading: "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-english: "Inter", sans-serif;
  --font-primary: "Noto Sans JP", sans-serif;

  /* Spacing */
  --spacing-1: 0.25rem;  /* 4px */
  --spacing-2: 0.5rem;   /* 8px */
  --spacing-3: 0.75rem;  /* 12px */
  --spacing-4: 1rem;     /* 16px */
  --spacing-5: 1.25rem;  /* 20px */
  --spacing-6: 1.5rem;   /* 24px */
  --spacing-8: 2rem;     /* 32px */
  --spacing-12: 3rem;    /* 48px */
  --spacing-16: 4rem;    /* 64px */
  --spacing-20: 5rem;    /* 80px */
  --spacing-24: 6rem;    /* 96px */
  --spacing-32: 8rem;    /* 128px */
}

/* Base Styles */
body {
  font-family: var(--font-body);
  background-color: #fff;
  color: var(--color-gray-800);
  line-height: 1.5;
  margin: 0;
  padding: 0;
}

/* 見出しタグは平成明朝 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Pタグは秀英角ゴシック */
p {
  font-family: var(--font-body);
}

/* 英語クラスはノイエ・ハース・グロテスク */
.en,
.english,
[lang="en"] {
  font-family: var(--font-english);
}

/* Container */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Main Content */
.main-content {
  padding-top: var(--spacing-16);
  padding-bottom: var(--spacing-16);
  position: relative;
  z-index: 999;
  background-color: #ffffff;
}

.main-content > .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

/* Section Styles */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-8);
}

.section-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-8);
}

.section-row-reverse {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-8);
}

/* Text Content */
.text-content {
  flex: 1;
}

.text-content-half {
  width: 100%;
}

/* Labels & Headings */
.label-primary {
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.1em;
  font-size: 1.125rem; /* 18px */
  margin-bottom: var(--spacing-2);
  font-family: var(--font-english);
}

.heading-xl {
  font-size: 2.25rem; /* 36px */
  font-weight: 700;
  margin-bottom: var(--spacing-6);
  line-height: 1.2;
  color: var(--color-gray-800);
  font-family: var(--font-heading);
}

.heading-lg {
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  margin-bottom: var(--spacing-4);
  color: var(--color-gray-800);
  font-family: var(--font-heading);
}

.text-body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-gray-600);
}

/* Image Grid */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: var(--spacing-2);
  height: 24rem; /* 384px */
  width: 100%;
}

.image-grid-item {
  border-radius: 0.5rem; /* 8px */
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

.image-grid-item-1 {
  grid-column: span 1;
  grid-row: span 2;
}

.image-grid-item-2 {
  grid-column: span 1;
  grid-row: span 1;
}

.image-grid-item-3 {
  grid-column: span 1;
  grid-row: span 2;
}

.image-grid-item-4 {
  grid-column: span 1;
  grid-row: span 1;
}

.image-grid-item-5 {
  grid-column: span 2;
  grid-row: span 1;
  position: relative;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-overlay-text {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Equipment Table */
.table-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-8);
  width: 100%;
}

.table-header-content {
  text-align: center;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.equipment-table {
  min-width: 100%;
  background-color: var(--color-white);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-collapse: collapse;
}

.equipment-table thead {
  background-color: var(--color-gray-800);
  color: var(--color-white);
}

.equipment-table th {
  text-align: left;
  padding: var(--spacing-3) var(--spacing-4);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.875rem;
}

.equipment-table tbody {
  color: var(--color-gray-700);
}

.equipment-table td {
  padding: var(--spacing-3) var(--spacing-4);
}

@media (max-width: 767px) {
  .equipment-table td {
    padding: var(--spacing-3) var(--spacing-4);
    font-size: 0.8rem;
  }
}

.equipment-table tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
}

.equipment-table tbody tr:nth-child(even) {
  background-color: var(--color-gray-50);
}

.equipment-table tbody tr:hover {
  background-color: var(--color-gray-100);
}

/* Greeting Section */
.greeting-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-8);
}

.greeting-content {
  width: 100%;
  order: 2;
}

.greeting-text-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  margin-top: var(--spacing-4);
  margin-bottom: var(--spacing-4);
}

.greeting-signature {
  margin-top: var(--spacing-8);
  font-size: 1.125rem;
  font-weight: 600;
  text-align: right;
}

.greeting-image {
  width: 100%;
  order: 1;
}

.greeting-image img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Company Section */
.company-section {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--spacing-8);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
}

.company-image {
  width: 100%;
}

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

.company-info {
  width: 100%;
  padding: var(--spacing-8);
  background-color: var(--color-bg-light-green);
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  color: var(--color-gray-700);
}

.company-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--color-gray-300);
  padding-top: var(--spacing-3);
  padding-bottom: var(--spacing-3);
}

.company-detail-row:last-child {
  border-bottom: none;
  padding-top: var(--spacing-3);
  padding-bottom: 0;
}

.company-detail-label {
  font-weight: 600;
}

.company-detail-value {
  text-align: right;
}

/* History Section (Parallax) */
.history-section {
  background-image: url('https://images.unsplash.com/photo-1547290624-508b2b712c91?q=80&w=2070&auto=format&fit=crop');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  min-height: 600px;
  width: 100%;
}

.history-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.history-content {
  position: relative;
  display: flex;
  width: 100%;
  gap: var(--spacing-12);
  padding-top: var(--spacing-16);
  padding-bottom: var(--spacing-16);
  height: 100%;
  align-items: center;
  color: var(--color-white);
}

.history-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vertical-text-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  color: #d1d5db;
  margin-bottom: var(--spacing-4);
}

.vertical-text-heading {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 2.25rem;
  font-weight: 700;
}

.timeline {
  width: 100%;
}

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

.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0.4rem;
  top: 0.4rem;
  width: 1px;
  height: 100%;
  background-color: var(--color-white);
}

.timeline-item:last-child::before {
  height: 0;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background-color: var(--color-white);
  border: 2px solid var(--color-white);
}

.timeline-year {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-1);
}

.timeline-text {
  color: #d1d5db;
}

/* News Section */
.news-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-8);
}

.news-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.news-header-text {
  text-align: left;
  width: 100%;
}

.news-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-top: var(--spacing-8);
  gap: var(--spacing-4);
}

.news-link-text {
  font-weight: 600;
  color: var(--color-gray-800);
  transition: color 0.3s ease;
}

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

.news-link-line {
  width: 8rem;
  height: 1px;
  background-color: var(--color-gray-700);
  transition: all 0.3s ease;
}

.news-link:hover .news-link-line {
  transform: translateX(0.5rem);
  background-color: var(--color-primary);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
}

.news-item {
  display: block;
  border-bottom: 1px solid var(--color-gray-300);
  padding-bottom: var(--spacing-5);
  text-decoration: none;
}

.news-item-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.news-date {
  color: var(--color-blue-700);
  font-weight: 500;
}

.news-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-gray-800);
  transition: color 0.3s ease;
}

.news-item:hover .news-title {
  color: var(--color-primary);
}

/* Recruitment Section */
.recruitment-section {
  position: relative;
  background-image: url('https://images.unsplash.com/photo-1531482615713-2c6571b79b5c?q=80&w=2070&auto=format&fit=crop');
  background-position: center;
  background-size: cover;
  padding-top: var(--spacing-20);
  padding-bottom: var(--spacing-20);
}

.recruitment-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.recruitment-content {
  position: relative;
  max-width: 48rem;
  color: var(--color-white);
}

.recruitment-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: var(--spacing-6);
}

.recruitment-text {
  margin-bottom: var(--spacing-4);
  line-height: 1.75;
}

.recruitment-cta {
  margin-bottom: var(--spacing-8);
}

.recruitment-link {
  display: inline-block;
  border-bottom: 2px solid var(--color-white);
  padding-bottom: 0.25rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-white);
  transition: all 0.3s ease;
}

.recruitment-link:hover {
  color: #d1d5db;
  border-bottom-color: #d1d5db;
}

/* Responsive Design */
@media (min-width: 768px) {
  .main-content {
    gap: 3rem;
    padding-top: var(--spacing-24);
    padding-bottom: var(--spacing-24);
  }

  .section-row,
  .section-row-reverse {
    flex-direction: row;
    gap: var(--spacing-12);
  }

  .section-row-reverse {
    flex-direction: row-reverse;
  }

  .text-content-half {
    width: 50%;
  }

  .image-grid {
    width: 50%;
  }

  .heading-xl {
    font-size: 3rem; /* 48px */
  }

  .greeting-section {
    flex-direction: row;
  }

  .greeting-content {
    width: 50%;
    order: 1;
  }

  .greeting-image {
    width: 50%;
    order: 2;
  }

  .company-section {
    flex-direction: row;
    gap: 0;
  }

  .company-image,
  .company-info {
    width: 50%;
  }

  .company-info {
    padding: var(--spacing-12);
  }

  .company-detail-row {
    align-items: center;
  }

  .history-section {
    min-height: 700px;
  }

  .history-content {
    gap: var(--spacing-20);
  }

  .news-section {
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-16);
  }

  .news-header {
    align-items: flex-end;
  }

  .news-header-text {
    text-align: right;
  }

  .news-link {
    margin-top: auto;
  }

  .news-item-content {
    flex-direction: row;
    align-items: baseline;
    gap: var(--spacing-4);
  }

  .recruitment-title {
    font-size: 2.25rem; /* 36px */
  }

  .recruitment-section {
    padding-top: var(--spacing-32);
    padding-bottom: var(--spacing-32);
  }
}

/* Mobile-specific adjustments */
@media (max-width: 767px) {
  .section-row .image-grid {
    order: 2;
  }

  .section-row .text-content-half {
    order: 1;
  }

  .section-row-reverse .image-grid {
    order: 2;
  }

  .section-row-reverse .text-content-half {
    order: 1;
  }

  .greeting-content {
    order: 2;
  }

  .greeting-image {
    order: 1;
  }

  .vertical-text-label,
  .vertical-text-heading {
    writing-mode: horizontal-tb;
  }

  .history-content {
    flex-direction: column;
  }
}

/* ================================================
   Header Styles (元のデザイン)
   ================================================ */

/* Header用の色定義 */
.header {
  --header-color-primary: #185246;
  --header-font-mincho: "Sawarabi Mincho", "游明朝", "Yu Mincho", YuMincho, serif;
}

/* Header Container */
.element-light .header {
  background-color: var(--color-white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.element-light .header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 30px var(--container-padding-x, 120px);
  max-width: 1920px;
  margin: 0 auto;
}

.element-light .heading-link {
  margin: 0;
  flex-shrink: 0;
}

.element-light .heading-link a {
  text-decoration: none;
}

.element-light .heading-link .div {
  color: var(--header-color-primary);
  font-family: var(--header-font-mincho);
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  white-space: nowrap;
}

.element-light .heading-link .text-wrapper {
  font-size: 28px;
  font-weight: 700;
}

.element-light .heading-link .span {
  font-size: 20px;
}

/* Navigation */
.element-light .header .nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.element-light .header .list {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.element-light .item-link,
.element-light .item-link-OEM-ODM,
.element-light .item-link-OEM-ODM-2,
.element-light .item-link-2,
.element-light .item-link-3 {
  color: var(--color-gray-800);
  font-family: var(--header-font-mincho);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.3s ease;
}

.element-light .item-link:hover,
.element-light .item-link-OEM-ODM:hover,
.element-light .item-link-OEM-ODM-2:hover,
.element-light .item-link-2:hover,
.element-light .item-link-3:hover {
  color: var(--header-color-primary);
}

.element-light .header .link {
  display: inline-flex;
  align-items: center;
  background-color: var(--header-color-primary);
  border-radius: 8px;
  gap: 8px;
  padding: 12px 24px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.element-light .header .link:hover {
  background-color: #0f3d33;
}

.element-light .header .text-wrapper-2 {
  color: var(--color-white);
  font-family: var(--header-font-mincho);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  white-space: nowrap;
}

.element-light .header .SVG {
  width: 20px;
  height: 20px;
}

/* Header Responsive */
@media (max-width: 768px) {
  .element-light .header {
    position: sticky;
  }
  
  .element-light .header .container {
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  .element-light .header .nav {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .element-light .header .list {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
  }
}

/* Body padding for fixed header */
body {
  padding-top: 100px;
}

@media (max-width: 768px) {
  body {
    padding-top: 0;
  }
}

/* ================================================
   Footer Styles (元のデザイン)
   ================================================ */

.element-light .footer {
  background-color: var(--header-color-primary);
  padding: var(--spacing-xl) 120px var(--spacing-md);
}

.element-light .footer .container-16 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-lg);
  max-width: 1920px;
  margin: 0 auto;
}

.element-light .text-wrapper-78 {
  color: var(--color-white);
  font-family: var(--header-font-mincho);
  font-size: 24px;
  font-weight: 700;
}

.element-light .address {
  font-style: normal;
}

.element-light .element-TEL {
  color: var(--color-white);
  font-family: var(--header-font-mincho);
  font-size: 16px;
  line-height: 28px;
  margin: 0;
}

.element-light .nav-2 {
  max-width: 100%;
}

.element-light .list-2,
.element-light .list-3 {
  display: flex;
  gap: var(--spacing-lg);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.element-light .div-wrapper-2 {
  display: inline-block;
}

.element-light .text-wrapper-79,
.element-light .text-wrapper-80,
.element-light .text-wrapper-81,
.element-light .text-wrapper-82,
.element-light .text-wrapper-83 {
  color: var(--color-white);
  font-family: var(--header-font-mincho);
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.element-light .text-wrapper-79:hover,
.element-light .text-wrapper-80:hover,
.element-light .text-wrapper-81:hover,
.element-light .text-wrapper-82:hover,
.element-light .text-wrapper-83:hover {
  opacity: 0.7;
}

.element-light .small-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  text-align: center;
  max-width: 100%;
}

.element-light .small {
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: 12px;
  margin: 0;
}

/* Footer Responsive */
@media (max-width: 1200px) {
  .element-light .footer {
    padding: var(--spacing-xl) var(--spacing-lg) var(--spacing-md);
  }
}

@media (max-width: 768px) {
  .element-light .list-2,
  .element-light .list-3 {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

/* ================================================
   Additional Font Settings for P tags
   ================================================ */

/* 全てのテキストコンテンツに游明朝を適用 */
.timeline-text,
.news-title,
.recruitment-text,
.company-detail-value,
.greeting-text-group p,
.news-item-content p {
  font-family: var(--font-body);
}

/* ================================================
   Footer Logo Styles
   ================================================ */

.footer-company-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo {
  width: 50px;
  height: auto;
}

/* ================================================
   MW WP Form Styles
   ================================================ */

/* MW WP Formのラッパー */
.mw_wp_form {
  width: 100%;
}

/* フォームグループ */
.form-group {
  display: flex;
  flex-direction: column;
  padding-bottom: 25px;
}

/* フォームラベル */
.form-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #374151;
}

/* 確認ラベル - 必須と同じ配色で透明度を下げる */
.form-label-confirm::after {
  content: '確認';
  background-color: rgba(24, 82, 70, 0.4);
  color: white;
  padding: 2px 8px;
  font-size: 0.75rem;
  margin-left: 8px;
  border-radius: 4px;
}

/* 任意ラベル - form-label-optionalクラスを持つ要素のみ */
.form-label.form-label-optional::before {
  content: "任意";
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.25rem 0.5rem;
  background-color: #6b7280;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.25rem;
}

/* 姓名の横並び */
.mw_wp_form .form-name-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mw_wp_form .form-name-grid br {
  display: none;
}

/* お名前ラベルの下マージン */
.mw_wp_form label[for="name_last"].form-label {
  margin-bottom: 2rem;
}

@media (max-width: 640px) {
  .mw_wp_form .form-name-grid {
    grid-template-columns: 1fr;
  }
}

/* フォーム送信ボタン */
.mw_wp_form .form-submit-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.mw_wp_form .form-submit-btn,
.mw_wp_form input[type="submit"],
.mw_wp_form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, #185246 0%, #247a65 100%);
  background-size: 200% auto;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(24, 82, 70, 0.2);
  min-width: 200px;
}

.mw_wp_form .form-submit-btn:hover,
.mw_wp_form input[type="submit"]:hover,
.mw_wp_form button[type="submit"]:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(24, 82, 70, 0.3);
}

/* エラーメッセージ */
.mw_wp_form .error,
.mw_wp_form .mw-wp-form-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.375rem;
  display: block;
  font-weight: 500;
}

.mw_wp_form .mw_wp_form_input.error,
.mw_wp_form input.error,
.mw_wp_form textarea.error {
  border-color: #dc2626 !important;
  background-color: #fef2f2;
}

/* 確認画面のコンテナスタイル */
.mw_wp_form_confirm {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* 確認画面のフォームラッパー */
.mw_wp_form_confirm .form-group {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mw_wp_form_confirm .form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
}

.mw_wp_form_confirm .form-group > br {
  display: none;
}

/* 確認画面の入力値 */
.mw_wp_form_confirm .form-group > *:not(label):not(input[type="hidden"]):not(br):not(p):not(.form-name-grid) {
  display: block;
  padding: 0.75rem;
  background-color: #f9fafb;
  border-radius: 0.375rem;
  color: #1f2937;
  font-size: 1rem;
}

/* 姓名グリッドの確認画面スタイル */
.mw_wp_form_confirm .form-name-grid {
  display: flex;
  gap: 1rem;
  padding: 0.75rem;
  background-color: #f9fafb;
  border-radius: 0.375rem;
}

.mw_wp_form_confirm .form-name-grid br {
  display: none;
}

/* プライバシーポリシーの確認画面スタイル */
.mw_wp_form_confirm .form-privacy {
  max-width: 600px;
  margin: 2rem auto;
  text-align: center;
}

/* 送信ボタンの確認画面スタイル */
.mw_wp_form_confirm .form-submit-wrapper {
  max-width: 600px;
  margin: 2rem auto;
}

/* 送信完了メッセージ */
.mw_wp_form .mw_wp_form_complete {
  padding: 2rem;
  background-color: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 0.5rem;
  text-align: center;
}

.mw_wp_form .mw_wp_form_complete p {
  color: #065f46;
  font-size: 1.125rem;
  margin: 0;
}

/* 送信完了画面の contact-grid を1カラムに */
.mw_wp_form_complete .contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: flex-end;
}

/* 送信完了画面では左側コンテンツを非表示 */
.mw_wp_form_complete .contact-left {
  display: none;
}

/* 完了画面メッセージのスタイル */
.mw-wp-form-complete-message {
  text-align: center;
  padding: 6rem 2rem;
}

.complete-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #185246 0%, #247a65 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #ffffff;
  font-weight: bold;
}

.complete-title {
  color: #185246;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.complete-text {
  color: #065f46;
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.complete-back-btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #185246 0%, #247a65 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(24, 82, 70, 0.2);
}

.complete-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(24, 82, 70, 0.3);
}

/* 確認・送信ボタンの配置 */
.mw_wp_form .mw_wp_form_confirm .form-submit-wrapper {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mw_wp_form .mw_wp_form_confirm input[type="submit"] {
  min-width: 180px;
}

/* 戻るボタン */
.mw_wp_form input[name="back"],
.mw_wp_form button[name="back"] {
  background: #6b7280;
  background-size: 200% auto;
}

.mw_wp_form input[name="back"]:hover,
.mw_wp_form button[name="back"]:hover {
  background: #4b5563;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .mw_wp_form .form-submit-btn,
  .mw_wp_form input[type="submit"],
  .mw_wp_form button[type="submit"] {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .mw_wp_form .mw_wp_form_confirm .form-submit-wrapper {
    flex-direction: column;
  }

  .mw_wp_form .mw_wp_form_confirm input[type="submit"] {
    width: 100%;
  }
}
