@charset "utf-8";

/*
  Theme Name: BOD Holdings
  Author: BOD
  Description: BOD Holdings コーポレートサイト用テーマ
  Version: 1.0.0
*/

/* =========================================================
   bodhd theme - utility-first stylesheet (Bootstrap-like)
   ========================================================= */

/* ---- Variables -------------------------------------------------- */
:root {
  --color-yellow: #eae83b;
  --color-yellow-dark: #d9d62b;
  --color-dark: #444138;
  --color-dark-2: #54503f;
  --color-gray: #777;
  --color-line: #e3e3e3;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f7f5;
  --container: 1080px;
  --gutter: 12px;
}

/* ---- Reset ------------------------------------------------------ */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease, color .2s ease, background-color .2s ease;
}

a:hover {
  opacity: .8;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ---- Layout: container ------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-right: auto;
  margin-left: auto;
  padding-right: 20px;
  padding-left: 20px;
}

.container-fluid {
  width: 100%;
  padding-right: 20px;
  padding-left: 20px;
}

/* ---- Layout: grid ----------------------------------------------- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--gutter) * -1);
  margin-left: calc(var(--gutter) * -1);
}

[class^="col"],
[class*=" col"] {
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.col {
  flex: 1 0 0%;
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.col-8 {
  flex: 0 0 66.6667%;
  max-width: 66.6667%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-4 {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

/* ---- Display ---------------------------------------------------- */
.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

.d-inline-block {
  display: inline-block !important;
}

.d-flex {
  display: flex !important;
}

/* ---- Flex helpers ----------------------------------------------- */
.flex-wrap {
  flex-wrap: wrap !important;
}

.flex-column {
  flex-direction: column !important;
}

.flex-1 {
  flex: 1 1 auto !important;
}

.flex-shrink-0 {
  flex-shrink: 0 !important;
}

.align-items-start {
  align-items: flex-start !important;
}

.align-items-center {
  align-items: center !important;
}

.align-items-end {
  align-items: flex-end !important;
}

.justify-content-start {
  justify-content: flex-start !important;
}

.justify-content-center {
  justify-content: center !important;
}

.justify-content-between {
  justify-content: space-between !important;
}

.justify-content-end {
  justify-content: flex-end !important;
}

.gap-1 {
  gap: .25rem !important;
}

.gap-2 {
  gap: .5rem !important;
}

.gap-3 {
  gap: 1rem !important;
}

.gap-4 {
  gap: 1.5rem !important;
}

/* ---- Spacing ---------------------------------------------------- */
.m-0 {
  margin: 0 !important;
}

.mt-0 {
  margin-top: 0 !important;
}

.mt-1 {
  margin-top: .25rem !important;
}

