/* ============================================================
   Section 7: Blog  (y0 = 7958, h = 1625)
   Coordinates are absolute page-x / (absolute-y - section y0).
   ============================================================ */

@keyframes top_blog_float01 {
  0%   { transform: translateY(30px); }
  100% { transform: translateY(-10px); }
}

@keyframes blog_illust {
  0%   { transform: translateY(20px); }
  100% { transform: translateY(-20px); }
}

.blog {
  height: 1625px;
  background: #fff;

  /* self-drawn arrow glyph (masked, so `color` tints it) */
  --ui-arrow: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2018%2016'%3E%3Cpath%20d='M9.9%200.5%208.5%201.9%2013.6%207H0v2h13.6l-5.1%205.1%201.4%201.4L17.4%208z'/%3E%3C/svg%3E");
}

/* inverse (concave) corner fillets — a 16px quarter-circle bite taken out
   of a square of the neighbouring fill colour */
.blog__tail-notch,
.blog__notch {
  display: block;
}

.blog__nav-arrow,
.blog__card-btn-arrow,
.blog__viewall-arrow,
.blog__pres-arrow {
  display: block;
  background: currentColor;
  -webkit-mask: var(--ui-arrow) 50% 50% / contain no-repeat;
  mask: var(--ui-arrow) 50% 50% / contain no-repeat;
}

/* ---------------------------------------------------------- */
/* navy tail carried over from Work                            */
/* ---------------------------------------------------------- */

.blog__tail {
  position: absolute;
  left: 0;
  top: 0;
  width: 662.391px;
  height: 74px;
  z-index: 2;
}

.blog__tail-fill {
  width: 100%;
  height: 100%;
  background: var(--navy);
  border-radius: 0 0 16px 0;
}

.blog__tail-notch {
  position: absolute;
  left: 100%;
  top: 0;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle 16px at 100% 100%, #0000 0 15.4px, var(--navy) 16.2px);
}

/* ---------------------------------------------------------- */
/* light gray panel behind the slider                          */
/* ---------------------------------------------------------- */

.blog__panel {
  position: absolute;
  left: 728px;
  top: 154px;
  width: 712px;
  height: 772px;
  background: #eee;
  border-radius: 16px 0 0 16px;
  z-index: 0;
}

/* ---------------------------------------------------------- */
/* heading                                                     */
/* ---------------------------------------------------------- */

.blog__head {
  position: absolute;
  left: 64px;
  top: 154px;
  z-index: 3;
}

.blog__en {
  font: 800 160px/160px var(--font-en);
  letter-spacing: -3.2px;
  color: var(--navy);
}

.blog__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
}

.blog__sub-dot {
  width: 30px;
  height: 20px;
  border-radius: 50%;
  background: var(--magenta);
  flex: none;
}

.blog__sub-text {
  font: 900 24px/24px var(--font-jp);
  letter-spacing: 0.72px;
  color: var(--navy);
}

/* ---------------------------------------------------------- */
/* card slider                                                 */
/* ---------------------------------------------------------- */

.blog__slider {
  z-index: 2;
  position: absolute;
  left: 64px;
  top: 338px;
  width: 1376px;
  height: 468px;
  overflow: hidden;
  z-index: 3;
}

.blog__track {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin-left: 386px;
  width: max-content;
  transition: transform 0.6s var(--ease);
}

/* Prev / Next -------------------------------------------------*/

