@charset "UTF-8";

/* ==================================================
   Variables & Base
================================================== */
:root {
  --color-main: #00366d;
  --color-text: #333333;
  --color-bg: #ffffff;
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;
  --width-inner: 1100px;
}
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin: 0;
  overflow-x: hidden; 
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }

.l-container { max-width: var(--width-inner); margin: 0 auto; padding: 0 4%; }
.u-text-center { text-align: center; }
.u-hidden-pc { display: none !important; }
.u-mt-40 { margin-top: 40px !important; }

@media screen and (max-width: 768px) {
  .u-hidden-sp { display: none !important; }
  .u-hidden-pc { display: block !important; }
}

/* ==================================================
   フェードインアニメーション (JS駆動安全設計)
================================================== */
.fade-in {
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
html.is-js-active .fade-in { opacity: 0; transform: translateY(30px); }
html.is-js-active .fade-in.is-visible { opacity: 1; transform: translateY(0); }

/* ==================================================
   UIパーツ (Buttons & Cards)
================================================== */
.c-btn-action {
  box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  min-width: 260px; height: 54px; padding: 0 30px; border-radius: 27px;
  font-size: 15px; font-weight: 700; color: #fff !important;
  background-color: var(--color-main); text-decoration: none;
  transition: all 0.3s ease; position: relative; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.c-btn-action span { position: relative; display: inline-flex; align-items: center; }
.c-btn-action::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%) rotate(45deg); width: 6px; height: 6px;
  border-top: 2px solid #fff; border-right: 2px solid #fff; transition: all 0.3s ease;
}
.c-btn-action:hover { transform: translateY(-3px); box-shadow: 0 8px 15px rgba(0, 54, 109, 0.25); opacity: 1; }
.c-btn-action:hover::after { right: 15px; }

/* 産業医専用黒ボタン */
.c-btn-action--black { background-color: #222; }
.c-btn-action--black:hover { box-shadow: 0 8px 15px rgba(0, 0, 0, 0.25); }

@media screen and (max-width: 768px) {
  .c-btn-action { width: 100%; min-width: auto; }
}

.c-card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 3px 12px rgba(0,0,0,0.06); }
.c-card-hover:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12); }

