/*
Theme Name: 愛媛採用エージェント
Theme URI: https://ehr-axis.com/
Author: 愛媛採用エージェント
Description: 愛媛採用エージェント公式サイト専用のWordPressテーマです。
Version: 1.2.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: ehime-recruit-agent
*/

:root {
  --header-height: 76px;
  --blue: #0b63ce;
  --deep: #063b7a;
  --light: #38bdf8;
  --bg: #f8fbff;
  --ink: #102033;
  --muted: #64748b;
  --line: rgba(11, 99, 206, 0.14);
  --shadow: 0 18px 50px rgba(6, 59, 122, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(11, 99, 206, 0.1);
  backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--deep);
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 800;
  color: #405166;
}

.nav a {
  padding: 10px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a.active {
  background: #eaf5ff;
  color: var(--deep);
}

.menu-toggle,
.mobile-navigation,
.mobile-nav-contact {
  display: none;
}

.menu-toggle {
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--deep);
  cursor: pointer;
}

.menu-toggle-line {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    top 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.menu-toggle-line:nth-child(1) {
  top: 16px;
}

.menu-toggle-line:nth-child(2) {
  top: 23px;
}

.menu-toggle-line:nth-child(3) {
  top: 30px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
  top: 23px;
  transform: rotate(-45deg);
}

.card.custom-plan {
  background: linear-gradient(135deg, var(--blue), var(--deep));
  color: #fff;
  text-align: center;
}

.custom-plan .label,
.custom-plan .lead {
  color: #d8ecff;
}

.custom-plan .lead {
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(11, 99, 206, 0.22);
  color: var(--deep);
}

.hero {
  position: relative;
  min-height: 100svh;
  background: #fff;
}

.hero-sticky {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/top-visual.png") center / cover no-repeat;
  pointer-events: none;
}

.hero-sticky::before,
.hero-sticky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-sticky::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.16));
}

.hero-sticky::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 62%, rgba(255, 255, 255, 0.16));
}

.hero-person {
  position: absolute;
  z-index: 2;
  right: 7vw;
  bottom: 0;
  width: min(38vw, 580px);
  pointer-events: none;
}

.hero-person img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 42px rgba(3, 27, 56, 0.26));
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding-top: 76px;
}

.hero-copy {
  max-width: min(760px, 56vw);
}

h1 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.08;
  font-weight: 900;
}

.hero h1 {
  font-size: clamp(24px, 5vw, 72px);
  white-space: nowrap;
}

h1 span {
  color: var(--blue);
}

.hero-lead {
  margin: 24px 0 0;
  color: var(--deep);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.65;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 144px 0 88px;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(11, 99, 206, 0.16), transparent 32%),
    #fff;
}

.page-hero::after {
  content: attr(data-word);
  position: absolute;
  right: -4vw;
  top: 110px;
  color: rgba(11, 99, 206, 0.06);
  font-size: clamp(70px, 15vw, 190px);
  line-height: 1;
  font-weight: 900;
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.white {
  background: #fff;
}

.soft {
  background: #f8fbff;
}

.blue {
  background: linear-gradient(135deg, #031b38 0%, #063b7a 45%, #0b63ce 100%);
  color: #fff;
}

.label {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.blue .label {
  color: #cbe9ff;
}

h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(31px, 4vw, 54px);
  line-height: 1.18;
  font-weight: 900;
}

h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.42;
  font-weight: 900;
}

.lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.blue .lead {
  color: #d8ecff;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.mt {
  margin-top: 46px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(11, 99, 206, 0.1);
}

.card-pad {
  padding: 30px;
}

.card p {
  color: var(--muted);
  line-height: 1.85;
}

.service-contact {
  margin-top: 28px;
}

.custom-plan .service-contact {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--light);
  color: #031b38;
}

.icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: #eaf5ff;
  color: var(--blue);
  font-weight: 900;
}

.list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
  color: #42546a;
  font-weight: 800;
}

.list li::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  background: #eaf5ff;
  color: var(--blue);
  font-size: 13px;
}

.message-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
  align-items: center;
}

.representative-photo {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}

.representative-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.representative-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(3, 27, 56, 0.85);
}

.representative-caption p {
  margin: 0;
}

.representative-caption p:first-child {
  font-size: 14px;
  font-weight: 700;
}

.representative-caption p:last-child {
  margin-top: 2px;
  font-size: 24px;
  font-weight: 900;
}

.representative-caption .representative-name {
  font-family:
    "Noto Serif JP",
    "Hiragino Mincho ProN",
    "Yu Mincho",
    "YuMincho",
    serif;
  font-weight: 400;
}

.message-box {
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: 0;
}

.row strong {
  color: var(--deep);
}

.contact-box {
  padding: 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  padding: 13px 14px;
  font: inherit;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.contact-alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.contact-alert-success {
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.contact-alert-error {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cta {
  padding: 90px 0;
  background: var(--deep);
  color: #fff;
}

.cta .lead {
  color: #d8ecff;
}

.footer {
  padding: 48px 0 24px;
  background: #031b38;
  color: #fff;
}

.footer p {
  color: #d8ecff;
  line-height: 1.9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.footer-nav a {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #d8ecff;
  font-weight: 800;
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--deep);
  color: #fff;
  box-shadow: var(--shadow);
}

@media (max-width: 940px) {
  .desktop-navigation,
  .header-contact {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .mobile-navigation {
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 19;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px 20px max(36px, env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(3, 27, 56, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.2s ease;
  }

  .mobile-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .mobile-navigation a {
    display: flex;
    align-items: center;
    min-height: 54px;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 16px;
  }

  .mobile-navigation .mobile-nav-contact {
    display: flex;
    justify-content: center;
    min-height: 56px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--blue);
    color: #fff;
  }

  .mobile-navigation .mobile-nav-contact:hover,
  .mobile-navigation .mobile-nav-contact:focus {
    background: var(--deep);
    color: #fff;
  }

  body.menu-open {
    overflow: hidden;
  }

  .admin-bar .header {
    top: 32px;
  }

  .admin-bar .mobile-navigation {
    top: calc(var(--header-height) + 32px);
    height: calc(100dvh - var(--header-height) - 32px);
  }

  .message-grid,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: center;
  }

  .hero-person {
    right: 2vw;
    width: min(40vw, 480px);
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }

  .admin-bar .mobile-navigation {
    top: calc(var(--header-height) + 46px);
    height: calc(100dvh - var(--header-height) - 46px);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 68px;
  }

  .header-inner {
    height: var(--header-height);
  }

  .logo span:last-child {
    font-size: 14px;
  }

  .hero-grid {
    align-items: flex-start;
    padding-top: 112px;
  }

  .hero h1 {
    white-space: normal;
  }

  .hero-lead {
    margin-top: 18px;
    font-size: 18px;
    line-height: 1.6;
  }

  .hero-copy {
    max-width: none;
    padding-bottom: 34svh;
  }

  .hero-person {
    right: -70px;
    width: min(68vw, 330px);
  }

  section {
    padding: 72px 0;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

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