/* ==========================================================================
   トカジ自動車 サイト共通スタイル
   カラーやフォントの変更は :root の変数を書き換えてください。
   レスポンシブの境界: sm=640px / md=768px / lg=1024px / xl=1280px
   ========================================================================== */

:root {
  --maincolor: #ffdb5e;
  --weak_maincolor: #fff0be;
  --weak_accentcolor: #cadaf7;
  --accentcolor: #426ab3;
  --textcolor: #1e211b;

  /* 汎用の影 */
  --shadow: 0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  color: var(--textcolor);
  background: var(--weak_maincolor);
  font-family: "Poppins", "M PLUS 1", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
}

/* WebP対応のpictureタグをレイアウト上透過させる */
picture {
  display: contents;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

main {
  margin-bottom: 2.5rem;
  overflow: hidden;
}

/* ==========================================================================
   共通アニメーション
   ========================================================================== */

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes smoothBounce {
  0%   { transform: translateY(0) scaleY(1); }
  20%  { transform: translateY(0) scaleY(0.8); }
  40%  { transform: translateY(-15px) scaleY(1); }
  60%  { transform: translateY(0) scaleY(1.1); }
  80%  { transform: translateY(0) scaleY(0.95); }
  100% { transform: translateY(0) scaleY(1); }
}

@keyframes fadeInDown {
  0%   { transform: translateY(-40px); }
  100% { transform: translateY(0); }
}

@keyframes fadeSwitch {
  0%    { opacity: 0; }
  12.5% { opacity: 1; }
  37.5% { opacity: 1; }
  50%   { opacity: 0; }
  100%  { opacity: 0; }
}

@keyframes slideInRight {
  0%   { opacity: 0; transform: translateX(100px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes catRotateWobble {
  0%   { transform: rotate(0deg); }
  50%  { transform: rotate(15deg); }
  100% { transform: rotate(0deg); }
}

/* スクロールダウン矢印 */
@keyframes scroll {
  0%   { opacity: 0; transform: rotate(-45deg) translate(0, 0); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: rotate(-45deg) translate(-28px, 28px); }
  100% { opacity: 0; }
}

.scroll {
  padding-top: 60px;
  position: relative;
  text-align: center;
}

.scroll::before {
  animation: scroll 2s infinite;
  border-bottom: 2px solid #000;
  border-left: 2px solid #000;
  content: "";
  height: 20px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
}

/* ==========================================================================
   ホバー装飾
   ========================================================================== */

/* 下線がスライドインするリンク */
.underline-hover {
  position: relative;
}

.underline-hover::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  display: block;
  background: var(--accentcolor);
  left: 0;
  bottom: -3px;
  transform: scale(0, 1);
  transform-origin: right top;
  transition: transform 0.3s ease-in-out;
}

.underline-hover:hover::after {
  transform: scale(1, 1);
  transform-origin: left top;
}

/* 枠線が周囲を走るリンク */
.around-line-hover {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 auto;
  transition: 0.3s ease-in-out;
}

.around-line-hover::before,
.around-line-hover::after {
  box-sizing: inherit;
  content: "";
  position: absolute;
  border: 2px solid transparent;
  width: 0;
  height: 0;
}

.around-line-hover::before {
  top: 0;
  left: 0;
}

.around-line-hover::after {
  bottom: 0;
  right: 0;
}

.around-line-hover:hover::before,
.around-line-hover:hover::after {
  width: 100%;
  height: 100%;
}

.around-line-hover:hover::before {
  border-top-color: var(--textcolor);
  border-right-color: var(--textcolor);
  transition: width 0.15s ease-out, height 0.15s ease-out 0.15s;
}

.around-line-hover:hover::after {
  border-bottom-color: var(--textcolor);
  border-left-color: var(--textcolor);
  transition: border-color 0s ease-out 0.2s, width 0.15s ease-out 0.2s,
    height 0.15s ease-out 0.3s;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */

.header-spacer {
  display: none;
  width: 100%;
  height: 64px;
}

.site-header.is-fixed .header-spacer {
  display: block;
}

.header-wrap {
  position: relative;
  width: 100%;
  height: 64px;
  z-index: 90;
}

.site-header.is-fixed .header-wrap {
  position: fixed;
  top: 0;
  left: 0;
}

.header-bar {
  position: relative;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  background: var(--maincolor);
}

.site-header.is-fixed .header-bar {
  animation: fadeInDown 0.5s ease;
  box-shadow: var(--shadow-lg);
}

.nav {
  display: flex;
  position: relative;
  width: 100%;
  padding-top: 4px;
  justify-content: space-between;
  background: var(--maincolor);
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-left: 12px;
}

@media (min-width: 640px) {
  .brand { margin-left: 20px; }
}

@media (min-width: 1024px) {
  .brand { margin-left: 28px; }
}

.brand img {
  width: auto;
  height: auto;
  max-height: 56px;
  aspect-ratio: 1 / 1;
}

.brand h1 {
  white-space: nowrap;
}

.brand {
  flex-shrink: 0;
}

.brand-title {
  display: block;
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 600;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  margin-top: -4px;
  font-family: "Damion", cursive;
}

/* ナビ6項目とブランド名が両立できるようmd帯では少し縮小する */
@media (min-width: 768px) and (max-width: 1023px) {
  .brand-title {
    font-size: 1.5rem;
    line-height: 2rem;
  }

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

  .brand img {
    max-height: 48px;
  }
}

.nav-menu {
  display: none;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    align-items: center;
    text-align: center;
    width: auto;
    margin-right: 16px;
    gap: 4px;
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }
}

@media (min-width: 1024px) {
  .nav-menu {
    margin-right: 24px;
    gap: 16px;
    font-size: 1rem;
  }
}

@media (min-width: 1280px) {
  .nav-menu { gap: 28px; }
}

.nav-menu a,
.nav-menu button {
  padding: 8px 4px;
}

@media (min-width: 1024px) {
  .nav-menu a,
  .nav-menu button {
    padding: 8px;
  }
}

/* ハンバーガーメニュー（スマホ専用） */
.hamburger-wrap {
  padding-right: 16px;
}

@media (min-width: 768px) {
  .hamburger-wrap { display: none; }
}

.hamburger {
  position: relative;
  width: 48px;
  height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 32px;
  height: 3px;
  background: #000;
  border-radius: 4px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--weak_maincolor);
  z-index: 80;
}

.mobile-menu.open {
  display: block;
}

@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  height: 100%;
  margin-top: 64px;
  padding: 32px;
  gap: 24px;
  color: #000;
  font-weight: 600;
  font-size: 1.125rem;
  list-style: none;
}

.mobile-menu li {
  opacity: 0;
  transform: translateX(40px);
  animation: slideInRight 0.5s ease-out forwards;
}

.mobile-menu li:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu li:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu li:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu li:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu li:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu li:nth-child(6) { animation-delay: 0.6s; }

.mobile-menu button {
  width: 100%;
  text-align: left;
}

.mobile-menu-item {
  display: block;
  width: 80dvw;
  border-bottom: 1.5px solid var(--accentcolor);
  transition: border-color 0.2s ease-in-out;
}

.mobile-menu-item:hover {
  border-bottom-color: var(--weak_accentcolor);
}

/* ==========================================================================
   営業日カレンダー（モーダル）
   ========================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  justify-content: center;
  align-items: center;
  background: rgb(0 0 0 / 0.5);
  z-index: 100;
}

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

.modal {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  width: 91.666667%;
  max-width: 56rem;
  position: relative;
  max-height: 91.6667vh;
  display: flex;
  flex-direction: column;
}

.modal-head {
  padding: 24px 24px 8px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #6b7280;
}

.modal-close:hover {
  color: #000;
}

.modal-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.modal-hours {
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: #374151;
  text-align: right;
}

.modal-body {
  overflow-y: auto;
  padding: 0 24px 24px;
  margin-top: 8px;
  flex-grow: 1;
}

.cal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  text-align: left;
}

@media (min-width: 768px) {
  .cal-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
  }
}

.cal-weekday {
  display: none;
  background: #d1d5db;
  padding: 8px;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 1rem;
}

.cal-empty {
  display: none;
  padding: 8px;
}

@media (min-width: 768px) {
  .cal-weekday,
  .cal-empty { display: block; }
}

.cal-day {
  padding: 8px;
  border-radius: 0.25rem;
  box-shadow: var(--shadow);
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
}

.cal-day.is-closed { background: #fde047; }
.cal-day.is-open   { background: #86efac; }

.cal-day .cal-day-num { font-weight: 700; }
.cal-day .cal-day-week { font-size: 0.75rem; color: #374151; }
.cal-day .cal-day-hours { font-size: 0.75rem; margin-top: 4px; }

/* ==========================================================================
   オープニングアニメーション（トップのみ）
   ========================================================================== */

.opening {
  position: fixed;
  inset: 0;
  z-index: 110;
  height: 100vh;
  overflow: hidden;
}

.opening.is-hidden {
  display: none;
}

.opening-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.opening-panel {
  flex-grow: 1;
  background: var(--weak_maincolor);
  transition: opacity 1.5s;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.opening.is-fading .opening-panel {
  opacity: 0;
}

.opening-text {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 800;
  color: var(--accentcolor);
  text-align: center;
}

.opening-text span {
  display: inline-block;
}

.opening-text .bounce {
  animation: smoothBounce 1s ease forwards;
  animation-delay: 0.7s;
}

/* ==========================================================================
   トップページ
   ========================================================================== */

/* スクロールで色が変わる背景レイヤー */
.bg-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--maincolor);
  transition: background-color 0.7s ease-in-out;
}

