/* ===== Base ===== */
:root {
  --bg-main: #e9e5df;
  --bg-sub: #f5f2ed;
  --bg-dark: #1f1f1f;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(245, 242, 237, 0.92);
  --text-main: #2f2c28;
  --text-sub: #4f4a44;
  --text-muted: #746d66;
  --text-light: #ffffff;
  --border: rgba(26, 26, 26, 0.12);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.08);

  --font-body: "Noto Sans JP", sans-serif;
  --font-en: "Inter", sans-serif;

  --content-width: 1200px;
  --header-height: 78px;
  --section-space: 100px;
  --section-space-sp: 80px;
  --grid-gap: 48px;

  --fs-body: 1rem;
  --fs-caption: 0.875rem;
  --fs-heading: clamp(1.75rem, 1.45rem + 1.2vw, 2rem);
  --fs-display: clamp(1.75rem, 1.2rem + 2vw, 2.625rem);
}

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

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.8;
  color: var(--text-main);
  background: var(--bg-main);
}

body.is-menu-open {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.container {
  width: min(100% - 48px, var(--content-width));
  margin-inline: auto;
}

/* ===== Common components ===== */
.section {
  padding-block: var(--section-space);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-base {
  background: var(--bg-main);
}

.section-alt {
  background: var(--bg-sub);
}

.section-head {
  margin-bottom: 40px;
}

.section-title {
  font-size: var(--fs-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.section-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-family: var(--font-en);
  font-size: var(--fs-caption);
  line-height: 1.9;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-sub);
}

.section-sub::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}

.section-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.grid {
  display: grid;
  gap: var(--grid-gap);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 10px 28px;
  border: 1px solid transparent;
  font-size: 1rem;
  letter-spacing: 0.08em;
  transition:
    opacity 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-recruit {
  background: #b9bba4;
  color: #5c5340;
}

.btn-primary {
  background: #159bc5;
  color: var(--text-light);
  font-weight: 700;
}

.btn-ghost {
  border-color: var(--text-light);
  background: transparent;
  color: var(--text-light);
}

.card,
.flow-item {
  background: var(--surface);
  border: 1px solid var(--border);
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  width: 100%;
  transition:
    background-color 0.35s ease,
    backdrop-filter 0.35s ease,
    box-shadow 0.35s ease,
    color 0.35s ease;
}

.site-header.is-transparent {
  color: var(--text-light);
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.site-header.is-solid {
  color: var(--text-main);
  background: rgba(233, 229, 223, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06);
}

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

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 190px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background-color 0.3s ease;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Drawer ===== */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  visibility: hidden;
  background: var(--bg-sub);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.drawer[hidden] {
  display: none;
}

.drawer.is-open {
  visibility: visible;
  opacity: 1;
}

.drawer-panel {
  position: relative;
  display: flex;
  min-height: 100dvh;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  padding: 96px 32px 40px;
  overflow-y: auto;
  color: var(--text-main);
  background: var(--bg-sub);
}

.drawer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.drawer-logo img {
  width: min(220px, 70vw);
  height: auto;
}

.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.drawer-nav {
  display: grid;
  width: 100%;
  gap: 22px;
  margin-top: 24px;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.drawer-nav a {
  width: fit-content;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.drawer.is-open .drawer-nav a {
  display: block;
  width: 100%;
  padding: 20px;
  border-bottom: 1px solid var(--border);
  opacity: 1;
  transform: translateY(0);
}

.drawer.is-open .drawer-nav a:first-child {
  border-top: 1px solid var(--border);
}

.drawer.is-open .drawer-nav a:nth-child(1) { transition-delay: 0.05s; }
.drawer.is-open .drawer-nav a:nth-child(2) { transition-delay: 0.1s; }
.drawer.is-open .drawer-nav a:nth-child(3) { transition-delay: 0.15s; }
.drawer.is-open .drawer-nav a:nth-child(4) { transition-delay: 0.2s; }

/* ===== Page top ===== */
.page-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
  display: flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: #000000;
  font-size: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-top:hover {
  transform: translateY(-4px);
}

.recruit .page-top {
  bottom: 80px;
}

/* ===== Home hero ===== */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  color: var(--text-light);
  background: url("images/living.jpg") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

.hero-inner {
  position: relative;
  max-width: 860px;
  padding-top: calc(var(--header-height) + 20px);
}

.hero-kicker {
  margin-bottom: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  opacity: 0.86;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-logo {
  width: clamp(220px, 28vw, 420px);
  height: auto;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 40px;
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.scroll-hint {
  position: absolute;
  left: 48px;
  bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.88;
}

.scroll-hint-line {
  display: inline-block;
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.7);
}

/* ===== About ===== */
.about-section {
  background: #f7f5f1;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: start;
}

.about-block + .about-block {
  margin-top: 120px;
}

.about-copy,
.about-points {
  padding-top: 24px;
}

.about-title,
.about-points-title {
  font-size: var(--fs-display);
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.about-title {
  margin-bottom: 32px;
}

.about-points-title {
  margin-bottom: 42px;
}

.about-text,
.about-point p,
.company-info dd,
.system-text,
.summary-value,
.flow-item p,
.card-text,
.message-hero p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-main);
}

.about-text {
  margin-bottom: 40px;
  line-height: 2;
}

.about-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: #b8a27a;
  color: var(--text-light);
  font-size: var(--fs-caption);
  letter-spacing: 0.08em;
  transition: opacity 0.25s ease;
}

.about-button:hover {
  opacity: 0.85;
}

.about-visual-main img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-visual-sub img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-point {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid #ddd7cf;
}

.about-point:last-child {
  margin-bottom: 0;
}

.about-point h4 {
  margin-bottom: 18px;
  font-size: 1.125rem;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

/* ===== Gallery ===== */
.gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-item {
  flex: 0 0 85%;
  margin: 0;
  overflow: hidden;
/*  border-radius: 10px; */
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: clamp(260px, 45vw, 520px);
  object-fit: cover;
}

@media (hover: hover) {
  .gallery-item img {
    transition: transform 0.4s ease, filter 0.4s ease;
  }

  .gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.92);
  }

  .footer-sns a:hover .sns-icon {
    transform: translateY(-3px);
    opacity: 1;
  }
}

/* ===== Cards / company ===== */
.card {
  padding: 28px;
}

.card img {
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
/*  border-radius: 6px; */
  object-fit: cover;
}

.card-title{
  margin-bottom: 12px;
}
.card-title,
.system-title {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.company-section {
  background: #f6f4ef;
}

.company-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 64px;
  align-items: start;
  margin-top: 48px;
}

.company-name {
  margin-bottom: 28px;
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.company-info {
  display: grid;
  gap: 22px;
}

.company-info > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dddddd;
}

.company-info > div:last-child {
  border-bottom: none;
}

.company-info dt,
.summary-label {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-sub);
}

.company-visual {
  max-width: 380px;
}

.company-visual img {
  width: 100%;
  height: auto;
}

/* ===== Recruit ===== */
.message-hero {
  position: relative;
  overflow: hidden;
}

.message-logo-overlay {
  position: absolute;
  top: 20px;
  left: 0;
  z-index: 2;
  width: min(420px, 70%);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-40px) scaleX(0.96);
  transform-origin: left center;
  animation: logoSlideStretch 1.2s ease 0.2s forwards;
}

.message-logo-overlay img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

.message-photo img {
  width: 96%;
  height: clamp(320px, 46vw, 560px);
  object-fit: cover;
  filter: contrast(1.02) saturate(0.92);
}

.message-panel {
  position: relative;
  z-index: 3;
  width: min(860px, calc(100% - 32px));
  margin: -172px 0 0 auto;
  padding: 20px 28px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(28px);
  animation: panelFadeUp 0.9s ease 0.7s forwards;
}

.message-hero p + p {
  margin-top: 0.35em;
}

.system-section {
  background: var(--bg-main);
  padding: 100px 0;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
}

.system-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 40px;
  background: #ffffff;
  border: 1px solid #e6e3de;
}

