/*
Theme Name: 和泉工業
Theme URI: http://izumikougyou.com/
Author: 和泉工業株式会社
Author URI: http://izumikougyou.com/
Description: 和泉工業株式会社のカスタムテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: izumi-industry
*/

/* ベース設定 */
:root {
  --primary: hsl(215, 80%, 30%);
  --primary-light: hsl(215, 70%, 90%);
  --primary-dark: hsl(215, 30%, 20%);
  --yellow: hsl(45, 100%, 50%);
  --gray: hsl(210, 10%, 95%);
  --white: #ffffff;
  --black: #000000;
  --text: #333333;
  --text-light: #666666;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 0.5rem;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--white);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* タイポグラフィ */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  display: inline-flex;
  flex-direction: column;
}

h2::after {
  content: "";
  height: 4px;
  background-color: var(--yellow);
  width: 50%;
  margin-top: 0.5rem;
  margin-left: auto;
  margin-right: auto;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.highlight {
  color: var(--yellow);
}

/* ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  height: 4rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  background-color: var(--primary);
  border-radius: 0.25rem;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--white);
}

.logo-icon.light {
  background-color: var(--white);
}

.logo-icon.light svg {
  color: var(--primary);
}

.logo span {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-item {
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
}

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

.nav-item-bar {
  position: absolute;
  bottom: -0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--yellow);
  transition: width 0.3s;
}

.nav-item:hover .nav-item-bar,
.nav-item.active .nav-item-bar {
  width: 100%;
}

.contact-button-container {
  display: none;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 70%, 40%) 100%);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-button:hover {
  background-color: hsl(215, 80%, 25%);
  box-shadow: var(--shadow-hover);
}

.contact-button svg {
  width: 1rem;
  height: 1rem;
}

.mobile-menu-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--white);
}

.mobile-menu-button svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  background-color: var(--white);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  transition: var(--transition);
}

.mobile-menu-close:hover {
  background-color: var(--gray);
}

.mobile-menu-close svg {
  width: 1.25rem;
  height: 1.25rem;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-item {
  font-size: 1.125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mobile-nav-item:hover {
  color: var(--primary);
}

.mobile-contact-info {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.contact-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.contact-phone {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-phone svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
}

.mobile-menu-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.mobile-contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 0;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 70%, 40%) 100%);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 500;
}

.mobile-contact-button svg {
  width: 1rem;
  height: 1rem;
}

/* ヒーローセクション */
.hero-section {
  position: relative;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.hero-section .container {
  position: relative;
  z-index: 10;
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.hero-content {
  max-width: 32rem;
  color: var(--white);
}

.hero-tag {
  display: inline-block;
  background-color: var(--yellow);
  padding: 0.25rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.hero-tag span {
  color: var(--primary-dark);
  font-weight: 700;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
  font-size: 2.5rem;
  line-height: 1.2;
}

.hero-content p {
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 70%, 40%) 100%);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.primary-button:hover {
  box-shadow: var(--shadow-hover);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  border: 1px solid var(--white);
  color: var(--white);
  border-radius: var(--radius);
  transition: var(--transition);
}

.secondary-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4rem;
  background: linear-gradient(to top, var(--white), transparent);
}

/* セクション共通 */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-light);
}

.section-header.light h2,
.section-header.light p {
  color: var(--white);
}

.section-header.light h2::after {
  background-color: var(--white);
}

/* 会社概要セクション */
.about-section {
  background-color: var(--gray);
}

.about-content {
  display: grid;
  gap: 3rem;
  margin-bottom: 5rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-tag {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.about-text h3 {
  font-size: 1.5rem;
  line-height: 1.3;
}

.yellow-bar {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--yellow);
}

.about-text p {
  color: var(--text-light);
}

.about-button-container {
  padding-top: 1rem;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
}

.outline-button:hover {
  background-color: var(--primary);
  color: var(--white);
}

.outline-button svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s;
}

.outline-button:hover svg {
  transform: translateX(0.25rem);
}

.about-image {
  position: relative;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: var(--white);
}

.company-info-cards {
  display: grid;
  gap: 1.5rem;
}

.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: var(--white);
  border-top: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.info-card:hover {
  box-shadow: var(--shadow-hover);
}

.icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  color: var(--primary);
  margin-bottom: 1rem;
}

