@charset "utf-8";
/* =====================================================================
   Kineco WORKS - 共通スタイルシート（style.css）
   アプリ2枚（gauge-calculator-en/jp）を除く全ページが読み込む。
     1. Tokens
     2. Reset & Base
     3. Utility
     4. Layout (L)
     5. UI Parts (U)
     6. Cards & Lists (C)
     7. Pattern (P)
     8. Page-Specific
     9. Layout Wrappers
   ※メディアクエリは各セクション内に併記。
   ===================================================================== */


/* =====================================================================
   1. Tokens
   ===================================================================== */
:root {
  /* Colors */
  --color-bg:        #FAFAF8;
  --color-surface:   #F5F2EE;
  --color-border:    #E5E0D9;
  --color-text:      #2E2E2E;
  --color-text-sub:  #8A8278;
  --color-accent:    #8C7B6B;
  --color-accent-dk: #6B5C4E;
  --color-accent-lt: #ede8e2;
  --color-nav-bg:    #F0EDE8;
  --color-btn-bg:    #8C7B6B;
  --color-btn-hover: #6B5C4E;
  --color-jp-bg:     #e8edf0;  /* JPバッジ背景 */
  --color-jp-text:   #5a7285;  /* JPバッジ文字 */

  /* Fonts */
  --font-en: 'Jost', sans-serif;
  --font-ja: 'Zen Kaku Gothic New', sans-serif;

  /* Sizes */
  --nav-height:        44px;
  --content-max:       740px;   /* 詳細・汎用ページ */
  --content-max-wide:  1100px;  /* 一覧・汎用ワイドページ */
}


/* =====================================================================
   2. Reset & Base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-ja);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}
/* EN専用ページ（aurora-en / aurora-notes-en 等）は本文ベースを Jost に */
html[lang="en"] body {
  font-family: var(--font-en);
  font-weight: 300;
  line-height: 1.8;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.22s; }
a:hover { color: var(--color-accent-dk); }

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


/* =====================================================================
   3. Utility
   ===================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* 配置の余白はページ文脈側で付与（例：Notes の DL Page Link） */
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mb-4  { margin-bottom: 4px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-40 { margin-bottom: 40px; }


/* =====================================================================
   4. Layout (L)
   ===================================================================== */

/* ----- L-01. Header ----- */
#site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 40px 24px 32px;
  text-align: center;
}
#blog-title a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
}
#blog-title a:hover { color: var(--color-accent); }
.title-sub {
  display: block;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--color-text-sub);
}
.title-main {
  display: block;
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 2.25rem;
  letter-spacing: 0.14em;
  color: var(--color-text);
}
#site-description {
  font-family: var(--font-ja);
  font-size: 0.72rem;
  color: var(--color-text-sub);
  margin-top: 10px;
}
@media (max-width: 599px) {
  #site-header { padding: 32px 16px 24px; }
  .title-main { font-size: 1.7rem; }
  .title-sub  { font-size: 0.95rem; }
}

/* ----- L-02. Nav ----- */
#site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
}
#site-nav::-webkit-scrollbar { display: none; }
#nav-inner { max-width: 1200px; margin: 0 auto; }
#nav-list {
  display: flex;
  list-style: none;
  white-space: nowrap;
}
#nav-list li a,
#nav-list li button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  height: var(--nav-height);
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
}
#nav-list li button { background: none; border: none; }
#nav-list li a:hover,
#nav-list li button:hover {
  background: rgba(140,123,107,0.1);
  color: var(--color-accent);
}
#nav-list li a.nav-active {
  color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
}

/* ----- L-03. Breadcrumbs ----- */
.breadcrumbs-wrap {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.breadcrumbs-wrap::-webkit-scrollbar { display: none; }
.breadcrumbs {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 24px;
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  color: var(--color-text-sub);
}
.breadcrumbs li { display: flex; align-items: center; }
.breadcrumbs li a { color: var(--color-text-sub); }
.breadcrumbs li a:hover { color: var(--color-accent); }
.bc-sep {
  display: inline-block;
  margin: 0 8px;
  font-size: 8px;
  color: var(--color-border);
}
.bc-current { color: var(--color-text); }

/* ----- L-04. Footer ----- */
#site-footer {
  background: var(--color-surface);
  color: var(--color-text-sub);
  padding: 32px 20px 80px;
  text-align: center;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-en);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--color-text-sub);
}
.footer-nav a:hover { color: var(--color-accent); }
#site-footer .footer-nav + .footer-nav a {
  font-size: 1rem;
  font-weight: 500;
}
.footer-copy {
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: var(--color-text-sub);
}

