/* ============================================================
   シノホープ合同会社 コーポレートサイト
   勝負の軸: 写真。モチーフ: 紙風船（動きの物性にだけ使う）
   色3つ: 地 #FFFDF8 / 主 #0F5C5A（淡い面 #DCEFEC）/ 杏 #F2A25C
   書体: Zen Maru Gothic（見出し）/ BIZ UDPGothic（本文）/ Nunito（欧文）
   ============================================================ */

:root {
  --paper: #FFFDF8;
  --teal: #0F5C5A;
  --teal-pale: #DCEFEC;
  --apricot: #F2A25C;

  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  --font-body: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en: "Nunito", "Zen Maru Gothic", sans-serif;

  /* 文字の段: 最小16px → 最大112px（7倍） */
  --fs-display: clamp(56px, 6.4vw, 112px);
  --fs-large: clamp(36px, 3.6vw, 56px);
  --fs-mid: clamp(30px, 2.6vw, 40px);
  --fs-small: clamp(26px, 2vw, 32px);
  --fs-body: clamp(18px, 1.2vw, 20px);
  --fs-note: 16px;

  --gap-section: clamp(96px, 9vw, 160px);
  --gutter: clamp(20px, 5vw, 96px);
  --ease-float: cubic-bezier(.22, .61, .36, 1); /* 跳ねない ease-out */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--apricot); outline-offset: 4px; }

.sp-only { display: none; }

/* ---- 文字の段 ---- */
/* font-size は古いブラウザ向けの px を先に書き、clamp の変数で上書きする */
.hero__title { font-family: var(--font-head); font-weight: 900; font-size: 112px; font-size: var(--fs-display); line-height: 1.2; letter-spacing: .02em; }
.h-large { font-family: var(--font-head); font-weight: 700; font-size: 56px; font-size: var(--fs-large); line-height: 1.3; letter-spacing: .02em; }
.h-mid { font-family: var(--font-head); font-weight: 700; font-size: 40px; font-size: var(--fs-mid); line-height: 1.3; letter-spacing: .02em; }
.h-small { font-family: var(--font-head); font-weight: 700; font-size: 32px; font-size: var(--fs-small); line-height: 1.3; letter-spacing: .02em; }
.lead { font-family: var(--font-head); font-weight: 700; font-size: 32px; font-size: var(--fs-small); line-height: 1.7; }
.body { font-size: 20px; font-size: var(--fs-body); max-width: 36em; }
.eyebrow { font-family: var(--font-en); font-weight: 700; font-size: var(--fs-note); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; }
.num, [lang="en"] { font-family: var(--font-en); }
.ln { display: block; }

/* ---- ヘッダー ---- */
.site-head {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px var(--gutter) 0;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  min-height: 48px;
  justify-content: center;
}
.logo__ja { font-family: var(--font-head); font-weight: 900; font-size: 22px; letter-spacing: .04em; line-height: 1.2; }
.logo__en { font-family: var(--font-en); font-weight: 700; font-size: var(--fs-note); letter-spacing: .22em; line-height: 1.2; }
.site-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.site-nav a {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 18px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--teal); }

/* ---- 1 ヒーロー（写真が右端からはみ出す。非対称①） ---- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  align-items: center;
  min-height: calc(100svh - 96px);
  padding: 24px 0 24px var(--gutter);
  overflow: hidden;
}
.hero__text { position: relative; z-index: 2; padding-right: 16px; }
.hero__lead { margin-top: 32px; font-size: var(--fs-body); max-width: 30em; }
.hero__lead .nw { display: inline-block; }  /* 句の途中で折らない（1920で「す。」だけ次の行に落ちた） */
.hero__photo {
  position: relative;
  justify-self: end;
  width: min(60vw, 84vh);
  aspect-ratio: 1;
  margin-right: -7vw;
  will-change: transform;
}
.hero__photo picture {
  display: block; width: 100%; height: 100%;
  clip-path: circle(50% at 50% 50%);   /* 紙風船の円。筋は入れない */
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 100% 50%;  /* 夫婦（写真の右3分の1）が円の中央寄りに来る位置 */
}

/* ---- 2 体は変わる（左寄せ・右を空ける。非対称②） ---- */
.change { padding: var(--gap-section) var(--gutter); }
.change__inner { max-width: 1280px; margin: 0 auto; }
.change .lead { margin-top: 40px; }
.change .body { margin-top: 32px; }

/* ---- 3 元気に暮らす（淡い青緑の全幅の色面） ---- */
.live { background: var(--teal-pale); padding: var(--gap-section) var(--gutter); overflow: hidden; }
.live__inner { max-width: 1280px; margin: 0 auto; }
.live__body { margin-top: 24px; }
.tiles {
  position: relative;
  margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: 24px;
}
.tile {
  aspect-ratio: 1;
  will-change: transform;
  filter: drop-shadow(0 24px 48px rgba(15, 92, 90, .10)); /* 大きくぼけた薄い影1種のみ */
}
.tile img {
  width: 100%; height: 100%; object-fit: cover;
  /* 紙風船の形: 円の mask */
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 69%, transparent 70%);
          mask-image: radial-gradient(circle at 50% 50%, #000 69%, transparent 70%);
}
/* 大きさ違い・高さ違いで浮く */
.tile--a { grid-column: 1 / span 5; margin-top: 56px; }
.tile--b { grid-column: 6 / span 3; margin-top: 0; }
.tile--c { grid-column: 9 / span 4; margin-top: 120px; }