/* ヒーローセクション */
.hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100dvh;
  width: 100dvw;
  margin-top: -64px;
}

.hero-inner {
  position: relative;
  z-index: 20;
  height: 100%;
  width: 96%;
  margin: 64px auto 40px;
}

.hero-copy {
  position: absolute;
  top: 25%;
  left: 32px;
  z-index: 10;
  color: #fff;
  text-shadow: 0 0 7px rgb(0 0 0 / 100%);
}

.hero-copy-main {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
}

.hero-copy-sub {
  font-size: 1.25rem;
  line-height: 1.625;
}

.hero-copy-sub.pc { display: none; }

@media (min-width: 640px) {
  .hero-copy-sub.sp { display: none; }
  .hero-copy-sub.pc { display: inline; }
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  opacity: 0;
  background: #fff;
  animation: fadeSwitch 15s infinite ease-out;
}

.hero-img.delay-1 { animation-delay: 0s; }
.hero-img.delay-2 { animation-delay: 5s; }
.hero-img.delay-3 { animation-delay: 10s; }

.hero-scroll {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: -48px;
  z-index: 10;
}

/* 装飾付き見出し */
.decorated-heading {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  z-index: 30;
}

.decorated-heading .half-circle {
  position: absolute;
  width: 64px;
  height: 32px;
  background: var(--accentcolor);
  border-radius: 0 0 9999px 9999px;
  z-index: -1;
}