.icon-container svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.info-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.info-card p {
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.small-text {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* 事業内容セクション */
.services-section {
  position: relative;
  overflow: hidden;
}

.services-background {
  position: absolute;
  inset: 0;
  background-image: url("images/construction-work-1.png");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
}

.services-grid {
  display: grid;
  gap: 2rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-hover);
}

.service-card::before {
  content: "";
  display: block;
  height: 0.5rem;
  background-color: var(--primary);
  width: 100%;
}

.service-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem 0.5rem;
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background-color: var(--primary-light);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background-color: rgba(59, 130, 246, 0.2);
}

.service-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.service-card-header h3 {
  margin-bottom: 0.25rem;
}

.service-card-header p {
  color: var(--text-light);
  font-size: 0.875rem;
}

.service-card-content {
  flex: 1;
  padding: 1rem 1.5rem 2rem;
}

.service-card-content p {
  color: var(--text-light);
}

.other-services {
  margin-top: 4rem;
  text-align: center;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--yellow);
}

.other-services h3 {
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  justify-items: center;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.services-list li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

/* 施工実績セクション */
.works-section {
  background-color: var(--gray);
}

.works-slider {
  max-width: 64rem;
  margin: 0 auto;
}

.slider-container {
  position: relative;
  max-width: 100%;
}

.slider-track {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 10;
}

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

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3), transparent);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  color: var(--white);
  z-index: 20;
}

.slide-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.slide-location {
  font-size: 0.875rem;
  opacity: 0.8;
  margin-bottom: 0.75rem;
}

.slide-description {
  font-size: 0.875rem;
  max-width: 48rem;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: var(--white);
  border-radius: 9999px;
  transition: var(--transition);
}

.slider-nav:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.slider-nav.prev {
  left: 1rem;
}

.slider-nav.next {
  right: 1rem;
}

.slider-nav svg {
  width: 1.5rem;
  height: 1.5rem;
}

.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.indicator {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: var(--border);
  transition: var(--transition);
}

.indicator.active {
  background-color: var(--primary);
  width: 2rem;
}

.slider-thumbnails {
  display: none;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.thumbnail {
  position: relative;
  width: 5rem;
  height: 5rem;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  opacity: 0.7;
  border: 1px solid var(--border);
}

.thumbnail.active {
  border: 4px solid var(--primary);
  opacity: 1;
}

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

/* 会社の強みセクション */
.strengths-section {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 70%, 40%) 100%);
  color: var(--white);
}

.strengths-grid {
  display: grid;
  gap: 2rem;
}

.strength-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
}

.strength-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background-color: var(--white);
  margin: 0 auto 1.5rem;
}

.strength-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.strength-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.strength-card p {
  color: rgba(255, 255, 255, 0.8);
}

/* お問い合わせセクション */
.contact-section {
  padding: 5rem 0;
}

.contact-container {
  max-width: 48rem;
  margin: 0 auto;
  background-color: var(--gray);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

.contact-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: var(--primary);
  margin: 0 auto 1rem;
}

.contact-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--white);
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.contact-hours svg {
  width: 1rem;
  height: 1rem;
}

.contact-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 0;
  border-radius: var(--radius);
  font-weight: 500;
  transition: var(--transition);
}

.contact-button.phone {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 70%, 40%) 100%);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-button.phone:hover {
  box-shadow: var(--shadow-hover);
}

.contact-button.mail {
  border: 1px solid var(--primary);
  color: var(--primary);
  background-color: var(--white);
}

.contact-button.mail:hover {
  background-color: rgba(59, 130, 246, 0.1);
}

.contact-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-note {
  margin-top: 2.5rem;
  text-align: center;
}

.contact-note p {
  color: var(--text-light);
}

/* お問い合わせセクションのテキスト中央揃え */
.contact-note p {
  text-align: center;
  max-width: 800px; /* テキストの最大幅を設定 */
  margin-left: auto;
  margin-right: auto;
}

.fax-info {
  margin-top: 2rem;
  text-align: center;
  font-size: 1.125rem;
}

.fax-info span {
  font-weight: 700;
}

/* フッター */
.site-footer {
  border-top: 1px solid var(--border);
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-company p {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.detail svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.detail p {
  color: var(--gray);
  font-size: 0.875rem;
  margin-bottom: 0;
}

.footer-services h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  display: inline-flex;
  flex-direction: column;
}

.footer-services h3::after {
  content: "";
  height: 2px;
  background-color: var(--yellow);
  width: 3rem;
  margin-top: 0.5rem;
}

.footer-services-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1rem;
  justify-items: start;
}

.footer-services-list li {
  font-size: 0.875rem;
  color: var(--gray);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 0;
}

