/* =========================================================
   有限会社高松葬祭 採用LP - styles.css
   配色: 生成り / 深紺 / テラコッタ
   ========================================================= */

:root {
  --bg: #FBF8F3;
  --bg-soft: #F4ECE0;
  --bg-deep: #E8DFD2;
  --text: #1F2A44;
  --text-soft: #4A5468;
  --muted: #8A8478;
  --accent: #B08968;
  --accent-deep: #8C6A4E;
  --line: #DCD3C5;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(31, 42, 68, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 42, 68, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1080px;
  --container-narrow: 760px;
  --header-h: 72px;
  --serif: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --sans: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-deep); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }
ul, ol { padding-left: 0; list-style: none; margin: 0; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ----- Layout ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container.narrow { max-width: var(--container-narrow); }
.pc-only { display: none; }
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .pc-only { display: inline; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
  white-space: nowrap;
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); opacity: 1; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}
.btn-outline:hover { background: var(--text); color: var(--white); opacity: 1; }

/* ----- Header ----- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; color: var(--text); }
.brand-name { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.brand-sub { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.1em; }

.nav { display: none; }
.nav ul { display: flex; gap: 24px; }
.nav a { color: var(--text); font-size: 0.92rem; font-weight: 500; }

.header-cta { display: none; }

.nav-toggle {
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: absolute;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.mobile-nav ul { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  display: block;
  padding: 14px 8px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.mobile-nav a.btn { border: 0; margin-top: 12px; color: var(--white); }

@media (min-width: 1024px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ----- Section Common ----- */
section { padding: 72px 0; }
@media (min-width: 768px) { section { padding: 96px 0; } }

.section-head { text-align: center; margin-bottom: 48px; }
.section-eyebrow {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
}
.section-desc { color: var(--text-soft); margin: 0; }

/* ----- Reveal Animation ----- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .btn, .site-header, .nav-toggle span { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 72px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(251,248,243,1.00)  0%,
      rgba(251,248,243,0.95) 35%,
      rgba(251,248,243,0.50) 55%,
      rgba(251,248,243,0.00) 75%
    ),
    url('../assets/hero.jpg') right center / cover no-repeat;
  z-index: -1;
}
.hero-inner { text-align: left; }
.hero-eyebrow {
  font-family: var(--serif);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin: 0 0 16px;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 24px;
}
.hero-title-sub {
  display: inline-block;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-soft);
  font-weight: 500;
  margin-top: 8px;
}
.hero-lead {
  font-size: 1rem;
  color: var(--text-soft);
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero-points li {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-soft);
}
.hero-points span {
  color: var(--accent);
  font-weight: 700;
  margin-right: 4px;
}
@media (min-width: 768px) {
  .hero { padding-top: calc(var(--header-h) + 80px); padding-bottom: 120px; }
}

/* ============ Lead Section ============ */
.lead-section { background: var(--white); }
.lead-section .narrow { text-align: center; }
.lead-text {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.8;
  margin: 0 0 24px;
}
.lead-text strong { color: var(--accent-deep); }
.lead-text-sub { color: var(--text-soft); margin: 0; }

/* ============ Message Section ============ */
.message-section { background: var(--bg); }
.message-grid {
  display: grid;
  gap: 32px;
}
.message-photo {
  margin: 0;
  text-align: center;
}
.message-photo img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  background: var(--bg-deep);
  box-shadow: var(--shadow-md);
}
.message-photo figcaption {
  font-size: 0.9rem;
  color: var(--text-soft);
}
.message-body p {
  margin: 0 0 20px;
  color: var(--text-soft);
  line-height: 2;
}
.message-body strong { color: var(--text); background: linear-gradient(transparent 60%, rgba(176,137,104,0.25) 60%); }
.message-lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin: 0 0 24px;
  color: var(--text);
}
.message-sign {
  font-family: var(--serif);
  text-align: right;
  margin-top: 32px !important;
  color: var(--text) !important;
}
@media (min-width: 768px) {
  .message-grid { grid-template-columns: 280px 1fr; gap: 56px; align-items: start; }
}

