*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --site-width: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: #222;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-wrap {
  min-height: 100vh;
}

/* 共通ヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.site-header__inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 16px 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 112px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.site-logo img {
  width: 285px;
  max-width: 100%;
}

.site-header__right {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  color: #222;
  font-size: 14px;
  line-height: 1.45;
}

.site-header__label {
  display: inline-block;
  background: #222;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  margin-bottom: 8px;
}

.site-header__tel {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* SPヘッダー */
.sp-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sp-header__inner {
  padding: 12px 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-logo {
  display: inline-flex;
  justify-content: center;
}

.sp-logo img {
  width: 190px;
}

.menu-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 30px;
  height: 2px;
  margin-left: auto;
  background: #555;
  transition: transform .3s ease, opacity .3s ease;
}

/* ナビ */
.global-nav {
  background: transparent;
  margin-top: 42px;
}

.global-nav__inner {
  max-width: var(--site-width);
  margin: 0 auto;
  background: #c5c25f;
  display: flex;
  justify-content: center;
}

.global-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.global-nav__item {
  position: relative;
}

.global-nav__item + .global-nav__item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 28px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.75);
}

.global-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 14px 22px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: background-color .25s ease, opacity .25s ease;
}

.global-nav__link:hover {
  opacity: 0.86;
}

.global-nav__link.is-current {
  background: rgba(0,0,0,0.28);
}

/* SPメニュー */
.sp-nav {
  display: none;
  background: #2f2f2f;
}

.sp-nav.is-open {
  display: block;
}

.sp-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-nav__item {
  border-top: 1px solid rgba(255,255,255,0.15);
}

