/* ============================================================
   ふわりや — handmade wool felt atelier
   モバイルファースト / 320px〜 → 768px以上で拡張
   ============================================================ */

/* ============ 1. CSS変数（F-02デザイントークン） ============ */
:root {
  /* color */
  --color-primary: #a87b5e;        /* メイン：ミルクキャラメル */
  --color-accent:  #c9745f;        /* アクセント：テラコッタ */
  --color-base:    #faf6ee;        /* ベース：生成り */
  --color-text:    #3a2e26;        /* 本文 */
  --color-sub:     #7a6a5d;        /* サブテキスト */
  --color-base-rgb: 250, 246, 238;
  --color-text-rgb: 58, 46, 38;
  --color-border: rgba(58, 46, 38, 0.12);

  /* layout */
  --header-h: 64px;
  --max-w: 1120px;

  /* radius */
  --radius-pill: 999px;
  --radius-sm: 4px;

  /* font */
  --font-mincho: "Shippori Mincho B1", "Noto Serif JP", serif;
  --font-sans:   "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --font-en:     "Cormorant Garamond", serif;

  /* 告知バナー（sample.css 準拠） */
  --pn-bg: var(--color-text);
  --pn-fg: var(--color-base);
  --pn-fg-rgb: var(--color-base-rgb);
  --pn-accent: var(--color-accent);
  --pn-font: var(--font-mincho);
}

/* ============ 2. リセット ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-base);
  line-height: 1.85;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; }

/* ============================================================
   3. 告知バナー（sample.css 準拠 / 配色のみ書換）
   ============================================================ */
.portfolio-notice {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  background: var(--pn-bg);
  color: var(--pn-fg);
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.6;
  border-bottom: 1px solid var(--pn-accent);
  font-family: var(--pn-font);
}
.portfolio-notice strong {
  color: var(--pn-accent);
  letter-spacing: 0.2em;
  margin-right: 0.6rem;
  font-weight: 500;
}
.portfolio-notice .pn-close {
  background: transparent;
  border: 1px solid rgba(var(--pn-fg-rgb), 0.4);
  color: var(--pn-fg);
  font-size: 0.7rem;
  padding: 2px 8px;
  margin-left: 0.8rem;
  cursor: pointer;
  letter-spacing: 0.1em;
  transition: all 0.3s;
  font-family: inherit;
}
.portfolio-notice .pn-close:hover {
  background: var(--pn-accent);
  border-color: var(--pn-accent);
  color: var(--pn-bg);
}
body.notice-visible { padding-top: calc(var(--header-h) + 44px); }
body.notice-visible .site-header { top: 44px; }

@media (max-width: 720px) {
  .portfolio-notice { font-size: 0.7rem; padding: 0.5rem 0.8rem; }
  body.notice-visible { padding-top: calc(var(--header-h) + 64px); }
  body.notice-visible .site-header { top: 64px; }
}

/* ============================================================
   4. ヘッダー（backdrop-filter は ::before に分離）
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 200;
  border-bottom: 1px solid var(--color-border);
  transition: top 0.3s;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(var(--color-base-rgb), 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: -1;
}
.header-inner {
  height: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}
.logo-jp {
  font-family: var(--font-mincho);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-text);
}
.logo-en {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--color-sub);
}

/* PCナビ ============ */
.pc-nav { display: none; }
.pc-nav ul {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}
.pc-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--color-text);
  font-family: var(--font-en);
  font-style: italic;
  transition: color 0.25s;
}
.pc-nav a:hover { color: var(--color-accent); }
.pc-nav-cta {
  border: 1px solid var(--color-text);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-style: italic;
}
.pc-nav-cta:hover {
  background: var(--color-text);
  color: var(--color-base) !important;
}

/* ============================================================
   5. ハンバーガー（z-index:220, drawerより上）
   ============================================================ */
.hamburger {
  width: 44px; height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 220;
  background: transparent;
  border: 0;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s;
  transform-origin: center;
}
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   6. Drawer-mask + Drawer（パターンB：右ドロワー）
   ============================================================ */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(var(--color-text-rgb), 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
  z-index: 210;
}
.drawer-mask.is-open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0; right: 0;
  width: 80vw;
  max-width: 360px;
  height: 100dvh;
  background: var(--color-base);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 215;
  padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer.is-open {
  transform: translateX(0);
  box-shadow: -8px 0 32px rgba(var(--color-text-rgb), 0.15);
}
/* 告知バナー併設時の押し下げ */
body.notice-visible .drawer { padding-top: calc(var(--header-h) + 44px + 1rem); }
@media (max-width: 720px) {
  body.notice-visible .drawer { padding-top: calc(var(--header-h) + 64px + 1rem); }
}