.decorated-heading h2 {
  font-weight: 700;
  text-align: center;
}

.decorated-heading .heading-underline {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #000;
}

/* トップページ用（About Us / Service） */
.dh-top {
  padding-top: 32px;
  padding-bottom: 4px;
  margin-left: 8px;
}

@media (min-width: 768px) {
  .dh-top { margin-left: 32px; }
}

.dh-top .half-circle { top: 12px; }

.dh-top h2 {
  font-size: 3rem;
  line-height: 1;
}

/* 下層ページ用 */
.dh-page {
  padding-top: 32px;
  padding-bottom: 12px;
}

.dh-page .half-circle { top: 8px; }

.dh-page h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

/* Aboutセクション */
.about {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  align-items: flex-start;
  max-width: 1280px;
  padding: 32px;
  gap: 40px;
  z-index: 10;
}

@media (min-width: 768px) {
  .about {
    flex-direction: row;
    margin: 0 auto;
    padding: 64px 32px 32px;
    gap: 56px;
  }
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .about-text {
    width: 60%;
    font-size: 1.25rem;
  }
}

.about-img {
  position: relative;
  height: 45dvh;
  width: 100%;
  z-index: 50;
}

@media (min-width: 768px) {
  .about-img {
    height: 60dvh;
    width: 40%;
  }
}

