@charset "UTF-8";

/* ===== COMING SOON（準備中ページ） ===== */
/* ヘッダー・フッターを含めて画面ぴったり 100vh に収める（スクロールなし） */
body.is-coming-soon {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.is-coming-soon .main {
  flex: 1 0 auto;
  display: flex;
}
body.is-coming-soon .header,
body.is-coming-soon .footer {
  flex: 0 0 auto;
}

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  min-height: 0;
  padding: 40px 5%;
}

.coming-soon__inner {
  text-align: center;
  max-width: 600px;
  color: #fff;
}

.coming-soon__label {
  font-family: "Bebas Neue", "Lato", sans-serif;
  font-size: clamp(48px, 12vw, 110px);
  font-weight: 400;
  letter-spacing: 0.16em;
  line-height: 1;
  text-indent: 0.16em; /* letter-spacing 分の右ズレを補正して中央に */
  color: transparent;
  background: linear-gradient(120deg, #ffb3c9 0%, #ff8db5 50%, #ffd1df 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.coming-soon__line {
  display: block;
  width: 60px;
  height: 2px;
  margin: 32px auto;
  background: rgba(255, 179, 201, 0.7);
}

.coming-soon__text {
  font-size: 15px;
  line-height: 2.1;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 52px;
}

.coming-soon__back {
  display: inline-block;
  color: #fff;
  font-family: "Lato", sans-serif;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-decoration: none;
  padding: 14px 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.coming-soon__back:hover {
  color: #1a1a1a;
  background-color: #ffb3c9;
  border-color: #ffb3c9;
}

@media (max-width: 600px) {
  .coming-soon {
    min-height: 70vh;
    padding: 90px 8%;
  }
  .coming-soon__line {
    margin: 26px auto;
  }
  .coming-soon__text {
    font-size: 14px;
    margin-bottom: 40px;
  }
}

/* ===== 読書進捗バー（画面上部に固定） ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #ffb3c9 0%, #ff8db5 100%);
  box-shadow: 0 0 8px rgba(255, 179, 201, 0.5);
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* ===== タイプライター風アニメ（.js-typewriter） ===== */
.js-typewriter .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition:
    opacity 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js-typewriter.is-typing .char {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-typewriter .char {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== 本文段落 =====
   タイプライター完了で親 .single__story に .is-text-ready が付いたら、
   全段落を一気にフェードイン。 */
.single__story__text > p {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease-out,
    transform 0.4s ease-out;
}

.single__story.is-text-ready .single__story__text > p {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .single__story__text > p {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Single（記事詳細）ページ ===== */
.singlepage {
  background-color: #222;
  color: #fff;
  padding-bottom: 120px;
}

/* ----- ヒーロー（人物紹介） ----- */
.single__hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 5% 120px;
}
.single__hero::after {
  content: "";
  display: table;
  clear: both;
}

.single__hero__photo {
  position: relative;
  float: left;
  width: 42%;
  margin: 0 56px 24px 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  -webkit-clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
  clip-path: polygon(0 12%, 100% 0, 100% 88%, 0 100%);
}

.single__hero__photo img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

.single__hero__info {
  color: #fff;
}

/* ヒーロー画像なし（アイキャッチのみ）のとき：左に写真スペースを空けて、
   写真がある体で情報を右側に寄せる */
.single__hero--no-photo .single__hero__info {
  margin-left: calc(42% + 56px);
}

.single__hero__num {
  font-family: "Lato", sans-serif;
  font-size: 32px;
  font-weight: 400;
  color: #fff;
  line-height: 1.5;
  margin-bottom: 12px;
}

.single__hero__en {
  font-family: "Lato", sans-serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #ffb3c9;
  line-height: 1.1;
  margin-bottom: 24px;
}

.single__hero__jp {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 4px;
}

.single__hero__job {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  margin: 15px 0 30px;
}

.single__hero__lead {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
}

/* 会社サイトリンク（リード文の下） */
.single__hero__url {
  margin-top: 20px;
  word-break: break-all;
}

.single__hero__url__link {
  display: inline-block;
  font-family: "Lato", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  color: #ffb3c9;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 179, 201, 0.4);
  padding-bottom: 2px;
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
  font-weight: 400;
  text-decoration: none;
}

.single__hero__url__link:hover {
  opacity: 0.7;
}

/* ----- STORY セクション ----- */
.single__story {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* MY STORY ラベル（SVG画像） */
.single__story__label {
  display: block;
  width: 270px;
  height: auto;
  margin: 0 0 25px;
}

.single__story__title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  margin-bottom: 56px;
}

/* 画像回り込み（float）レイアウト：本文が画像の周囲＆下に回り込む */
.single__story__body {
  width: 100%;
}
.single__story__body::after {
  content: "";
  display: table;
  clear: both;
}

/* 画像未入力時：テキストを全幅・中央寄せ */
.single__story__body--no-img {
  max-width: 880px;
  margin: 0 auto;
}

/* テキストは block。本文に挿入した画像の float を回り込ませるため flex にしない */
.single__story__text {
  display: block;
}

.single__story__text p {
  font-size: 14px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 16px;
}
.single__story__text p:last-child {
  margin-bottom: 0;
}

/* テキストのみセクション用：中央寄せで広めの幅 */
.single__story--text .single__story__title {
  text-align: center;
}
.single__story__text--wide {
  max-width: 880px;
  margin: 0 auto;
}
.single__story__text--wide p {
  font-size: 15px;
  line-height: 2.1;
  margin-bottom: 18px;
}

/* ===== 本文に挿入した画像の回り込み（エディタの「右寄せ／左寄せ／中央」に対応） =====
   投稿エディタで画像を選び、ツールバーで配置を「右寄せ」「左寄せ」にすると、
   そのまわりに本文が回り込む。回り込ませたい段落の先頭に画像を置くこと。 */
.single__story__text .alignright {
  float: right;
  max-width: 46%;
  margin: 6px 0 20px 44px;
}
.single__story__text .alignleft {
  float: left;
  max-width: 46%;
  margin: 6px 44px 20px 0;
}
.single__story__text .aligncenter {
  display: block;
  margin: 24px auto;
  text-align: center;
}
.single__story__text figure {
  margin: 0;
}
.single__story__text figure img,
.single__story__text img {
  max-width: 100%;
  height: auto;
  display: block;
}
.single__story__text figure figcaption {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 6px;
}

.single__story__img {
  width: 100%;
  overflow: hidden;
}

.single__story__img img {
  width: 100%;
  height: auto;
  display: block;
}

/* 動画（YouTube/Vimeo 埋め込み）：16:9 レスポンシブ。クリップは掛けない */
.single__story__img--video {
  position: relative;
  z-index: 2; /* transform 付き段落より前面に出してクリック可能にする */
  overflow: visible;
}
.single__story__video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.single__story__video iframe,
.single__story__video embed,
.single__story__video object,
.single__story__video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 回り込み時：画像を右にフロート（Story 1）。本文が左と下に回り込む */
.single__story__body .single__story__img {
  float: right;
  width: 46%;
  margin: 6px 0 20px 44px;
}

/* 反転（Story 3 / 4）：画像を左にフロート。本文が右と下に回り込む */
.single__story__body--reverse .single__story__img {
  float: left;
  margin: 6px 44px 20px 0;
}
/* ===== 写真ストリップ（slick で自動連続スクロール） ===== */
.single__photos {
  margin: 80px 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.single__photos.slick-initialized {
  opacity: 1;
}

.single__photos .slick-slide {
  outline: none;
}

.single__photos .slick-track {
  display: flex;
  align-items: center;
}

.single__photos__item {
  aspect-ratio: 3 /2;
  overflow: hidden;
}

.single__photos__item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

/* ----- 一覧へ戻る ----- */
.single__back {
  text-align: center;
  margin-top: 80px;
}

.single__back__link {
  display: inline-block;
  color: #fff;
  font-family: "Lato", sans-serif;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-decoration: none;
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition:
    color 0.25s,
    border-color 0.25s,
    background-color 0.25s;
}

.single__back__link:hover {
  color: #000;
  background-color: #ffb3c9;
  border-color: #ffb3c9;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .single__hero {
    padding: 48px 5% 64px;
  }

  /* スマホでは回り込みを解除し、写真を上・情報を下に積む */
  .single__hero__photo {
    float: none;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 32px;
  }

  /* スマホでは写真スペースの確保を解除して全幅に */
  .single__hero--no-photo .single__hero__info {
    margin-left: 0;
  }

  .single__hero__num {
    font-size: 22px;
  }
  .single__hero__en {
    font-size: 28px;
  }
  .single__hero__jp {
    font-size: 18px;
  }
  .single__hero__job {
    font-size: 12px;
    margin: 10px 0 24px;
  }

  .single__story {
    padding: 56px 5%;
  }

  .single__story__label {
    width: 200px;
    margin-bottom: 18px;
  }

  .single__story__title {
    font-size: 22px;
    margin-bottom: 36px;
  }

  /* スマホでは回り込みを解除し、画像を上・テキストを下に積む
     （画像は本文コンテナの先頭にあるので float 解除で自動的に上へ） */
  .single__story__body .single__story__img,
  .single__story__body--reverse .single__story__img {
    float: none;
    width: 100%;
    margin: 0 0 24px;
  }

  /* 本文挿入画像もスマホでは回り込み解除して全幅に */
  .single__story__text .alignright,
  .single__story__text .alignleft {
    float: none;
    max-width: 100%;
    margin: 0 0 20px;
  }

  /* テキスト用セクション */
  .single__story__text--wide p {
    font-size: 14px;
    line-height: 2;
  }

  /* 写真スライダー */
  .single__photos {
    margin: 48px 0;
  }
  .single__photos .slick-list {
    margin: 0 -6px;
  }
  .single__back {
    margin-top: 48px;
  }
}

/* スマホ（480px 以下） */
@media (max-width: 480px) {
  .single__hero {
    padding: 32px 5% 48px;
    gap: 24px;
  }
  .single__hero__en {
    font-size: 24px;
  }
  .single__hero__lead {
    font-size: 13px;
  }
  .single__story__label {
    width: 170px;
  }
  .single__story__title {
    font-size: 18px;
    margin-bottom: 28px;
  }
  .single__back__link {
    font-size: 12px;
    padding: 10px 24px;
  }
}