/* ----- L-05. Search Modal ----- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.modal-overlay.is-open { display: flex; }
.modal-wrap {
  background: var(--color-bg);
  border-radius: 6px;
  padding: 52px 28px 28px;
  width: min(92%, 480px);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-en);
  font-size: 0.8rem;
  color: var(--color-text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
}
.modal-close:hover { color: var(--color-text); }
.modal-search-form { display: flex; }
.modal-search-input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 10px 12px;
  font-family: var(--font-en);
  font-size: 0.9rem;
  background: #ffffff;
  outline: none;
}
.modal-search-input:focus { border-color: var(--color-accent); }
.modal-search-btn {
  background: var(--color-btn-bg);
  color: #fff;
  border: none;
  border-radius: 0 3px 3px 0;
  padding: 0 16px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.22s;
}
.modal-search-btn:hover { background: var(--color-btn-hover); }

/* ----- L-05b. Image Modal（原寸ポップアップ・Search Modal の開閉仕様を流用） ----- */
#image-modal { padding: 24px; }
#image-modal .modal-close { color: #fff; }
#image-modal .modal-close:hover { color: #ccc; }
#image-modal img { max-width: 92vw; max-height: 86vh; border-radius: 3px; }
[data-zoom] { cursor: zoom-in; }

/* ----- L-06. Scroll to Top ----- */
#scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 36px;
  height: 36px;
  background: var(--color-btn-bg);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
#scroll-top-btn.visible { opacity: 1; pointer-events: auto; }


/* =====================================================================
   5. UI Parts (U)
   ===================================================================== */

/* ----- U-01. Page Title ----- */
.page-title {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  color: var(--color-text);
  padding-left: 16px;
  border-left: 2px solid var(--color-accent);
  margin-bottom: 24px;
}
/* JPサブタイトルが続く場合は見出しの下マージンを詰める */
.page-title:has(+ .page-title-ja) { margin-bottom: 6px; }
.page-title-ja {
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: 1.0rem;
  color: var(--color-text-sub);
  padding-left: 18px;
  margin-bottom: 24px;
}

/* ----- U-02. Section Heading ----- */
.section-heading {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 20px;
}
/* JPダウンロードページの日本語見出し（使用糸 等） */
.section-heading--ja {
  font-family: var(--font-ja);
  letter-spacing: 0.15em;
  text-transform: none;
}
/* privacy：日本語サブ見出しが続く場合は下マージンを詰める */
.section-heading:has(+ .section-heading-ja) { margin-bottom: 8px; }
.section-heading-ja {
  display: block;
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: none;
  color: var(--color-text-sub);
  margin-bottom: 16px;
}

/* ----- U-03. Sub Heading ----- */
.sub-heading,
.sub-heading--ja {
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--color-text);
  margin-top: 28px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.sub-heading { font-family: var(--font-en); letter-spacing: 0.1em; }
.sub-heading--ja { font-family: var(--font-ja); letter-spacing: 0.05em; }
.sub-heading::before,
.sub-heading--ja::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 8px;
  background: var(--color-accent);
  flex-shrink: 0;
  margin-right: 8px;
}

/* ----- U-04. Btn Primary ----- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--btn-bg, var(--color-btn-bg));
  color: #fff;
  border: 1px solid var(--btn-bg, var(--color-btn-bg));
  border-radius: 3px;
  padding: 11px 0;
  width: 200px;
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.22s, border-color 0.22s, color 0.22s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--btn-hover, var(--color-btn-hover));
  border-color: var(--btn-hover, var(--color-btn-hover));
  color: #fff;
}
/* Design Notes枠などでボタンを縦に重ねるとき */
.btn-primary + .btn-primary { margin-top: 8px; }
@media (max-width: 599px) {
  .btn-primary { width: 100%; }
  .info-block .btn-primary + .btn-primary { margin-top: 20px; }
}

/* ----- U-05. Btn Filter ----- */
.btn-filter {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--color-text-sub);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.btn-filter:hover {
  background: var(--color-accent-lt);
  color: var(--color-accent);
  border-color: var(--color-accent);
}
.btn-filter.is-active {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ----- U-06. Btn Row ----- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  justify-content: center;
  margin-bottom: 24px;
}
/* btn-row は gap で間隔を取るため、縦積み用の隣接マージン
   （.btn-primary + .btn-primary）を打ち消す。これが無いと flex の
   ライン高さに 8px のマージンが算入され、stretch 時に先頭ボタンだけ
   背が高くなり横一直線に揃わない（横並び・SPの縦積み両方に有効）。 */
