/* グループにぃま — static site
   Mobile first. Colors echo the previous site (cream, peach, coral)
   with darker text so Japanese copy stays easy to read. */

:root {
  --cream: #f9eee5;
  --cream-deep: #f5dcd2;
  --paper: #fffdfb;
  --pink: #f0c5b7;
  --pink-strong: #dc836d;
  --coral: #a8473a;
  --coral-deep: #8f3a2b;
  --ink: #2b2422;
  --ink-soft: #4a403c;
  --line: #f0c5b7;
  --focus: #1a4f86;
  --warn-bg: #fff6dc;
  --warn-ink: #3f2e0b;
  --shadow: 0 10px 30px rgba(220, 131, 109, 0.14);
  --header-h: 4.25rem;
  --wrap: 68rem;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 5.25rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", YuGothic, "Hiragino Sans", Meiryo, sans-serif;
  font-size: 1.125rem;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--coral-deep);
}

a:hover {
  color: var(--coral);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.55rem 1rem;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-radius: 0.5rem;
  transform: translateY(-200%);
  z-index: 20;
}

.skip:focus {
  transform: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: calc(100% - 2rem);
  max-width: var(--wrap);
  width: min(var(--wrap), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(240, 197, 183, 0.97);
  border-bottom: 2px solid var(--pink-strong);
}

.header-inner {
  width: calc(100% - 2rem);
  max-width: var(--wrap);
  width: min(var(--wrap), calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--coral-deep);
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.brand:hover {
  color: #6e2c20;
}

/* ヘッダーのInstagramアイコン（全ページ共通） */
.brand {
  margin-right: auto;
}

.header-ig {
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  flex: none;
}

.header-ig img {
  display: block;
  width: 1.9rem;
  height: 1.9rem;
}

.header-ig:hover {
  background: var(--paper);
}

.header-ig:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.insta-icon {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.button.large.insta-button {
  gap: 0;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-inline: 1rem;
  font-size: 1.1rem;
  font-size: clamp(0.95rem, 4.3vw, 1.25rem);
}

.insta-button .insta-icon {
  margin-right: 0.6rem;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-button {
  margin-left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 6.5rem;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--pink-strong);
  border-radius: 999px;
  color: var(--coral-deep);
  font-weight: 700;
  font-size: 1rem;
  background: var(--paper);
  cursor: pointer;
}

.nav-button .label-close {
  display: none;
}

.nav-toggle:checked + .nav-button .label-open {
  display: none;
}

.nav-toggle:checked + .nav-button .label-close {
  display: inline;
}

.nav-toggle:focus-visible + .nav-button {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
}

.nav-toggle:checked ~ .site-nav {
  display: block;
}

.site-nav a {
  display: block;
  padding: 0.75rem 0.25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

.site-nav a[aria-current="page"] {
  color: var(--coral);
}

.site-nav a:hover {
  color: var(--coral);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 460px;
  max-width: 60rem;
  margin: 1.25rem auto 1rem;
  padding: 1.5rem 1.25rem;
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
  background: #6b4a3f;
  color: #fff;
  text-align: left;
}

/* 写真は背景として全面に敷く（altつきの img のまま） */
.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: -2;
  margin: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 70%;
}

/* 文字の下だけ濃い茶色のベール（白文字の読みやすさ用）。写真の上側・右側は見える */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg,
    rgba(58, 36, 30, 0.82) 0%,
    rgba(58, 36, 30, 0.76) 58%,
    rgba(58, 36, 30, 0) 100%);
}

.hero-text {
  width: 100%;
  max-width: 30rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 2.1rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 6px rgba(40, 22, 18, 0.5);
}

.lead {
  margin: 0 auto 1.25rem;
  max-width: 34rem;
  color: #5f5853;
  font-size: 1.15rem;
  line-height: 1.8;
}

.hero .lead {
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: 1.05rem;
  text-shadow: 0 1px 4px rgba(40, 22, 18, 0.5);
}

.hero .lead + p {
  margin: 0;
}

.hero .button {
  background: #b5503f;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(40, 22, 18, 0.3);
}

.hero .button:hover {
  background: #8f3a2b;
  color: #fff;
}

.page-hero {
  padding: 2rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.85rem;
  line-height: 1.35;
  color: var(--coral-deep);
}

.page-logo {
  width: 70%;
  max-width: 16rem;
  width: min(16rem, 70%);
}

.section {
  padding: 1.25rem 0 0.5rem;
}

.section h2,
.panel h2,
.band h2 {
  margin: 0 0 0.85rem;
  font-size: 1.55rem;
  line-height: 1.45;
  color: var(--coral-deep);
}

.panel,
.card,
.voice,
.step,
.bank {
  background: var(--paper);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.35rem 1.2rem 1.2rem;
  margin: 0.5rem 0 1.25rem;
}

.prose p,
.step p,
.voice p,
.profile-copy p {
  margin: 0 0 1rem;
}

.prose p:last-child,
.step p:last-child,
.profile-copy p:last-child {
  margin-bottom: 0;
}

.checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checks li {
  position: relative;
  padding: 0.85rem 0 0.85rem 2.5rem;
  border-top: 1px solid var(--line);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--pink-strong);
}

