/* reset & base - 元デザインの色 */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }

:root {
  --color-bg: #f8f0ea;
  --color-primary: #a82d42;
  --color-text-body: #333;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* header - 透明・ロゴ左・右にインスタ・会社概要・問い合わせボタン */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 40px; width: auto; object-fit: contain; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-nav a { font-size: 14px; font-weight: 500; color: var(--color-primary); }
.header-nav a[href*="about"] { font-weight: 700; }
.header-nav a:hover { opacity: 0.8; }
.header-nav .icon-instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}
.header-nav .icon-instagram:hover { opacity: 0.8; }
.header-nav .btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.header-nav .btn-contact:hover { opacity: 0.9; }

/* SP: インスタ・ハンバーガー 70x70 ボタン */
.header-btn-sp { display: none; }
@media screen and (max-width: 840px) {
  .header-inner { position: relative; }
  .header-nav-pc { display: none !important; }
  .header-btn-sp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    padding: 12px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
  }
  .header-btn-insta {
    right: 70px;
    background: #fff;
    color: var(--color-primary);
  }
  .header-btn-insta:hover { opacity: 0.9; }
  .header-btn-hamburger {
    right: 0;
    background: var(--color-primary);
    color: #fff;
  }
  .header-btn-hamburger:hover { opacity: 0.9; }
}

/* ナビモーダル - primary背景・白文字、問い合わせは白背景・primary文字 */
.nav-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}
.nav-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}
.nav-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.16);
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-modal.is-open .nav-modal-overlay { opacity: 1; }
.nav-modal-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: var(--color-primary);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}
.nav-modal.is-open .nav-modal-panel { transform: translateX(0); }
.nav-modal-header {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
}
.nav-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.nav-modal-close:hover { opacity: 0.8; }
.nav-modal-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 8px;
}
.nav-modal-body a {
  color: #fff;
  font-size: 16px;
  padding: 12px 0;
}
.nav-modal-body a:hover { opacity: 0.8; }
.nav-modal-btn-contact {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background: #fff;
  color: var(--color-primary) !important;
  font-weight: 600;
  border-radius: 999px;
}
.nav-modal-btn-contact:hover { opacity: 0.9; }

/* FV - 背景 back.webp、中央 fv.webp */
.fv {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000 center/cover no-repeat;
}
.fv-bg {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
}
.fv-bg img { width: 100%; height: 100%; object-fit: cover; }
.fv-content {
  position: relative;
  z-index: 1;
  text-align: center;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fv-content img {
  margin: 0 auto;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  width: auto;
  object-fit: contain;
}

/* SP: fv.webp を width:100%、高さは画像に合わせて背景も連動 */
@media screen and (max-width: 840px) {
  .fv {
    min-height: 0;
    height: auto;
    display: block;
  }
  .fv-bg {
    position: absolute;
    inset: 0;
  }
  .fv-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .fv-content {
    position: relative;
    height: auto;
    display: block;
  }
  .fv-content img {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
  }
}

main { padding-top: 0; flex: 1; }

/* 1ブロック目: 白背景・primary文字色 */
.section-message {
  background: #fff;
  padding: 80px 0;
}
.section-message .section-title,
.section-message p { color: var(--color-primary); }
.section-message .section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 0.2em;
}
@media screen and (max-width: 840px) {
  .section-message .section-title { letter-spacing: normal; }
}
.section-message .section-body { max-width: 720px; margin: 0 auto; }
.section-message p { margin: 0; line-height: 1.8; }

/* 2ブロック目: 背景 #f8f0ea・primary文字色 */
.section-members {
  background: #f8f0ea;
  padding: 80px 0;
}
.section-members .section-title,
.section-members .section-lead,
.section-members .member-role,
.section-members .member-name { color: var(--color-primary); }
.section-members .section-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}
.section-members .section-lead {
  text-align: center;
  margin: 0;
  line-height: 1.8;
}
.section-body { max-width: 720px; margin: 0 auto; }

/* メンバーカード */
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  margin-top: 24px;
}
.member-card img {
  width: 100%;
  aspect-ratio: 704 / 400;
  object-fit: cover;
}
.member-card-body { padding: 24px 0 0; }
.member-role { font-size: 14px; margin: 0 0 4px; }
.member-name { font-size: 20px; font-weight: 700; margin: 0 0 12px; }
.member-bio { font-size: 14px; line-height: 1.8; color: var(--color-primary); margin: 0; }

