/* ========================================
   からだ整体院 やすらぎ — style.css
   HP作成.AIポートフォリオ用デモサイト
   ======================================== */

/* --------------------------------------------------
   1. Google Fonts — HTMLの<link>タグで読み込み済み（@importは削除済み）
-------------------------------------------------- */

/* --------------------------------------------------
   2. CSS Variables (Design Tokens)
-------------------------------------------------- */
:root {
  /* Colors */
  --color-main: #5C9E7A;
  --color-sub: #F4A460;
  --color-accent: #E8F5EE;
  --color-base: #FAFAF8;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #DDD8D0;
  --color-white: #FFFFFF;
  --color-footer-bg: #333333;

  /* Typography */
  --font-base: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  --font-en: 'Poppins', 'Inter', sans-serif;

  /* Font sizes */
  --fs-xs: 13px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: 22px;
  --fs-2xl: 28px;
  --fs-3xl: 40px;

  /* Spacing */
  --section-padding-pc: 80px;
  --section-padding-sp: 60px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition: 0.2s ease;
}

/* --------------------------------------------------
   3. CSS Reset
-------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-base);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* object-fit は各imgタグのインラインstyleで個別に指定 */
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: var(--fs-base);
}

/* --------------------------------------------------
   4. Container
-------------------------------------------------- */
.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

/* --------------------------------------------------
   5. Typography Utilities
-------------------------------------------------- */
.section__label {
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--color-main);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-top: 4px;
  line-height: 1.4;
}

.section__subtitle {
  font-size: var(--fs-base);
  color: var(--color-text-light);
  margin-top: 12px;
  line-height: 1.8;
}

/* インラインスタイル代替クラス（R-02対応） */
.section__subtitle--mb {
  margin-bottom: 28px;
}

.section__subtitle--mt {
  margin-top: 32px;
}

/* 口コミ個人差注記（M-10対応） */
.section__subtitle--note {
  margin-top: 12px;
  font-size: 12px;
}

/* フォーム内チェックボックスリンク（R-02対応） */
.form-checkbox a,
.form-checkbox__link {
  color: var(--color-main);
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------
   6. Section Layout
-------------------------------------------------- */
.section {
  padding: var(--section-padding-sp) 0;
}

.section--accent {
  background-color: var(--color-accent);
}

.section--white {
  background-color: var(--color-white);
}

.section--base {
  background-color: var(--color-base);
}

.section__header {
  margin-bottom: 40px;
}

/* --------------------------------------------------
   7. Buttons
-------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition);
  line-height: 1;
  text-align: center;
}

.btn--primary {
  background-color: var(--color-sub);
  color: var(--color-white);
}

.btn--primary:hover {
  opacity: 0.85;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-main);
  border: 2px solid var(--color-main);
}

.btn--outline:hover {
  background-color: var(--color-main);
  color: var(--color-white);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-main);
}

.btn--white:hover {
  opacity: 0.85;
}

.btn--lg {
  padding: 18px 40px;
  font-size: var(--fs-md);
}

/* --------------------------------------------------
   8. Header
-------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header__logo-main {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: 0.05em;
}

.header__logo-sub {
  font-family: var(--font-en);
  font-size: 10px;
  color: var(--color-text-light);
  letter-spacing: 0.1em;
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav-item a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition);
  position: relative;
}

.header__nav-item a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-main);
  transition: width var(--transition);
}

.header__nav-item a:hover {
  color: var(--color-main);
}

.header__nav-item a:hover::after {
  width: 100%;
}

.header__nav-item--cta a {
  background-color: var(--color-sub);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.header__nav-item--cta a::after {
  display: none;
}

.header__nav-item--cta a:hover {
  color: var(--color-white);
  opacity: 0.85;
}

/* Hamburger Button */
.header__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  gap: 5px;
}

.header__hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition), opacity var(--transition);
  border-radius: 2px;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-active .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-active .header__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer Menu */