/* アイコン＋タイトル横並び */
.system-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* アイコン */
.system-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  opacity: 0.85;
}

/* タイトル */
.system-title {
  font-size: 1.125rem; /* 約18px */
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* 本文 */
.system-text {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-main);
}

/* =========================
   HOVER（高級感演出）
========================= */

.system-card {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.system-card:hover {
  transform: translateY(-4px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .system-section {
    padding: 80px 0;
  }

  .system-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .system-icon {
    width: 24px;
    height: 24px;
  }

  .system-title {
    font-size: 1.0625rem;
  }

  .system-text {
    font-size: 1rem;
  }
}

.recruit-summary {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
}

.summary-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.flow-item {
  padding: 32px;
}

.flow-num,
.sns-title {
  display: inline-block;
  color: var(--text-muted);
}

.flow-num {
  margin-bottom: 18px;
  font-family: var(--font-en);
  font-size: 1rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.08em;
  opacity: 0.9;
}

.flow-num::before {
  content: "STEP ";
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.flow-item h3 {
  margin-bottom: 10px;
  font-size: 1.375rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.cta-fix {
  position: fixed;
  bottom: 0;
  z-index: 100;
  width: 100%;
  padding: 10px 0;
  background: rgba(66, 66, 66, 0.8);
}

/* ===== Footer ===== */
.site-footer {
  padding: 20px 0 70px;
  color: var(--text-light);
  background: var(--bg-dark);
}

.cta-sns {
  text-align: center;
}

.sns-title {
  margin-bottom: 14px;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.footer-sns {
  display: flex;
  justify-content: center;
  gap: 26px;
}

.sns-icon {
  width: 26px;
  height: 26px;
  opacity: 0.85;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  font-size: var(--fs-caption);
  color: var(--text-muted);
}

.footer-left {
  flex: 0 0 auto;
}

/* ===== Animations ===== */
@keyframes logoSlideStretch {
  60% {
    opacity: 0.92;
    transform: translateX(0) scaleX(1.02);
  }

  100% {
    opacity: 0.92;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes panelFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .gallery-item {
    flex-basis: 48%;
  }
}

@media (min-width: 1024px) {
  .gallery-item {
    flex-basis: 32%;
  }
}

@media (min-width: 1025px) {
  .company-visual {
    width: 100%;
  }

  .company-visual img {
    height: 520px;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 1024px) {
  .grid-3,
  .flow-grid,
  .system-grid,
  .about-block,
  .company-layout {
    grid-template-columns: 1fr;
  }

  .about-block {
    gap: 40px;
  }

  .about-block + .about-block {
    margin-top: 90px;
  }

  .company-visual {
    max-width: 480px;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, var(--content-width));
  }

  .section {
    padding-block: var(--section-space-sp);
  }

  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-logo {
    width: clamp(180px, 60vw, 320px);
  }

  .scroll-hint {
    left: 24px;
  }

  .gallery-item {
    flex-basis: 88%;
  }

  .about-title {
    margin-bottom: 28px;
  }

  .about-text {
    margin-bottom: 32px;
    line-height: 1.95;
  }

  .about-points-title {
    margin-bottom: 28px;
  }

  .about-point {
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .about-point h4 {
    font-size: 1.0625rem;
  }

  .company-name {
    font-size: 1.375rem;
  }

  .company-info > div,
  .summary-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .system-card {
    padding: 28px;
  }

  .system-title {
    font-size: 1.125rem;
  }

  .flow-num {
    font-size: 0.9375rem;
  }

  .cta-actions {
    flex-direction: column;
    padding-inline: 16px;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
  }

  .message-hero {
    width: 100vw;
    margin-inline: -24px;
    margin-left: calc(50% - 50vw);
  }

  .message-photo img {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    object-position: center top;
  }

  .message-logo-overlay {
    top: 20px;
    left: 5px;
    width: 62%;
  }

  .message-panel {
    width: calc(100% - 24px);
    margin-top: -40px;
    padding: 24px;
  }
}
