/* Reset and Variables */
:root {
  --primary: #7b9e89;
  /* Calming sage green */
  --secondary: #f4efe9;
  /* Warm off-white beige */
  --accent: #d18f5e;
  /* Soft terracotta for CTA */
  --accent-hover: #b87b4e;
  --text-main: #333333;
  --text-light: #666666;
  --bg-color: #fcfbf9;
  --white: #ffffff;
  --line-color: #06c755;
  --line-hover: #05a747;

  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Noto Sans JP', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.serif {
  font-family: var(--font-serif);
  font-weight: 500;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Typography Utility */
.text-center {
  text-align: center;
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 2rem;
  text-align: center;
}

/* Layout Classes */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 5%;
}

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

.bg-secondary {
  background-color: var(--secondary);
}

/* Header & Nav */
.top-announce {
  background-color: #d9534f;
  /* Vibrant red/orange to stand out */
  color: var(--white);
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-serif);
  font-weight: bold;
  letter-spacing: 2px;
}

header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0 0;
}

header .container {
  max-width: 1200px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4rem;
  /* 文字と「はじめての方へ」の間に空白を作る */
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img {
  height: 48px;
  /* 全体サイズ感をこれまでの構成に合わせて調整 */
  vertical-align: middle;
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: bold;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  cursor: pointer;
  border: none;
  white-space: nowrap !important;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.btn-line {
  background-color: var(--line-color);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.btn-line:hover {
  background-color: var(--line-hover);
  color: var(--white);
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* subtle zoom animation */
  animation: heroZoom 20s infinite alternate;
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.05);
  }
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 2rem;
}

.hero-text-box {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 16px;
  padding: 1rem 2rem;
  margin-bottom: 2.5rem;
}

/* Sub Pages Hero */
.sub-hero {
  background: var(--primary);
  color: white;
  padding: 8rem 5% 4rem;
  text-align: center;
}

.sub-hero-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.sub-hero-desc {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb {
  background: #f4efe9;
  padding: 1rem 5%;
  font-size: 0.9rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.empathy-box {
  padding: 3rem;
}

.hero-copy {
  font-size: 3rem;
  line-height: 1.4;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  font-weight: bold;
}

.hero-sub {
  font-size: 1.3rem;
  margin-bottom: 0;
  /* Remove internal margin so the box doesn't expand */
  color: var(--white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  font-weight: 500;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.reason-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
  text-align: center;
  transition: transform 0.3s;
}

.reason-card:hover {
  transform: translateY(-5px);
}

.reason-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 1rem;
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.5;
}

.reason-card-inner {
  position: relative;
}

.reason-title {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr max-content;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.footer-text {
  opacity: 0.9;
  font-size: 0.9rem;
}

.footer-links a {
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  padding-left: 5px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Greeting Section */
.greeting-content {
  background: var(--white);
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.greeting-text {
  font-size: 1.05rem;
  line-height: 2;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  /* Above mobile menu */
}

.hamburger-box {
  width: 30px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 2px;
  background-color: var(--primary);
  border-radius: 4px;
  position: absolute;
  left: 0;
  transition: transform 0.15s ease;
}

.hamburger-inner {
  top: 50%;
  margin-top: -1px;
}

.hamburger-inner::before {
  content: "";
  top: -10px;
  transition: top 0.1s ease-in 0.15s, opacity 0.1s ease-in;
}

.hamburger-inner::after {
  content: "";
  bottom: -10px;
  transition: bottom 0.1s ease-in 0.15s, transform 0.1s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger.is-active .hamburger-inner {
  transform: rotate(45deg);
  transition-delay: 0.12s;
  transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger.is-active .hamburger-inner::before {
  top: 0;
  opacity: 0;
  transition: top 0.1s ease-out, opacity 0.1s ease-out 0.12s;
}

.hamburger.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
  bottom: 0;
  transform: rotate(-90deg);
  transition: bottom 0.1s ease-out, transform 0.1s cubic-bezier(0.215, 0.61, 0.355, 1) 0.12s;
}

/* Utilities */
.contact-phone {
  font-size: 2.5rem;
}

.sp-only,
.sp-only-br {
  display: none;
}

.pc-only {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .pc-only {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }

  .sp-only-br {
    display: inline !important;
  }

  .encouraging-box {
    flex-direction: column-reverse;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    z-index: 999;
  }

  .nav-links.is-active {
    transform: translateY(0);
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .hero-copy {
    font-size: 1.5rem;
  }

  .hero-sub {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
  }

  .hero-content {
    padding: 1rem 0;
  }

  .hero-text-box {
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    margin-bottom: 2rem;
  }

  .empathy-box {
    padding: 1.5rem;
  }

  .sub-hero {
    padding: 6rem 5% 3rem;
  }

  .sub-hero-title {
    font-size: 2rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .footer-links a {
    display: inline-block;
    margin: 0.5rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .greeting-content {
    padding: 2rem 1.5rem;
  }

  .btn {
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    width: 100%;
    white-space: nowrap !important;
    overflow: hidden;
  }

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

  .hero-bg {
    transform: none;
    animation: none;
  }

  .profile-dl {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-dl dt {
    margin-top: 1rem;
  }

  .profile-dl dd {
    text-align: left;
    display: inline-block;
  }

  .company-table th,
  .company-table td {
    display: block;
    width: 100% !important;
    text-align: center !important;
    padding: 0.5rem !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .company-table .company-name {
    font-size: 0.9rem !important;
    white-space: nowrap !important;
    letter-spacing: -0.05em;
  }

  .company-table tr {
    border-bottom: 1px solid #f4efe9;
    padding: 1rem 0;
    display: block;
  }

  .company-table th {
    border-bottom: none !important;
  }
}