/* 採用情報ページ */
.recruit-hero .hero-content {
  max-width: 36rem;
}

.message-section {
  background-color: var(--gray);
}

.message-container {
  max-width: 64rem;
  margin: 0 auto;
}

.message-content {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.message-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border);
}

.message-title {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
}

.message-body {
  padding: 2rem 3rem;
}

.message-body p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* 代表メッセージセクションの署名を中央揃えに */
.message-signature {
  text-align: center; /* 右揃えから中央揃えに変更 */
  font-style: italic;
  padding-top: 1rem;
}

.wanted-section {
  position: relative;
  overflow: hidden;
}

.wanted-background {
  position: absolute;
  inset: 0;
  background-image: url("images/construction-work-1.png");
  background-size: cover;
  background-position: center;
  opacity: 0.05;
}

.wanted-grid {
  display: grid;
  gap: 2rem;
}

.wanted-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.wanted-card:hover {
  box-shadow: var(--shadow-hover);
}

.wanted-card::before {
  content: "";
  display: block;
  height: 0.5rem;
  background-color: var(--primary);
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.wanted-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.1);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.wanted-card:hover .wanted-icon {
  background-color: rgba(59, 130, 246, 0.2);
}

.wanted-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--primary);
}

.wanted-card h3 {
  margin-bottom: 1rem;
}

.wanted-card p {
  color: var(--text-light);
}

.positions-section {
  background-color: var(--gray);
}

.tabs {
  max-width: 64rem;
  margin: 0 auto;
}

.tabs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.tab {
  padding: 0.75rem 0;
  font-weight: 500;
  text-align: center;
  transition: var(--transition);
}

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

.tab-content {
  display: none;
}

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

.position-card {
  box-shadow: var(--shadow-hover);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
}

/* 募集職種セクションのカード内見出しとアイコンを中央揃え */
.position-header {
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 70%, 40%) 100%);
  color: var(--white);
  padding: 1.5rem;
  text-align: center; /* すでに中央揃えになっているが念のため */
}

.position-header svg {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem; /* 左右中央揃えのためにmargin: 0 autoを設定 */
  display: block; /* ブロック要素にして中央揃えが効くようにする */
}

.position-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.position-header p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

.position-content {
  padding: 2rem;
  background-color: var(--white);
}

.position-details {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.position-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 募集職種セクションのカード内見出しとアイコンを中央揃え */
.detail-icon {
  display: flex;
  align-items: center;
  justify-content: center; /* 中央揃えを確実にする */
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.1);
  margin: 0 auto; /* 左右中央揃えのためにmargin: 0 autoを追加 */
}

/* 募集職種セクションのカード内見出しとアイコンを中央揃え */
.position-detail h4 {
  font-size: 1.125rem;
  margin-top: 0.5rem;
  text-align: center; /* 見出しを中央揃えに */
}

.detail-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--primary);
}

.position-detail h4 {
  font-size: 1.125rem;
  margin-top: 0.5rem;
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 3rem;
}