.checks li::after {
  content: "";
  position: absolute;
  left: 0.48rem;
  top: 1.28rem;
  width: 0.32rem;
  height: 0.6rem;
  border: solid #fff;
  border-width: 0 0.16rem 0.16rem 0;
  transform: rotate(45deg);
}

.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.step {
  padding: 1rem;
}

.step img {
  width: 100%;
  max-width: 22rem;
  width: min(100%, 22rem);
  margin: 0 auto 0.75rem;
}

.step h3 {
  margin: 0 0 0.45rem;
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--coral-deep);
}

.num {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-right: 0.4rem;
  border-radius: 50%;
  background: var(--pink-strong);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  vertical-align: 0.1rem;
}

.free {
  margin: 1.5rem 0;
  padding: 1.6rem 1.3rem;
  border-radius: 1.25rem;
  background: var(--pink);
  color: #4a1d14;
  text-align: center;
}

.free p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
}

.free strong {
  display: inline-block;
  margin: 0 0.15rem;
  font-size: 1.7rem;
  letter-spacing: 0.08em;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--pink-strong);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--pink-strong);
  color: var(--ink);
}

.button.large {
  width: 100%;
  min-height: 4rem;
  padding: 1rem 1.5rem;
  font-size: 1.25rem;
}

.insta-section .actions {
  max-width: 32rem;
}

.sub-link {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.button.secondary {
  background: transparent;
  color: var(--coral-deep);
  border: 2px solid var(--pink-strong);
}

.button.secondary:hover {
  background: var(--cream-deep);
  color: var(--coral-deep);
}

.note {
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--warn-bg);
  color: var(--warn-ink);
  border-radius: 0.85rem;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.contact-list li + li {
  margin-top: 0.7rem;
}

.voices {
  display: grid;
  gap: 1rem;
}

.voice {
  margin: 0;
  padding: 1rem 1rem 0.4rem;
}

.voice img {
  width: 100%;
  max-width: 16rem;
  width: min(100%, 16rem);
  margin: 0 auto 0.5rem;
}

.voice figcaption {
  font-weight: 700;
  color: var(--coral-deep);
}

.voice .meta {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.voice blockquote {
  margin: 0;
  padding: 0;
}

.voice blockquote p {
  margin: 0 0 1rem;
}

.fb-wrap {
  max-width: 32rem;
  margin-top: 1rem;
  background: var(--paper);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.fb-wrap iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
  min-height: 28rem;
}

.band {
  margin: 1.5rem 0;
  padding: 1.5rem 1.25rem;
  border-radius: 1.25rem;
  background: var(--cream-deep);
}

.profile {
  display: grid;
  gap: 1rem;
}

.profile figure {
  margin: 0;
}

.profile img {
  width: 10.8rem;
  height: auto;
  border-radius: 1rem;
  background: var(--cream-deep);
}

.profile figcaption {
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--coral-deep);
}

.bio {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bio li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
}

.news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.news time {
  display: block;
  font-weight: 700;
  color: var(--coral);
}

.bank {
  margin: 1rem 0 1.25rem;
  padding: 1.2rem 1.1rem 0.6rem;
  border: 3px solid var(--pink-strong);
}

.bank h2 {
  margin-bottom: 0.4rem;
}

.bank-list {
  margin: 0.4rem 0 0.6rem;
}

.bank-list div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}

.bank-list dt {
  font-weight: 700;
}

.bank-list dd {
  margin: 0;
  font-weight: 700;
  color: var(--coral-deep);
}

.site-footer {
  margin-top: 2rem;
  padding: 1.75rem 0 2.25rem;
  background: #3c312d;
  color: #fff8f4;
}

.site-footer a {
  color: #fff8f4;
}

.site-footer a:hover {
  color: #f0c5b7;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.site-footer h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: #f0c5b7;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0.2rem 0;
}

.copyright {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: #f3e4d8;
}

.redirect {
  padding: 3rem 1.25rem;
  text-align: center;
}

/* スマホ幅：写真は切り抜かず横長のまま全体を見せ、文字は写真の下（同じカードの中）に置く */
@media (max-width: 719px) {
  .hero {
    display: block;
    min-height: 0;
    padding: 0;
    background: #3a241e;
  }

  .hero::before {
    display: none;
  }

  .hero-photo {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    z-index: auto;
  }

  .hero-photo img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* 写真の下端をカードの色へなじませる */
  .hero-photo::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 35%;
    background: linear-gradient(180deg, rgba(58, 36, 30, 0) 0%, #3a241e 100%);
  }

  .hero-text {
    max-width: none;
    padding: 0.75rem 1.25rem 1.5rem;
  }
}

/* スマホ幅（グリッド対応ブラウザ）：PC版と同じく写真の上にロゴと問い合わせボタンだけを重ね、
   長い説明文は写真の直下（同じカードの中）に置く。非対応の古いブラウザは上の「写真の下に文字」のまま */