@media (min-width: 1280px) {
  .about-img { height: 50dvh; }
}

.about-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}

/* サービスセクション */
.services {
  position: relative;
  z-index: 10;
}

.services-inner {
  padding: 32px 0;
}

@media (min-width: 768px) {
  .services-inner { padding: 64px 0 0; }
}

.services-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  overflow: hidden;
}

/* スクロールで出現するアニメーション */
.reveal {
  transition: all 1s;
  opacity: 0;
  transform: translateX(50%);
}

.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

/* サービスカード */
.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
  background: #fff;
  padding: 32px;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .service-card {
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 64px;
  }
}

.service-card-img {
  width: 100%;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

@media (min-width: 768px) {
  .service-card-img {
    width: 50%;
    margin-bottom: 0;
  }
}

.service-card-img img {
  object-fit: cover;
  border-radius: 0.5rem;
  width: 100%;
  height: auto;
}

.service-card-body {
  width: 100%;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .service-card-body {
    width: 50%;
    padding-left: 48px;
  }
}

.service-card-body h3 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.service-card-body p {
  color: #374151;
  margin-bottom: 24px;
  font-size: 1.125rem;
  line-height: 1.75rem;
}

@media (min-width: 768px) {
  .service-card-body p {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

.view-more-wrap {
  margin-top: auto;
  align-self: flex-end;
}

.view-more {
  display: inline-block;
  padding: 8px 16px;
  color: var(--accentcolor);
  border: 1px solid var(--accentcolor);
  border-radius: 9999px;
  font-weight: 600;
  transition: 0.3s;
  white-space: nowrap;
}

.view-more:hover {
  background: var(--accentcolor);
  color: #fff;
}

/* view moreホバー時に飛び出す猫 */
.service-card-cat {
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 8.3333%;
  transition: transform 0.5s;
  transform: translateY(100%);
}

.view-more-wrap:hover ~ .service-card-cat {
  transform: translateY(0);
}

/* 追従バナー */
.sticky-banner {
  display: flex;
  align-items: center;
  position: fixed;
  right: 0;
  bottom: 50px;
  height: 208px;
  width: 384px;
  max-width: 100vw;
  padding: 16px;
  z-index: 85;
  transition: all 0.5s;
  transform: translateX(12px);
}

.sticky-banner.is-hidden {
  display: none;
}

.sticky-banner.is-collapsed {
  transform: translateX(85%);
}

.sticky-banner-toggle {
  width: 32px;
  height: 90%;
  background: #0284c7;
  border-radius: 1rem 0 0 1rem;
  opacity: 0.95;
  box-shadow: var(--shadow-lg);
  transition: background 0.3s;
}

.sticky-banner-toggle:hover {
  background: #38bdf8;
}

.sticky-banner-toggle img {
  width: 28px;
  height: 28px;
  margin-left: 4px;
  margin-top: -8px;
  filter: invert(1);
}

.sticky-banner .chev-left { display: none; }
.sticky-banner.is-collapsed .chev-left { display: inline; }
.sticky-banner.is-collapsed .chev-right { display: none; }

.sticky-banner-toggle .vtext {
  writing-mode: vertical-rl;
  margin-left: 4px;
  color: #fff;
}

.sticky-banner-panel {
  flex: 1 1 0%;
  height: 100%;
  border: 1px solid var(--textcolor);
  border-radius: 0.75rem;
  background: #fff;
  opacity: 0.95;
  color: var(--textcolor);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
}

.banner-stars {
  display: flex;
  gap: 4px;
  font-weight: 800;
  padding: 12px 8px 0;
}

.banner-stars span {
  background: #fde047;
}

.banner-note {
  font-weight: 800;
  padding: 8px;
  text-align: center;
}

.banner-tel {
  display: flex;
  gap: 12px;
  background: #f97316;
  padding: 4px 20px;
  align-items: center;
}

.banner-tel img {
  width: auto;
  height: auto;
  max-height: 28px;
  aspect-ratio: 1 / 1;
}

.banner-tel a {
  font-size: 1.875rem;
  line-height: 2.25rem;
  font-weight: 800;
  color: #000;
}

/* ==========================================================================
   フッター
   ========================================================================== */

.footer-wrap {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  z-index: 20;
}

/* 歯車の装飾 */
.gear-anchor {
  position: absolute;
  top: -140px;
  left: 0;
}

.gear {
  display: flex;
  height: 400px;
}

.gear-body {
  position: relative;
  width: 200px;
  height: 200px;
  margin: auto;
  background: var(--textcolor);
  border-radius: 50%;
  animation: spin 30s linear infinite;
}

.gear-hole {
  position: absolute;
  top: 60px;
  left: 60px;
  z-index: 11;
  width: 80px;
  height: 80px;
  background: var(--weak_maincolor);
  border-radius: 50%;
}

.gear-tooth {
  position: absolute;
  top: -25px;
  left: 75px;
  z-index: 10;
  width: 45px;
  height: 250px;
  background: var(--textcolor);
}

.gear-tooth.r45  { transform: rotate(45deg); }
.gear-tooth.r90  { transform: rotate(90deg); }
.gear-tooth.r135 { transform: rotate(135deg); }

footer {
  display: flex;
  position: relative;
  padding: 0 32px;
  background: var(--textcolor);
  z-index: 70;
  color: var(--weak_maincolor);
}

.footer-inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 32px 0 16px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-info {
  width: 100%;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.1em;
  padding-bottom: 24px;
}

@media (min-width: 768px) {
  .footer-info { width: 50%; }
}

.footer-info > * + * {
  margin-top: 8px;
}

.footer-info h2 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

@media (min-width: 768px) {
  .footer-right {
    align-items: flex-end;
    width: 50%;
  }
}

.footer-right > * + * {
  margin-top: 24px;
}

.footer-sitemap {
  text-align: left;
}

.footer-sitemap h2 {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-sitemap ul,
.footer-policies ul {
  list-style: none;
}

.footer-sitemap li + li,
.footer-policies li + li {
  margin-top: 8px;
}

.footer-policies {
  font-size: 0.75rem;
  line-height: 1rem;
  text-align: left;
}

@media (min-width: 768px) {
  .footer-sitemap,
  .footer-policies { text-align: right; }
}

.footer-bottom {
  margin-top: 32px;
  text-align: center;
  border-top: 1px solid currentColor;
  padding-top: 16px;
}

.footer-bottom p {
  font-size: 0.875rem;
}

/* ごろ寝している猫 */
.footer-cat {
  position: absolute;
  z-index: 10;
}

.footer-cat img {
  width: auto;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  animation: catRotateWobble 1s steps(1, end) infinite;
}

.footer-cat.pc {
  display: none;
  bottom: 32px;
  left: 64px;
  transform: translateX(-50%);
}

.footer-cat.sp {
  display: inline;
  bottom: 40px;
  right: 8px;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .footer-cat.pc { display: inline; }
  .footer-cat.sp { display: none; }
}

/* ==========================================================================
   下層ページ共通
   ========================================================================== */

.page-head {
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 10;
}

/* ページごとの余白パターン */
.page-head.indent {
  margin-left: 32px;
}

.page-head.indent-sm {
  padding: 0 16px;
}

@media (min-width: 640px) {
  .page-head.indent-sm {
    padding: 0;
    margin-left: 32px;
  }
}

.divider {
  position: relative;
  border: 1px solid var(--textcolor);
  margin: 0 32px;
  z-index: 10;
}

.divider.divider-sm {
  margin: 0 16px;
}

@media (min-width: 640px) {
  .divider.divider-sm { margin: 0 32px; }
}

.z-section {
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   アクセスページ
   ========================================================================== */

.access-page {
  margin-top: 20px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.access-page .page-head {
  width: fit-content;
  margin: 0 32px 20px;
}

.access-addr {
  margin: 24px 32px 8px;
}

.access-map {
  margin: 0 32px;
}

.map-frame {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .map-frame { width: 80%; }
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

/* ==========================================================================
   会社概要ページ
   ========================================================================== */

.company-body {
  margin: 32px 32px 0;
}

.company-dl > div {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-bottom: 8px;
}

.company-dl > div + div {
  margin-top: 16px;
}

.company-dl dt {
  font-weight: 700;
  width: 35dvw;
  border-bottom: 2px dashed var(--accentcolor);
  margin-right: 16px;
}

.company-dl dd {
  width: 65dvw;
  color: var(--textcolor);
  border-bottom: 2px dashed #9ca3af;
}

@media (min-width: 768px) {
  .company-dl dt { width: 20dvw; }
  .company-dl dd { width: 50dvw; }
}

.company-flex {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .company-flex { flex-direction: row; }
}

.info-box {
  border-radius: 0.5rem;
  padding: 16px;
  box-shadow: var(--shadow-md);
  width: 100%;
}

@media (min-width: 768px) {
  .company-flex .info-box { width: calc(90% + 1rem); }
}

.info-box h2,
.info-box h4 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.info-box ul,
.info-box ol {
  margin-top: 8px;
  padding-left: 24px;
}

.info-box ul.disc { list-style: disc; }
.info-box ul.none { list-style: none; }

.info-box li + li,
.info-box ul.none li:first-child {
  margin-top: 8px;
}

.info-box.blue { background: #eff6ff; }
.info-box.blue h2, .info-box.blue h4 { color: #1e40af; }
.info-box.blue ul, .info-box.blue ol { color: #1d4ed8; }

.info-box.green { background: #f0fdf4; }
.info-box.green h2 { color: #166534; }
.info-box.green ul { color: #15803d; }

.company-boxes {
  margin-top: 24px;
}

.company-boxes .info-box + .info-box {
  margin-top: 24px;
}

.cert-img {
  margin-top: 24px;
}

.cert-img img {
  width: auto;
  height: auto;
  max-height: 600px;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   お問い合わせページ
   ========================================================================== */

.contact-page {
  margin-bottom: 112px;
}

.contact-page .page-head p {
  margin-top: 4px;
}

.contact-form iframe {
  width: 100%;
  max-width: 640px;
  height: 800px;
  border: 0;
  border-radius: 0.375rem;
}

/* ==========================================================================
   サービス詳細ページ
   ========================================================================== */

.service-page {
  margin-bottom: 64px;
}

.service-lead {
  width: 100%;
  overflow-wrap: break-word;
  white-space: pre-line;
}

.service-detail {
  position: relative;
  z-index: 10;
  margin: 16px;
}

@media (min-width: 640px) {
  .service-detail { margin: 16px 32px; }
}

.sd-section {
  margin-bottom: 16px;
}

.sd-h3 {
  display: flex;
  align-items: center;
  font-weight: 700;
  color: #083344;
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-bottom: 4px;
}

.sd-h3 img {
  display: none;
  width: 28px;
  height: 28px;
}

@media (min-width: 640px) {
  .sd-h3 img { display: inline-block; }
}

.sd-h4 {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
}

/* インデント（モバイル: なし or 16px / sm以上: 16px or 28px） */
.ind-sm-4 { margin-left: 0; }
.ind-sm-7 { margin-left: 0; }
.ind-4-7  { margin-left: 16px; }

@media (min-width: 640px) {
  .ind-sm-4 { margin-left: 16px; }
  .ind-sm-7 { margin-left: 28px; }
  .ind-4-7  { margin-left: 28px; }
}

.sd-img {
  display: flex;
  justify-content: flex-start;
}

.sd-img img {
  width: auto;
  height: auto;
  max-height: 384px;
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
}

.sd-note {
  font-size: 0.875rem;
}

.sd-boxes {
  margin-top: 24px;
}

@media (min-width: 640px) {
  .sd-boxes { margin-left: 32px; }
  .sd-boxes .info-box { width: 75%; }
}

.sd-boxes .info-box ol {
  padding-top: 8px;
  padding-right: 24px;
  margin-left: 28px;
  list-style: decimal;
}

.sd-boxes .info-box ol li {
  font-weight: 600;
}

.sd-boxes .info-box ol li + li,
.sd-boxes .info-box ol p + li {
  margin-top: 8px;
}

/* ==========================================================================
   ポリシーページ
   ========================================================================== */

.policy-page {
  margin-bottom: 64px;
}

.policy-page .page-head {
  margin-left: 16px;
}

@media (min-width: 768px) {
  .policy-page .page-head { margin-left: 32px; }
}

.policy-page .divider {
  margin: 0 0 0 16px;
}

@media (min-width: 768px) {
  .policy-page .divider { margin: 0 32px; }
}

.policy-body {
  position: relative;
  z-index: 10;
  margin: 16px 32px;
}

.policy-body .lead {
  margin-top: 32px;
}

.policy-body h3 {
  font-weight: 700;
  color: #083344;
  margin-top: 16px;
}

/* ==========================================================================
   よくある質問ページ
   ========================================================================== */

.faq-page {
  margin-bottom: 64px;
}

.faq-page .page-head {
  margin-left: 32px;
}

.faq-list {
  position: relative;
  z-index: 10;
  margin: 24px 32px;
  max-width: 860px;
}

.faq-item {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: var(--shadow);
  padding: 16px 20px;
}

.faq-item + .faq-item {
  margin-top: 16px;
}

.faq-q {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-weight: 700;
  color: #083344;
  font-size: 1.0625rem;
}

.faq-q::before {
  content: "Q";
  flex-shrink: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accentcolor);
}

.faq-a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #d1d5db;
}

.faq-a::before {
  content: "A";
  flex-shrink: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #f97316;
}

.faq-contact {
  position: relative;
  z-index: 10;
  margin: 32px;
}

.faq-contact a {
  display: inline-block;
  padding: 8px 24px;
  color: var(--accentcolor);
  border: 1px solid var(--accentcolor);
  border-radius: 9999px;
  font-weight: 600;
  transition: 0.3s;
  background: #fff;
}

.faq-contact a:hover {
  background: var(--accentcolor);
  color: #fff;
}

/* ==========================================================================
   404ページ
   ========================================================================== */

.notfound {
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 10;
  padding: 64px 16px;
  text-align: center;
}

.notfound h2 {
  font-size: 3rem;
  line-height: 1;
}

.notfound a {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 24px;
  color: var(--accentcolor);
  border: 1px solid var(--accentcolor);
  border-radius: 9999px;
  font-weight: 600;
  transition: 0.3s;
}

.notfound a:hover {
  background: var(--accentcolor);
  color: #fff;
}