/* ============ Welcome Section ============ */
.welcome-section { background: var(--bg-soft); }
.welcome-list {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.welcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}
.check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .welcome-list { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* ============ Day Section (Timeline) ============ */
.day-section { background: var(--white); }
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  counter-reset: step;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 70px;
  top: 8px; bottom: 8px;
  width: 2px;
  background: var(--bg-deep);
}
.timeline li {
  position: relative;
  padding: 0 0 32px 100px;
  min-height: 60px;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: 64px;
  top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--white);
}
.timeline .time {
  position: absolute;
  left: 0;
  top: 4px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-deep);
  width: 56px;
  text-align: right;
}
.timeline h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
}
.timeline p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ============ Jobs Section ============ */
.jobs-section { background: var(--bg); }
.jobs-grid { display: grid; gap: 24px; }
.job-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}
.job-tag {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 0 12px;
  align-self: flex-start;
  letter-spacing: 0.05em;
}
.job-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 16px;
}
.job-desc { color: var(--text-soft); margin: 0 0 20px; }
.job-desc strong { color: var(--text); }
.job-points {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 0 0 24px;
}
.job-points li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.job-points li::before {
  content: '';
  position: absolute;
  left: 4px; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.job-points li:last-child { margin-bottom: 0; }
.job-card .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 768px) {
  .jobs-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (min-width: 1024px) {
  .jobs-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .job-card { padding: 36px 28px; }
}

/* ============ Requirements Section ============ */
.requirements-section { background: var(--bg-soft); }
.req-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.req-tab {
  padding: 10px 24px;
  border-radius: 999px;
  background: var(--white);
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
}
.req-tab.is-active {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
}
.req-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.req-table tr { border-bottom: 1px solid var(--line); }
.req-table tr:last-child { border-bottom: 0; }
.req-table th, .req-table td {
  padding: 16px 20px;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}
.req-table th {
  background: var(--bg-soft);
  color: var(--text);
  font-weight: 700;
  width: 32%;
  white-space: nowrap;
}
.req-table small { color: var(--muted); font-size: 0.85rem; display: inline-block; margin-top: 4px; }
@media (max-width: 600px) {
  .req-table th, .req-table td { display: block; width: 100%; }
  .req-table th { padding: 12px 16px 4px; background: var(--bg-soft); }
  .req-table td { padding: 4px 16px 16px; }
}

/* ============ Voices Section ============ */
.voices-section { background: var(--white); }
.voices-grid { display: grid; gap: 24px; }
.voice-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.voice-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--bg-deep);
}
.voice-meta {
  font-size: 0.82rem;
  color: var(--accent-deep);
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.voice-card h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 12px;
  line-height: 1.5;
}
.voice-card p:last-child {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}
@media (min-width: 768px) {
  .voices-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ FAQ Section ============ */
.faq-section { background: var(--bg); }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 56px 20px 24px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  list-style: none;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q';
  font-family: var(--serif);
  color: var(--accent);
  margin-right: 12px;
  font-size: 1.1rem;
}
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 24px; top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item p {
  padding: 0 24px 24px;
  margin: 0;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

/* ============ Entry Section ============ */
.entry-section { background: var(--bg-soft); }

.entry-form--iframe {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 28px;
}
.entry-form--iframe iframe {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
}

.entry-direct {
  background: var(--text);
  color: var(--white);
  padding: 32px 40px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 56px;
}
.contact-intro { flex: 1 1 220px; }
.contact-intro h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 8px;
}
.contact-intro p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.6;
}
.contact-block { flex: 0 0 auto; }
.contact-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}
.contact-label {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.contact-value {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.contact-value--sm {
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.contact-note { font-size: 0.82rem; opacity: 0.7; margin: 6px 0 0; }

/* ============ Footer ============ */
.site-footer {
  background: var(--text);
  color: var(--white);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.footer-kana { font-size: 0.85rem; opacity: 0.6; margin: 0; letter-spacing: 0.1em; }
.footer-info { margin: 0; font-size: 0.92rem; }
.footer-info dt {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-top: 12px;
}
.footer-info dd { margin: 4px 0 0; opacity: 0.92; }
.footer-info a { color: var(--white); text-decoration: underline; }
.footer-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
}
.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.55;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1.2fr; }
}

/* ============ Back to Top ============ */
.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--accent-deep); opacity: 1; }
@media (min-width: 768px) {
  .back-to-top { right: 24px; bottom: 24px; width: 48px; height: 48px; }
}

/* ============ スマホ対応（〜600px）============ */
@media (max-width: 600px) {

  /* --- 共通 --- */
  section { padding: 56px 0; }
  .section-title { font-size: 1.5rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }

  /* --- ヒーロー --- */
  .hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 56px; }
  .hero-title { font-size: 1.7rem; }
  .hero-title-sub { font-size: 0.95rem; }
  .hero-lead { font-size: 0.95rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  /* モバイルではヒーロー画像を非表示にして背景色だけ表示 */
  .hero-bg {
    background:
      radial-gradient(circle at 80% 20%, rgba(176,137,104,0.18) 0%, transparent 60%),
      radial-gradient(circle at 10% 90%, rgba(31,42,68,0.06) 0%, transparent 55%),
      var(--bg);
  }

  /* --- 代表メッセージ --- */
  .message-photo img { width: 160px; height: 160px; }

  /* --- タイムライン --- */
  .timeline::before { left: 52px; }
  .timeline li { padding-left: 76px; }
  .timeline li::before { left: 46px; top: 6px; width: 12px; height: 12px; }
  .timeline .time { font-size: 0.9rem; width: 40px; }
  .timeline h3 { font-size: 1rem; }
  .timeline p { font-size: 0.9rem; }

  /* --- 募集要項テーブル --- */
  .req-tabs { gap: 6px; }
  .req-tab { padding: 8px 16px; font-size: 0.88rem; }
  .req-table th,
  .req-table td { padding: 10px 14px; font-size: 0.88rem; }

  /* --- 先輩の声 --- */
  .voice-card { padding: 20px 16px; }
  .voice-card img { aspect-ratio: 3 / 2; }

  /* --- 応募フォーム 連絡バー --- */
  .entry-direct {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 20px;
  }
  .contact-value { font-size: 1.3rem; }
  .contact-value--sm { font-size: 0.95rem; }

  /* --- フッター --- */
  .site-footer { padding: 40px 0 20px; }
  .footer-grid { gap: 24px; }
  .footer-map iframe { height: 160px; }
}