.header__drawer {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  height: calc(100vh - 60px);
  background-color: var(--color-white);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.header__drawer.is-open {
  transform: translateX(0);
}

.header__drawer-nav {
  padding: 32px 24px;
}

.header__drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header__drawer-item {
  border-bottom: 1px solid var(--color-border);
}

.header__drawer-item a {
  display: block;
  padding: 18px 0;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--color-text);
}

.header__drawer-cta {
  margin-top: 32px;
  text-align: center;
}

.header__drawer-cta .btn--primary {
  width: 100%;
  max-width: 280px;
  padding: 16px 32px;
}

/* --------------------------------------------------
   9. Footer
-------------------------------------------------- */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-white);
  padding: 48px 0 24px;
}

.footer__top {
  margin-bottom: 32px;
}

.footer__logo {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer__catch {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer__nav {
  margin-bottom: 32px;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__nav-item a {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition);
}

.footer__nav-item a:hover {
  color: var(--color-white);
}

.footer__info {
  margin-bottom: 32px;
}

.footer__info-item {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer__info-item strong {
  color: var(--color-white);
}

.footer__social {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  font-size: var(--fs-md);
  transition: background-color var(--transition);
}

.footer__social-link:hover {
  background-color: var(--color-main);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  text-align: center;
}

.footer__portfolio-note {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
}

.footer__copyright {
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

/* --------------------------------------------------
   10. Page Hero (inner pages)
-------------------------------------------------- */
.page-hero {
  background-color: var(--color-main);
  padding: 48px 0;
  text-align: center;
}

.page-hero__label {
  font-family: var(--font-en);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.page-hero__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

.page-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.page-hero__breadcrumb a:hover {
  color: var(--color-white);
}

.page-hero__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------
   11. Placeholder Images / Real Images
-------------------------------------------------- */
.img-placeholder {
  width: 100%;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Unsplash実画像共通 — object-fit は各imgタグのinline styleで個別指定 */

.img-placeholder--hero {
  height: 300px;
  background: linear-gradient(135deg, #7EC8A0 0%, #5C9E7A 40%, #4A8A65 100%);
  border-radius: 0;
}

.img-placeholder--staff {
  height: 240px;
  background: linear-gradient(135deg, #A8D5BC 0%, #7EC8A0 100%);
}

.img-placeholder--staff-lg {
  height: 320px;
  background: linear-gradient(135deg, #A8D5BC 0%, #5C9E7A 100%);
}

.img-placeholder--facility {
  height: 200px;
  background: linear-gradient(135deg, #C8E6D4 0%, #A8D5BC 100%);
}

.img-placeholder--map {
  height: 300px;
  background: linear-gradient(135deg, #D4EAE0 0%, #B8D9C8 100%);
  border-radius: var(--radius-md);
}

/* --------------------------------------------------
   12. Cards
-------------------------------------------------- */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

/* --------------------------------------------------
   13. Stars Rating
-------------------------------------------------- */
.stars {
  color: #F4A460;
  font-size: var(--fs-md);
  letter-spacing: 2px;
}

/* --------------------------------------------------
   14. Form Elements
-------------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-label .required {
  color: #E05252;
  margin-left: 4px;
  font-size: var(--fs-xs);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--fs-base);
  color: var(--color-text);
  background-color: var(--color-white);
  transition: border-color var(--transition);
  line-height: 1.6;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(92, 158, 122, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-radio-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.form-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: var(--fs-base);
}

.form-radio input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-main);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: var(--fs-sm);
  line-height: 1.6;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-main);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-note {
  font-size: var(--fs-xs);
  color: var(--color-text-light);
  margin-top: 4px;
}

.form-submit {
  text-align: center;
  margin-top: 32px;
}

.form-submit .btn {
  min-width: 200px;
}

/* --------------------------------------------------
   15. Accordion (FAQ)
-------------------------------------------------- */
.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background-color: var(--color-white);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  transition: background-color var(--transition);
  gap: 16px;
}

.accordion__trigger:hover {
  background-color: var(--color-accent);
}

.accordion__q-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--color-main);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-family: var(--font-en);
  flex-shrink: 0;
}

.accordion__trigger-text {
  flex: 1;
}

.accordion__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--color-main);
}

.accordion__item.is-active .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  display: none;
  padding: 0 24px 20px;
  background-color: var(--color-accent);
}

.accordion__content.is-open {
  display: block;
}

.accordion__a-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background-color: var(--color-sub);
  color: var(--color-white);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 700;
  font-family: var(--font-en);
  flex-shrink: 0;
  margin-right: 12px;
  vertical-align: middle;
}

.accordion__answer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-top: 16px;
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.8;
}

/* --------------------------------------------------
   16. CTA Section
-------------------------------------------------- */
.cta-section {
  background-color: var(--color-main);
  padding: 60px 0;
  text-align: center;
}

.cta-section__title {
  font-size: var(--fs-2xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.4;
}

.cta-section__text {
  font-size: var(--fs-base);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  line-height: 1.8;
}

/* --------------------------------------------------
   17. Price Table
-------------------------------------------------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.price-table thead th {
  background-color: var(--color-main);
  color: var(--color-white);
  padding: 14px 20px;
  font-size: var(--fs-base);
  font-weight: 700;
  text-align: left;
}

.price-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.price-table tbody tr:last-child {
  border-bottom: none;
}

.price-table tbody tr:hover {
  background-color: var(--color-accent);
}

.price-table tbody td {
  padding: 14px 20px;
  font-size: var(--fs-base);
  color: var(--color-text);
}

.price-table tbody tr.is-featured td {
  background-color: #FFF8F0;
  font-weight: 700;
}

.price-table__price {
  font-weight: 700;
  color: var(--color-sub);
}

.price-note {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-top: 16px;
  line-height: 1.8;
}

/* --------------------------------------------------
   18. Focus Visible Styles (M-09: アクセシビリティ)
-------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-main);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(92, 158, 122, 0.4);
}

/* フォームinputのfocus-visibleは既存スタイルを活用 */
.form-input:focus-visible,
.form-textarea:focus-visible,
.form-select:focus-visible {
  outline: none;
  border-color: var(--color-main);
  box-shadow: 0 0 0 3px rgba(92, 158, 122, 0.4);
}

/* --------------------------------------------------
   19. Overflow hidden body (drawer open)
-------------------------------------------------- */
body.drawer-open {
  overflow: hidden;
}

/* --------------------------------------------------
   19. Responsive — Tablet (768px+)
-------------------------------------------------- */
@media (min-width: 768px) {
  .section__title {
    font-size: var(--fs-2xl);
  }

  .page-hero {
    padding: 64px 0;
  }

  .page-hero__title {
    font-size: 32px;
  }

  .footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px 32px;
  }

  .img-placeholder--hero {
    height: 420px;
  }

  .img-placeholder--staff {
    height: 280px;
  }

  /* Unsplash実画像 — hero高さ */
  .hero__bg {
    height: 420px !important;
  }
}

/* --------------------------------------------------
   20. Responsive — PC (1024px+)
-------------------------------------------------- */
@media (min-width: 1024px) {
  .section {
    padding: var(--section-padding-pc) 0;
  }

  .header {
    height: 72px;
  }

  .header__drawer {
    display: none;
  }

  .header__hamburger {
    display: none;
  }

  .header__nav {
    display: flex;
    align-items: center;
    gap: 40px;
  }

  .header__drawer {
    top: 72px;
    height: calc(100vh - 72px);
  }

  .section__title {
    font-size: var(--fs-2xl);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }

  .img-placeholder--hero {
    height: 520px;
  }

  /* Unsplash実画像 — hero高さ (PC) */
  .hero__bg {
    height: 520px !important;
  }

  .img-placeholder--staff-lg {
    height: 400px;
  }

  .cta-section__title {
    font-size: 32px;
  }
}

/* --------------------------------------------------
   21. Responsive — Wide PC (1280px+)
-------------------------------------------------- */
@media (min-width: 1280px) {
  .img-placeholder--hero {
    height: 580px;
  }

  /* Unsplash実画像 — hero高さ (Wide PC) */
  .hero__bg {
    height: 580px !important;
  }
}