.mt-2 {
  margin-top: .5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mt-4 {
  margin-top: 1.5rem !important;
}

.mt-5 {
  margin-top: 3rem !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-1 {
  margin-bottom: .25rem !important;
}

.mb-2 {
  margin-bottom: .5rem !important;
}

.mb-3 {
  margin-bottom: 1rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

.mb-5 {
  margin-bottom: 3rem !important;
}

.mx-auto {
  margin-right: auto !important;
  margin-left: auto !important;
}

.p-0 {
  padding: 0 !important;
}

.p-3 {
  padding: 1rem !important;
}

.p-4 {
  padding: 1.5rem !important;
}

.py-2 {
  padding-top: .5rem !important;
  padding-bottom: .5rem !important;
}

.py-3 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.px-3 {
  padding-right: 1rem !important;
  padding-left: 1rem !important;
}

.px-4 {
  padding-right: 1.5rem !important;
  padding-left: 1.5rem !important;
}

/* ---- Typography ------------------------------------------------- */
.text-left {
  text-align: left !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

.fw-normal {
  font-weight: 400 !important;
}

.fw-bold {
  font-weight: 700 !important;
}

.fs-sm {
  font-size: .8rem !important;
}

.fs-1 {
  font-size: 2.25rem !important;
}

.fs-2 {
  font-size: 1.75rem !important;
}

.fs-3 {
  font-size: 1.4rem !important;
}

.fs-4 {
  font-size: 1.2rem !important;
}

.fs-5 {
  font-size: 1rem !important;
}

.lh-base {
  line-height: 1.8 !important;
}

.text-muted {
  color: var(--color-gray) !important;
}

.text-white {
  color: #fff !important;
}

.text-dark {
  color: var(--color-dark) !important;
}

/* ---- Colors / backgrounds --------------------------------------- */
.bg-white {
  background-color: #fff !important;
}

.bg-light {
  background-color: var(--color-bg-soft) !important;
}

.bg-yellow {
  background-color: var(--color-yellow) !important;
}

.bg-dark {
  background-color: var(--color-dark) !important;
}

/* ---- Borders ---------------------------------------------------- */
.border {
  border: 1px solid var(--color-line) !important;
}

.border-top {
  border-top: 1px solid var(--color-line) !important;
}

.border-bottom {
  border-bottom: 1px solid var(--color-line) !important;
}

.rounded {
  border-radius: 4px !important;
}

.rounded-circle {
  border-radius: 50% !important;
}

/* ---- Width helpers ---------------------------------------------- */
.w-100 {
  width: 100% !important;
}

/* ---- Buttons ---------------------------------------------------- */
.btn {
  display: inline-block;
  padding: .65em 1.8em;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity .2s, background-color .2s, color .2s;
}

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

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

.btn-outline {
  background-color: #fff;
  color: #333;
  border-color: #cfcfcf;
}

.btn-outline:hover {
  background-color: #f3f3f3;
  opacity: 1;
}

.btn-block {
  display: block;
  width: 100%;
}

/* =========================================================
   Components
   ========================================================= */

/* ---- Section spacing -------------------------------------------- */
.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1.6rem;
  letter-spacing: .04em;
  margin-bottom: 28px;
}

.section-title::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background-color: #333;
}

/* heading with a square marker (■) */
.block-title {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.block-title::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  background-color: var(--color-dark);
}


/* ---- Header ----------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
}

.site-header__logo img {
  height: 44px;
}

.site-header__logo a {
  display: inline-flex;
  align-items: center;
}

.global-nav {
  display: flex;
  align-items: center;
}

.global-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.global-nav__list a {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.global-nav__cta--mobile {
  display: none;
}

.site-header__cta {
  margin-left: 28px;
  padding: .6em 1.6em;
  font-size: .85rem;
  font-weight: 700;
  color: var(--color-dark);
  background-color: var(--color-yellow);
  border-radius: 2px;
}

.site-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.site-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background-color: var(--color-dark);
}

/* ---- Hero ------------------------------------------------------- */
.hero {
  background: #fff;
}

.hero__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Notice ----------------------------------------------------- */
.notice {
  padding: 56px 0;
}

.notice__box {
  border: 1px solid var(--color-line);
  padding: 28px 32px;
  min-height: 120px;
}

.notice__btn-box {
  margin-top: 16px;
  border: 1px solid var(--color-line);
}

.notice__btn-box .btn {
  border: 0;
}

/* ---- Service grid ----------------------------------------------- */
.service-card {
  display: block;
  height: 100%;
  border: 1px solid #e2e2e2;
  background-color: #fff;
}

.service-card:hover {
  opacity: 1;
}

.service-card__thumb {
  display: block;
  overflow: hidden;
}

.service-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #d9d9d9;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.06);
}

.service-card__body {
  display: block;
  padding: 16px 18px 22px;
}

.service-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.service-card__title::after {
  content: "›";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-gray);
}

.service-card__desc {
  margin-top: 10px;
  font-size: .85rem;
  line-height: 1.9;
  color: var(--color-gray);
}

/* ---- News ------------------------------------------------------- */

.news-list__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--color-line);
}

.news-list__date {
  flex-shrink: 0;
  width: 100px;
  color: var(--color-gray);
  font-size: .85rem;
}

.news-list__cat {
  flex-shrink: 0;
  width: 110px;
  padding: 2px 0;
  font-size: .75rem;
  text-align: center;
  border: 1px solid #cfcfcf;
}