.btn-row .btn-primary + .btn-primary { margin-top: 0; }
@media (max-width: 599px) {
  .btn-row { flex-direction: column; align-items: center; gap: 20px; }
}

/* ----- U-07. Search Form（インライン検索） ----- */
.search-form {
  display: flex;
  max-width: var(--search-form-max, 440px);
  margin-bottom: 16px;
}
.search-form--narrow {
  --search-form-max: 400px;
  margin-left: auto;
  margin-right: auto;
}
.search-form__input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 10px 14px;
  font-family: var(--font-en);
  font-size: 0.85rem;
  background: #ffffff;
  outline: none;
}
.search-form__input:focus { border-color: var(--color-accent); }
.search-form__btn {
  background: var(--color-btn-bg);
  color: #fff;
  border: none;
  border-radius: 0 3px 3px 0;
  padding: 0 16px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.22s;
}
.search-form__btn:hover { background: var(--color-btn-hover); }

/* ----- U-08. Lang Badge ----- */
.card-lang {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--color-accent-lt);
  color: var(--color-accent);
  border-radius: 2px;
  padding: 2px 7px;
}
.card-lang.lang-jp {
  background: var(--color-jp-bg);
  color: var(--color-jp-text);
}


/* =====================================================================
   6. Cards & Lists (C)
   ===================================================================== */

/* ----- C-02. Pattern Grid ----- */
.pattern-grid {
  display: grid;
  gap: 20px;
}
/* modifier: トップおすすめ（最大4列固定・最大360px） */
.pattern-grid--featured {
  grid-template-columns: repeat(4, minmax(0, 360px));
  justify-content: center;
  margin-bottom: 28px;
}
@media (min-width: 600px) and (max-width: 899px) {
  .pattern-grid--featured { grid-template-columns: repeat(2, minmax(0, 360px)); }
}
@media (max-width: 599px) {
  .pattern-grid--featured { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
/* modifier: 一覧（auto-fill 流動） */
.pattern-grid--fluid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  margin-bottom: 40px;
}
@media (min-width: 1100px) {
  .pattern-grid--fluid { grid-template-columns: repeat(5, 1fr); }
}
@media (min-width: 880px) and (max-width: 1099px) {
  .pattern-grid--fluid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 660px) and (max-width: 879px) {
  .pattern-grid--fluid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 659px) {
  .pattern-grid--fluid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* modifier: Notes Construction 冒頭の4枚ギャラリー（PC4列・タブレット/SP2列、中心正方形クロップ） */
.pattern-grid--gallery {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 24px;
}
@media (min-width: 600px) and (max-width: 899px) {
  .pattern-grid--gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 599px) {
  .pattern-grid--gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ----- C-01. Pattern Card ----- */
.pattern-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity 0.22s;
  min-width: 0;
}
.pattern-card:hover { opacity: 0.78; }
.card-thumb-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
  font-size: 2rem;
}
.card-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  object-fit: cover;
  display: block;
}
.card-info { padding: 8px 2px 4px; }
.card-info .card-lang { margin-bottom: 5px; }
.card-name {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--color-text);
}
.card-name-jp {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--color-text-sub);
  margin-top: 2px;
}

/* ----- C-03. Link List ----- */
.link-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 599px) {
  .link-list { grid-template-columns: 1fr; }
}
.link-list--single { grid-template-columns: 1fr; }

/* ----- C-03. Link Item（統合カード：SNS / Apps / DL Page Link） ----- */
.link-item {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.22s;
}
.link-item:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  color: var(--color-text);
}
.link-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.link-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.link-item__title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.link-item__title {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
}
.link-item__title--ja { font-family: var(--font-ja); }
.link-item__label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-sub);
}
.link-item__desc {
  font-family: var(--font-ja);
  font-size: 0.78rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.link-item__desc-en {
  font-family: var(--font-en);
  font-size: 0.78rem;
  color: var(--color-text-sub);
}
/* modifier: サムネイル画像版（Notes の DL Page Link） */
.link-item--with-thumb { gap: 16px; }
.link-item--with-thumb .link-item__text { gap: 6px; }
.link-item--with-thumb .link-item__title { font-weight: 300; font-size: 1.0rem; }
.link-item--with-thumb .link-item__icon {
  width: 100px;
  height: 100px;
  border-radius: 3px;
  background: none;
  padding: 0;
}
.link-item--with-thumb .link-item__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  display: block;
}
@media (max-width: 499px) {
  .link-item--with-thumb .link-item__icon { width: 72px; height: 72px; }
}

