/* ================================================================
   femizemi-cafe theme — main.css
   静的版 index.html の <style> ブロックを逐語コピー。
   base64データURIのみ assets/img/ の抽出画像への url() に置換（配置・サイズは静的版のまま）。
   多言語スイッチャ/言語別フォントは i18n.css を参照。
   ================================================================ */

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --sage:          #7A9E7E;
      --sage-dark:     #5A7E5E;
      --apricot:       #E8905A;
      --apricot-dark:  #C87040;
      --yellow:        #C8A820;
      --yellow-bg:     #F9EFA0;
      --deep:          #2C5F4A;
      --deep-dark:     #1A3D2E;
      --bg:            #F8F7F4;
      --white:         #FFFFFF;
      --text:          #1A1A1A;
      --text-mid:      #444;
      --text-light:    #666;
      --border:        #E2E0D8;
      --radius:        14px;
    }

    body {
      font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.8;
      -webkit-font-smoothing: antialiased;
    }

    a { color: inherit; }

    /* ── Header ───────────────────────────────── */
    header {
      background: var(--white);
      border-bottom: 1px solid var(--border);
      padding: 1.25rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 100;
    }

    .logo {
      display: flex;
      flex-direction: column;
      gap: 0.1rem;
      text-decoration: none;
    }

    .logo-ja {
      font-size: 1.05rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: var(--text);
    }

    .logo-en {
      font-size: 0.65rem;
      font-weight: 400;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--text-light);
    }

    nav { display: flex; gap: 0.15rem; flex-wrap: wrap; justify-content: flex-end; }
    nav a {
      font-size: 0.78rem;
      font-weight: 500;
      color: var(--text-mid);
      text-decoration: none;
      padding: 0.35rem 0.7rem;
      border-radius: 100px;
      white-space: nowrap;
      transition: background 0.15s;
    }
    nav a:hover { background: var(--bg); color: var(--text); }
    @media (max-width: 500px) { nav { display: none; } }

    /* ── Hero ─────────────────────────────────── */
    .hero {
      padding: 5rem 2rem 4rem;
      text-align: center;
    }

    .hero-eyebrow {
      display: inline-block;
      font-size: 0.65rem;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--text-light);
      border: 1px solid var(--border);
      border-radius: 100px;
      padding: 0.35rem 1rem;
      margin-bottom: 2rem;
    }

    .hero h1 {
      font-size: clamp(2.2rem, 6.5vw, 4rem);
      font-weight: 700;
      letter-spacing: 0.12em;
      line-height: 1.25;
      margin-bottom: 2rem;
      font-family: 'Zen Maru Gothic', sans-serif;
    }

    .hero-desc {
      font-size: 1.05rem;
      color: #3D6B9E;
      line-height: 2;
      max-width: 560px;
      margin: 0 auto;
      min-height: 4.5rem;
    }

    .hero-desc .typewriter-cursor {
      display: inline-block;
      width: 2px;
      height: 1.1em;
      background: var(--text-mid);
      margin-left: 2px;
      vertical-align: middle;
      animation: blink 0.75s step-end infinite;
    }

    @keyframes blink {
      0%, 100% { opacity: 1; }
      50% { opacity: 0; }
    }


    /* ── News Section (Timeline) ─────────────────── */
    .news-section {
      max-width: 700px;
      margin: 0 auto;
      padding: 3rem 2rem 1rem;
    }

    .news-section-heading {
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--text-light);
      margin-bottom: 2rem;
    }

    /* タイムライン縦線 */
    .timeline {
      position: relative;
      padding-left: 1.6rem;
    }
    .timeline::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0.45rem;
      bottom: 0;
      width: 1px;
      background: var(--border);
    }

    /* 各アイテム */
    .news-item {
      position: relative;
      display: flex;
      align-items: baseline;
      gap: 1rem;
      padding: 0.55rem 0;
      border-bottom: none;
    }

    /* 左の色点 */
    .news-item::before {
      content: '';
      position: absolute;
      left: -1.6rem;
      top: 0.9rem;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--border);
      flex-shrink: 0;
    }
    .news-item[data-src="cafe"]::before    { background: var(--sage); }
    .news-item[data-src="femizemi"]::before { background: #3DBFA8; }
    .news-item[data-src="yurufemi"]::before { background: var(--apricot); }

    .news-meta {
      display: flex;
      flex-direction: column;
      gap: 0.1rem;
      flex-shrink: 0;
      width: 5.5rem;
    }

    .news-date {
      color: var(--text-light);
      font-size: 0.7rem;
      white-space: nowrap;
    }

    .news-src {
      font-size: 0.62rem;
      font-weight: 700;
      letter-spacing: 0.05em;
      white-space: nowrap;
    }
    .news-src--cafe     { color: var(--sage-dark); }
    .news-src--femizemi { color: #2A9E8C; }
    .news-src--yurufemi { color: var(--apricot-dark); }

    .news-link {
      color: var(--text);
      text-decoration: none;
      font-size: 0.88rem;
      line-height: 1.6;
      flex: 1;
    }
    .news-link:hover { color: var(--sage-dark); text-decoration: underline; }

    .news-loading {
      color: var(--text-light);
      font-size: 0.82rem;
      padding: 0.4rem 0;
    }

    @media (max-width: 560px) {
      .news-meta { width: 4.5rem; }
    }

  

    /* ── Panels ───────────────────────────────── */
    .panels-wrap {
      padding: 1.5rem 2rem 3rem;
      max-width: 860px;
      margin: 0 auto;
    }

    .panels-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }

    @media (max-width: 620px) {
      .panels-grid { grid-template-columns: 1fr; }
    }

    .panel {
      display: flex;
      flex-direction: column;
      text-decoration: none;
      color: var(--text);
      background: var(--white);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 2px 16px rgba(0,0,0,0.07);
      border-left: 4px solid transparent;
      transition: transform 0.22s ease, box-shadow 0.22s ease;
    }

    .panel:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 32px rgba(0,0,0,0.12);
    }

    .panel--seminar  { border-left-color: #3DBFA8; }
    .panel--cafe     { border-left-color: var(--apricot); }
    .panel--magazine { border-left-color: var(--yellow); }
    .panel--research { border-left-color: var(--deep); }

    .panel-bar { display: none; }

    .panel-body {
      padding: 1.2rem 1.4rem 1.4rem;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .panel--seminar .panel-body,
    .panel--cafe .panel-body {
      flex-direction: row;
      align-items: center;
      gap: 0.8rem;
    }

    .panel-text {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
    }

    .panel-label {
      font-size: 0.6rem;
      font-weight: 700;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      margin-bottom: 0.4rem;
    }
    .panel--seminar  .panel-label { color: #2A9E8C; }
    .panel--cafe     .panel-label { color: var(--apricot-dark); }
    .panel--magazine .panel-label { color: var(--yellow); }
    .panel--research .panel-label { color: var(--deep); }

    .panel-title {
      font-size: 1.1rem;
      font-weight: 700;
      line-height: 1.4;
      margin-bottom: 0.4rem;
    }

    .panel-tagline {
      font-size: 0.82rem;
      color: var(--text-light);
      line-height: 1.6;
      flex: 1;
      margin-bottom: 0.9rem;
    }

    .panel-cta {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.78rem;
      font-weight: 700;
      padding: 0.4rem 1rem;
      border-radius: 20px;
      color: #fff;
      align-self: flex-start;
    }
    .panel--seminar  .panel-cta { background: #3DBFA8; }
    .panel--cafe     .panel-cta { background: var(--apricot); }
    .panel--magazine .panel-cta { background: var(--yellow); color: #fff; }
    .panel--research .panel-cta { background: var(--deep); }

    .panel-image {
      width: 110px;
      height: 110px;
      flex-shrink: 0;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .panel-image img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    /* ── About / Missions / Footer ─────────────── */


    /* ── About ────────────────────────────────── */
    .about {
      padding: 5rem 2rem;
      background:
        url('../img/about_deco.png') no-repeat right bottom / 160px auto,
        #D4E8E3;
    }

    .about-inner {
      max-width: 860px;
      margin: 0 auto;
    }

    .section-eyebrow {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.3em;
      text-transform: uppercase;
      color: var(--sage-dark);
      margin-bottom: 0.8rem;
    }

    .about h2 {
      font-size: clamp(1.6rem, 4vw, 2.4rem);
      font-weight: 700;
      letter-spacing: 0.06em;
      line-height: 1.3;
      margin-bottom: 2rem;
      color: var(--deep);
    }

    .about-intro {
      font-size: 1rem;
      line-height: 2;
      color: var(--text-mid);
      margin-bottom: 3rem;
    }

    /* Missions */
    .missions-title {
      font-size: 1rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      color: var(--deep);
      border-left: 4px solid var(--sage);
      padding-left: 0.8rem;
      margin-bottom: 1.5rem;
    }

    .mission-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-bottom: 3.5rem;
    }

    .mission-item {
      display: flex;
      gap: 1.2rem;
      align-items: flex-start;
    }

    .mission-num {
      width: 2rem;
      height: 2rem;
      border-radius: 50%;
      background: var(--sage);
      color: #fff;
      font-size: 0.8rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      margin-top: 0.15rem;
    }

    .mission-item h4 {
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 0.4rem;
      line-height: 1.5;
    }

    .mission-item p {
      font-size: 0.88rem;
      color: var(--text-mid);
      line-height: 1.9;
    }

    /* Approaches */
    .approach-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 1.5rem;
      margin-bottom: 3rem;
    }

    .approach-item {
      border-left: 3px solid var(--border);
      padding-left: 1.2rem;
    }

    .approach-item h4 {
      font-size: 0.95rem;
      font-weight: 700;
      margin-bottom: 0.4rem;
      color: var(--text);
    }

    .approach-item p {
      font-size: 0.88rem;
      color: var(--text-mid);
      line-height: 1.9;
    }

    .expand-content {
      display: none;
      margin-top: 0.6rem;
    }

    .expand-content p {
      font-size: 0.88rem;
      color: var(--text-mid);
      line-height: 1.9;
      margin-bottom: 0.8rem;
    }

    .expand-btn {
      background: none;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 0.3rem 0.9rem;
      font-size: 0.75rem;
      color: var(--text-light);
      cursor: pointer;
      margin-top: 0.6rem;
      font-family: inherit;
      transition: background 0.15s;
    }

    .expand-btn:hover { background: var(--bg); }

    /* ── Footer ────────────────────────────────── */
    footer {
      background: var(--deep);
      color: rgba(255,255,255,0.75);
      text-align: center;
      padding: 3rem 2rem;
      font-size: 0.82rem;
    }

    .footer-links {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0.5rem 1.5rem;
      margin-bottom: 1rem;
    }

    .footer-links a {
      color: rgba(255,255,255,0.75);
      text-decoration: none;
      transition: color 0.15s;
    }

    .footer-links a:hover { color: #fff; }

    footer p {
      font-size: 0.75rem;
      color: rgba(255,255,255,0.5);
      margin-top: 1rem;
    }


    .about-link {
      display: inline-block;
      margin-top: 1rem;
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--deep);
      text-decoration: none;
      border-bottom: 1px solid var(--sage);
      padding-bottom: 0.1rem;
      transition: opacity 0.15s;
    }
    .about-link:hover { opacity: 0.7; }

    /* ── Hero background ─────────────────────────── */
    .hero {
      position: relative;
      background: linear-gradient(160deg, #EAF3EB 0%, #F8F7F4 55%, #FDF6EE 100%);
    }
    .hero::after {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        url('../img/hero_leaf.png'),
        url('../img/hero_leaf.png'),
        url('../img/hero_leaf.png');
      background-size: 180px auto, 160px auto, 100px auto;
      background-repeat: no-repeat, no-repeat, no-repeat;
      background-position: 0px bottom, 155px calc(100% - 140px), calc(50% - 260px) 10%;
      opacity: 0.88;
      z-index: 0;
      pointer-events: none;
    }
    @media (max-width: 600px) {
      .hero::after {
        background-size: 110px auto, 105px auto, 70px auto;
        background-position: 0px bottom, 95px calc(100% - 85px), calc(50% - 160px) 10%;
      }
    }
    .hero::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: url('../img/hero_cover.png');
      background-repeat: no-repeat;
      background-size: cover;
      background-position: center center;
      opacity: 0.92;
      filter: saturate(1.4) brightness(1.12);
      z-index: 0;
    }
    .hero > * { position: relative; z-index: 1; }

    /* mint-sections */
    .panel--magazine {
      background-image: url('../img/panel_mint_magazine.png');
      background-repeat: no-repeat;
      background-size: 52% auto;
      background-position: right bottom;
    }
    .panel--research {
      background-image: url('../img/panel_mint.png');
      background-repeat: no-repeat;
      background-size: 52% auto;
      background-position: left bottom;
    }
    .panel--seminar {
      background-image: url('../img/panel_mint.png');
      background-repeat: no-repeat;
      background-size: 30% auto;
      background-position: left bottom;
    }
    .panel--cafe {
      background-image: url('../img/panel_mint.png');
      background-repeat: no-repeat;
      background-size: 40% auto;
      background-position: left bottom;
    }

    /* /mint-sections */

  

/* ===== Support & Certification（静的版 partner <style> をそのまま） ===== */
    .partner {
      background: var(--bg);
      padding: 4.5rem 2rem;
    }
    .partner-inner {
      max-width: 720px;
      margin: 0 auto;
      text-align: center;
    }
    .partner h2 {
      font-size: clamp(1.4rem, 3.5vw, 2rem);
      font-weight: 700;
      letter-spacing: 0.06em;
      line-height: 1.4;
      color: var(--deep);
      margin-bottom: 0.9rem;
    }
    .partner-lead {
      font-size: 0.95rem;
      line-height: 1.9;
      color: var(--text-mid);
      margin-bottom: 2.2rem;
    }
    .hachidori-banner {
      display: block;
      max-width: 560px;
      margin: 0 auto;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: 0 6px 24px rgba(44,95,74,0.14);
      transition: transform 0.18s, box-shadow 0.18s;
    }
    .hachidori-banner:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 30px rgba(44,95,74,0.22);
    }
    .hachidori-banner img { display: block; width: 100%; height: auto; }
    .hachidori-note {
      font-size: 0.78rem;
      color: var(--text-light);
      margin-top: 0.9rem;
    }
    .partner-divider {
      width: 60px;
      height: 2px;
      background: var(--border);
      border: 0;
      margin: 3.2rem auto;
    }
    .cert {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1.6rem;
      flex-wrap: wrap;
    }
    .cert-badge { flex: 0 0 auto; }
    .cert-badge a { display: inline-block; transition: opacity 0.15s; }
    .cert-badge a:hover { opacity: 0.7; }
    .cert-badge img {
      width: 210px;
      height: auto;
      object-fit: contain;
    }
    .cert-text {
      flex: 1 1 300px;
      max-width: 400px;
      text-align: left;
    }
    .cert-text .cert-label {
      font-size: 0.65rem;
      font-weight: 700;
      letter-spacing: 0.25em;
      text-transform: uppercase;
      color: var(--sage-dark);
      margin-bottom: 0.5rem;
    }
    .cert-text p {
      font-size: 0.85rem;
      line-height: 1.85;
      color: var(--text-mid);
    }
    .cert-text a { color: var(--deep); }
    @media (max-width: 560px) {
      .cert { flex-direction: column; gap: 1rem; }
      .cert-text { text-align: center; }
    }
  

/* ===== 追加：ロゴ画像フィールド用（静的版は文字ロゴ。画像未設定時は文字ロゴのままで静的版と一致） ===== */
.logo-img { max-height: 46px; width: auto; display: block; }

/* ===== 追加：ナビ現在ページ表示（サブページ用・静的版の nav a[aria-current] を踏襲） ===== */
nav a[aria-current] { background: var(--bg); color: var(--text); font-weight: 700; }

/* ===== 追加：サブページ写真ギャラリー（スペース／バリアフリー） ===== */
.fz-photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.fz-photo { margin: 0; }
.fz-photo img { width: 100%; height: auto; max-height: 420px; object-fit: cover; border-radius: 14px; box-shadow: 0 4px 20px rgba(0,0,0,0.10); display: block; }
.fz-photo figcaption { font-size: 0.82rem; color: var(--text-light); margin-top: 0.5rem; text-align: center; line-height: 1.7; }
