/*
Theme Name: しろぶたこども歯科 LP
Theme URI: https://shirobuta-kids-dental.jp
Author: Creesse Inc. / タイヨシフミ
Description: しろぶたこども歯科 採用・患者向けランディングページテーマ
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: shirobuta-lp
*/

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --pink:        #F2A7B8;
  --pink-light:  #FDE8ED;
  --pink-deep:   #E07A95;
  --green:       #6BAF8A;
  --green-light: #EAF5EE;
  --green-deep:  #4A8A6A;
  --cream:       #FDF8F3;
  --brown:       #5C3D2E;
  --brown-light: #A07856;
  --white:       #FFFFFF;
  --gray:        #F5F5F5;
  --text:        #3A2A20;
  --text-light:  #7A6A60;

  --font-main:   'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --font-en:     'DM Serif Display', Georgia, serif;

  --radius-sm:   8px;
  --radius-md:   20px;
  --radius-lg:   40px;
  --radius-full: 9999px;

  --shadow-soft: 0 4px 24px rgba(92,61,46,0.08);
  --shadow-card: 0 8px 32px rgba(92,61,46,0.12);

  --max-w: 1080px;
  --section-py: 80px;
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* =============================================
   Utility
   ============================================= */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--green-deep);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.section-title-ja {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--brown-light);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-top: 4px;
}

.badge {
  display: inline-block;
  background: var(--pink-light);
  color: var(--pink-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Header / Navigation
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253,248,243,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(242,167,184,0.3);
  transition: box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(92,61,46,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--green-deep);
}

.btn-entry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(107,175,138,0.35);
}

.btn-entry:hover {
  background: var(--green-deep) !important;
  transform: translateY(-1px);
}

/* =============================================
   Hero
   ============================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

/* 背景の丸い装飾 */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--pink-light) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--green-light) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-copy {
  animation: heroFadeIn 0.9s ease both;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-en-title {
  font-family: var(--font-en);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--pink-deep);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-en-title::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--pink-deep);
}

.hero-main-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-main-title em {
  font-style: normal;
  color: var(--green-deep);
  position: relative;
}

.hero-main-title em::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--pink-light);
  z-index: -1;
  border-radius: 3px;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 440px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pink-deep);
  color: var(--white);
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 24px rgba(224,122,149,0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: #c5607a;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(224,122,149,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-deep);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover {
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.hero-visual {
  position: relative;
  animation: heroFadeIn 0.9s 0.2s ease both;
}

.hero-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4/3;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.hero-placeholder-text {
  color: var(--pink-deep);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
  padding: 40px;
}

/* フローティングバッジ */
.hero-badge {
  position: absolute;
  bottom: -16px;
  left: -24px;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-badge-icon {
  font-size: 1.75rem;
}

.hero-badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.hero-badge-text span {
  display: block;
  color: var(--green-deep);
  font-size: 1rem;
}

/* =============================================
   Section: Message
   ============================================= */
.message-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.message-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.message-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.placeholder-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--green-deep);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  padding: 40px;
  width: 100%;
  height: 100%;
}

.placeholder-block .icon {
  font-size: 3rem;
  opacity: 0.5;
}

.message-text blockquote {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-left: 20px;
  border-left: 4px solid var(--pink);
}

.message-text p {
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.message-text .doctor-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* =============================================
   Section: Features（強み）
   ============================================= */
.features-section {
  padding: var(--section-py) 0;
  background: var(--cream);
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--green));
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.feature-num {
  font-family: var(--font-en);
  font-size: 3rem;
  color: var(--pink-light);
  line-height: 1;
  margin-bottom: 8px;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 10px;
  line-height: 1.5;
}

.feature-desc {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* =============================================
   Section: Environment（はたらく環境）
   ============================================= */
.environment-section {
  padding: var(--section-py) 0;
  background: var(--green-light);
}

.environment-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.env-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.env-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.env-item-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.env-item-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 4px;
}

.env-item-body p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
}

.env-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   Section: Flow（採用フロー）
   ============================================= */
.flow-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.flow-header {
  text-align: center;
  margin-bottom: 56px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--pink), var(--green));
  z-index: 0;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.flow-step-num {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(242,167,184,0.4);
}

.flow-step-num span {
  font-family: var(--font-en);
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
}

.flow-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.flow-step p {
  font-size: 0.825rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* =============================================
   Section: Requirements（募集要項）
   ============================================= */
.requirements-section {
  padding: var(--section-py) 0;
  background: var(--cream);
}

.requirements-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 56px;
  align-items: start;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.req-table tr {
  border-bottom: 1px solid var(--pink-light);
}

.req-table tr:last-child {
  border-bottom: none;
}

.req-table th {
  background: var(--pink-light);
  color: var(--pink-deep);
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 16px 20px;
  text-align: left;
  width: 120px;
  vertical-align: top;
}

.req-table td {
  padding: 16px 20px;
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.8;
}

.salary-highlight {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-deep);
}

/* =============================================
   Section: FAQ
   ============================================= */
.faq-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.faq-header {
  text-align: center;
  margin-bottom: 48px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--pink-light);
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.2s;
  user-select: none;
}

.faq-question:hover {
  background: var(--pink-light);
}

.faq-q-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--green-deep);
  transition: transform 0.3s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 24px 20px 68px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* =============================================
   Section: Entry Form
   ============================================= */
.entry-section {
  padding: var(--section-py) 0 calc(var(--section-py) * 1.5);
  background: linear-gradient(135deg, var(--pink-light) 0%, var(--green-light) 100%);
}

.entry-header {
  text-align: center;
  margin-bottom: 48px;
}

.entry-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-card);
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.form-required {
  background: var(--pink-deep);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--pink-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--green);
  background: var(--white);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A8A6A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.btn-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--pink-deep), var(--green-deep));
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(107,175,138,0.3);
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 8px;
}

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

/* =============================================
   Footer
   ============================================= */
.site-footer {
  background: var(--brown);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 24px;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-info {
  font-size: 0.825rem;
  margin-bottom: 24px;
  line-height: 1.8;
}

.footer-copy {
  font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  :root { --section-py: 60px; }

  .hero-inner,
  .message-inner,
  .environment-inner,
  .requirements-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual { order: -1; }

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

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .flow-steps::before { display: none; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }

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

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .entry-form-wrap {
    padding: 32px 24px;
  }
}