.blog__nav {
  position: absolute;
  left: 0;
  top: 0;
  width: 386px;
  height: 468px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.blog__nav-btn {
  width: 100px;
  height: 280px;
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  transition: 0.3s var(--ease);
}

.blog__nav-btn:hover {
  background: var(--navy);
}

.blog__nav-btn:hover .blog__nav-label {
  color: #fff;
}

.blog__nav-btn:hover .blog__nav-arrow {
  color: #fff;
}

.blog__nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.blog__nav-btn:disabled:hover {
  background: #fff;
}

.blog__nav-btn:disabled:hover .blog__nav-label {
  color: var(--navy);
}

.blog__nav-btn:disabled:hover .blog__nav-arrow {
  color: var(--navy);
}

.blog__nav-label {
  font: 700 18px/18px var(--font-en);
  color: var(--navy);
  transition: 0.3s var(--ease);
}

.blog__nav-arrow {
  width: 16px;
  height: 14.219px;
  color: var(--navy);
  transition: 0.3s var(--ease);
}

.blog__nav-arrow--prev {
  transform: scaleX(-1);
}

/* card --------------------------------------------------------*/

.blog__card {
  flex: none;
  width: 427px;
  height: 468px;
  display: flex;
}

.blog__card-body {
  position: relative;
  width: 411px;
  height: 468px;
  margin: 0 8px;
  background: var(--magenta);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s var(--ease);
}

.blog__card:hover .blog__card-body {
  transform: translateY(-8px);
}

/* date badge punched into the top-left of the photo */
.blog__card-date {
  position: absolute;
  top: 8px;
  left: 8px;
  height: 62px;
  padding: 0 31px 1px 8px;
  background: var(--magenta);
  border-radius: 0 0 16px 0;
  display: flex;
  z-index: 2;
}

.blog__card-date-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.blog__card-year {
  font: 700 18px/18px var(--font-en);
  color: #fff;
}

.blog__card-day {
  font: 700 40px/40px var(--font-en);
  color: #fff;
}

/* inverse (concave) corners — same magenta as the card */
.blog__notch {
  position: absolute;
  width: 16px;
  height: 17px;
}

.blog__notch--date-r {
  top: -1px;
  left: 100%;
  background: radial-gradient(circle 16px at 100% 100%, #0000 0 15.4px, var(--magenta) 16.2px);
}

.blog__notch--date-b {
  top: 61px;
  left: 0;
  background: radial-gradient(circle 16px at 100% 100%, #0000 0 15.4px, var(--magenta) 16.2px);
}

.blog__notch--title {
  top: 24px;
  left: 100%;
  background: radial-gradient(circle 16px at 100% 0%, #0000 0 15.4px, var(--magenta) 16.2px);
}

/* answer panel (fills the frame the source used for a photo) */
.blog__card-photo {
  flex: none;
  width: 411px;
  height: 269px;
  border: 8px solid var(--magenta);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog__card-answer {
  flex: none;
  width: 395px;
  height: 253px;
  /* clears the Q-number badge punched into the top-left corner */
  padding: 68px 24px 20px;
  background: #fff;
  border-radius: 8px;
}

.blog__card-answer p {
  font: 700 15px/26px var(--font-jp);
  letter-spacing: 0.45px;
  color: var(--navy);
}

/* title + button */
.blog__card-foot {
  position: relative;
  flex: none;
  width: 411px;
  height: 247px;
  margin-top: -48px;
  padding: 0 16px 110px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 36px;
  z-index: 2;
}

.blog__card-titlebox {
  position: relative;
  margin-right: 32px;
  padding: 16px 16px 0 8px;
  background: var(--magenta);
  border-radius: 0 16px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.blog__card-title {
  font: 900 28px/35px var(--font-jp);
  letter-spacing: 0.84px;
  color: #fff;
}

.blog__card-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 60px;
  height: 60px;
  border-radius: 128px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  transition: 0.3s var(--ease);
}

.blog__card-btn-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: 0.3s var(--ease);
}

.blog__card-btn-arrow {
  position: absolute;
  width: 16px;
  height: 14.219px;
  color: var(--magenta);
  opacity: 0;
  transform: translateX(-20px);
  transition: 0.3s var(--ease);
}

.blog__card:hover .blog__card-btn {
  background: #fff;
}

.blog__card:hover .blog__card-btn-dot {
  opacity: 0;
}

.blog__card:hover .blog__card-btn-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------------------------------------------------------- */
/* View All                                                    */
/* ---------------------------------------------------------- */

.blog__viewall {
  position: absolute;
  left: 64px;
  top: 806px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3;
}

.blog__viewall-circle {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 128px;
  background: var(--lavender);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s var(--ease);
}

.blog__viewall-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--magenta);
  transition: 0.3s var(--ease);
}

.blog__viewall-arrow {
  position: absolute;
  width: 16px;
  height: 14.219px;
  color: #fff;
  opacity: 0;
  transform: translateX(-20px);
  transition: 0.3s var(--ease);
}

.blog__viewall:hover .blog__viewall-circle {
  background: var(--magenta);
}

.blog__viewall:hover .blog__viewall-dot {
  opacity: 0;
}

.blog__viewall:hover .blog__viewall-arrow {
  opacity: 1;
  transform: translateX(0);
}

.blog__viewall-text {
  font: 700 28px/28px var(--font-en);
  color: var(--navy);
}

/* ---------------------------------------------------------- */
/* 支援メニュー card                                              */
/* ---------------------------------------------------------- */

.blog__pres {
  position: absolute;
  left: 175px;
  top: 1006px;
  width: 1090px;
  height: 459.125px;
  padding: 16px 16px 16px 55px;
  background: var(--pink);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  z-index: 1;
}

.blog__pres-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 78% at 8% 14%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 72%),
    radial-gradient(42% 86% at 58% 104%, rgba(238, 79, 224, 0.62), rgba(238, 79, 224, 0) 74%),
    radial-gradient(54% 96% at 96% -6%, rgba(247, 166, 60, 0.42), rgba(247, 166, 60, 0) 72%);
  z-index: 1;
}

