@charset "UTF-8";

/* =========================================
   手しごとねこや スタイルシート
   和モダン・上品でシンプル
   色や文字の大きさは、この下の「色と余白の設定」で変えられます
   ========================================= */

/* 日本語を文節の切れ目で改行する。Chrome以外では無視されるだけなので安全 */
body { word-break: auto-phrase; }


/* -----------------------------------------
   色と余白の設定（ここを変えると全体の色が変わります）
   ----------------------------------------- */
:root {
  --color-text: #2b2724;        /* 本文の文字色（墨色） */
  --color-muted: #6d655e;       /* 補足の文字色 */
  --color-bg: #fdfbf7;          /* 背景（生成り） */
  --color-soft: #f4efe6;        /* 薄い背景（和紙色） */
  --color-accent: #7d2b33;      /* アクセント（えんじ） */
  --color-accent-dark: #5f1f26; /* アクセントの濃い色 */
  --color-line: #ddd5c8;        /* 罫線 */

  --width: 1080px;              /* 中身の最大幅 */
  --space: 24px;                /* 基本の余白 */
  --radius: 4px;                /* 角の丸み */
}


/* -----------------------------------------
   全体の初期設定
   ----------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.9;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-accent); }

/* キーボード操作でどこを選んでいるかわかるようにする */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* 中身を中央に置くための枠 */
.container {
  width: 100%;
  max-width: var(--width);
  margin: 0 auto;
  padding: 0 var(--space);
}

.center { text-align: center; }


/* -----------------------------------------
   アイコン（SVG）の見た目
   ----------------------------------------- */
.icon svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
  stroke: currentColor;
}

.icon--inline {
  display: inline-flex;
  vertical-align: -0.2em;
  margin-left: 0.4em;
}

.icon--large svg {
  width: 34px;
  height: 34px;
  color: var(--color-accent);
}


/* -----------------------------------------
   ボタン
   ----------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease;
}

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

.btn--small {
  padding: 9px 18px;
  font-size: 0.9rem;
}

/* 濃い背景の上に置く白いボタン */
.btn--light {
  background: #fff;
  color: var(--color-accent);
}

.btn--light:hover { background: var(--color-soft); }


/* -----------------------------------------
   ヘッダー（画面上部に固定）
   ----------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.95);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(6px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.logo {
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
  line-height: 1.4;
}

.logo__main {
  display: block;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

.logo__sub {
  display: block;
  font-size: 0.72rem;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

.nav__list {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.nav__list a:hover { border-bottom-color: var(--color-accent); }

/* スマートフォン用メニューボタン（パソコンでは隠す） */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  color: var(--color-text);
}


/* -----------------------------------------
   セクション共通
   ----------------------------------------- */
.section { padding: 88px 0; }

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

.section__title {
  font-size: 1.9rem;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: 0.06em;
  font-weight: normal;
}

/* 見出しの下の短い飾り線 */
.section__title::after {
  content: "";
  display: block;
  width: 52px;
  height: 1px;
  background: var(--color-accent);
  margin: 20px auto 0;
}

.section__lead {
  text-align: center;
  color: var(--color-muted);
  margin: 0 auto 48px;
  max-width: 620px;
}


/* -----------------------------------------
   セクション1: ヒーロー（メインビジュアル）
   ----------------------------------------- */
.hero { position: relative; }

.hero__image {
  width: 100%;
  overflow: hidden;
}

/* 写真が縦に間延びしないよう、高さを決めて切り抜く */
.hero__image img {
  width: 100%;
  height: 62vh;
  max-height: 560px;
  min-height: 300px;
  object-fit: cover;
  object-position: center 35%;
}

.hero__body {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 72px;
}

.hero__title {
  font-size: 2.3rem;
  line-height: 1.7;
  letter-spacing: 0.08em;
  margin: 0 0 24px;
  font-weight: normal;
}

.hero__lead {
  max-width: 640px;
  margin: 0 auto 32px;
  color: var(--color-muted);
}