/* ----- C-04. Info Block（PDF枠 / Design Notes枠） ----- */
.info-block {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 20px 20px 22px;
}
.info-block.dl-block {
  display: flex;
  flex-direction: column;
}
.dl-block-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.info-block__heading {
  font-family: var(--font-en);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 14px;
}
.info-block__file {
  font-family: var(--font-en);
  font-size: 0.8125rem;
  color: var(--color-text-sub);
  margin-top: 14px;
  line-height: 1.6;
}


/* =====================================================================
   7. Pattern (P) — パターン詳細・Notes ページ
   ===================================================================== */

/* ----- Pattern / Notes 専用ラッパー（一覧と別 max-width 運用のため独立） ----- */
.pattern-page-inner,
.notes-page-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 24px 80px;
}

/* ----- P-01. Main Image ----- */
.pattern-main-img-wrap { margin-bottom: 20px; }
.pattern-main-img {
  width: 480px;
  max-width: 100%;
  border-radius: 3px;
  cursor: zoom-in;
}

/* ----- P-02. Pattern Tagline ----- */
.pattern-tagline {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.0rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 32px;
}
.pattern-tagline--ja { font-family: var(--font-ja); font-size: 0.88rem; }

/* ----- P-03. Pattern Section ----- */
.pattern-section { margin-bottom: 32px; }
.pattern-section .section-heading { margin-bottom: 14px; }

/* ----- P-04. Block Row（PDF枠＋Notes枠／:has で半幅自動切替） ----- */
.block-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
  align-items: stretch;
}
.block-row:has(> :only-child) {
  grid-template-columns: 1fr;
  max-width: 50%;
}
@media (max-width: 599px) {
  .block-row { grid-template-columns: 1fr; }
  .block-row:has(> :only-child) { max-width: 100%; }
}

/* ----- P-05. Video Wrap（YouTube埋め込み） ----- */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 10px;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

/* ----- P-06. Variation / Behind the Design ----- */
.variation-item { margin-top: 32px; }
.variation-img {
  width: 360px;
  max-width: 100%;
  border-radius: 3px;
  margin-bottom: 14px;
  cursor: zoom-in;
}
.behind-img {
  width: 360px;
  max-width: 100%;
  border-radius: 3px;
  margin-bottom: 20px;
  cursor: zoom-in;
}

/* ----- P-07. Technique Group / Label / List ----- */
.notes-section { margin-bottom: 40px; }
.notes-section .section-heading { margin-bottom: 20px; }
.technique-group { margin-top: 20px; }
.technique-label {
  font-size: 0.88rem;
  font-style: italic;
  color: var(--color-text-sub);
  margin-bottom: 6px;
}
.technique-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.technique-list li {
  font-size: 1.0rem;
  font-weight: 300;
  color: var(--color-text);
  padding-left: 14px;
  position: relative;
}
.technique-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--color-border);
  font-size: 0.8rem;
}
/* JP Notes：技法ラベルは非斜体、リストは日本語本文サイズ（font-familyは本文ベースを継承） */
.section-body--ja .technique-label { font-style: normal; }
.section-body--ja .technique-list li { font-size: 0.88rem; }


/* =====================================================================
   8. Page-Specific
   ===================================================================== */

/* ----- 本文ブロック（about / privacy / pattern / notes 共通：O-02） ----- */
.section-body--en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.0rem;
  color: var(--color-text);
  line-height: 1.8;
}
.section-body--ja {
  font-family: var(--font-ja);
  font-weight: 300;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.9;
}
.section-body--en p + p,
.section-body--ja p + p { margin-top: 12px; }
.section-body--en strong,
.section-body--ja strong { font-weight: 500; }
.section-body--en ul,
.section-body--ja ul { padding-left: 20px; margin-top: 8px; }
.section-body--en ul li,
.section-body--ja ul li { margin-top: 4px; }
/* 英語本文の直後に日本語本文が続く場合の段差（about / privacy） */
.section-body--en + .section-body--ja { margin-top: 20px; }

