/* ============================================
   Wellbeing Commons — Main Stylesheet
   カラーパレット：
     Primary:   #6B9FA6（淡い青緑）
     Secondary: #E8A87C（温かいオレンジ）
     Accent:    #F4EDE4（クリームベージュ）
     Text:      #3D3D3D（深めのグレー）
     Light bg:  #FAFAF8（オフホワイト）
============================================ */

/* ── リセット & ベース ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #3D3D3D;
  background: #FAFAF8;
  line-height: 1.8;
}

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

a { color: inherit; text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ── タイポグラフィ ── */
h1, h2, h3, h4 {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  font-weight: 400;
}

/* ── コンテナ ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ヘッダー ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #EAE4DC;
  padding: 14px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #6B9FA6;
  letter-spacing: .05em;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: .85rem;
  font-weight: 500;
  color: #555;
  position: relative;
  padding-bottom: 2px;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: #6B9FA6;
  transition: width .25s;
}
.site-nav a:hover::after { width: 100%; }

.nav-cta {
  background: #6B9FA6;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: #5a8e95 !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #3D3D3D;
  border-radius: 2px;
  transition: .3s;
}

/* ── ヒーロー ── */
.hero {
  padding: 120px 0 96px;
  background: linear-gradient(145deg, #EEF6F7 0%, #FBF4EE 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(107,159,166,.08);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(232,168,124,.07);
}

.hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #6B9FA6;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #5A6E70;
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 2;
  letter-spacing: .06em;
}

.hero p {
  font-size: 1.05rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  background: #6B9FA6;
  color: #fff;
  padding: 14px 36px;
  border-radius: 32px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(107,159,166,.3);
}
.btn-primary:hover {
  background: #5a8e95;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107,159,166,.35);
  opacity: 1;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #6B9FA6;
  padding: 13px 36px;
  border-radius: 32px;
  border: 1.5px solid #6B9FA6;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  transition: all .2s;
}
.btn-secondary:hover {
  background: rgba(107,159,166,.08);
  transform: translateY(-2px);
  opacity: 1;
}

/* ── セクション共通 ── */
.section { padding: 96px 0; }
.section-alt { background: #F2F8F9; }
.section-warm { background: #FBF4EE; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6B9FA6;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #2E2E2E;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: #777;
  max-width: 560px;
  line-height: 1.9;
}

/* ── グリッド ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }

/* ── カード ── */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0,0,0,.05);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,.09); }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(107,159,166,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.card h3 { font-size: 1.1rem; margin-bottom: 12px; color: #2E2E2E; }
.card p { font-size: .9rem; color: #666; line-height: 1.8; }

/* ── 事例カード ── */
.case-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,.1); }

.case-card-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(107,159,166,.12);
  color: #6B9FA6;
  margin-bottom: 16px;
}

