/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --color-bg: #f8f4ee;        /* アイボリー */
  --color-card: #fffdf9;
  --color-text: #3d3936;      /* チャコール */
  --color-text-sub: #8a817a;
  --color-accent: #7a8b76;    /* くすみグリーン（フランスゴムの木の葉の色） */
  --color-green-soft: #dfe5d8;
  --color-pink: #e3bdb3;      /* くすみピンク */
  --color-pink-soft: #f4e4de;
  --color-line: #e6ddd2;
  --color-photo: #ddd5cc;     /* 仮写真枠 */

  --font-sans: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;

  --radius: 24px;
  --shadow: 0 10px 30px rgba(120, 96, 80, 0.08);

  --content-width: 1040px;
  --gutter: 24px;
  --section-space: 112px;
}

/* ==========================================================
   Base
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, dl, dd, ol, ul {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================
   Photo（仮枠。<img> に差し替えても同じ比率で表示される）
   ========================================================== */
.photo,
figure > img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  background: var(--color-photo);
}

.photo {
  display: grid;
  place-items: center;
}

.photo span {
  color: #fff;
  font-family: var(--font-en);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.08em;
}

.photo--portrait,
figure > img.is-portrait { aspect-ratio: 4 / 5; }
.photo--landscape,
figure > img.is-landscape { aspect-ratio: 3 / 2; }
.photo--square,
figure > img.is-square { aspect-ratio: 1 / 1; }

figcaption {
  margin-top: 10px;
  color: var(--color-text-sub);
  font-size: 12px;
  line-height: 1.6;
}

figcaption::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--color-pink);
  vertical-align: middle;
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  background: rgba(248, 244, 238, 0.88);
  backdrop-filter: blur(8px);
}

.site-header__logo {
  font-family: var(--font-en);
  font-size: 20px;
  font-style: italic;
  letter-spacing: 0.06em;
}

.site-header__nav {
  display: none;
  gap: 8px;
  font-family: var(--font-en);
  font-size: 17px;
  font-style: italic;
}

.site-header__nav a {
  padding: 2px 14px;
  border-radius: 999px;
  transition: background 0.3s;
}

.site-header__nav a:hover {
  background: var(--color-pink-soft);
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  display: grid;
  gap: 56px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px var(--gutter) 40px;
  overflow-x: clip; /* 背景の丸が画面外にはみ出さないように */
}

/* 背景のふんわりした丸 */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(2px);
}

.hero::before {
  top: -40px;
  left: -80px;
  width: 260px;
  height: 260px;
  background: var(--color-green-soft);
  opacity: 0.7;
}

.hero::after {
  right: -60px;
  bottom: 0;
  width: 220px;
  height: 220px;
  background: var(--color-pink-soft);
}