.news-list__title {
  flex: 1 1 auto;
  font-size: .9rem;
}

.news-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.news-more a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  letter-spacing: .05em;
}

.news-more a::after {
  content: "";
  width: 56px;
  height: 1px;
  background-color: #333;
}

/* ---- Info tables (会社概要 / お悩みワード) ----------------------- */
.info-table th,
.info-table td {
  padding: 16px 20px;
  font-size: .9rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--color-line);
}

.info-table th {
  width: 210px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  background-color: var(--color-dark);
  border-bottom: 1px solid #5c5849;
}

.info-table td {
  color: #444;
}

/* yellow-headed variant (拠点) */
.info-table--yellow th {
  color: var(--color-dark);
  background-color: var(--color-yellow);
  border-bottom: 1px solid #fff;
}

/* grid variant (営業所一覧) — gray lattice borders */
.info-table--grid {
  border: 1px solid var(--color-line);
}

.info-table--grid th,
.info-table--grid td {
  border: 1px solid var(--color-line);
}

/* ---- Group / related companies table ---------------------------- */
.group-table {
  border: 1px solid var(--color-line);
}

.group-table td {
  padding: 16px 20px;
  font-size: .9rem;
  vertical-align: middle;
  border: 1px solid var(--color-line);
}

.group-table__logo {
  width: 200px;
  text-align: center;
}

.group-table__logo-img {
  display: inline-block;
  width: auto;
  max-width: 180px;
  max-height: 60px;
  object-fit: contain;
}

.group-table__name {
  width: 240px;
  font-weight: 700;
}

.group-table__address {
  color: var(--color-gray);
}

/* ---- Access map ------------------------------------------------- */
.access-map {
  line-height: 0;
}

.access-map iframe {
  width: 100%;
  border: 0;
}

/* ---- Page top + float CTA --------------------------------------- */
.page-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 1rem;
  color: #fff;
  background-color: var(--color-dark);
  border-radius: 50%;
}

.float-cta {
  position: fixed;
  right: 0;
  top: 40%;
  z-index: 30;
  writing-mode: vertical-rl;
  padding: 18px 8px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-dark);
  background-color: var(--color-yellow);
  border-radius: 4px 0 0 4px;
}

/* ---- Footer ----------------------------------------------------- */
.site-footer {
  background-color: var(--color-dark);
  color: #cfcdc6;
}

.site-footer__top {
  padding: 48px 0 32px;
}

.site-footer__brand {
  margin-bottom: 24px;
}

.site-footer__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.site-footer__addr {
  margin-top: 8px;
  font-size: .8rem;
}

.site-footer__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: .82rem;
}

.site-footer__list a {
  color: #cfcdc6;
}

.site-footer__copy {
  padding: 18px 0;
  font-size: .75rem;
  text-align: center;
  color: #9d9a90;
  border-top: 1px solid #5c5849;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 991px) {
  .col-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Service cards: keep 2 columns on phones, collapse to 1 on narrow screens */
@media (max-width: 767px) {
  .service-row .col-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 480px) {
  .service-row .col-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 767px) {

  .col-6,
  .col-4,
  .col-3,
  .col-8,
  .col-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .d-md-none {
    display: none !important;
  }

  .site-header__cta {
    display: none;
  }

  .site-header__toggle {
    display: flex;
  }

  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 24px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: .2s;
  }

  .global-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .global-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .global-nav__list a {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .global-nav__cta--mobile {
    display: block;
    margin-top: 16px;
    padding: .8em;
    text-align: center;
    color: var(--color-dark);
    background-color: var(--color-yellow);
    border-radius: 2px;
  }

  .info-table th,
  .info-table td {
    display: block;
    width: 100%;
  }

  .info-table th {
    text-align: left;
  }

  .group-table__logo {
    width: 110px;
  }

  .group-table__name {
    width: auto;
  }

  .group-table td {
    padding: 12px;
  }

  .news-list__item {
    flex-wrap: wrap;
    gap: 6px 16px;
  }

  .news-list__title {
    flex: 0 0 100%;
  }

  .float-cta {
    display: none;
  }
}
