/* ==========================================
   About Page — Mobile First (max 767px base)
   ========================================== */

.ab-company-row dd ul {
  padding-left: 20px;
}

.tai-about-page {
  overflow: hidden;
}

/* ----- Hero ----- */
.ab-hero {
  position: relative;
  height: var(--page-hero-height-base, 260px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: var(--page-hero-offset-sp);
}

.ab-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ab-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0%) brightness(0.55);
}

.ab-hero-text {
  position: relative;
  z-index: 2;
  padding-bottom: 36px;
}

.ab-hero-en {
  font-family: var(--font-en);
  font-size: 42px;
  font-weight: 400;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.ab-hero-ja {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.12em;
  margin: 0;
}

/* ----- MVV section ----- */
.ab-mvv {
  padding-top: var(--section-space-sp);
  padding-bottom: var(--section-space-sp);
}

.ab-mvv-row {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 40px 0;
  position: relative;
}

.ab-mvv-text {
  flex: none;
  width: 100%;
}

.ab-mvv-img {
  width: 100%;
  overflow: hidden;
  margin-right: -20px;
  margin-left: -20px;
  border-radius: 20px 0px 0 20px;
}

.ab-value-row .ab-mvv-img {
  margin-right: 0;
  margin-left: 0;
  border-radius: 20px;
}

.ab-mvv-img img {
  width: 100%;
  display: block;
  filter: grayscale(0%);
  transition: filter 0.5s ease, transform 0.4s ease;
  height: 100%;
  object-fit: cover;
}

.ab-mvv-img:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* Missionの画像のみ特定のスタイルを適用 */
.ab-mvv-row-first .ab-mvv-img img {
  height: 500px !important;
  object-position: left 0 bottom 230px !important;
}

.ab-mvv-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 400;
  color: var(--primary-red);
  margin-bottom: 12px;
  border-bottom: 1px solid var(--primary-red);
  line-height: 1.3;
}

.ab-mvv-title {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 16px;
}

.ab-mvv-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
}

.ab-sep {
  border: none;
  border-top: 1px solid var(--primary-red);
  margin: 0;
}

/* Value items */
.ab-value-label-row {
  padding: 30px 0 0;
}

.ab-value-row {
  padding: 30px 0;
}

.ab-value-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
  line-height: 1.4;
}

.ab-value-en {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  color: var(--text-primary);
  margin-left: 6px;
}

/* ----- Board Message ----- */
.ab-board {
  background-color: var(--primary-red);
  padding: var(--section-space-sp) 0;
}

.ab-board-member {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 50px;
}

.ab-board-member:last-child {
  margin-bottom: 0;
}

.ab-board-text {
  flex: 1;
  color: #fff;
}

.ab-board-role {
  color: rgba(255, 255, 255, 1);
}

.ab-board-name {
  color: #fff;
  font-size: 17px;
}

.ab-board-body {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.ab-board-photo {
  flex: none;
  width: 55%;
  max-width: 240px;
  overflow: hidden;
  border-radius: 20px;
}

.ab-board-photo-clip {
  overflow: hidden;
  border-radius: 20px;
}

.ab-board-photo img {
  width: 100%;
  display: block;
  filter: grayscale(0%);
  transition: filter 0.5s ease, transform 0.4s ease;
  height: 280px;
  object-fit: cover;
  object-position: top -17px right 0px;
}

.ab-board-photo:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* ----- Leadership ----- */
.ab-leadership {
  background-color: var(--primary-red);
  color: #fff;
  padding: 70px 0 78px;
}

.ab-leadership-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 56px;
}

.ab-leader-card {
  min-width: 0;
}

.ab-leader-photo {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  background-color: rgba(255, 255, 255, 0.12);
}

.ab-leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.ab-leader-photo:hover img {
  transform: scale(1.03);
}

.ab-leader-profile {
  padding-top: 16px;
}

.ab-leader-role {
  margin: 0px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.ab-leader-name {
  margin: 0;
  color: #fff;
  font-size: 22px;
  font-weight: normal;
  line-height: 1.35;
}

.ab-leader-bio {
  margin: 22px 0 0;
  color: #fff;
  font-size: 14px;
  font-weight: normal;
  line-height: 2;
}

.ab-leader-history {
  margin-top: 12px;
  color: #fff;
}

.ab-leader-history summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  line-height: 1.5;
}

