@charset "UTF-8";
html {
  scroll-behavior: smooth;
}

.body_wrap {
  font-family:
    -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background-color: #f0f4f8;
  background-image: radial-gradient(#d0d8e4 1px, transparent 1px);
  background-size: 20px 20px;
  color: #1a1a1a;
  min-height: 100vh;
}

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

img,
.resize {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.play-btn {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.play-btn svg {
  width: 11px;
  height: 11px;
  margin-left: 2px;
}

/* ===================== HEADER ===================== */
.page-header {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.logo-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.welcome-text {
  font-size: 14px;
  color: #000;
  text-align: center;
  line-height: 1.9;
}

.explan-txt {
  font-size: 12px;
  color: #666;
  text-align: center;
  line-height: 1.8;
  margin-top: 4px;
}

.page-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 12px;
  font-size: 14px;
  opacity: 0.85;
}

.page-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #378add;
  border: 1px solid #378add;
  box-shadow: 2px 3px 2px rgba(0, 0, 0, 0.2);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    opacity 0.15s ease;
}

@media (hover: hover) {
  .page-links a:hover {
    background: rgba(55, 138, 221, 0.08);
    color: #111;
    transform: translateY(-1px);
  }
}

.page-links img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ===================== MESSAGE SECTION ===================== */
.message-section {
  padding: 20px 3% 0;
}

@media (min-width: 480px) {
  .message-section {
    padding: 20px 15% 0;
  }
}

@media (min-width: 768px) {
  .message-section {
    padding: 20px 25% 0;
  }
}

/* YouTubeセクションと同じカードスタイルで統一 */
.message-section-inner {
  background: #fff;
  border-radius: 16px;
  padding: 20px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
  .message-section {
    padding: 20px 25% 0;
  }
}

.message-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #28a7e1;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
}

.message-section-title-icon {
  font-size: 16px;
}

/* 動画ラッパー：再生ボタンを重ねるためにrelative */
.message-video-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.message-video-player {
  width: 100%;
  height: auto;
  display: block;
}

/* カスタム再生ボタン オーバーレイ */
.message-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease;
  cursor: pointer;
}

/* 再生中は非表示 */
.message-play-overlay.hidden {
  opacity: 0;
  /* pointer-events: none; */
}

.message-play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

@media (min-width: 768px) {
  .message-play-btn {
    width: 64px;
    height: 64px;
  }
}

.message-play-btn svg {
  width: 26px;
  height: 26px;
  margin-left: 4px; /* 視覚的中央補正 */
  fill: #1a1a1a;
}

@media (hover: hover) {
  .message-play-btn:hover {
    transform: scale(1.08);
    background: #fff;
  }
}

.message-play-btn:active {
  transform: scale(0.95);
}

/* ===================== CONTENT ===================== */
.content {
  padding: 16px 3% 0;
}

/* ===================== SNS SECTION ===================== */
.sns-section {
  margin-top: 46px;
  margin-bottom: 28px;
}

.youtube {
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.instagram,
.tiktok {
  margin-top: 72px;
}

.sns-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px 8px;
  border-bottom: 2px solid #e8e8e8;
}

.sns-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) {
  .sns-icon:hover {
    opacity: 0.5;
  }
}

.sns-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.video-count {
  font-size: 12px;
  color: #999;
  margin-left: auto;
}

.yt-category-heading {
  grid-column: 1 / -1;
  font-size: 18px;
  font-weight: 700;
  color: #222;
  margin-top: 32px;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.yt-category-heading:first-child {
  margin-top: 0;
}

/* .ig-category-heading {
  grid-column: 1 / -1;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 20px;
  margin-bottom: 6px;
  padding-left: 2px;
  letter-spacing: 0.04em;
} */

/* ===================== VIDEO GRID ===================== */
.video-grid {
  display: grid;
  gap: 8px;
}
/*
 * YouTube（16:9 横長）
 * SP: 2列 / タブレット: 3列 / PC: 4列
 */
#yt-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 680px) {
  #yt-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  #yt-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/*
 * Instagram・TikTok（9:16 縦長）
 * 横長より1列多くすることでカードが大きくなりすぎるのを防ぐ
 * SP: 2列 / タブレット: 3列 / PC: 4列
 */
#tt-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) {
  #tt-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 680px) {
  #tt-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================== VIDEO CARD ===================== */
.video-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.035);
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