.sp-nav__link {
  display: block;
  padding: 14px 18px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.sp-nav__link.is-current {
  background: rgba(255,255,255,0.1);
}

/* ヒーロー */
.hero {
  max-width: var(--site-width);
  margin: 0 auto;
  background: #ffffff;
}

.hero img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.hero__pc {
  display: block;
}

.hero__sp {
  display: none;
}

/* コンテンツ共通 */
.section {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 48px 0 72px;
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* トップ */
.top-intro {
  display: grid;
  grid-template-columns: 19% 40% 1fr;
  column-gap: 34px;
  align-items: start;
  width: 100%;
}

/* 左側：静岡市・CSR画像 */
.top-intro__subimage {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-intro__subimage img {
  width: 100%;
}

/* 真ん中：人物写真 */
.top-intro__mainimage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

/* 右側：テキスト */
.top-intro__text {
  width: 100%;
  padding-top: 0;
  font-size: 24px;
  line-height: 2.05;
  letter-spacing: 0.04em;
  padding-right: 0;
  align-self: center;
}

.top-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 42px;
  align-items: stretch;
  margin-top: 76px;
}

.company-box {
  height: 100%;
  background: #fff;
  border: 3px solid #4b53ff;
  border-radius: 10px;
  padding: 28px 28px 22px;
}

.company-box table {
  width: 100%;
  border-collapse: collapse;
}

.company-box th,
.company-box td {
  padding: 12px 0;
  vertical-align: top;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
}

.company-box th {
  width: 130px;
  padding-right: 30px;
  white-space: nowrap;
}

.contact-card {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
}

.contact-card__title,
.contact-card__lead,
.contact-card__tel,
.contact-card__time,
.contact-card__button {
  width: 100%;
  text-align: center;
}

.contact-card__photo {
  width: 100%;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.contact-card__photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
}

.contact-card__title {
  text-align: center;
  color: #3943ff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}

.contact-card__title small {
  display: block;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-top: 4px;
}

.contact-card__lead {
  text-align: center;
  margin: 0 0 24px;
  font-size: 15px;
  color: #444;
  line-height: 1.8;
}

.contact-card__tel {
  text-align: center;
  color: #3943ff;
  font-size: 50px;
  font-weight: 900;
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0 0 14px;
}

.contact-card__time {
  text-align: center;
  margin: 0 0 18px;
  font-size: 14px;
  color: #444;
}

.contact-card__button {
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

/* ボタン */
.contact-card .cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  min-height: 64px;
  padding: 12px 76px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f59ff 0%, #2e37f5 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(47, 55, 245, 0.28);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  text-align: center;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(47, 55, 245, 0.34);
}

.cta-button:active {
  transform: translateY(0);
}

.contact-card .cta-button__badge {
  position: absolute;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffe100;
  color: #3943ff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.contact-card .cta-button__text {
  display: inline-block;
  transform: translateX(14px);
}

/* 下層ページ共通 */
.page-visual {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 48px 24px 0;
}

.page-visual img {
  width: 100%;
}

/* フッター */
.site-footer {
  background: #9b9b9b;
  margin-top: 56px;
}

.site-footer__inner {
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 38px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer__logo {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.site-footer__logo img {
  width: 265px;
  display: block;
  margin: 0 auto;
  transform: translateX(-8px);
}

.site-footer__copy {
  margin-top: 6px;
  color: #111;
  font-size: 15px;
}

/* SP固定CTA */
.sp-fixed-cta {
  display: none;
}

/* tablet */
@media (max-width: 1120px) {
  .site-header__inner,
  .section,
  .global-nav__inner,
  .hero,
  .site-footer__inner {
    max-width: calc(100% - 32px);
  }

  .section {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 1105px) {
  .top-intro__text {
    font-size: 21.5px;
    line-height: 2;
  }
}

@media (max-width: 1024px) {
  .site-header {
    display: none;
  }

  .sp-header {
    display: block;
  }

  .sp-header__inner {
    position: relative;
    justify-content: center;
  }

  .sp-logo {
    display: inline-flex;
    justify-content: center;
  }

  .menu-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero__pc {
    display: none;
  }

  .hero__sp {
    display: block;
  }

  .global-nav {
    display: none;
  }

  .hero {
    max-width: 100%;
  }

  .section {
    max-width: 100%;
    padding: 28px 16px 46px;
  }

  .top-intro {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .top-intro__subimage {
    gap: 12px;
  }

  .top-intro__text {
    font-size: 18px;
    line-height: 1.95;
  }

  .top-bottom {
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: start;
    margin-top: 42px;
  }

  .company-box,
  .contact-card {
    height: auto;
  }

  .contact-card {
    display: block;
  }

  .contact-card__photo img {
    aspect-ratio: auto;
  }

  .contact-card__tel {
    font-size: 44px;
  }

  .company-box th,
  .company-box td {
    font-size: 15px;
  }

  .page-visual {
    padding-top: 34px;
  }

  .sp-fixed-cta {
    display: block;
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 999;
  }

  .sp-fixed-cta__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #4f59ff 0%, #2e37f5 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(47, 55, 245, 0.28);
  }
}

/* smartphone */
@media (max-width: 767px) {
  .section {
    padding: 28px 16px 46px;
  }

  .page-visual {
    padding: 28px 16px 0;
  }

  .top-intro__text {
    font-size: 16px;
    line-height: 1.9;
  }

  .company-box {
    padding: 18px 16px 14px;
  }

  .company-box th,
  .company-box td {
    font-size: 13px;
    line-height: 1.7;
    padding: 9px 0;
  }

  .company-box th {
    width: 92px;
    padding-right: 10px;
  }

  .contact-card__title {
    font-size: 18px;
  }

  .contact-card__lead {
    font-size: 13px;
  }

  .contact-card__tel {
    font-size: 32px;
  }

  .contact-card__time {
    font-size: 12px;
  }

  .cta-button {
    min-height: 58px;
    padding: 12px 22px;
    font-size: 15px;
  }

  .cta-button__badge {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }

  .site-footer__logo img {
    width: 210px;
  }

  .site-footer__copy {
    font-size: 12px;
  }
}