@charset "UTF-8";
/* ============================================================
   ExMedz corporate site — common stylesheet
   素のCSS(フレームワーク不使用)。全ページ共通で読み込む。
   ============================================================ */

:root {
  --accent: #b389cd;
  --accent-dark: #44334d;
  --accent-pale: #f6f1f9;
  --text: #333333;
  --text-muted: #777777;
  --border: #e3dce8;
  --bg: #ffffff;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  word-break: normal;
  overflow-wrap: anywhere;
}

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

a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-dark);
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------- header ---------------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: relative;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 16px;
}

.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 40px; width: auto; }

/* global nav */
.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}

.global-nav li { position: relative; }

.global-nav a {
  display: block;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
}

.global-nav a:hover { color: var(--accent); }

.global-nav .nav-en {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

/* dropdown (PC) */
.global-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--accent-dark);
  padding: 6px 0;
  z-index: 50;
}
.global-nav li:hover > .sub-menu,
.global-nav li:focus-within > .sub-menu { display: block; }
.global-nav .sub-menu a { color: #fff; font-weight: 400; padding: 8px 16px; }
.global-nav .sub-menu a:hover { background: var(--accent); color: #fff; }

/* language switch */
.lang-switch {
  display: inline-block;
  order: 4;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-dark);
  white-space: nowrap;
}
.lang-switch:hover { border-color: var(--accent); color: var(--accent); }

/* mobile nav button */
.nav-toggle {
  order: 5;
}
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  cursor: pointer;
  line-height: 0;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-dark);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .global-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 16px rgba(68, 51, 77, 0.12);
    z-index: 60;
  }
  .global-nav.is-open { display: block; }

  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a { border-top: 1px solid var(--border); padding: 12px 20px; }

  .global-nav .sub-menu {
    display: block;
    position: static;
    min-width: 0;
    background: var(--accent-pale);
    padding: 0;
  }
  .global-nav .sub-menu a { color: var(--text); padding-left: 36px; }
}

/* ---------------- page header (title band) ---------------- */

.page-header {
  background: var(--accent);
  color: #fff;
  padding: 34px 0;
}
.page-header h1 { margin: 0; font-size: 28px; line-height: 1.4; }

.breadcrumb {
  background: var(--accent-pale);
  font-size: 13px;
  padding: 8px 0;
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; color: var(--text-muted); }
.breadcrumb a { text-decoration: none; }

/* ---------------- main content ---------------- */

.site-main { padding: 48px 0 72px; }
.site-main .container { max-width: 880px; }

.site-main h2 {
  font-size: 24px;
  border-top: 3px solid var(--accent);
  padding-top: 14px;
  margin: 48px 0 18px;
  line-height: 1.5;
}
.site-main h2:first-child { margin-top: 0; }

.site-main h3 {
  font-size: 19px;
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.5;
}

.site-main blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: var(--accent-pale);
  border-left: 4px solid var(--accent);
  font-weight: 600;
}
.site-main blockquote p { margin: 0; }

.text-right { text-align: right; }
.lead-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 16px;
}

/* tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.data-table th,
.data-table td {
  border: 1px solid var(--border);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}
.data-table th {
  background: var(--accent-pale);
  white-space: nowrap;
  width: 11em;
  font-weight: 600;
}
.data-table ul { margin: 0; padding-left: 1.2em; }

@media (max-width: 640px) {
  .data-table { display: block; }
  .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table th { white-space: normal; border-bottom: none; }
  .data-table tr + tr th { border-top: none; }
  .data-table td { border-top: none; }
}

/* figures */
.figure-center { margin: 28px auto; text-align: center; }
.figure-center img { border: 1px solid var(--border); }

/* FAQ */
.qa-item {
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.qa-item dt {
  background: var(--accent-pale);
  padding: 14px 18px 14px 46px;
  font-weight: 600;
  position: relative;
}
.qa-item dt::before {
  content: "Q";
  position: absolute;
  left: 16px;
  color: var(--accent);
  font-weight: 700;
}
.qa-item dd {
  margin: 0;
  padding: 14px 18px 14px 46px;
  position: relative;
}
.qa-item dd::before {
  content: "A";
  position: absolute;
  left: 16px;
  color: var(--accent-dark);
  font-weight: 700;
}

/* flow steps */
.flow-list { list-style: none; margin: 24px 0; padding: 0; counter-reset: flow; }
.flow-step {
  counter-increment: flow;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 16px;
  padding: 18px 20px 18px 72px;
  position: relative;
}
.flow-step::before {
  content: counter(flow);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flow-step dt { font-weight: 700; margin-bottom: 4px; }
.flow-step dd { margin: 0; }
.flow-step + .flow-step::after {
  content: "";
  position: absolute;
  top: -14px;
  left: 35px;
  border: 6px solid transparent;
  border-top-color: var(--accent);
}

/* related page cards */
.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}
.related-cards a {
  display: block;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 18px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.related-cards a:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(68, 51, 77, 0.12); }
.related-cards .card-title { font-weight: 700; display: block; margin-bottom: 6px; color: var(--accent-dark); }
.related-cards .card-text { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* sitemap page */
.sitemap-list { list-style: none; padding: 0; margin: 16px 0; }
.sitemap-list > li { margin-bottom: 8px; }
.sitemap-list a { text-decoration: none; }
.sitemap-list ul { list-style: none; padding-left: 24px; margin: 8px 0; }
.sitemap-list ul li { margin-bottom: 6px; }
.sitemap-list li::before { content: "›"; color: var(--accent); margin-right: 8px; }

/* iframe wrap (Google Form) */
.iframe-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 130%;
  margin: 24px 0;
}
.iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
}

