/* トップページ個別CSS */

.hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 420px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
  background: var(--paper);
}
@media (min-width: 769px) {
  /* ボタン列・メイン画像を下の.container（max-width:1080px）に合わせず、より大きく
     見せる。heroの左右は固定の余白のみとし、広い画面でも画像・ボタンが
     大きく表示されるようにする（左右に寄りすぎないよう、ある程度の余白を確保） */
  .hero { padding-left: calc(var(--space-8) * 2 + var(--space-4)); padding-right: calc(var(--space-8) * 2 + var(--space-4)); }
}
/* ロゴの折り紙モチーフを、ヒーロー背景にごく薄い透かしとして配置する */
.hero__decor {
  position: absolute;
  right: -70px;
  top: -70px;
  width: 380px;
  height: 380px;
  opacity: 0.08;
  z-index: 0;
  pointer-events: none;
}
.hero__decor--2 {
  right: auto;
  top: auto;
  left: -90px;
  bottom: -100px;
  width: 300px;
  height: 300px;
  opacity: 0.06;
  transform: rotate(30deg);
}
.hero__text, .hero__imagewrap { position: relative; z-index: 1; }
.hero__text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-8) var(--space-6) var(--space-8) 0;
}
@media (min-width: 769px) {
  /* PCでは.hero__text自体は左寄せにする */
  .hero__text { align-items: flex-start; text-align: left; }
  /* 見出しは、ボタン列（.hero__actions）と同じ幅・同じ左端にして、見出しの中で
     テキストを中央寄せにする。これにより見出しの左右中心とボタン列の左右中心が
     一致する（ボタン列の幅を変えたらここもあわせて変えること） */
  .hero__tagline { width: 100%; max-width: 480px; text-align: center; }
}
.hero__tagline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
.hero__tagline-highlight { color: var(--navy); }
.hero__tagline-accent { color: var(--accent-deep); }
.hero__imagewrap {
  flex: 1 1 50%;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: var(--space-6) 0;
}
.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
}

@media (max-width: 768px) {
  .hero { flex-direction: column; min-height: auto; }
  .hero__text { flex: none; padding: var(--space-6) var(--space-4) var(--space-4); }
  .hero__imagewrap { flex: none; aspect-ratio: 4 / 3; padding: 0 var(--space-2) var(--space-3); overflow: hidden; }
  /* 家・病院など画面端の要素がもっとフレーム際まで来るよう、上下左右を少しズームしてカットする */
  .hero__image { transform: scale(1.15); }
  .hero__decor { width: 220px; height: 220px; right: -50px; top: -40px; }
  .hero__decor--2 { width: 170px; height: 170px; left: -50px; bottom: -40px; top: auto; right: auto; }
}

/* ---- ヒーロー内のクイックアクション（セミナー・相談・団体検索・自由検索） ---- */
.hero__actions {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-8);
  text-align: left;
}
.hero__action {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.hero__action:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
.hero__action--search { padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); }
.hero__action--search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-family: inherit;
  color: var(--ink);
  outline: none;
}
.hero__action--search button {
  flex: none;
  border: none;
  background: var(--accent);
  color: var(--surface);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.quicklink__icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quicklink__icon .icon { width: 20px; height: 20px; }

@media (min-width: 769px) {
  /* PCだけボタン列を少し大きくする（モバイルはサイズ据え置き）。
     幅を.hero__actionsのmax-widthで、.hero__taglineと合わせて広げる */
  .hero__actions { max-width: 480px; }
  .hero__action { padding: var(--space-4) var(--space-6); font-size: 1.05rem; }
  .hero__action--search { padding: var(--space-4) var(--space-3) var(--space-4) var(--space-6); }
  .hero__action--search input { font-size: 1.05rem; }
  .hero__action--search button { font-size: 0.85rem; padding: 0.65rem 1.3rem; }
  .quicklink__icon { width: 46px; height: 46px; }
  .quicklink__icon .icon { width: 23px; height: 23px; }
}

.quicklink__icon--confirm { background: var(--confirm); }
.quicklink__icon--accent { background: var(--accent); }
.quicklink__icon--pending { background: var(--pending); }
.quicklink__icon--ink { background: var(--ink); }
.quicklink__icon--online { background: var(--online); }

/* ---- ホーム下部：マガジン風フィード ---- */
.homefeed { padding-bottom: var(--space-8); }
.fullsection { margin-bottom: var(--space-8); }

/* カテゴリーごとに白／ベージュの帯を交互に敷く（全幅、コンテナは中の.containerで再度中央寄せ） */
.fullsection--white,
.fullsection--beige {
  margin-bottom: 0;
  padding: var(--space-8) 0;
}
.fullsection--white { background: var(--surface); }
.fullsection--beige { background: transparent; }

/* トピックスフィード */
.feed { display: flex; flex-direction: column; gap: var(--space-2); }
.feeditem {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink);
}
.feeditem:hover { box-shadow: var(--shadow-card-hover); }
.feeditem__date { flex: none; font-size: 0.8rem; color: var(--ink-faint); font-weight: 700; padding-top: 2px; }
.feeditem__body h3 { font-size: 0.98rem; margin: 0 0 var(--space-1); }
.feeditem__body p { font-size: 0.85rem; color: var(--ink-soft); margin: 0; }

/* セミナー */
.seminarcard__date { font-size: 0.78rem; color: var(--confirm); font-weight: 700; }

/* フォロー導線：ロゴの折り紙モチーフを最も大きく見せる、締めの一枚 */
.followband {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
  background: linear-gradient(135deg, var(--navy), var(--accent-deep));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
  color: #fff;
}
.followband__decor {
  position: absolute;
  right: -50px;
  top: 50%;
  width: 260px;
  height: 260px;
  transform: translateY(-50%);
  opacity: 0.14;
  pointer-events: none;
}
.followband > div { position: relative; z-index: 1; }
.followband h4 { margin: 0 0 var(--space-1); font-size: 1rem; }
.followband p { margin: 0; font-size: 0.85rem; opacity: 0.85; }
.snsrow { position: relative; z-index: 1; display: flex; gap: var(--space-2); }
.snsrow a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.snsrow a:hover { background: var(--highlight); color: var(--ink); border-color: var(--highlight); }

@media (max-width: 640px) {
  .followband { flex-direction: column; align-items: flex-start; }
  .followband__decor { display: none; }
}