.ab-leader-history summary::-webkit-details-marker {
  display: none;
}

.ab-leader-history summary::after {
  content: "∨";
  font-size: 9px;
  line-height: 1;
  transform-origin: center;
  transition: transform 0.2s ease;
}

.ab-leader-history[open] summary::after {
  transform: rotate(180deg);
}

.ab-leader-history p {
  margin: 14px 0 0;
  color: #fff;
  font-size: 12px;
  font-weight: normal;
  line-height: 1.85;
}

/* ----- Company ----- */
.ab-company {
  padding-top: var(--section-space-sp);
  padding-bottom: var(--section-space-sp);
}

.ab-company-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-start;
}

.ab-company-photo {
  flex: none;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}

.ab-company-photo img {
  width: 100%;
  display: block;
  filter: grayscale(0%);
  transition: filter 0.5s ease, transform 0.4s ease;
}

.ab-company-photo:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

.ab-company-table {
  flex: 1;
  width: 100%;
  border-radius: 20px;
  padding: 20px 12px;
}

.ab-company-dl {
  display: flex;
  flex-direction: column;
}

.ab-company-row {
  display: flex;
  padding: 14px 0;
  font-size: 13px;
}

.ab-company-row dt {
  flex: 0 0 90px;
  color: var(--text-primary);
  font-weight: 500;
  padding-right: 12px;
}

.ab-company-row dd {
  flex: 1;
  color: var(--text-primary);
  margin: 0;
}

.ab-company-row dd a {
  color: var(--primary-red);
}

/* ----- History ----- */
.ab-history {
  position: relative;
  padding: 60px 0;
  overflow: hidden;
}

.ab-history-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../assets/images/about/webp_svg/about_history_sp.webp');
  background-size: cover;
  background-position: center;
}

.ab-history-inner {
  position: relative;
  z-index: 2;
}

.ab-timeline-scroll {
  position: relative;
}

.ab-timeline {
  display: flex;
  gap: 30px;
  position: relative;
  --ab-timeline-logo-width: 61px;
  --ab-timeline-gap: 30px;
  --ab-timeline-line-top: 54px;
  --ab-timeline-dot-size: 5px;
  --ab-timeline-dot-step: 12px;
  --ab-timeline-dot-edge-mask: var(--ab-timeline-dot-step);
  --ab-timeline-logo-gap: 3px;
}

/* horizontal dotted connector, split at each logo */
.ab-timeline::before {
  content: '';
  position: absolute;
  top: var(--ab-timeline-line-top);
  right: calc(100% + var(--ab-timeline-logo-gap));
  width: 100vw;
  height: var(--ab-timeline-dot-size);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 1) 2px, transparent 2.5px);
  background-size: var(--ab-timeline-dot-step) var(--ab-timeline-dot-size);
  background-repeat: repeat-x;
  background-position: right top;
  z-index: 0;
}

.ab-timeline-col::before {
  content: '';
  position: absolute;
  top: var(--ab-timeline-line-top);
  left: calc(var(--ab-timeline-logo-width) + var(--ab-timeline-logo-gap));
  right: calc((var(--ab-timeline-gap) * -1) + var(--ab-timeline-logo-gap));
  height: var(--ab-timeline-dot-size);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 1) 2px, transparent 2.5px);
  background-size: var(--ab-timeline-dot-step) var(--ab-timeline-dot-size);
  background-repeat: space; /* 途中で切れないように均等配置 */
  z-index: 0;
}

.ab-timeline-col:last-child::before {
  right: auto;
  width: 330px;
  background-repeat: repeat-x;
  background-position: left top;
}

/* vertical dotted connector from logo */
.ab-timeline-col::after {
  content: '';
  position: absolute;
  top: 76px;
  left: 25px;
  bottom: 0;
  width: 1px;
  border-left: 3px dotted rgba(255, 255, 255, 1);
  z-index: 0;
  height: 38px;
}

.ab-timeline-logo {
  width: 53px;
  background: #ab1230;
  position: relative;
  z-index: 1;
}

.ab-timeline-col {
  flex: 0 0 200px;
  padding-right: 0;
  position: relative;
  z-index: 1;
}

.ab-timeline-col:last-child {
  padding-right: 0;
}