.drawer-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 2rem;
}
.drawer-list a {
  display: block;
  padding: 1rem 0.4rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
  transition: color 0.2s;
}
.drawer-list a:hover { color: var(--color-accent); }
.drawer-cta {
  margin-top: 1.2rem;
  background: var(--color-accent);
  color: var(--color-base) !important;
  border-radius: var(--radius-pill);
  text-align: center;
  padding: 1rem 1rem !important;
  border: none !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
}
.drawer-cta:hover { color: var(--color-base) !important; opacity: 0.9; }

.drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-sub);
}
.drawer-tel { display: flex; flex-direction: column; gap: 0.2rem; }
.drawer-tel span { font-size: 0.72rem; letter-spacing: 0.16em; }
.drawer-tel a {
  font-family: var(--font-en);
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: var(--color-text);
}
.drawer-tel small { font-size: 0.7rem; color: var(--color-sub); }

/* ============================================================
   7. 共通：ボタン・セクション
   ============================================================ */
.btn {
  display: inline-block;
  padding: 0.95rem 1.8rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-base);
}
.btn-primary:hover { background: var(--color-text); }
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-ghost:hover {
  background: var(--color-text);
  color: var(--color-base);
}
.btn-sm { padding: 0.7rem 1.4rem; font-size: 0.78rem; }