.requirements-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.requirements-list li svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.position-conditions {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem;
  background-color: var(--gray);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

/* 募集職種セクションの条件（給与、勤務時間、休日、勤務地）を中央揃えに */
.condition {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center; /* 中央揃えにするために追加 */
  text-align: center; /* テキストも中央揃えに */
}

.condition-title {
  display: flex;
  align-items: center;
  justify-content: center; /* 中央揃えにするために追加 */
  gap: 0.5rem;
  font-weight: 600;
}

.condition svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

.condition p {
  margin-left: 0; /* 左マージンを削除 */
  color: var(--text-light);
  margin-bottom: 0;
  text-align: center; /* テキストを中央揃えに */
}

.position-apply {
  display: flex;
  justify-content: center;
}

.apply-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
  background: linear-gradient(135deg, var(--primary) 0%, hsl(215, 70%, 40%) 100%);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.apply-button:hover {
  box-shadow: var(--shadow-hover);
}

.apply-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.benefits-section {
  padding: 5rem 0;
}

.benefits-grid {
  display: grid;
  gap: 1.5rem;
}

.benefit-card {
  text-align: center;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.benefit-card:hover {
  box-shadow: var(--shadow-hover);
}

.benefit-card::before {
  content: "";
  display: block;
  height: 0.5rem;
  background-color: var(--yellow);
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: rgba(59, 130, 246, 0.1);
  margin: 0 auto 1rem;
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  background-color: rgba(59, 130, 246, 0.2);
}

.benefit-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

.benefit-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.benefit-card p {
  color: var(--text-light);
  margin-bottom: 0;
}

.process-section {
  background-color: var(--gray);
}

.process-container {
  max-width: 64rem;
  margin: 0 auto;
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-hover);
}

.process-timeline {
  position: relative;
  padding: 0;
  margin: 0;
}

/* モバイル表示用のスタイル */
.process-step {
  position: relative;
  margin-bottom: 2.5rem;
  padding-left: 3rem;
}

.process-step:last-child {
  margin-bottom: 0;
}

.step-center {
  position: absolute;
  left: 0;
  top: 0;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 9999px;
  font-weight: 700;
  z-index: 5;
  box-shadow: 0 0 0 4px var(--white);
}

.step-line {
  position: absolute;
  top: 2.5rem;
  left: 1.25rem;
  width: 2px;
  height: calc(100% + 1rem);
  background-color: rgba(59, 130, 246, 0.3);
  transform: translateX(-50%);
}

.process-step:last-child .step-line {
  display: none;
}

.step-content {
  background-color: var(--gray);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  color: var(--primary);
}

.step-content p {
  color: var(--text-light);
  margin-bottom: 0;
}

/* PC表示用のスタイル */
@media (min-width: 768px) {
  .process-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
  }

  .process-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: rgba(59, 130, 246, 0.3);
    transform: translateX(-50%);
  }

  .process-step {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    padding: 0;
  }

  .process-step:last-child {
    margin-bottom: 0;
  }

  .step-left,
  .step-right {
    width: 42%;
    position: relative;
  }

  .step-left {
    margin-right: 8%;
    text-align: right;
  }

  .step-right {
    margin-left: 8%;
    text-align: left;
  }

  .step-center {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
  }

  .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 0 0 4px var(--white);
    margin: 0 auto;
  }

  .step-line {
    display: none;
  }

  .step-content {
    background-color: var(--gray);
    padding: 1.5rem;
    border-radius: var(--radius);
    position: relative;
    transition: all 0.3s ease;
  }

  .step-left .step-content::after {
    content: "";
    position: absolute;
    top: 1.5rem;
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent var(--gray);
  }

  .step-right .step-content::after {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent var(--gray) transparent transparent;
  }

  .step-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: var(--primary);
  }

  .step-content p {
    color: var(--text-light);
    margin-bottom: 0;
  }

  .process-step:hover .step-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
  }
}

.apply-section {
  padding: 5rem 0;
}

.apply-container {
  max-width: 48rem;
  margin: 0 auto;
  background-color: var(--gray);
  border-radius: var(--radius);
  padding: 2rem 3rem;
  box-shadow: var(--shadow);
}

.apply-grid {
  display: grid;
  gap: 2.5rem;
}

.apply-card {
  background-color: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.apply-card:hover {
  box-shadow: var(--shadow-hover);
}

.apply-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  background-color: var(--primary);
  margin: 0 auto 1rem;
}

.apply-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--white);
}

.apply-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.apply-hours {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.apply-hours svg {
  width: 1rem;
  height: 1rem;
}

.apply-note {
  margin-top: 2.5rem;
  text-align: center;
}

.apply-note p {
  color: var(--text-light);
}

.fax-label {
  font-weight: 500;
}

.fax-note {
  font-size: 0.875rem;
}

.recruiter-message {
  margin-top: 3rem;
  text-align: center;
}

.message-title {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.message-text {
  max-width: 36rem;
  margin: 0 auto;
}

/* WordPress固有のスタイル */
.menu-items {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.mobile-menu-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* レスポンシブ対応 */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .desktop-nav {
    display: flex;
  }

  .contact-button-container {
    display: flex;
  }

  .mobile-menu-button {
    display: none;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .about-content {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .slider-track {
    height: 500px;
  }

  .slider-thumbnails {
    display: flex;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

  .process-timeline {
    margin-left: calc(50% - 1px);
  }

  .process-step {
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    text-align: center;
    position: relative;
  }

  .step-number {
    left: calc(50% - 1rem);
    top: -1rem; /* 番号を上に移動して重ならないようにする */
    z-index: 10; /* 番号が他の要素の上に表示されるようにする */
  }

  /* 以下を追加 */
  .process-step h3 {
    margin-top: 1.5rem; /* 番号とタイトルの間隔を確保 */
  }

  .step-content {
    margin-top: 0.5rem; /* タイトルと内容の間隔を調整 */
  }

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

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-list {
    grid-template-columns: repeat(4, 1fr);
  }

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