:root {
  --bg: #f8f1ea;
  --bg-strong: #f2dfd1;
  --surface: rgba(255, 251, 247, 0.82);
  --surface-strong: #fffaf6;
  --text: #201310;
  --muted: #6f5951;
  --line: rgba(32, 19, 16, 0.12);
  --accent: #d76137;
  --accent-deep: #8c3117;
  --accent-soft: #f0b28c;
  --shadow: 0 20px 50px rgba(78, 31, 14, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(215, 97, 55, 0.22), transparent 28%),
    radial-gradient(circle at bottom right, rgba(240, 178, 140, 0.24), transparent 24%),
    linear-gradient(180deg, #fbf2e8 0%, #f6eee8 46%, #efe4da 100%);
}

img,
iframe {
  max-width: 100%;
}

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

.hero,
.section,
.footer {
  padding-inline: clamp(20px, 4vw, 48px);
}

.hero {
  padding-top: 24px;
  padding-bottom: 56px;
}

.office-hero {
  min-height: 100vh;
}

.topbar,
.hero-inner,
.section,
.footer {
  max-width: 1240px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.topbar-nav a:not(.button) {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: 104px;
  max-width: 30vw;
  height: auto;
  padding: 0;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(32, 19, 16, 0.08);
}

.brand-name,
.brand-sub,
.eyebrow,
.section-label,
.job-meta,
.filter-title,
.hero-panel-label {
  margin: 0;
}

.brand-name {
  font-weight: 800;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: 28px;
  align-items: end;
  padding-top: 44px;
}

.hero-copy h1,
.section-heading h2,
.job-card h3,
.job-detail h3,
.info-card h3 {
  margin: 0;
}

.eyebrow,
.section-label,
.hero-panel-label {
  color: var(--accent-deep);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-copy h1 {
  margin-top: 14px;
  font-family: "Montserrat", "Noto Sans JP", sans-serif;
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  line-height: 0.96;
}

.hero-text {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--text);
  color: #fff;
}

.button.secondary,
.button.ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
}

.hero-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 246, 239, 0.74)),
    linear-gradient(135deg, rgba(215, 97, 55, 0.25), transparent 55%);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero-stats {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.hero-stats li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hero-stats li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hero-stats strong {
  font-family: "Montserrat", sans-serif;
  font-size: 1.8rem;
}

.hero-stats span {
  color: var(--muted);
}

.section {
  padding-top: 44px;
  padding-bottom: 44px;
}

.section-heading.row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.info-card,
.filters,
.job-card,
.job-detail {
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.info-card {
  padding: 24px;
  border-radius: 24px;
}

.warning-card {
  background:
    linear-gradient(180deg, rgba(255, 247, 240, 0.92), rgba(255, 240, 230, 0.84)),
    var(--surface);
}

.info-card p,
.job-card p,
.detail-section p,
.detail-section li,
.detail-placeholder,
.job-count {
  color: var(--muted);
  line-height: 1.8;
}

.filters {
  display: grid;
  gap: 18px;
  padding: 22px;
  margin-top: 28px;
  border-radius: 26px;
}

.text-panel,
.notice-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

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

.contact-embed {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.contact-embed iframe {
  display: block;
  width: 100%;
  min-height: 980px;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
}

.cta-section {
  padding-top: 12px;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(215, 97, 55, 0.16), rgba(240, 178, 140, 0.16)),
    var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.cta-banner.compact {
  margin-top: 28px;
}

.cta-banner h2 {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.cta-text {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-panel p,
.policy-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.text-panel p + p {
  margin-top: 16px;
}

.policy-grid,
.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.news-feed {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.news-item {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.news-item:first-child {
  border-top: 0;
}

.news-item h3 {
  margin: 8px 0 8px;
  font-size: 1.08rem;
}

.news-item p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.news-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-strong);
  color: var(--accent-deep);
  font-size: 0.8rem;
}

.news-list .is-hidden-news {
  display: none;
}

.news-list.is-expanded .is-hidden-news {
  display: block;
}

.news-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.news-toggle {
  min-width: 148px;
}

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

.policy-card,
.faq-item {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.policy-card h3,
.faq-item h3 {
  margin: 0 0 12px;
}

.notice-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.filter-group {
  display: grid;
  gap: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fffaf4;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.jobs-layout {
  display: block;
  margin-top: 24px;
}

.jobs-list {
  display: grid;
  gap: 16px;
}

.job-card,
.job-detail,
.modal-dialog {
  border-radius: 28px;
}

.job-card {
  padding: 24px;
  cursor: pointer;
}

.job-card.is-active {
  outline: 2px solid rgba(215, 97, 55, 0.34);
}

.job-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-strong);
  color: var(--accent-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.job-card h3 {
  font-size: 1.25rem;
  line-height: 1.5;
}

.job-summary {
  margin: 12px 0 18px;
}

.job-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.job-meta {
  font-size: 0.92rem;
}

.link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-deep);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.detail-placeholder {
  margin: 0;
}

.detail-header p {
  margin: 12px 0 0;
}

.detail-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(240, 178, 140, 0.18);
  color: var(--accent-deep);
  font-weight: 700;
}

.detail-section {
  margin-top: 24px;
}

.detail-section h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.detail-section ul {
  margin: 0;
  padding-left: 18px;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 19, 16, 0.58);
  backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 40px);
  overflow: hidden;
  background: transparent;
}

.modal-detail {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 72px 28px 28px;
  border-radius: 28px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  border: 0;
  background: rgba(255, 255, 255, 0.86);
  color: var(--accent-deep);
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 32px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.policy-page {
  max-width: 960px;
  margin: 0 auto;
  min-height: 100vh;
}

.policy-page h1 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.policy-body h2 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.policy-date {
  margin-top: 28px;
  color: var(--muted);
}

.floating-apply {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 40px rgba(140, 49, 23, 0.28);
  font-weight: 800;
}

@media (max-width: 980px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar-nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .topbar-nav a:not(.button) {
    font-size: 0.84rem;
  }

  .hero-inner,
  .policy-grid,
  .cta-banner,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 84px;
  }

  .topbar,
  .section-heading.row,
  .job-footer,
  .footer,
  .footer-links,
  .cta-actions,
  .detail-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    padding: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 13vw, 3.1rem);
    line-height: 1.02;
  }

  .hero {
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .hero-inner {
    padding-top: 28px;
    gap: 20px;
  }

  .hero-text {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .section {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .section-heading h2 {
    font-size: 1.75rem;
  }

  .hero-panel,
  .filters,
  .text-panel,
  .notice-panel,
  .contact-embed,
  .cta-banner,
  .policy-card,
  .faq-item,
  .job-card,
  .job-detail,
  .info-card,
  .modal-dialog,
  .modal-detail {
    border-radius: 22px;
  }

  .modal {
    padding: 12px;
  }

  .modal-detail {
    padding: 68px 20px 24px;
    max-height: calc(100vh - 24px);
  }

  .modal-close {
    top: 14px;
    right: 14px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-logo {
    width: 88px;
    max-width: 88px;
  }

  .brand-name {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .brand-sub {
    font-size: 0.8rem;
  }

  .topbar .button.ghost {
    width: 100%;
  }

  .topbar-nav {
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
  }

  .topbar-nav a:not(.button) {
    font-size: 0.9rem;
    max-width: 100%;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .chip-row {
    gap: 8px;
  }

  .chip {
    padding: 9px 14px;
    font-size: 0.95rem;
    max-width: 100%;
  }

  .job-card {
    padding: 20px;
  }

  .contact-embed {
    padding: 12px;
  }

  .contact-embed iframe {
    min-height: 840px;
    border-radius: 16px;
  }

  .job-card h3 {
    font-size: 1.12rem;
  }

  .job-summary,
  .job-meta,
  .cta-text,
  .text-panel p,
  .policy-card p,
  .faq-item p,
  .notice-list,
  .news-item p:last-child {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .policy-card,
  .faq-item,
  .info-card {
    padding: 20px;
  }

  .detail-header h3 {
    font-size: 1.3rem;
    line-height: 1.5;
  }

  .detail-note {
    margin-top: 16px;
    padding: 12px 14px;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .floating-apply {
    left: 12px;
    right: 12px;
    bottom: 12px;
    min-height: 50px;
    padding: 0 18px;
  }
}

@media (max-width: 400px) {
  .hero,
  .section,
  .footer {
    padding-inline: 14px;
  }

  .topbar-nav {
    gap: 8px;
  }

  .topbar-nav a:not(.button) {
    font-size: 0.82rem;
  }

  .topbar .button.ghost {
    min-height: 44px;
    padding: 0 14px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-text,
  .job-summary,
  .job-meta,
  .cta-text,
  .text-panel p,
  .policy-card p,
  .faq-item p,
  .notice-list,
  .news-item p:last-child {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .section-heading h2,
  .cta-banner h2 {
    font-size: 1.5rem;
  }

  .filters,
  .text-panel,
  .notice-panel,
  .contact-embed,
  .cta-banner,
  .policy-card,
  .faq-item,
  .job-card,
  .job-detail,
  .info-card,
  .modal-detail {
    padding-left: 16px;
    padding-right: 16px;
  }

  .chip {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .job-tags,
  .detail-tags,
  .chip-row {
    gap: 6px;
  }

  .tag {
    min-height: 28px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .news-item {
    padding: 16px 0;
  }

  .news-item h3 {
    font-size: 1rem;
    line-height: 1.5;
  }

  .contact-embed iframe {
    min-height: 760px;
  }

  .detail-actions .button,
  .hero-actions .button,
  .cta-actions .button {
    min-height: 44px;
  }

  .floating-apply {
    min-height: 46px;
    font-size: 0.95rem;
  }
}