.hero__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--color-muted);
}


/* -----------------------------------------
   セクション2: お悩み ＋ 手しごとねこやについて
   ----------------------------------------- */
.troubles {
  list-style: none;
  margin: 40px auto 56px;
  padding: 0;
  max-width: 720px;
}

.trouble {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px 24px;
  margin-bottom: 14px;
  position: relative;
  padding-left: 48px;
}

/* 印の丸 */
.trouble::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 30px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}

.about__maker {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 48px;
  align-items: center;
}

.about__maker img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about__text h3 {
  font-size: 1.35rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.about__text p { margin: 0 0 16px; }


/* -----------------------------------------
   セクション3: 作品紹介
   ----------------------------------------- */
.works {
  list-style: none;
  margin: 0 0 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.work img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.work h3 {
  font-size: 1.2rem;
  font-weight: normal;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
}

.work p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}


/* -----------------------------------------
   セクション4: 選ばれる理由
   ----------------------------------------- */
.reasons {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.reason {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}

.reason .icon--large {
  display: inline-flex;
  margin-bottom: 16px;
}

.reason h3 {
  font-size: 1.15rem;
  font-weight: normal;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.reason p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-muted);
  text-align: left;
}


/* -----------------------------------------
   セクション5: よくある質問（クリックで開閉）
   ----------------------------------------- */
.faq {
  max-width: 760px;
  margin: 48px auto 0;
}

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

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 22px 4px;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.faq__mark {
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* 開いているときは矢印を上向きにする */
.faq__q[aria-expanded="true"] .faq__mark {
  transform: rotate(180deg);
}

/* 答えの部分。JavaScriptで開閉します */
.faq__a {
  display: none;
  padding: 0 4px 22px;
  color: var(--color-muted);
}

.faq__a p { margin: 0; }

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


/* -----------------------------------------
   最後の行動よびかけ（写真の上に文字）
   ----------------------------------------- */
.cta {
  position: relative;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 写真を暗くして文字を読みやすくする膜 */
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(43, 39, 36, 0.68);
}

.cta__body {
  position: relative;
  z-index: 1;
  padding-top: 88px;
  padding-bottom: 88px;
}

.cta__body h2 {
  font-size: 1.8rem;
  line-height: 1.7;
  font-weight: normal;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.cta__body p { margin: 0 0 32px; }


/* -----------------------------------------
   フッター
   ----------------------------------------- */
.footer {
  background: var(--color-text);
  color: #e8e2d9;
  text-align: center;
  padding: 48px 0;
  font-size: 0.9rem;
}

.footer p { margin: 0 0 8px; }

.footer__name {
  font-size: 1.15rem;
  letter-spacing: 0.14em;
}

.footer__info { color: #b7ada1; }

.footer a { color: #e8e2d9; }

.footer__copy {
  margin-top: 24px;
  color: #8d8478;
  font-size: 0.8rem;
}


/* =========================================
   タブレット（横幅900px以下）
   ========================================= */
@media (max-width: 900px) {
  .about__maker {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about__maker img { height: 360px; }

  .works,
  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* =========================================
   スマートフォン（横幅720px以下）
   ========================================= */
@media (max-width: 720px) {
  body { font-size: 16px; }

  /* メニューは開閉式にする */
  .menu-toggle { display: block; }

  .header__cta { display: none; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 8px 0 16px;
  }

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

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0 var(--space);
  }

  .nav__list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .header__inner { position: relative; }

  .section { padding: 64px 0; }

  .hero__image img {
    height: 46vh;
    min-height: 260px;
  }

  .hero__title { font-size: 1.75rem; }

  .hero__body { padding-bottom: 56px; }

  .section__title { font-size: 1.5rem; }

  /* 作品と理由は縦に1つずつ並べる */
  .works,
  .reasons {
    grid-template-columns: 1fr;
  }

  .work img { height: 260px; }

  .cta__body h2 { font-size: 1.45rem; }
}