.blog__pres-inner {
  position: relative;
  width: 1019px;
  height: 427.125px;
  display: flex;
  align-items: stretch;
  z-index: 2;
}

.blog__pres-left {
  position: relative;
  width: 509.5px;
  padding-right: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  z-index: 2;
}

.blog__pres-head {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
}

.blog__pres-title {
  font: 900 48px/48px var(--font-jp);
  letter-spacing: 1.44px;
  color: #fff;
}

.blog__pres-body {
  /* 原文より1行が長いので、写真の手前まで（509.5px）の範囲で広げる */
  width: 470px;
  font: 700 16px/27.2px var(--font-jp);
  letter-spacing: 0.48px;
  color: #fff;
}

.blog__pres-illust {
  position: absolute;
  left: 425.5px;
  top: 148.5px;
  width: 168px;
  height: 278.625px;
  object-fit: contain;
  object-position: 50% 100%;
  z-index: 1;
  animation: blog_illust 3s ease-in-out infinite alternate;
}

.blog__pres-right {
  position: relative;
  flex: none;
  width: 509.5px;
  height: 427.125px;
  border-radius: 8px;
  overflow: hidden;
}

.blog__pres-photo {
  width: 509.5px;
  height: 427.125px;
  object-fit: cover;
}

.blog__pres-btn {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 80px;
  height: 80px;
  border-radius: 128px;
  background: var(--pink);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  transition: 0.3s var(--ease);
}

.blog__pres-arrow {
  width: 16px;
  height: 14.219px;
  color: #fff;
  transform: rotate(-45deg);
}

.blog__pres:hover .blog__pres-btn {
  transform: scale(1.08);
}

/* ---------------------------------------------------------- */
/* floating character + speech bubble                          */
/* ---------------------------------------------------------- */

.blog__float {
  position: absolute;
  z-index: 1;
  left: 1042px;
  top: 0;
  width: 223px;
  height: 352px;
  z-index: 4;
  pointer-events: none;
}

.blog__float-char {
  width: 223px;
  height: 352px;
  animation: top_blog_float01 2s ease-in-out infinite alternate;
}

.blog__float-char img {
  width: 223px;
  height: 352px;
  object-fit: contain;
  object-position: 50% 100%;
}

/* audience tag on QA slider cards (BtoB/BtoC を混同させない) */
.blog__card-aud {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  background: #fff;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 900;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.4;
}
