/* ==============================
   事務所情報ページ — page-office.css
   ※ FV・パンくず・セクション見出しは page-common.css に集約
   ※ ヘッダー・フッター・CTAバンドは style.css に集約
   ============================== */

/* ==============================
   事務所概要
   ============================== */
.office-overview {
  background: var(--color-bg);
  padding: 80px 20px;
}

.office-overview__inner {
  max-width: 900px;
  margin: 0 auto;
}

/* 事務所名（メイン表示） */
.office-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.12em;
  margin-top: 36px;
  margin-bottom: 0;
}

/* ==============================
   事務所写真ギャラリー
   ============================== */
.office-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.office-photos__item {
  margin: 0;
}

.office-photos__item--wide {
  grid-column: 1 / -1;
}

.office-photos__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9ecef;
  aspect-ratio: 3 / 2;
}

.office-photos__item--wide .office-photos__img-wrap {
  aspect-ratio: 16 / 9;
}

.office-photos__img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.office-photos__caption {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #888;
  text-align: center;
}

/* ==============================
   ハイライトカード（重要3情報）
   ============================== */
.office-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.office-highlight {
  position: relative;
  background: var(--color-secondary);
  border-radius: var(--radius);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.office-highlight__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.office-highlight__label {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.office-highlight__value {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.7;
}

.office-highlight__tel {
  font-family: var(--font-english);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.office-highlight__tel:hover {
  color: var(--color-primary);
}

.office-highlight__sub {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #777;
  line-height: 1.6;
}

/* ==============================
   詳細情報（横並びコンパクト）
   ============================== */
.office-details {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}

.office-details__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 28px;
}

.office-details__item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.office-details__item dt {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: #999;
  white-space: nowrap;
}

.office-details__item dt::after {
  content: '：';
}

.office-details__item dd {
  font-family: var(--font-body);
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ==============================
   アクセス
   ============================== */
.office-access {
  background: var(--color-secondary);
  padding: 80px 20px;
}

.office-access__inner {
  max-width: 900px;
  margin: 0 auto;
}

.office-access__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* 地図 */
.office-access__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.office-access__map iframe {
  display: block;
  width: 100%;
  height: 400px;
}

/* アクセス案内 */
.office-access__guide {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* 住所（再掲） */
.office-access__address {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
}

/* 駅名 */
.office-access__station-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.5;
}

.office-access__icon {
  flex-shrink: 0;
  color: var(--color-primary);
}

.office-access__walk {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: #555;
  padding-left: 28px;
}

.office-access__walk-num {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

/* 備考（駐車場・バリアフリー） */
.office-access__notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.office-access__note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.office-access__note-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

.office-access__note strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 4px;
}

.office-access__note p {
  font-family: var(--font-body);
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

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

/* --- セクション見出しアンダーライン --- */
.office-overview .section-heading::after,
.office-access .section-heading::after {
  transform: scaleX(0);
  transform-origin: center;
}

.office-overview.fade-in.is-visible .section-heading::after,
.office-access.fade-in.is-visible .section-heading::after {
  animation: underline-grow 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- 事務所名: フェードイン --- */
.office-name.fade-in {
  opacity: 0;
}

.office-name.fade-in.is-visible {
  animation: officeDetailsFade 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- 写真: stagger フェードアップ --- */
.office-photos__item.stagger-child {
  opacity: 0;
}

.office-photos__item.stagger-child.is-visible {
  animation: officePhotoFadeUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- ハイライトカード: stagger フェードアップ --- */
.office-highlight.stagger-child {
  opacity: 0;
}

.office-highlight.stagger-child.is-visible {
  animation: officeHighlightUp 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- 詳細リスト: フェードイン --- */
.office-details.fade-in {
  opacity: 0;
}

.office-details.fade-in.is-visible {
  animation: officeDetailsFade 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- 地図: フェードイン --- */
.office-access__map.fade-in {
  opacity: 0;
}

.office-access__map.fade-in.is-visible {
  animation: officeMapFadeIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- アクセス案内: 左からスライド --- */
.office-access__guide.fade-in {
  opacity: 0;
}

.office-access__guide.fade-in.is-visible {
  animation: officeGuideSlideIn 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

/* --- Keyframes --- */
@keyframes officePhotoFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes officeHighlightUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes officeDetailsFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes officeMapFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes officeGuideSlideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* --- アクセシビリティ: モーション軽減 --- */
@media (prefers-reduced-motion: reduce) {
  .office-name.fade-in,
  .office-photos__item.stagger-child,
  .office-highlight.stagger-child,
  .office-details.fade-in,
  .office-access__map.fade-in,
  .office-access__guide.fade-in {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==============================
   Responsive - Tablet (max-width: 1024px)
   ============================== */
@media (max-width: 1024px) {
  .office-overview {
    padding: 64px 20px;
  }

  .office-name {
    font-size: 20px;
    margin-top: 32px;
  }

  .office-photos {
    gap: 12px;
  }

  .office-highlights {
    gap: 16px;
  }

  .office-highlight {
    padding: 28px 20px;
  }

  .office-highlight__icon {
    width: 40px;
    height: 40px;
  }

  .office-highlight__tel {
    font-size: 20px;
  }

  .office-access {
    padding: 64px 20px;
  }

  .office-access__map iframe {
    height: 350px;
  }

  .office-access__address {
    font-size: 14px;
  }

  .office-access__station-name {
    font-size: 15px;
  }
}

/* ==============================
   Responsive - SP (max-width: 768px)
   ============================== */
@media (max-width: 768px) {
  .office-overview {
    padding: 48px 16px;
  }

  .office-name {
    font-size: 18px;
    margin-top: 28px;
    letter-spacing: 0.08em;
  }

  .office-photos {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .office-photos__item--wide .office-photos__img-wrap {
    aspect-ratio: 3 / 2;
  }

  .office-photos__caption {
    font-size: 14px;
  }

  .office-highlights {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 32px;
  }

  .office-highlight {
    padding: 24px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .office-highlight__icon {
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
  }

  .office-highlight__label {
    font-size: 14px;
  }

  .office-highlight__tel {
    font-size: 20px;
  }

  .office-highlight__value {
    font-size: 14px;
  }

  .office-highlight__sub {
    font-size: 14px;
  }

  .office-details {
    margin-top: 28px;
  }

  .office-details__list {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .office-details__item dt {
    font-size: 14px;
  }

  .office-access {
    padding: 48px 16px;
  }

  .office-access__map iframe {
    height: 280px;
  }

  .office-access__content {
    gap: 32px;
  }

  .office-access__address {
    font-size: 14px;
    align-items: flex-start;
    line-height: 1.7;
  }

  .office-access__station-name {
    font-size: 15px;
  }

  .office-access__walk {
    padding-left: 26px;
  }

  .office-access__walk-num {
    font-size: 18px;
  }

  /* SP: hover無効化 */
  .office-highlight__tel:hover {
    color: var(--color-text);
  }

  /* SP: アニメーション移動量縮小 */
  @keyframes officePhotoFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes officeHighlightUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes officeGuideSlideIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
  }
}
