@charset "UTF-8";

/* ===========================
   Branch Info Styles
   =========================== */

/* ベース変数 */
:root {
  --card-border: #e6e6e6;
  --muted: #666;
  --btn-radius: 8px;
  --tag-border: #dedede;
}


/* ===========================
   支部ページ 大セクション
   =========================== */

.branch-page-section {
  position: relative;
  z-index: 0;
  margin-bottom: 0;
  padding: 48px 0;
}

@media screen and (min-width: 768px){
  .branch-page-section{
    padding: 72px 0;
  } 
}

/* 背景だけ画面幅いっぱいに広げる */
.branch-page-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
}

/* セクションごとの背景色 */
.branch-page-section--basic::before {
  background: #fff;
}

.branch-page-section--contacts::before {
  background: var(--color-pale);
}

.branch-page-section--kiki-kentei::before {
  background: #fff;
}

.branch-page-section > h2 {
  margin-bottom: 24px;
}

.branch-section-title {
  color: var(--color-primary);
}

/* アンカーリンク位置調整 */
.branch-contact-list,
.branch-kiki-kentei-list {
  scroll-margin-top: 80px;
}

/* ===========================
   基本情報 2カラム
   =========================== */

.branch-wrapper {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
  align-items: stretch;
  margin-bottom: 0;
}

.branch-col {
  flex: 1 1 320px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ===========================
   小見出し
   =========================== */

.l-scope.l-page .branch-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.branch-heading::before {
  display: inline-block;
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* 見出しアイコン */
.branch-section--address .branch-heading::before {
  background-image: url('/wp-content/uploads/2026/06/BuildingOffice.svg');
  width: 23px;
  height: 19px;
}

.branch-section--tel .branch-heading::before {
  background-image: url('/wp-content/uploads/2026/03/Vector-17.svg');
  width: 22px;
  height: 22px;
}

.branch-section--fax .branch-heading::before {
  background-image: url('/wp-content/uploads/2026/03/printer.svg');
  width: 24px;
  height: 24px;
}

.branch-section--hours .branch-heading::before {
  background-image: url('/wp-content/uploads/2026/07/time.svg');
  width: 21px;
  height: 21px;
}

.branch-section--access .branch-heading::before {
  background-image: url('/wp-content/uploads/2026/06/Map.svg');
  width: 18px;
  height: 22px;
}

.branch-section--guide .branch-heading::before {
  background-image: url('/wp-content/uploads/2026/06/Files.svg');
  width: 18px;
  height: 21px;
}

.dept-card .branch-heading::before,
.branch-card .branch-heading::before{
  background-image: url('/wp-content/uploads/2026/08/Vector.svg');
  width: 21px;
  height: 20px;
}
/* ===========================
   テキスト・リスト
   =========================== */

.branch-text {
  color: var(--color-text);
  font-size: var(--font-size-s);
  line-height: 1.6;
}

.branch-list {
  padding-left: 1.05em;
  color: var(--color-text);
  font-size: var(--font-size-s);
}

/* 各種ご案内 */
.branch-page-nav {
  margin-top: 0;
}

.l-scope.l-page .branch-page-nav .c-link-list {
  margin: 0;
}

/* ===========================
   アクセス・地図
   =========================== */

  /* アクセス内の項目 */
  .branch-access-item {
    margin-bottom: 1rem;
  }

  .l-scope.l-page .branch-access-label {
    margin: 0 0 0.25rem;
    color: var(--color-primary);
    font-size: var(--font-size-s);
    font-weight: 700;
    line-height: 1.5;
  }

  .branch-access-text,
  .branch-parking-text {
    margin: 0;
  }

.branch-map-block {
  margin-bottom: 0.5rem;
}

/* map image（16:9） */
.branch-map-image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--color-primary-light);
  margin-bottom: 0.25rem;
}

.branch-map-image-wrap img,
.branch-map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* map source */
.branch-map-source {
  margin: 0;
  font-size: var(--font-size-xs);
  line-height: 1.5;
  color: var(--color-text-sub, #666);
}

.branch-map-source a {
  color: inherit;
  text-decoration: underline;
}

/* 地図画像リンク */
.branch-map-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.branch-map-image-link:hover .branch-map-image {
  opacity: 0.85;
}

/* 出典リンク */
.branch-map-source-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.branch-map-source-link::after {
  display: inline-block;
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 0.25em;
  vertical-align: -0.15em;
  background-image: url('/wp-content/uploads/2025/11/tdesign-jump.svg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* Google Map テキストリンク */
.branch-map-text-link {
  margin: 0.5rem 0 0;
  text-align: center;
  font-size: var(--font-size-s);
  line-height: 1.5;
}

.branch-map-text-link a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.branch-map-text-link a::after {
  display: inline-block;
  content: "";
  background-image: url('/wp-content/uploads/2026/03/Vector-9.svg');
  width: 19px;
  height: 19px;
  margin-left: 0.25em;
  vertical-align: -0.2em;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.branch-parking-info {
  margin: 1rem 0;
}

.branch-parking-title {
  margin: 0 0 0.35rem;
  color: var(--color-primary);
  font-size: var(--font-size-s);
  font-weight: 700;
}

.branch-parking-text {
  margin: 0;
}

/* ===========================
   問い合わせ先カード
   =========================== */

/* 事務局・技術センター：2列 */
.branch-offices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
  align-items: stretch;
}

/* 部署：3列 */
.dept-area {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* カード共通 */
.branch-card,
.dept-card {
  min-width: 0;
  border-radius: 8px;
  padding: 20px;
  box-sizing: border-box;
  background: #fff;
  box-shadow: var(--box-shadow);

  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* カード上部 */
.branch-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* カード内の情報 */
.card-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 12px;
}

/* 担当・電話・FAX */
.l-scope.l-page .branch-card .branch-meta,
.l-scope.l-page .dept-card .dept-meta {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: var(--font-size-s);
  line-height: 1.6;
}

.l-scope.l-page .branch-card .branch-meta:last-child,
.l-scope.l-page .dept-card .dept-meta:last-child {
  margin-bottom: 0;
}

/* 項目名だけ太字 */
.branch-meta strong,
.dept-meta strong {
  font-weight: 700;
}


.branch-mail-note {
  display: inline-block;
  margin-left: 0.25em;
  font-size: 0.8em;
  color: var(--color-gray, #777);
  font-weight: 400;
}

/* カード見出し */
.l-scope.l-page .branch-card__head h3,
.l-scope.l-page .dept-card h3 {
  margin: 0 0 12px;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}

/* 事務局・技術センターの見出しはhead内なので下余白を調整 */
.l-scope.l-page .branch-card__head h3 {
  margin-bottom: 0;
}

/* ===========================
   レスポンシブ
   =========================== */

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .branch-offices,
  .dept-area {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .branch-wrapper {
    gap: 32px;
  }

  .branch-offices,
  .dept-area {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .branch-card,
  .dept-card {
    padding: 16px;
  }

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