@charset "UTF-8";

/*
  B案：シンプルなテイスト
  参考：https://yuwatax.com/ （2026-11-15 にスマホ幅375pxで実測）
  ・色：紺 #5369B2（英字・ボタン）／濃い紺 #354A91／淡いグレーの面 #F3F5F7／線 #CED2DB・#9EA4B1／本文 #333333
  ・書体：見出しは Zen Old Mincho 500、本文は Noto Sans JP 400・500、英字は Inter 400
  ・形：角のない四角い写真、細い線、白い曲線のあしらい、両端の丸いボタン
*/

/* ===== 変数 ===== */
.taste-b {
  --b-navy: #5369B2;
  --b-navy-dark: #354A91;
  --b-gray: #F3F5F7;
  --b-line: #CED2DB;
  --b-line-dark: #9EA4B1;
  --b-text: #333333;
  --b-header-height: 64px;
  --b-ease: cubic-bezier(0.77, 0, 0.18, 1);
  --badge-top: var(--b-header-height);
  display: flex;
  flex-direction: column;
  background: var(--b-gray);
  color: var(--b-text);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
}

/* ===== ヘッダー（白・下に細い線） ===== */
.b-header {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  height: var(--b-header-height);
  padding: 0 14px;
  border-bottom: 1px solid var(--b-line);
  background: #FFFFFF;
}

.b-header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.b-header__logo img {
  width: auto;
  height: 32px;
}

.b-header__label {
  color: var(--b-navy);
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.18em;
}

.b-header__nav {
  display: flex;
  gap: 6px;
}

.b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 15px;
  border: 1px solid var(--b-navy);
  border-radius: 100px;
  background: var(--b-navy);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
}

.b-btn--outline {
  border-color: var(--b-line-dark);
  background: #FFFFFF;
  color: var(--b-text);
}

/* ===== 本体（写真／文章） ===== */
.b-body {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

/* 背景の白い曲線 */
.b-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62%;
  overflow: visible;
  pointer-events: none;
}

.b-curve path {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* ===== 写真（大きい1枚＋重なる小さい1枚） ===== */
.b-photos {
  position: relative;
  flex: 1 1 0;
  min-height: 130px;
  max-height: 320px;
  margin-top: 22px;
}

.b-photo {
  position: absolute;
  overflow: hidden;
}

.b-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1.1s var(--b-ease);
}

.b-photo--main {
  top: 0;
  right: 0;
  width: 80%;
  height: 86%;
}

.b-photo--sub {
  bottom: 0;
  left: 28px;
  width: 42%;
  height: 50%;
  border: 5px solid var(--b-gray);
}

.b-photo--sub img {
  clip-path: inset(0 100% 0 0);
}

.taste-b.is-active .b-photo img {
  clip-path: inset(0 0 0 0);
}

.taste-b.is-active .b-photo--sub img {
  transition-delay: 0.3s;
}

/* ===== 文章 ===== */
.b-content {
  position: relative;
  flex: 0 0 auto;
  padding: 22px 28px 26px;
}

.b-en {
  color: var(--b-navy);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.b-title {
  margin-top: 6px;
  font-family: "Zen Old Mincho", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.1em;
}

/* 3行の言葉は、左に細い線を引いて明朝で */
.b-band {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  padding-left: 14px;
  border-left: 1px solid var(--b-navy);
}

.b-band__line {
  display: block;
  font-family: "Zen Old Mincho", serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.06em;
}

.b-text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.05em;
}

.b-text p + p {
  margin-top: 8px;
}

.b-mark {
  font-weight: 500;
  background: linear-gradient(
    transparent 62%,
    #DCE2F2 62%
  );
}

/* ===== 画面に入ったときの出方（静かにフェード） ===== */
.taste-b .js-in {
  transform: translateY(10px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

.taste-b.is-active .js-in {
  transform: translateY(0);
}

.taste-b.is-active .b-en {
  transition-delay: 0.3s;
}

.taste-b.is-active .b-title {
  transition-delay: 0.4s;
}

.taste-b.is-active .b-band {
  transition-delay: 0.55s;
}

.taste-b.is-active .b-text {
  transition-delay: 0.7s;
}

/* ===== 背の低い端末 ===== */
@media (max-height: 740px) {
  .b-photos {
    margin-top: 16px;
  }

  .b-content {
    padding-top: 16px;
    padding-bottom: 20px;
  }

  .b-title {
    font-size: 25px;
  }

  .b-band {
    margin-top: 12px;
  }

  .b-band__line {
    font-size: 14px;
    line-height: 1.8;
  }

  .b-text {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.75;
  }

  .b-text p + p {
    margin-top: 6px;
  }
}

@media (max-height: 620px) {
  .taste-b {
    --b-header-height: 56px;
  }

  .b-header__logo img {
    height: 28px;
  }

  .b-photos {
    min-height: 90px;
    margin-top: 12px;
  }

  .b-content {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  .b-title {
    font-size: 22px;
  }

  .b-band__line {
    font-size: 13px;
  }

  .b-text {
    font-size: 12.5px;
  }
}

/* ===== 幅の狭い端末 ===== */
@media (max-width: 360px) {
  .b-header {
    padding: 0 10px;
  }

  .b-header__label {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .b-btn {
    padding: 0 10px;
    font-size: 11px;
  }

  .b-content {
    padding-right: 20px;
    padding-left: 20px;
  }

  .b-photo--sub {
    left: 20px;
  }
}

/* ===== 動きを減らす設定 ===== */
@media (prefers-reduced-motion: reduce) {
  .b-photo img,
  .b-photo--sub img {
    clip-path: none;
    transition: none;
  }

  .taste-b .js-in {
    transform: none;
    transition: none;
  }
}