.section { padding: 4rem 0; }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.2rem;
}
.section-en {
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.section-en em { font-style: italic; }
.section-title {
  font-family: var(--font-mincho);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.section-lead {
  color: var(--color-sub);
  margin-bottom: 2.5rem;
  max-width: 640px;
  font-size: 0.95rem;
}

/* ============================================================
   8. Hero
   ============================================================ */
.hero {
  padding: 2rem 1.2rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-inner { order: 2; }
.hero-image { order: 1; }
.hero-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.hero-en {
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.hero-title {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: clamp(1.85rem, 7vw, 2.6rem);
  line-height: 1.55;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.hero-lead {
  color: var(--color-sub);
  font-size: 0.92rem;
  margin-bottom: 1.8rem;
  max-width: 480px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* ============================================================
   9. About
   ============================================================ */
.section-about { background: #fff; }
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.about-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.about-lead {
  font-family: var(--font-mincho);
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  color: var(--color-primary);
}
.about-text p { margin-bottom: 1rem; font-size: 0.92rem; }

.about-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  row-gap: 0.6rem;
  font-size: 0.85rem;
}
.about-meta dt {
  color: var(--color-sub);
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  padding-top: 0.15rem;
}
.about-meta dd { color: var(--color-text); }

/* ============================================================
   10. Works
   ============================================================ */
.section-works { background: var(--color-base); }
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.works-item {
  background: #fff;
  padding: 0.8rem;
  border: 1px solid var(--color-border);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.works-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(var(--color-text-rgb), 0.08);
}
.works-thumb {
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.works-thumb img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  transition: transform 0.6s ease;
}
.works-item:hover .works-thumb img { transform: scale(1.05); }
.works-title {
  font-family: var(--font-mincho);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
}
.works-meta { font-size: 0.72rem; color: var(--color-sub); letter-spacing: 0.06em; }
.works-note {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: var(--color-sub);
}
.works-note a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   11. Order & Lesson
   ============================================================ */
.section-lesson { background: #fff; }
.lesson-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.lesson-card {
  padding: 1.8rem 1.4rem;
  background: var(--color-base);
  border: 1px solid var(--color-border);
}
.lesson-card-title {
  font-family: var(--font-mincho);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 0.8rem;
  color: var(--color-primary);
}
.lesson-card p { font-size: 0.9rem; margin-bottom: 1rem; }
.lesson-list {
  margin-bottom: 1.4rem;
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--color-sub);
  font-size: 0.85rem;
}
.lesson-list li { margin-bottom: 0.3rem; }

/* ============================================================
   12. Information
   ============================================================ */
.section-info { background: var(--color-base); }
.info-list {
  border-top: 1px solid var(--color-border);
}
.info-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.info-item time {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.4rem;
}
.info-item h3 {
  font-family: var(--font-mincho);
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.info-item p { font-size: 0.88rem; color: var(--color-sub); }

/* ============================================================
   13. FAQ
   ============================================================ */
.section-faq { background: #fff; }
.faq-list { margin-bottom: 2rem; }
.faq-item {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--color-border);
}
.faq-item dt {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: 0.6rem;
  position: relative;
  padding-left: 1.5rem;
}
.faq-item dt::before {
  content: "Q.";
  position: absolute;
  left: 0; top: 0;
  color: var(--color-accent);
  font-family: var(--font-en);
  font-style: italic;
}
.faq-item dd {
  font-size: 0.88rem;
  color: var(--color-sub);
  padding-left: 1.5rem;
  position: relative;
}
.faq-item dd::before {
  content: "A.";
  position: absolute;
  left: 0; top: 0;
  color: var(--color-primary);
  font-family: var(--font-en);
  font-style: italic;
}
.faq-cta { text-align: center; }

/* ============================================================
   14. Contact
   ============================================================ */
.section-contact { background: var(--color-base); }
.contact-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 1.8rem;
  background: #fff;
  border: 1px solid var(--color-border);
}
.contact-meta dt {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  margin-top: 0.5rem;
}
.contact-meta dt:first-child { margin-top: 0; }
.contact-meta dd {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.contact-meta dd a { color: var(--color-text); }
.contact-meta small {
  display: block;
  font-size: 0.72rem;
  color: var(--color-sub);
  margin-top: 0.2rem;
}
.disclaimer {
  padding: 1.2rem;
  background: rgba(var(--color-text-rgb), 0.04);
  border-left: 3px solid var(--color-accent);
  font-size: 0.82rem;
  color: var(--color-sub);
  line-height: 1.7;
}

/* ============================================================
   15. Footer
   ============================================================ */
.site-footer {
  background: var(--color-text);
  color: var(--color-base);
  padding: 3rem 1.2rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.footer-brand { margin-bottom: 1.5rem; }
.footer-logo-jp {
  display: block;
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.2rem;
}
.footer-logo-en {
  display: block;
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: rgba(var(--color-base-rgb), 0.7);
}
.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-bottom: 1.5rem;
}
.footer-nav a {
  font-family: var(--font-en);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: rgba(var(--color-base-rgb), 0.85);
  transition: color 0.25s;
}
.footer-nav a:hover { color: var(--color-accent); }
.footer-copy {
  font-size: 0.75rem;
  color: rgba(var(--color-base-rgb), 0.6);
  letter-spacing: 0.06em;
  line-height: 1.8;
}
.footer-copy small { font-size: 0.7rem; }

/* ============================================================
   16. レスポンシブ：768px以上
   ============================================================ */
@media (min-width: 768px) {
  :root { --header-h: 72px; }

  /* ハンバーガー非表示・PCナビ表示 */
  .hamburger { display: none; }
  .pc-nav { display: block; }

  .section { padding: 6rem 0; }
  .section-title { font-size: 2.1rem; }

  /* Hero：横並び */
  .hero {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding: 4rem 1.5rem 5rem;
    min-height: 78vh;
  }
  .hero-inner { order: 1; flex: 1 1 50%; }
  .hero-image { order: 2; flex: 1 1 50%; }

  /* About：横並び */
  .about-grid {
    flex-direction: row;
    grid-template-columns: 1.2fr 1fr;
    display: grid;
    gap: 4rem;
    align-items: center;
  }
  .about-text { order: 1; }
  .about-image { order: 2; }

  /* Works：3列 */
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
  }

  /* Lesson：2列 */
  .lesson-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .lesson-card { padding: 2.5rem 2rem; }

  /* Contact-meta：横grid */
  .contact-meta {
    grid-template-columns: 8rem 1fr;
    row-gap: 0.8rem;
    padding: 2.4rem;
  }
  .contact-meta dt { margin-top: 0; padding-top: 0.3rem; }
}

/* ============================================================
   17. レスポンシブ：1024px以上
   ============================================================ */
@media (min-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .section-title { font-size: 2.3rem; }
}