.ab-timeline-head {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

.ab-timeline-year-top {
  font-family: var(--font-en);
  font-size: 12px;
  color: rgba(255, 255, 255, 1);
  margin-left: 3px;
}

.ab-timeline-logo {
  width: var(--ab-timeline-logo-width);
}

.ab-timeline-body {
  background: rgba(255, 255, 255, 1);
  color: var(--text-primary);
  border-radius: 20px;
  padding: 20px 16px;
}

.ab-timeline-year-num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 400;
  color: var(--primary-red);
  margin-bottom: 14px;
}

.ab-timeline-event {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  line-height: 1.6;
}

.ab-timeline-event:last-child {
  margin-bottom: 0;
}

.ab-timeline-date {
  flex: 0 0 45px;
  white-space: nowrap;
  color: var(--text-primary);
}

.ab-timeline-bullet {
  color: var(--primary-red);
}

.ab-timeline-desc {
  flex: 1;
}

.ad-board-area {
  text-align: right;
}

@media screen and (max-width: 767px) {
  .ab-timeline {
    margin-left: 32px;
    --ab-timeline-logo-width: 50px;
    --ab-timeline-line-top: 42px;
  }

  .ab-value-content {
    display: flex;
    flex-direction: column-reverse;
    padding: 0 6%;
  }

  .ab-mvv-row-first .ab-mvv-img img,
  .ab-mvv-row-second .ab-mvv-img img {
    height: 120px !important;
    object-position: left 0 bottom -14px !important;
  }

  .ab-mvv-row-first .ab-mvv-img,
  .ab-mvv-row-second .ab-mvv-img{
    width: calc(100% + 27%);
    margin: 20px -12% 20px 0;
  }

  .ab-mvv-label {
    font-size: 14px;
  }

  .ab-value-row {
    padding: 10px 0 30px;
  }

  .ab-value-row .ab-mvv-body {
    margin-top: 31px;
  }

  .ab-sep {
    margin-right: -8%;
    width: calc(100% + 8%);
    margin-bottom: 20px;
  }

  .ab-value-en {
    font-size: 13px;
  }

  .ab-board {
    padding: 70px 0 80px;
  }

  .ab-board-person-box {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
  }

  .ab-board-member {
    margin-bottom: 80px;
  }

  .ab-board-member-second .ab-board-person-box {
    flex-direction: row-reverse;
  }

  .ab-board-member-second .ab-board-person-box .ad-board-area {
    text-align: left;
  }

  .ab-board-role {
    font-size: min(3.2vw, 14px);
    white-space: nowrap;
  }

  .ab-board-photo {
    width: 47%;
  }

  .ab-board-photo img {
    height: 120px;
    object-position: top -17px right 0px;
  }

  .ab-board-member-first .ab-board-photo img {
    transform: scale(1.1);
  }

  .ab-board-member-second .ab-board-photo img {
    object-position: top 3px right 0px;
    transform: scale(1.3);
  }

  .ab-board-member-first .ab-board-photo:hover img {
    transform: scale(1.15);
  }

  .ab-board-member-second .ab-board-photo:hover img {
    transform: scale(1.35);
  }

  .ab-company {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .ab-history {
    padding: 80px 0;
  }

  .ab-timeline-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    width: 119.047619%;
    margin-right: -9.52381%;
    margin-left: -9.52381%;
  }

  .ab-timeline-scroll::-webkit-scrollbar {
    display: none;
  }

  .ab-timeline-col::after {
    top: 63px;
  }

  .page-section-head {
    margin-bottom: 26px;
  }

  .ab-timeline-logo {
    width: var(--ab-timeline-logo-width);
  }

  .ab-timeline-year-top {
    font-size: 15px;
  }

  .ab-timeline-head {
    margin-bottom: 45px;
  }

  .ab-timeline::before {
    width: 5vw;
  }

  .ab-company-table {
    margin-top: 11px;
    border: 1px solid var(--primary-red);
  }

  .ab-timeline-year-num {
    font-size: 15px;
  }

  .ab-company-photo {
    display: none;
  }

  .ab-timeline {
    --ab-timeline-dot-step: 9px;
  }

  .ab-timeline-col:last-child::before {
    width: 50vw;
  }

  .ab-leadership {
    padding-top: 0;
  }
}
