:root {
  --color-text: #1f1f1f;
  --color-bg: #f5f6f7;
  --color-surface: #ffffff;
  --color-border: #d9d9d9;
  --color-muted: #5f6368;
  --color-primary: #0f4c81;
  --color-primary-dark: #0a3558;
  --image-frame-bg: #e3e3e3;
  --image-frame-border: #cfcfcf;
  --subpage-media-ratio: 4 / 3;
  --content-width: 960px;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-family: "Noto Sans Japanese", Noto Sans Japanese, "Meiryo", "メイリオ",
    "Hiragino Kaku Gothic ProN", "ヒラギノ角ゴ ProN W3", Verdana, Helvetica,
    sans-serif;
  padding-top: 96px;
}

main {
  min-height: 500px;
}

a {
  color: inherit;
}

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

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.logo {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: block;
}

.site-nav-list {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.site-nav-list li {
  flex: 0 0 auto;
}

.site-nav-list .nav-contact {
  margin-left: auto;
}

.site-nav-list .nav-recruit {
  margin-left: auto;
}

.site-nav-list .nav-contact {
  margin-left: 0;
}

.site-nav-list a {
  display: inline-flex;
  align-items: center;
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-nav-list a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #2f80ed;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

.site-nav-list .nav-cta[aria-current="page"] {
  background: #1b6dd8;
  color: #fff !important;
  text-decoration: none;
}

.site-nav-list .nav-cta-recruit {
  background: #27ae60;
}

.site-nav-list .nav-cta-recruit[aria-current="page"] {
  background: #1f8e4d;
}

.menu-toggle {
  display: none;
}

@media (max-width: 859px) {
  body.menu-open {
    overflow: hidden;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
    color: var(--color-text);
    padding: 10px 12px;
    min-height: 44px;
    line-height: 1;
    z-index: 1002;
  }

  .menu-toggle-lines {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
  }

  .menu-toggle-lines span {
    display: block;
    width: 16px;
    height: 2px;
    background: #2f3b4a;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle-text {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    font-weight: 700;
  }

  .menu-toggle.is-open .menu-toggle-lines span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
  }

  .menu-toggle.is-open .menu-toggle-lines span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open .menu-toggle-lines span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
  }

  .header-inner > nav[aria-label="グローバルナビ"] {
    grid-column: 1 / -1;
    position: relative;
  }

  .header-inner > nav[aria-label="グローバルナビ"] .site-nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    overflow: visible;
    white-space: normal;
    padding: 10px 0 4px;
    margin-top: 8px;
    background: #f9fbfd;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 20px rgba(20, 32, 50, 0.12);
  }

  .header-inner > nav[aria-label="グローバルナビ"].is-open .site-nav-list {
    display: flex;
  }

  .site-nav-list li {
    width: 100%;
  }

  .site-nav-list .nav-contact {
    margin-left: 0;
  }

  .site-nav-list a {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: #fff;
  }

  .site-nav-list .nav-cta {
    justify-content: center;
    border: none;
  }
}

.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 36px 0 28px;
}

.page-copy-title {
  margin: 10px 0 8px;
  font-size: clamp(1.05rem, 3.8vw, 1.3rem);
  font-weight: 700;
  text-align: center;
}

.page-copy-lead {
  margin: 0;
  max-width: 62ch;
  margin-inline: auto;
  color: #3f3f3f;
  line-height: 1.9;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  font-size: 0.88rem;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.6rem, 5.5vw, 2.2rem);
  line-height: 1.25;
  text-align: center;
}

.lead {
  margin: 0;
  max-width: 46em;
  color: #3f3f3f;
}

.breadcrumb {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 0.86rem;
}

.section {
  padding: 28px 0;
}

section:not(.pre-footer-cta) {
  margin-bottom: 100px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.15rem, 4.5vw, 1.5rem);
  line-height: 1.35;
  text-align: center;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  text-align: center;
}

p {
  margin: 0;
}

.stack {
  display: grid;
  gap: 12px;
}

.split {
  display: grid;
  gap: 12px;
}

.list {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
}

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

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #44505f;
  background: #eef1f5;
  border: 1px solid #d7dee8;
}

.chip-news {
  color: #9b5a00;
  background: #fff4e8;
  border-color: #ffd7a8;
}

.chip-recruit {
  color: #11643b;
  background: #e9f8ef;
  border-color: #b9e8ca;
}

.btn-row {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  justify-items: center;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}

.stack > .btn,
.card > .btn {
  width: fit-content;
  margin-inline: auto;
  margin-top: 6px;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
}

.btn-secondary {
  color: var(--color-primary);
  background: #fff;
  border-color: var(--color-primary);
}

.btn-consult {
  color: #fff;
  background: #2f80ed;
}

.btn-recruit {
  color: #fff;
  background: #27ae60;
}

.btn-strength {
  color: #fff;
  background: #7b61ff;
}

.btn-about {
  color: #fff;
  background: #4f8df7;
}

.btn-service {
  color: #fff;
  background: #19b8a6;
}

.btn-works {
  color: #fff;
  background: #ff9f43;
}