/* mailto CTA */
.mail-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  padding: 14px 32px;
  margin: 8px 0;
}
.mail-cta:hover { background: var(--accent-dark); color: #fff; }

/* ---------------- top page ---------------- */

/* hero slider */
.hero { position: relative; overflow: hidden; }
.hero-slide { display: none; position: relative; }
.hero-slide.is-active { display: block; }
.hero-slide img { display: block; width: 100%; height: auto; }

.hero-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* ヘッダーロゴ(.container の左端)と開始位置を揃える */
  padding-left: max(20px, calc((100% - var(--max-width)) / 2 + 20px));
  padding-right: 20px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 70%);
}
.hero-caption .hero-title {
  margin: 0 0 6px;
  font-size: clamp(18px, 3.2vw, 34px);
  line-height: 1.5;
  color: var(--accent-dark);
}
.hero-caption .hero-sub {
  margin: 0 0 18px;
  font-size: clamp(13px, 1.8vw, 18px);
  color: var(--text);
}
.hero-btn {
  display: inline-block;
  border: 2px solid var(--accent-dark);
  border-radius: 4px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  padding: 8px 24px;
  font-size: clamp(13px, 1.6vw, 16px);
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.2s ease, color 0.2s ease;
}
.hero-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(68, 51, 77, 0.35);
  margin: 0 5px;
  padding: 0;
  cursor: pointer;
}
.hero-dots button.is-active { background: var(--accent-dark); }

/* PR blocks */
.pr-section { padding: 56px 0 8px; }
.pr-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 720px) { .pr-blocks { grid-template-columns: 1fr; } }
.pr-block { text-align: center; }
.pr-block .pr-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--accent-pale);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pr-block .pr-icon svg { width: 36px; height: 36px; fill: currentColor; }
.pr-block h2 {
  font-size: 18px;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  border: none;
  padding: 0;
}
.pr-block p { margin: 0; font-size: 14.5px; text-align: left; }

/* news list */
.news-section { padding: 40px 0 72px; }
.section-title {
  font-size: 24px;
  border-top: 3px solid var(--accent);
  padding-top: 14px;
  margin: 0 0 24px;
}
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { border-bottom: 1px solid var(--border); }
.news-item a {
  display: flex;
  gap: 20px;
  padding: 20px 4px;
  text-decoration: none;
  color: var(--text);
}
.news-item a:hover .news-title { color: var(--accent); }
.news-thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--accent-pale);
}
.news-meta { font-size: 13px; color: var(--text-muted); margin: 0 0 4px; }
.news-meta .news-cat {
  display: inline-block;
  background: #999999;
  color: #fff;
  border-radius: 3px;
  font-size: 11.5px;
  padding: 1px 10px;
  margin-left: 10px;
  vertical-align: 1px;
}
.news-title { font-size: 17px; font-weight: 700; margin: 0 0 4px; color: var(--accent-dark); }
.news-excerpt { font-size: 14px; color: var(--text-muted); margin: 0; }
@media (max-width: 560px) {
  .news-item a { gap: 14px; }
  .news-thumb { flex-basis: 72px; width: 72px; height: 72px; }
  .news-excerpt { display: none; }
}

/* ---------------- news article ---------------- */

.entry-meta { font-size: 13.5px; color: var(--text-muted); margin-bottom: 8px; }
.entry-meta .news-cat {
  display: inline-block;
  background: #999999;
  color: #fff;
  border-radius: 3px;
  font-size: 11.5px;
  padding: 1px 10px;
  margin-left: 10px;
  text-decoration: none;
}
.entry-eyecatch { margin: 24px auto; text-align: center; }
.entry-eyecatch img { max-height: 420px; width: auto; }

.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14.5px;
}
.post-nav .post-nav-label { display: block; font-size: 12px; color: var(--text-muted); }
.post-nav a { text-decoration: none; max-width: 48%; }
.post-nav .post-nav-next { margin-left: auto; text-align: right; }

/* ---------------- footer ---------------- */

.site-footer {
  background: var(--accent-dark);
  color: #fff;
  margin-top: 0;
  padding: 48px 0 0;
}
.site-footer a { color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.footer-profile p { margin: 0; font-size: 14px; line-height: 1.9; }

.footer-nav ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.footer-nav li { margin-bottom: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }

.footer-contact .mail-cta { width: 100%; text-align: center; }
.footer-contact .mail-cta-sub {
  display: block;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 6px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  font-size: 13px;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.8);
}
.copyright p { margin: 0; }

/* ---------------- 404 ---------------- */
.error-page { text-align: center; padding: 88px 20px; }
.error-page .error-code { font-size: 72px; font-weight: 700; color: var(--accent); margin: 0; line-height: 1; }
.error-page p { margin: 18px 0 28px; }