@media (hover: hover) {
  .video-card:hover {
    border-color: #bbb;
    transform: translateY(-1px);
  }
}

.video-card:active {
  transform: scale(0.98);
}

/* 表示状態 */
.video-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.thumb {
  background: #d0d8e0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.thumb-169 {
  aspect-ratio: 16 / 9;
}

.thumb-916 {
  aspect-ratio: 9 / 16;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* サムネイル未設定時のフォールバック */
.thumb-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c8d4de;
}

.thumb-tag {
  position: absolute;
  bottom: 5px;
  left: 5px;
  right: 5px;
  font-size: 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 1;
  display: none;
}

.card-info {
  padding: 7px 9px 10px;
}

.card-title {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

.card-meta {
  font-size: 10px;
  color: #999;
}

/* ============================================================
  Instagram カテゴリ
============================================================ */

.ig-category-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 480px) {
  .ig-category-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 680px) {
  .ig-category-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ig-category-heading {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #222;
  margin-top: 28px;
  margin-bottom: 14px;
  letter-spacing: 0.08em;
}

.ig-category-wrapper .more-text {
  grid-column: 1 / -1;
  margin-bottom: 16px;
}

/* ============================================================
  Instagram 折りたたみ
============================================================ */
.ig-hidden {
  display: none;
}

.ig-hidden.ig-show {
  display: block;
}

#btn-Vlog {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tt-hidden {
  display: none;
  transform: translateY(8px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    max-height 0.25s ease;
}

.tt-hidden.tt-show {
  display: block;
}

.tt-show {
  opacity: 1;
  transform: translateY(0);
  max-height: 1000px;
  pointer-events: auto;
}

.tt-close-btn {
  margin-top: 10px;
  background: transparent;
  color: #888;
  font-size: 14px;
}

.more-text {
  display: block;
  width: fit-content;
  margin: 20px auto 32px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(55, 138, 221, 0.08);
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: #378add;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition:
    opacity 0.15s ease,
    background 0.15s ease;
}

@media (hover: hover) {
  .more-text:hover {
    color: #111;
  }
}

.more-text:active {
  opacity: 0.6;
}

/* ===================== 営業所別 ===================== */

.office-area {
  margin-top: 24px;
  border-top: 2px solid #e5e5e5;
}

.office-wrap {
  margin-top: 20px;
  border-radius: 12px;
}

.office-label {
  font-size: 24px;
  font-weight: 700;
  color: #111;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 20px;
}

/* 一覧 */

.office-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 各営業所 */

.office-block {
  width: 100%;
  margin: 0 auto;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgb(155, 155, 155);
  border-radius: 14px;
  overflow: hidden;
  transform: scale(0.9);
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

/* 開いた時 */

.office-block.active {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transform: scale(1);
}

/* ボタン */

.office-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  transition: background 0.15s ease;
}

@media (hover: hover) {
  .office-toggle:hover {
    background: rgba(0, 0, 0, 0.025);
  }
}

.office-toggle:active {
  background: rgba(0, 0, 0, 0.04);
}

/* 矢印 */

.office-arrow {
  font-size: 12px;
  color: #888;
  transition: transform 0.2s ease;
}

/* 開いた時回転 */

.office-block.active .office-arrow {
  transform: rotate(180deg);
}

/* 動画エリア */

.office-grid {
  display: none;
  padding: 12px;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* タブレット */

@media (min-width: 480px) {
  .office-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* PC */

@media (min-width: 680px) {
  .office-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===================== FOOTER ===================== */
.footer {
  background: #fff;
  border-top: 2px solid #e8e8e8;
  padding: 24px 16px 32px;
  margin: 24px auto 0;
}

.other-sns-title {
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: #222;
}

.sns-link-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.sns-link-card {
  background: #fff;
  border: 1px solid #a4a4a4;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.15s;
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
}
@media (min-width: 480px) {
  .sns-link-card {
    width: 80%;
  }
}
.lk-x-card {
  background: #f5f5f5;
}
.lk-ameba-card {
  background: #f0fff0;
}
@media (hover: hover) {
  .sns-link-card:hover {
    border-color: #bbb;
  }
}
.sns-link-icon {
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lk-x {
  background: #000;
}
.lk-ameba {
  background: #00b900;
}

.sns-link-name {
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.sns-link-desc {
  font-size: 11px;
  color: #444444;
  line-height: 1.5;
}

.sns-link-block {
  max-width: 750px;
  width: 100%;
  margin: 0 auto;
}

.feed-label {
  max-width: 750px;
  width: 100%;
  margin: 12px auto 6px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
/* X */

.sns-feed-scroll {
  height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 10px;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}

.sns-feed-scroll a {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-decoration: none;
}

.sns-feed-scroll img {
  width: 320px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  display: block;
}

/* ブログ */

.blog-feed-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 4px;
}

.blog-feed-card {
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e8e8e8;
  background: #fff;
  text-decoration: none;
}

.blog-feed-thumb {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.blog-feed-info {
  flex: 1;
}

.blog-feed-card-title {
  font-size: 13px;
  line-height: 1.5;
  color: #222;
}

.blog-feed-date {
  margin-top: 6px;
  font-size: 11px;
  color: #888;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.footer-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.footer-logo-mark a {
  display: block;
  width: 60%;
}
.footer-logo-mark img {
  margin: 0 auto;
  /* border: 1px solid #ccc; */
}

.footer-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-btn {
  padding: 8px 18px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #1a1a1a;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

@media (hover: hover) {
  .footer-btn:hover {
    background: #f0f0f0;
  }
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 16px;
}

.footer-link {
  font-size: 12px;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
}

/* モーダル */

.video-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  overflow: hidden;
  height: 100dvh;
}

.video-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 4px;
}

.video-modal-bg {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(2px);
}

.video-modal-content {
  position: relative;
  width: min(96%, 420px);
  /* height: 100%; */
  margin: 3% auto;
  background: #fff;
  border-radius: 16px;
  overflow: visible;
  z-index: 1;
}

.yt-modal .video-modal-content {
  width: min(96%, 960px);
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

.ig-modal .video-modal-content {
  width: min(96%, 420px);
  height: 96dvh;
  aspect-ratio: 9 / 16;
  margin: 2dvh auto;
  background: #000;
  border-radius: 16px;
  overflow-y: auto;
  overflow-x: hidden;
}

.tt-modal .video-modal-content {
  width: min(92%, 420px);
  height: 98dvh;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  /* overflow-y: auto; */
}

.video-modal-close {
  position: fixed;
  right: 8%;
  top: 18%;
  transform: translateX(10%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(6px);
}

.video-modal-close.youtube-close {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.video-modal-content iframe {
  width: 100%;
  border: none;
  display: block;
}

.tt-frame {
  width: 100%;
  height: 100dvh;
  border: none;
  display: block;
}

.video-modal-content iframe.yt-frame {
  aspect-ratio: 16 / 9;
  border: none;
  display: block;
}

.page-top-btn {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(55, 138, 221, 0.45);
  background: rgba(255, 255, 255, 0.92);
  color: #378add;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.page-top-btn.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (hover: hover) {
  .page-top-btn:hover {
    background: #378add;
    color: #fff;
  }
}

.page-top-btn:active {
  transform: scale(0.94);
}

/* ===================== FADE IN ===================== */
/* 初期状態：非表示 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

/* スクロールで表示エリアに入ったら発火 */
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