.case-card-body { padding: 32px; flex: 1; }
.case-card-body h3 { font-size: 1.15rem; margin-bottom: 12px; }
.case-card-body p { font-size: .88rem; color: #666; line-height: 1.8; }

.case-card-footer {
  padding: 20px 32px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: #888;
}

.case-link {
  color: #6B9FA6;
  font-weight: 600;
  font-size: .85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.case-link::after { content: '→'; transition: transform .2s; }
.case-link:hover::after { transform: translateX(4px); }
.case-link:hover { opacity: 1; color: #5a8e95; }

/* ── FAQ ── */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid #E8E0D6;
  padding: 20px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  color: #2E2E2E;
  line-height: 1.6;
}

.faq-toggle {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(107,159,166,.12);
  color: #6B9FA6;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  font-weight: 300;
  transition: background .2s, transform .3s;
}
.faq-item.open .faq-toggle { background: #6B9FA6; color: #fff; transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  font-size: .9rem;
  color: #666;
  line-height: 1.9;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding-top: 14px;
}

/* ── フッター ── */
.site-footer {
  background: #2A3B3D;
  color: #C0CCCE;
  padding: 64px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo { color: #8EC5CB; }
.footer-brand p { font-size: .85rem; margin-top: 16px; line-height: 1.9; color: #98ABAD; }

.footer-nav h4 {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8EC5CB;
  margin-bottom: 16px;
}
.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 10px; }
.footer-nav a { font-size: .85rem; color: #98ABAD; transition: color .2s; }
.footer-nav a:hover { color: #fff; opacity: 1; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .78rem;
  color: #6A8285;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #6A8285; }
.footer-bottom a:hover { color: #8EC5CB; opacity: 1; }

/* ── アニメーション ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── レスポンシブ ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: #FAFAF8;
    padding: 20px 24px;
    border-bottom: 1px solid #EAE4DC;
    gap: 16px;
    z-index: 99;
  }
  .hamburger { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
}


/* ============================================
   Contact & Privacy — 追加スタイル
============================================ */

/* ── ページヒーロー（contact / privacy 共通） ── */
.page-hero {
  padding: 60px 0 60px;
  background: linear-gradient(145deg, #EEF6F7 0%, #FBF4EE 100%);
  text-align: center;
}

.page-hero .section-label { margin-bottom: 14px; }

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #2E2E2E;
  margin-bottom: 20px;
  line-height: 1.4;
}

.page-hero p {
  font-size: 1rem;
  color: #777;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ── お問い合わせフォームセクション ── */
.contact-section {
  padding: 80px 0 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

/* 左カラム：案内テキスト */
.contact-info h2 {
  font-size: 1.4rem;
  color: #2E2E2E;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: .9rem;
  color: #666;
  line-height: 1.9;
  margin-bottom: 32px;
}

.contact-note-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-note-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-note-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(107,159,166,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

.contact-note-text {
  font-size: .85rem;
  color: #555;
  line-height: 1.7;
  padding-top: 6px;
}

.contact-note-text strong {
  display: block;
  color: #2E2E2E;
  font-weight: 600;
  margin-bottom: 2px;
}

/* 右カラム：フォーム */
.contact-form-wrap {
  background: #fff;
  border-radius: 20px;
  padding: 48px 44px;
  box-shadow: 0 4px 32px rgba(0,0,0,.06);
}

.form-group {
  margin-bottom: 28px;
}

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #2E2E2E;
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.form-required {
  display: inline-block;
  font-size: .72rem;
  color: #fff;
  background: #E87C7C;
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
  vertical-align: middle;
}

.form-optional {
  display: inline-block;
  font-size: .72rem;
  color: #6B9FA6;
  background: rgba(107,159,166,.12);
  padding: 2px 7px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 600;
  vertical-align: middle;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #DDD8D0;
  border-radius: 10px;
  font-size: .92rem;
  font-family: 'Noto Sans JP', sans-serif;
  color: #3D3D3D;
  background: #FAFAF8;
  transition: border-color .2s, box-shadow .2s;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: #6B9FA6;
  box-shadow: 0 0 0 3px rgba(107,159,166,.15);
  background: #fff;
}

.form-control::placeholder { color: #B0A99E; }

textarea.form-control {
  resize: vertical;
  min-height: 140px;
  line-height: 1.8;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B9FA6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-hint {
  font-size: .78rem;
  color: #999;
  margin-top: 6px;
  line-height: 1.6;
}

/* チェックボックス */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.form-check input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: #6B9FA6;
  cursor: pointer;
}

.form-check label {
  font-size: .85rem;
  color: #555;
  line-height: 1.7;
  cursor: pointer;
}

.form-check a {
  color: #6B9FA6;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 送信ボタン */
.btn-submit {
  width: 100%;
  padding: 16px 0;
  background: #6B9FA6;
  color: #fff;
  border: none;
  border-radius: 32px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(107,159,166,.35);
}

.btn-submit:hover {
  background: #5a8e95;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(107,159,166,.4);
}

.btn-submit:disabled {
  background: #b5cfd3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 送信完了メッセージ */
.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success.show { display: block; }

.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(107,159,166,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
}

.form-success h3 {
  font-size: 1.3rem;
  color: #2E2E2E;
  margin-bottom: 12px;
}

.form-success p {
  font-size: .9rem;
  color: #777;
  line-height: 1.9;
}

/* エラーメッセージ */
.field-error {
  font-size: .78rem;
  color: #E87C7C;
  margin-top: 6px;
  display: none;
}
.form-group.has-error .form-control { border-color: #E87C7C; }
.form-group.has-error .field-error { display: block; }

/* レスポンシブ：contact */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form-wrap { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .contact-form-wrap { padding: 28px 20px; border-radius: 14px; }
  .page-hero { padding: 48px 0 40px; }
}


/* ── プライバシーポリシーページ ── */
.privacy-section {
  padding: 72px 0 96px;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
}

.privacy-intro {
  font-size: .95rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid #EAE4DC;
}

.privacy-updated {
  display: inline-block;
  font-size: .8rem;
  color: #999;
  margin-top: 12px;
}

.privacy-article {
  margin-bottom: 48px;
}

.privacy-article h2 {
  font-size: 1.1rem;
  color: #2E2E2E;
  margin-bottom: 16px;
  padding-left: 16px;
  border-left: 3px solid #6B9FA6;
}

.privacy-article p {
  font-size: .9rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 12px;
}

.privacy-article ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.privacy-article ul li {
  font-size: .9rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 6px;
}

.privacy-contact-box {
  background: #F2F8F9;
  border-radius: 14px;
  padding: 28px 32px;
  margin-top: 48px;
}

.privacy-contact-box h3 {
  font-size: 1rem;
  color: #2E2E2E;
  margin-bottom: 12px;
}

.privacy-contact-box p {
  font-size: .88rem;
  color: #666;
  line-height: 1.9;
}

@media (max-width: 640px) {
  .privacy-article h2 { font-size: 1rem; }
  .privacy-contact-box { padding: 22px 20px; }
}