@supports (display: grid) and (display: contents) {
  @media (max-width: 719px) {
    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: minmax(0, 1fr) auto auto auto;
    }

    .hero-text {
      display: contents;
    }

    .hero-photo {
      grid-column: 1;
      grid-row: 1 / 4;
    }

    .hero-photo img {
      aspect-ratio: 4 / 3;
      object-fit: cover;
      object-position: 45% 50%;
    }

    /* 写真の下側に薄い暗めのグラデーション（下端はカードの色になじむ） */
    .hero-photo::after {
      height: 62%;
      background: linear-gradient(0deg,
        #3a241e 0%,
        rgba(58, 36, 30, 0.7) 28%,
        rgba(58, 36, 30, 0.32) 58%,
        rgba(58, 36, 30, 0) 100%);
    }

    .hero h1 {
      grid-column: 1;
      grid-row: 2;
      position: relative;
      z-index: 1;
      margin: 0 1rem 0.3rem;
      font-size: 1.3rem;
      line-height: 1.25;
    }

    .hero .lead + p {
      grid-column: 1;
      grid-row: 3;
      position: relative;
      z-index: 1;
      justify-self: start;
      margin: 0 1rem 0.8rem;
    }

    .hero .button {
      min-height: 2.6rem;
      padding: 0.35rem 1.1rem;
      font-size: 0.85rem;
    }

    .hero .lead {
      grid-column: 1;
      grid-row: 4;
      margin: 0;
      padding: 0.25rem 1.25rem 1.4rem;
      font-size: 1rem;
      line-height: 1.75;
    }
  }
}

@media (min-width: 720px) {
  .hero {
    min-height: 440px;
    align-items: center;
    padding: 2.5rem 3rem;
  }

  /* パソコン幅：左に濃いベール、右は写真がそのまま見える */
  .hero::before {
    background: linear-gradient(90deg,
      rgba(58, 36, 30, 0.8) 0%,
      rgba(58, 36, 30, 0.74) 58%,
      rgba(58, 36, 30, 0) 92%);
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero .lead {
    font-size: 1.15rem;
  }

  .step {
    display: grid;
    grid-template-columns: 14rem 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
  }

  .step img {
    margin: 0;
    width: 100%;
  }

  .voices {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .profile {
    grid-template-columns: 11.5rem 1fr;
    align-items: start;
  }

  .actions.row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .actions.row .button {
    width: auto;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .nav-button {
    display: none;
  }

  /* デスクトップ幅では開閉チェックボックスをTabキーの対象にしない */
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    position: static;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 0.15rem 0.35rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .header-ig {
    order: 3;
  }

  .site-nav {
    margin-left: 1rem;
  }

  .site-nav a {
    border: 0;
    padding: 0.4rem 0.55rem;
    font-size: 1rem;
    border-radius: 999px;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: var(--cream-deep);
    color: var(--coral-deep);
  }

  .section h2,
  .panel h2,
  .band h2,
  .page-hero h1 {
    font-size: 1.9rem;
  }
}

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

/* お問い合わせフォーム（Googleフォーム埋め込み） */
.form-embed {
  margin-top: 1.25rem;
  background: var(--paper);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.form-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 1500px;
  border: 0;
}

.form-fallback {
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .form-embed iframe { height: 1800px; }
}

/* 中ほどの帯：左に文字（ぼかした写真＋うすいベール）、右に写真。スマホは縦に積む */
.band.split {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0;
  overflow: hidden;
  background: var(--cream);
}

.split-text {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.25rem 1.5rem;
  text-align: center;
}

.split-text::before {
  content: "";
  position: absolute;
  top: -2rem;
  right: -2rem;
  bottom: -2rem;
  left: -2rem;
  inset: -2rem;
  z-index: -2;
  background: url("../images/middle-20261004.jpg") center / cover no-repeat;
  filter: blur(18px);
}

.split-text::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: -1;
  background: rgba(255, 250, 246, 0.88);
}

.band.split h2 {
  margin: 0 0 1rem;
  color: #3a3330;
}

.band.split .split-text p {
  margin: 0 0 0.9rem;
  color: var(--coral-deep);
  font-weight: 700;
}

.band.split .actions {
  width: 100%;
  max-width: 24rem;
  margin-top: 0.6rem;
}

.band.split .button {
  width: 100%;
  border-radius: 0.25rem;
  border: 2px solid var(--coral-deep);
  background: rgba(255, 255, 255, 0.4);
  color: var(--coral-deep);
}

.band.split .button:hover {
  background: var(--paper);
  color: var(--coral-deep);
}

.split-photo {
  margin: 0;
  background: var(--cream-deep);
}

.split-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* aspect-ratio 未対応の古いブラウザ用（新しいブラウザには影響しない） */
@supports not (aspect-ratio: 1) {
  .split-photo img {
    height: 18rem;
  }
}

@media (min-width: 720px) {
  .band.split {
    grid-template-columns: 1fr 1fr;
    min-height: 26rem;
  }

  .split-text {
    padding: 2.5rem 2rem;
  }

  .split-photo img {
    height: 100%;
    aspect-ratio: auto;
  }
}

@supports not (aspect-ratio: 1) {
  @media (min-width: 720px) {
    .split-photo {
      position: relative;
      min-height: 26rem;
    }

    .split-photo img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }
  }
}