.hero__eyebrow {
  margin-bottom: 16px;
  color: var(--color-accent);
  font-family: var(--font-en);
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.hero__copy {
  font-family: var(--font-serif);
  font-size: clamp(24px, 6.4vw, 36px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.08em;
}

.hero__copy span {
  display: block;
  white-space: nowrap;
}

.hero__name {
  display: inline-block;
  margin-top: 40px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.hero__name span {
  display: block;
  color: var(--color-text-sub);
  font-family: var(--font-en);
  font-size: 18px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero__role {
  display: block;
  width: fit-content;
  margin-top: 16px;
  padding: 2px 16px;
  border-radius: 999px;
  background: var(--color-green-soft);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.hero__photo {
  position: relative;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

/* アーチ型の写真と、後ろにずらした枠線 */
.hero__photo::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1px solid var(--color-pink);
  border-radius: 999px 999px var(--radius) var(--radius);
}

.hero__img {
  border-radius: 999px 999px var(--radius) var(--radius);
  object-position: center 30%;
}

.hero__hello {
  position: absolute;
  top: 18%;
  left: -12px;
  z-index: 1;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--color-card);
  box-shadow: var(--shadow);
  font-family: var(--font-en);
  font-size: 18px;
  font-style: italic;
  white-space: nowrap;
  transform: rotate(-8deg);
}

.hero__leaf {
  position: absolute;
  top: 24px;
  right: var(--gutter);
  width: 40px;
  height: 56px;
  color: var(--color-accent);
  transform: rotate(18deg);
}

/* ==========================================================
   Section common
   ========================================================== */
.section {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--section-space) var(--gutter) 0;
}

.section__head {
  margin-bottom: 48px;
  text-align: center;
}

.section__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: var(--color-pink-soft);
  color: #b0877c;
  font-family: var(--font-en);
  font-size: 17px;
  font-style: italic;
}

.section__title {
  font-family: var(--font-en);
  font-size: 44px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.section__title span {
  display: block;
  margin-top: 6px;
  color: var(--color-text-sub);
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.16em;
}

/* ==========================================================
   About
   ========================================================== */
.about {
  display: grid;
  gap: 32px;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.about__lead {
  font-size: 15px;
}

.about__facts div {
  display: grid;
  grid-template-columns: 5.5em 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-line);
  font-size: 14px;
  line-height: 1.8;
}

.about__facts div:last-child {
  border-bottom: none;
}

.about__facts dt {
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chips span {
  padding: 0 12px;
  border-radius: 999px;
  background: var(--color-pink-soft);
  font-size: 12px;
  line-height: 2;
}

/* ==========================================================
   Story（timeline）
   ========================================================== */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 7px;
  border-left: 2px dotted var(--color-pink);
}

.timeline__item {
  position: relative;
}

.timeline__item + .timeline__item {
  margin-top: 40px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -32px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-pink-soft);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-pink);
}

.timeline__item:last-child::before {
  background: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.timeline__when {
  color: var(--color-accent);
  font-family: var(--font-en);
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
}

.timeline__title {
  margin: 2px 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.timeline__item p:last-child {
  color: var(--color-text-sub);
  font-size: 14px;
}

/* ==========================================================
   Split（写真と文章の左右配置）
   ========================================================== */
.split {
  display: grid;
  gap: 40px;
}

.split__title {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.split__text p + p {
  margin-top: 1em;
}

/* ==========================================================
   Favorites
   ========================================================== */
.favorites {
  display: grid;
  gap: 32px;
}

.fav {
  padding: 14px 14px 24px;
  border-radius: calc(var(--radius) + 8px);
  background: var(--color-card);
  box-shadow: var(--shadow);
}

.fav figure > img,
.fav .photo {
  border-radius: var(--radius);
}

.fav__title,
.fav p {
  padding: 0 8px;
}

.fav__title {
  margin: 16px 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}

.fav figcaption {
  padding: 0 8px;
}

.fav p {
  color: var(--color-text-sub);
  font-size: 14px;
}

/* フィルムカメラ：ポラロイド風 */
.fav--wide {
  padding: 32px 20px;
  background: var(--color-green-soft);
  box-shadow: none;
}

.fav--wide figure {
  padding: 12px 12px 4px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.fav--wide figure > img {
  border-radius: 0;
}

.fav--wide figcaption {
  margin: 0;
  padding: 10px 4px 8px;
  color: var(--color-text);
  font-size: 13px;
  text-align: center;
}

.fav--wide figcaption span {
  display: inline-block;
}

.fav--wide figcaption::before {
  display: none;
}

.fav--wide .fav__title {
  margin-top: 28px;
}

.fav--wide p {
  color: var(--color-text);
}

/* ==========================================================
   Influence
   ========================================================== */
.influence {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 28px;
  border-radius: calc(var(--radius) + 16px);
  background: var(--color-pink-soft);
  text-align: center;
}

.influence::before {
  content: "\201C";
  position: absolute;
  top: -28px;
  left: 50%;
  color: var(--color-pink);
  font-family: var(--font-en);
  font-size: 96px;
  line-height: 1;
  transform: translateX(-50%);
}

.influence__name {
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: 0.2em;
}

.influence__name span {
  margin-left: 4px;
  font-size: 15px;
  letter-spacing: 0.1em;
}

.influence__text {
  margin-top: 20px;
  text-align: left;
}

/* ==========================================================
   Aside
   ========================================================== */
.section--aside .split__photo {
  max-width: 360px;
  width: 100%;
}

.section--aside .split__photo .photo {
  border-radius: 999px 999px var(--radius) var(--radius);
}

.aside__leaf {
  display: block;
  width: 28px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-accent);
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  margin-top: var(--section-space);
  padding: 72px var(--gutter) 32px;
  border-radius: 48px 48px 0 0;
  background: var(--color-green-soft);
  text-align: center;
}

.site-footer__message {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.8;
}

.site-footer__name {
  margin-top: 32px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.site-footer__name span {
  display: block;
  color: var(--color-text-sub);
  font-family: var(--font-en);
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.site-footer small {
  display: block;
  margin-top: 40px;
  color: var(--color-text-sub);
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* ==========================================================
   Fade-in（JSで .is-visible を付与）
   ========================================================== */
.js .js-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.js .js-fade.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .js-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================
   PC
   ========================================================== */
@media (min-width: 768px) {
  :root {
    --gutter: 48px;
    --section-space: 144px;
  }

  .site-header {
    padding: 20px var(--gutter);
  }

  .site-header__nav {
    display: flex;
  }

  .hero {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 64px;
    padding-top: 72px;
  }

  .hero::before {
    top: 20px;
    left: -40px;
    width: 360px;
    height: 360px;
  }

  .hero::after {
    right: -40px;
    width: 300px;
    height: 300px;
  }

  .hero__copy {
    font-size: clamp(22px, 3vw, 34px);
  }

  .hero__hello {
    left: -40px;
  }

  .hero__leaf {
    top: 48px;
    right: auto;
    left: calc(50% - 20px);
  }

  .section__title {
    font-size: 56px;
  }

  .about {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    padding: 48px;
  }

  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }

  .split--reverse .split__photo {
    order: 2;
    justify-self: end;
  }

  .favorites {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
  }

  /* 3枚並びの真ん中だけ少し下げる */
  .favorites .fav:nth-child(3n+2) {
    margin-top: 40px;
  }

  .favorites .photo {
    aspect-ratio: 4 / 3;
  }

  .fav--wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: 56px;
    padding: 48px;
  }

  .fav--wide .fav__title {
    margin-top: 0;
  }

  .influence {
    padding: 72px 56px;
  }

  .influence__text {
    max-width: 520px;
    margin: 28px auto 0;
  }
}