/* ==================================================
   見出しスタイル (Layered Header)
================================================== */
.c-layer-header { position: relative; text-align: center; padding: 30px 0; margin-bottom: 25px; }
.c-layer-header__en { font-family: var(--font-serif); font-size: 72px; font-weight: 300; color: #f0f3f5; letter-spacing: 0.08em; display: block; line-height: 1; text-transform: uppercase; user-select: none; }
.c-layer-header__ja { font-family: var(--font-serif); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 32px; font-weight: 400; color: var(--color-main); margin: 0; white-space: nowrap; letter-spacing: 0.05em; }

@media screen and (max-width: 768px) {
  .c-layer-header { padding: 25px 0 20px; overflow: hidden; text-align: center; }
  .c-layer-header__en { font-size: clamp(48px, 13vw, 62px); }
  .c-layer-header__ja { font-size: 28px; }
}

/* ==================================================
   Header (完全固定・濃紺)
================================================== */
.l-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background-color: var(--color-main); box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.l-header__inner { display: flex; justify-content: space-between; align-items: center; height: 80px; padding: 0 4%; }
.l-header__nav { display: flex; align-items: center; gap: 30px; }
.l-header__navList { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; }
.l-header__navList a { font-weight: bold; text-decoration: none; color: #fff; font-size: 14px; }
.l-header__contact-tel {
  display: flex; align-items: center; gap: 8px; color: #fff;
  font-size: 22px; font-weight: bold; text-decoration: none; font-family: Arial, sans-serif;
}
.l-header__contact-tel img { width: 20px; }
.l-header__logo img { height: 40px; width: auto; max-width: 250px; object-fit: contain; object-position: left center; }

/* ハンバーガー */
.c-hamburger { background: none; border: none; cursor: pointer; width: 30px; height: 24px; position: relative; z-index: 101; }
.c-hamburger span { display: block; width: 100%; height: 2px; position: absolute; left: 0; transition: all 0.3s ease; background: #fff; }
.c-hamburger span:nth-child(1) { top: 0; }
.c-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.c-hamburger span:nth-child(3) { bottom: 0; }
.c-hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.c-hamburger.is-active span:nth-child(2) { opacity: 0; }
.c-hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* SP メニュー */
.l-header__spNav {
  opacity: 0; visibility: hidden; position: fixed; top: 80px; left: 0; width: 100%; height: calc(100vh - 80px);
  background-color: rgba(255, 255, 255, 0.96); overflow-y: auto; transform: translateX(100%); 
  transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s ease; z-index: 99;
}
.l-header__spNav.is-active { opacity: 1; visibility: visible; transform: translateX(0); }
.l-header__spNavInner { padding: 20px 4% 80px; }
.c-spNavList { list-style: none; padding: 0; margin: 0 0 30px 0; }
.c-spNavList__item { border-bottom: 1px solid #eee; }
.c-spNavList__parent { display: flex; justify-content: space-between; align-items: center; }
.c-spNavList__parent a { display: block; flex: 1; padding: 15px 0; font-weight: bold; color: var(--color-main); }
.c-spNavBtnBox { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; }
.c-spNavBtnBox .c-btn-action { border-radius: 8px; width: 100%; }
.c-spNavBtnBox .c-btn-action img { width: 18px; margin-right: 8px; }

/* ==================================================
   お問い合わせコンポーネント (contact.php用・3カラム化)
================================================== */
.p-sangyoui-contact { background-color: var(--color-main); padding: 80px 0; }
.p-sangyoui-contact__box {
  background-color: #fff; border-radius: 12px; padding: 40px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.p-sangyoui-contact__item { flex: 1; text-align: center; }
.p-sangyoui-contact__item--tel { border-right: 1px solid #eee; padding-right: 20px; }
.p-sangyoui-contact__item .label { font-size: 14px; font-weight: bold; color: #666; margin-bottom: 10px; }
.p-sangyoui-contact__item .number { font-size: 30px; font-weight: bold; font-family: Arial, sans-serif; color: var(--color-main); display: flex; align-items: center; justify-content: center; gap: 10px; line-height: 1; margin-bottom: 10px; text-decoration: none; }
.p-sangyoui-contact__item .hours { font-size: 13px; color: #666; }
.p-sangyoui-contact__item .c-btn-action { width: 100%; min-width: 0; padding: 0 15px; font-size: 14px; }

@media screen and (max-width: 768px) {
  .p-sangyoui-contact__box { flex-direction: column; padding: 30px 20px; gap: 30px; }
  .p-sangyoui-contact__item { width: 100%; }
  .p-sangyoui-contact__item--tel { border-right: none; border-bottom: 1px solid #eee; padding-right: 0; padding-bottom: 30px; }
  .p-sangyoui-contact__item .number { font-size: 32px; gap: 10px; }
}

/* ==================================================
   Footer & Floating Menu
================================================== */
.l-footer { background: #333; color: #fff; padding: 70px 0 20px; font-size: 13px; }
.p-footer-inner { display: flex; justify-content: space-between; gap: 80px; margin-bottom: 50px; }
.p-footer-logo img { height: 45px; width: auto; max-width: 280px; object-fit: contain; object-position: left center; margin-bottom: 20px; }
.p-footer-sitemap { list-style: none; padding: 0; margin: 0 0 50px 0; }
.p-footer-sitemap li { display: flex; align-items: flex-start; margin-bottom: 15px; line-height: 1.6; }
.p-footer-sitemap .head { width: 160px; flex-shrink: 0; font-weight: bold; }
.p-footer-sitemap .sep { margin: 0 15px; color: #666; }
.p-footer-sitemap .links { flex: 1; color: #aaa; }
.p-footer-sitemap a { color: #fff; transition: color 0.3s; }
.p-footer-sitemap a:hover { color: var(--color-main); }
.p-footer-sitemap .links a { color: #ccc; }
.p-footer-links { list-style: none; padding: 0; }
.p-footer-links li { margin-bottom: 12px; }
.p-footer-links a { color: #ccc; transition: color 0.3s; display: block; }
.p-footer-links a:hover { color: var(--color-main); }
.p-footer-banners { display: flex; gap: 20px; margin-top: 30px; }
.p-footer-banners a { flex: 1; transition: opacity 0.3s; }
.p-footer-banners a:hover { opacity: 0.8; }
.p-footer-copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; color: #aaa; font-size: 12px; }

/* -----------------------------
   PC版 フローティング (右端固定)
------------------------------ */
.l-float-pc-sangyoui {
  position: fixed; top: 50%; right: 0; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 10px;
}
.l-float-pc-sangyoui__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 10px; background-color: var(--color-main); color: #fff;
  border-radius: 10px 0 0 10px; transition: transform 0.3s ease, opacity 0.3s ease;
  box-shadow: -2px 2px 5px rgba(0,0,0,0.1); text-decoration: none;
}
.l-float-pc-sangyoui__btn:hover { transform: translateX(-8px); opacity: 1; }
.l-float-pc-sangyoui__btn--doc { background-color: #F2A65A; }
.l-float-pc-sangyoui__btn .text { writing-mode: vertical-rl; letter-spacing: 2px; font-weight: bold; }

/* -----------------------------
   SP版 フローティング (初期値: PCでは非表示)
------------------------------ */
.l-float-sp-sangyoui {
  display: none !important;
}

/* ==================================================
   スマホ用レスポンシブ (max-width: 768px)
================================================== */
@media screen and (max-width: 768px) {
  .p-footer-inner { flex-direction: column; gap: 40px; }
  .p-footer-sitemap li { flex-direction: column; margin-bottom: 25px; }
  .p-footer-sitemap .sep { display: none; }
  .p-footer-sitemap .head { width: 100%; margin-bottom: 8px; border-bottom: 1px solid #555; padding-bottom: 5px; }
  .l-footer { padding-bottom: 80px; }

  .l-float-sp-sangyoui {
    position: fixed; bottom: 0; left: 0; width: 100%;
    display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
    z-index: 100; background-color: var(--color-main); box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  }
  .l-float-sp-sangyoui__btn {
    flex: 1 1 0 !important; width: 33.333% !important; box-sizing: border-box;
    display: flex !important; flex-direction: column !important; align-items: center; justify-content: center;
    padding: 10px 0; color: #fff; font-size: 12px; font-weight: bold; text-decoration: none;
    border-right: 1px solid rgba(255, 255, 255, 0.3);
  }
  .l-float-sp-sangyoui__btn:last-child { border-right: none; }
  .l-float-sp-sangyoui__btn img { margin-bottom: 4px; }
  .l-float-sp-sangyoui__btn.tel span { font-size: 14px; }
}

/* ==================================================
   Cookie同意バナー
================================================== */
.p-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(20, 35, 55, 0.95);
  color: #fff;
  z-index: 2000;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}
.p-cookie-banner__inner {
  max-width: var(--width-inner);
  margin: 0 auto;
  padding: 18px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.p-cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
}
.p-cookie-banner__text a {
  color: #9ec5e8;
  text-decoration: underline;
}
.p-cookie-banner__btns {
  flex-shrink: 0;
}
.p-cookie-banner__btn {
  background-color: #4a6582;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: bold;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.25s, opacity 0.25s;
}
.p-cookie-banner__btn:hover {
  background-color: #5a7796;
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .p-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 4%;
  }
  .p-cookie-banner__text {
    font-size: 12px;
  }
  .p-cookie-banner__btn {
    width: 100%;
    padding: 12px;
  }
}