/* 補足テキスト（13px・本文ベースの font-family を継承） */
.text-note {
  font-size: 0.8125rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ----- index：Hero（T-01） ----- */
#hero {
  background: #ffffff;
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.hero-inner { max-width: 520px; margin: 0 auto; }
.hero-icon {
  width: 96px;
  height: auto;
  display: block;
  margin: 0 auto 24px;
}
.hero-catchphrase {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  letter-spacing: 0.06em;
  color: var(--color-text);
  line-height: 1.4;
}
@media (max-width: 599px) {
  #hero { padding: 40px 20px; }
  .hero-icon { width: 72px; margin-bottom: 20px; }
}

/* ----- index：Intro（T-02） ----- */
#intro { background: var(--color-bg); }
.intro-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 52px 24px;
  text-align: center;
}
.intro-text-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.0rem;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 8px;
}
.intro-text-ja {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.9;
  margin-bottom: 8px;
}
.intro-note {
  font-family: var(--font-ja);
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}

/* ----- index：Featured / Find me on セクション ----- */
#featured-patterns,
#find-me-on { background: var(--color-bg); }
/* index セクションの中央寄せコンテナ（このページ専用幅 960px：
   おすすめ4列グリッドが 740/1100 では崩れるため） */
.section-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 24px 52px;
}
/* Featured セクション内の区切り線（Knitting Apps ボタンの上） */
#featured-patterns hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 28px 0 24px;
}

/* ----- about：Author Block（O-03） ----- */
.author-block {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 36px;
}
.author-logo {
  width: 128px;
  height: 128px;
  border-radius: 4px;
  flex-shrink: 0;
  overflow: hidden;
}
.author-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.author-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-sub);
}
.author-name {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

/* about / apps の本文セクション余白 */
.about-section { margin-bottom: 40px; }

/* ----- apps：Page Description（O-01） ----- */
.page-desc {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-desc-en {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.0rem;
  color: var(--color-text);
  line-height: 1.8;
}
.page-desc-ja {
  font-family: var(--font-ja);
  font-size: 0.88rem;
  color: var(--color-text-sub);
  line-height: 1.9;
}

/* ----- notes：Intro 文 ----- */
.notes-intro {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.0rem;
  color: var(--color-text-sub);
  line-height: 1.8;
  margin-bottom: 20px;
}
.notes-intro--ja {
  font-family: var(--font-ja);
  font-size: 0.88rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* ----- patterns 一覧：ヘッダー・コントロール・件数・空表示 ----- */
.patterns-desc {
  font-family: var(--font-ja);
  font-size: 0.84rem;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin-bottom: 28px;
}
.patterns-desc__en { font-family: var(--font-en); font-size: 1.0rem; font-weight: 300; display: block; margin-bottom: 8px; }
.patterns-desc__ja { font-size: 0.88rem; }
#patterns-controls { margin-bottom: 28px; }
.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.controls-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.controls-label {
  font-family: var(--font-en);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-sub);
  margin-right: 2px;
}
.controls-divider {
  width: 1px;
  height: 20px;
  background: var(--color-border);
}
@media (max-width: 599px) {
  .controls-divider { display: none; }
}
.result-count {
  font-family: var(--font-en);
  font-size: 0.75rem;
  color: var(--color-text-sub);
  margin-bottom: 16px;
}
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-sub);
  font-family: var(--font-en);
  font-size: 0.9rem;
  display: none;
}
.no-results.is-visible { display: block; }
.no-results i {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  color: var(--color-border);
}


/* =====================================================================
   9. Layout Wrappers — 中央寄せ・最大幅コンテナ
   （いずれも max-width + 左右padding で完結する流動レイアウト。
    ブレークポイントは内部のグリッド側が持つため専用MQは不要）
   ===================================================================== */

/* 汎用ラッパー：about / privacy / apps/index / 404 等（740px） */
.page-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 24px 80px;
}
/* 汎用ワイドラッパー：ワイドな汎用ページ用（1100px） */
.page-inner-wide {
  max-width: var(--content-max-wide);
  margin: 0 auto;
  padding: 28px 24px 80px;
}
/* パターン一覧専用ラッパー（1100px・詳細と別運用） */
.patterns-page-inner {
  max-width: var(--content-max-wide);
  margin: 0 auto;
  padding: 28px 24px 60px;
}


/* ===== Coming Soon（プレースホルダNotes・中央フォーカル） ===== */
.notes-coming-soon {
  text-align: center;
  padding: 52px 0;
}
.notes-coming-soon__mark {
  width: 6px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 1px;
  margin: 0 auto 18px;
}
.notes-coming-soon__text {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: var(--color-text);
}
.notes-coming-soon__sub {
  font-family: var(--font-en);
  font-weight: 300;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--color-text-sub);
  margin-top: 14px;
}