.btn-brand {
  color: #fff;
  background: #ff6fae;
}

.route-switch {
  background: #eef5fb;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  display: none;
}

.about-layout .card {
  box-shadow: 0 2px 10px rgba(20, 32, 50, 0.04);
}

.about-emphasis {
  border-left: 4px solid #2f80ed;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.about-checklist {
  padding-left: 0;
  list-style: none;
}

.about-checklist li {
  position: relative;
  padding-left: 1.4em;
}

.about-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #2f80ed;
  font-weight: 700;
}

.about-recruit-card {
  background: linear-gradient(180deg, #ffffff 0%, #ecf9f0 100%);
}

.about-recruit-card p {
  max-width: 46em;
}

.pre-footer-cta {
  background: #eef3f8;
  border-top: 1px solid var(--color-border);
}

.pre-footer-inner {
  width: min(95%, 1400px);
  margin-inline: auto;
}

.pre-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding-block: 20px;
}

.pre-footer-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px;
}

.pre-footer-card h2 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  text-align: center;
}

.pre-footer-card p {
  margin-bottom: 12px;
}

.pre-footer-card .btn {
  display: flex;
  width: fit-content;
  margin-inline: auto;
}

/* 回遊セクションの準備に合わせて、個別導線を一時非表示 */
body.about-page .about-layout > .container > .btn-row,
body.about-page .about-recruit-card .btn {
  display: none;
}

.page-hero .lead {
  display: none;
}

.circulation-section {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
  background: #f4f7fb;
}

.circulation-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.circulation-card {
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 14px;
}

.circulation-media {
  margin-bottom: 10px;
}

.circulation-media img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--image-frame-border);
  background: var(--image-frame-bg);
}

/* 角丸ルール: 非クリック要素は角丸なし */
.card,
.pre-footer-card,
.table,
.faq-item,
.media,
.about-photo-grid img,
.recruit-top-visual img,
.service-consult-block,
.service-consult-media img,
.route-card,
.insta-item,
.brand-visual,
input,
textarea,
select {
  border-radius: 0 !important;
}

.btn,
.nav-cta,
.menu-toggle,
.page-top-button {
  border-radius: 8px;
}

.page-top-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1100;
  min-width: 54px;
  height: 42px;
  border: 1px solid #2f80ed;
  background: #2f80ed;
  color: #fff;
  font-weight: 700;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.page-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #bfc5cb;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.required {
  color: #b00020;
  margin-left: 6px;
  font-size: 0.85rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
}

.table th,
.table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.table tr:last-child th,
.table tr:last-child td {
  border-bottom: none;
}

.map-embed {
  margin-top: 14px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.map-frame {
  display: block;
  width: 100%;
  height: min(56vw, 360px);
  border: 0;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  padding: 14px;
}

.faq-q {
  font-weight: 700;
  margin-bottom: 8px;
}

.voice-card-trigger {
  display: grid;
  gap: 10px;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.voice-quote {
  font-weight: 700;
}

.voice-modal[hidden] {
  display: none;
}

.voice-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.voice-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 26, 36, 0.58);
}

.voice-modal-dialog {
  position: relative;
  width: min(980px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  margin: 12px auto;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 14px;
}

.voice-modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: block;
  border: 1px solid var(--color-border);
  background: #fff;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.voice-modal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.voice-modal-media img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--image-frame-border);
  background: var(--image-frame-bg);
}

.voice-modal-body h4 {
  margin: 14px 0 6px;
  font-size: 1rem;
}

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

.process-step {
  background: #f0f4f8;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  font-weight: 700;
}

.tag-note {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #aac2d9;
  color: #0f4c81;
  background: #eef5fb;
  font-size: 0.9rem;
}

.media {
  display: block;
  width: 100%;
  aspect-ratio: var(--subpage-media-ratio);
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--image-frame-border);
  background: var(--image-frame-bg);
}

.alt-overlay-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.alt-overlay-wrap img {
  display: block;
  width: 100%;
}

.alt-overlay-label {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.64);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.footer {
  padding: 22px 0 28px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 0.9rem;
}

.footer-main {
  display: grid;
  gap: 18px;
}

.footer-brand-name {
  margin: 0 0 6px;
  font-weight: 700;
  color: #2f3b4a;
}

.footer-address {
  margin: 0;
  line-height: 1.6;
}

.footer-nav-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #2f3b4a;
}

.footer-nav-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.footer-nav-links a {
  color: var(--color-muted);
  text-decoration: none;
}

.footer-copyright {
  margin: 16px 0 0;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-bottom: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--color-muted);
}

@media (min-width: 860px) {
  body {
    padding-top: 60px;
  }

  .header-inner {
    min-height: 60px;
    display: flex;
    justify-content: space-between;
    padding: 0;
  }

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

  .about-top-grid,
  .about-mid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .voice-modal-dialog {
    margin: 28px auto;
    padding: 18px;
  }

  .voice-modal-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    align-items: start;
  }

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

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

  .footer-main {
    grid-template-columns: 1.6fr 1fr;
    align-items: start;
  }

  .footer-nav-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
}
