/*
Theme Name: TIDE Global v1.2.13
Theme URI: https://tide-web.net/
Author: TIDE
Description: TIDEの「日本の価値を、世界へ。」を表現する軽量なコーポレートテーマです。PHP 5.6互換。
Version: 1.2.13
Text Domain: tide-global
*/

/* Responsive YouTube embeds */
.wp-content iframe[src*="youtube.com/embed"],
.wp-content iframe[src*="youtube-nocookie.com/embed"] {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 1.5em auto;
  border: 0;
}

/* Lead business page: sales channels */
.business-detail-intro p {
  line-height: 1.95;
}

.business-detail-intro p + p {
  margin-top: 1em;
}

.business-detail-copy > .sales-channels,
.business-detail-copy > .business-detail-video {
  grid-column: 1 / -1;
}

.sales-channels {
  position: relative;
  margin-top: 4px;
  padding: 18px 20px 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #f7faff 0%, #eef4fb 100%);
  border: 1px solid #d7e2ef;
  border-radius: 10px;
}

.sales-channels::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #ff6b22 0 72px, #0a3f7f 72px 100%);
}

.sales-channels-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  align-items: baseline;
  margin-bottom: 10px;
}

.business-detail-copy .sales-channels-eyebrow {
  margin: 0;
  color: #0a4b91;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .18em;
}

.business-detail-copy .sales-channels-title {
  margin: 0;
  color: #061f49;
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.35;
}

.sales-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sales-channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 7px;
  box-shadow: 0 6px 18px rgba(6, 31, 73, .055);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sales-channel-card:hover {
  border-color: #b7cbe1;
  box-shadow: 0 10px 25px rgba(6, 31, 73, .1);
  transform: translateY(-2px);
}

.sales-channel-number {
  position: absolute;
  top: 12px;
  right: 12px;
  color: #a8bed6;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.sales-channel-kind {
  display: block;
  margin-top: 0;
  padding-right: 34px;
  color: #60738c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.business-detail-copy .sales-channel-card h3 {
  margin: 3px 0 8px;
  padding-left: 8px;
  border-left: 3px solid #ff6b22;
  color: #132f57;
  font-size: 15.5px;
  line-height: 1.45;
}

.sales-channel-link {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 6px 9px;
  color: #fff !important;
  background: #062d68;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none !important;
  transition: background-color .2s ease;
}

.sales-channel-link:hover {
  color: #fff;
  background: #0b4b94;
}

.sales-channel-link:focus-visible {
  outline: 3px solid rgba(255, 107, 34, .55);
  outline-offset: 3px;
}

.business-detail-video {
  max-width: 920px;
  width: 100%;
  margin: 2px auto 0;
  padding: 12px;
  background: #061f49;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(6, 31, 73, .16);
}

.business-detail-copy .business-detail-video iframe {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 16 / 9;
  margin: 0;
  background: #000;
  border: 0;
  border-radius: 7px;
}

@media (max-width: 720px) {
  .sales-channels {
    padding: 16px 10px 12px;
  }

  .sales-channel-grid {
    grid-template-columns: 1fr;
  }

  .sales-channel-card {
    min-height: 0;
    padding: 12px;
  }

  .sales-channel-kind {
    margin-top: 0;
  }

  .business-detail-copy .sales-channel-card h3 {
    margin: 3px 0 8px;
  }

  .sales-channel-link {
    margin-top: 0;
    padding: 6px 8px;
  }

  .business-detail-video {
    padding: 7px;
    border-radius: 8px;
  }

  .business-detail-copy .business-detail-video iframe {
    border-radius: 4px;
  }
}