.page-title { font-size: 32px; font-weight: 700; margin-bottom: 32px; padding-top: 24px; color: var(--color-primary); }

/* about ページ - 白背景・文字黒、リストは下線のみ */
.section-about {
  background: #fff;
  padding-bottom: 80px;
  color: #000;
}
.section-about .page-title { color: #000; }
.section-about .about-list { width: 100%; }
.section-about .about-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  border-bottom: 1px solid #EEEEEE;
  padding-bottom: 12px;
  width: 100%;
}
.section-about .about-list-item:not(:first-child) { padding-top: 12px; }
.section-about .about-list-label {
  margin: 0;
  font-weight: 500;
  color: #000;
  flex: 0 0 120px;
}
.section-about .about-list-value {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: #000;
  line-height: 1.6;
}

/* privacy ページ - 白背景・文字黒 */
.section-privacy {
  background: #fff;
  padding-bottom: 80px;
  color: #000;
}
.section-privacy .page-title { color: #000; }
.section-privacy .privacy-body { width: 100%; }
.section-privacy .privacy-intro {
  margin: 0 0 24px;
  line-height: 1.8;
  color: #000;
}
.section-privacy .privacy-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
  color: #000;
}
.section-privacy .privacy-body h3:first-of-type { margin-top: 0; }
.section-privacy .privacy-body p {
  margin: 0 0 16px;
  line-height: 1.8;
  color: #000;
}
.section-privacy .privacy-body p:last-child { margin-bottom: 0; }
.section-privacy .privacy-body a { color: #000; text-decoration: underline; }

/* contact ページ - 白背景・文字黒・フォーム */
.section-contact {
  background: #fff;
  padding-bottom: 80px;
  color: #000;
}
.section-contact .page-title { color: #000; }
.contact-form { max-width: 560px; }
.contact-field { margin-bottom: 24px; }
.contact-field-checkbox { margin-bottom: 32px; }
.contact-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 8px;
  color: #000;
}
.contact-required { color: #c00; }
.contact-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  color: #000;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
.contact-input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.contact-input::placeholder { color: #999; }
.contact-textarea { min-height: 160px; resize: vertical; }
.contact-error {
  margin: 4px 0 0;
  font-size: 13px;
  color: #c00;
  display: none;
}
.contact-error:empty { display: none !important; }
.contact-error.is-visible { display: block; }
.contact-checkbox-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
  font-weight: 400;
  color: #000;
  cursor: pointer;
}
.contact-checkbox { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.contact-link { color: var(--color-primary); text-decoration: underline; }
.contact-link:hover { opacity: 0.8; }
.contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 40px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: 999px;
  cursor: pointer;
}
.contact-submit:hover:not(:disabled) { opacity: 0.9; }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* お問い合わせ完了ポップアップ - thanks.webp 背景・下部グラデーション */
.contact-done-popup {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}
.contact-done-popup.is-open {
  pointer-events: auto;
  visibility: visible;
}
.contact-done-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}
.contact-done-popup.is-open .contact-done-overlay { opacity: 1; }
.contact-done-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  max-width: calc(100% - 32px);
  height: 315px;
  border-radius: 10px;
  background: url("../img/thanks.webp") center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}
.contact-done-popup.is-open .contact-done-panel { opacity: 1; }
.contact-done-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 12px 12px 0 0;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}
.contact-done-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
}
.contact-done-close:hover { background: rgba(0, 0, 0, 0.5); }
.contact-done-close svg { display: block; }
.contact-done-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(168, 45, 66, 0) 0%, var(--color-primary) 66%);
  pointer-events: none;
}
.contact-done-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 30px;
  text-align: center;
}
.contact-done-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}
.contact-done-lead {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
}
.contact-done-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

/* footer - 背景 #28304a、文字白 */
.footer {
  background: #28304a;
  padding: 48px 24px;
  font-size: 14px;
  color: #fff;
  text-align: center;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-bottom: 40px; }
.footer-links a { color: #fff; }
.footer-links a:hover { opacity: 0.8; }
.footer-copy { margin: 0; font-size: 12px; color: rgba(255,255,255,0.8); text-align: center; }
.footer > p { margin: 0; font-size: 12px; color: rgba(255,255,255,0.8); text-align: center; }