/* ---- 4 道具たち（1大＋2小。非対称③） ---- */
.tools { padding: var(--gap-section) var(--gutter); }
.tools__inner { max-width: 1280px; margin: 0 auto; }
.tools .body { margin-top: 24px; }
.products {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  grid-template-rows: auto auto;
  column-gap: 48px;
  row-gap: 48px;
}
.product--large { grid-row: 1 / span 2; display: flex; flex-direction: column; gap: 24px; }
.product--small { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; }
.product__photo { overflow: hidden; }
.product__photo img { width: 100%; height: auto; }
.product__mark {
  width: 120px; aspect-ratio: 1;
  border-radius: 50%;
  background: var(--teal-pale);
}
.product__text { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.product__sub { font-size: var(--fs-note); letter-spacing: .12em; display: inline-block; margin-top: 4px; }
.badge {
  display: inline-flex; align-items: center;
  min-height: 36px; padding: 0 14px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: var(--fs-note);
  letter-spacing: .08em;
}

/* ---- 5 作り手のことば（杏はここ1か所） ---- */
.maker { padding: var(--gap-section) var(--gutter); }
.maker__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.maker__accent {
  width: min(100%, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  /* 無地の杏の円は「何これ」になる（スイカの件 10/31）→ 写真にして、杏は外側の細い輪だけ */
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 12px var(--apricot);
  justify-self: end;
  margin-top: 64px;
}
.maker__accent img { width: 100%; height: 100%; object-fit: cover; }
.maker__text .h-large { margin-bottom: 32px; }

/* ---- 6 お知らせ・会社概要 ---- */
.company { padding: var(--gap-section) var(--gutter); border-top: 1px solid var(--teal); }
.company__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
}
.news .body, .about .spec { margin-top: 24px; }
.spec { border-top: 1px solid var(--teal); }
.spec__row {
  display: grid;
  grid-template-columns: 9em 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--teal);
}
.spec dt { font-family: var(--font-head); font-weight: 700; }
.blank { display: inline-block; min-width: 2em; }

/* ---- 7 お問い合わせ ---- */
.contact { background: var(--teal-pale); padding: var(--gap-section) var(--gutter); }
.contact__inner { max-width: 1280px; margin: 0 auto; }
.contact .body { margin-top: 24px; }

/* ---- フッター ---- */
.site-foot { background: var(--teal); color: var(--paper); padding: 56px var(--gutter) 40px; }
.site-foot__inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.site-foot__name { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.site-foot__nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.site-foot__nav a {
  display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 12px;
  font-size: var(--fs-note); text-decoration: underline; text-underline-offset: 4px;
}
.site-foot__copy { width: 100%; font-size: var(--fs-note); }
.site-foot__copy small { font-size: inherit; }
.site-foot :focus-visible { outline-color: var(--apricot); }

/* ============================================================
   動き（紙風船の物性: ふわっと浮いて、ゆっくり止まる。跳ねない）
   JSが動くときだけ初期状態を「少し下」にし、画面に入ったら戻す。
   ============================================================ */
html.js:not(.reduced) .float {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-float), transform .9s var(--ease-float);
}
html.js:not(.reduced) .float.is-in { opacity: 1; transform: none; }
/* 一度出たものは、上に戻しても消えない（is-in を外さない） */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, html.js .float { opacity: 1 !important; transform: none !important; transition: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ============================================================
   スマホ
   ============================================================ */
@media (max-width: 1023px) {
  .products { grid-template-columns: 1fr; }
  .product--large { grid-row: auto; }
  .maker__inner { grid-template-columns: 1fr; }
  .maker__accent { width: 160px; justify-self: start; margin-top: 0; }
  .company__inner { grid-template-columns: 1fr; gap: 56px; }
}

@media (max-width: 767px) {
  .sp-only { display: inline; }
  .site-head { padding-top: 16px; }
  .logo__ja { font-size: 20px; }
  .site-nav { width: 100%; gap: 0; }
  .site-nav a { padding: 0 10px 0 0; font-size: 17px; }

  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 0 0 var(--gutter);
    row-gap: 24px;
  }
  .hero__text { padding-right: var(--gutter); }
  .hero__lead { margin-top: 20px; }
  .hero__photo {
    width: 92vw;
    margin-right: -10vw;
    justify-self: end;
  }
  .hero__photo img { object-position: 78% 38%; }  /* 縦写真はピックルボールの女性が右寄り・上3分の1に顔。顔が円の中に入る位置 */

  .change .lead { margin-top: 28px; }
  .change .body { margin-top: 24px; }

  .tiles { margin-top: 48px; gap: 16px; }
  .tile--a { grid-column: 1 / span 8; margin-top: 40px; }
  .tile--b { grid-column: 9 / span 4; margin-top: 0; }
  .tile--c { grid-column: 4 / span 8; margin-top: 8px; }

  .products { margin-top: 40px; row-gap: 40px; }
  .product--small { grid-template-columns: 88px 1fr; gap: 16px; }
  .product__mark { width: 88px; }

  .spec__row { grid-template-columns: 6em 1fr; padding: 14px 0; }
  .site-foot__nav a { padding: 0 8px 0 0; }
}
