/* ===== 海老名発・山登りガイド スタイル ===== */
/* index.html から分離（中身は無変更） */

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

    :root {
      --green-dark: #2d5016;
      --green: #4a7c28;
      --green-light: #7ab648;
      --earth: #8b6914;
      --earth-light: #c49a2a;
      --sky: #4a90d9;
      --sky-light: #87c0f0;
      --bg: #f5f0e8;
      --white: #fff;
      --text: #2c2c2c;
      --muted: #666;
    }

    body {
      font-family: 'Helvetica Neue', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.6;
    }

    /* Hero */
    .hero {
      background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 40%, var(--sky) 100%);
      color: white;
      padding: 60px 20px 80px;
      text-align: center;
      position: relative;
      overflow: hidden;
    }
    .hero::before {
      content: '⛰';
      position: absolute;
      font-size: 300px;
      opacity: 0.06;
      bottom: -60px;
      right: -40px;
    }
    .hero h1 {
      font-size: clamp(1.8rem, 5vw, 3rem);
      font-weight: 800;
      letter-spacing: 0.05em;
      text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .hero p {
      margin-top: 12px;
      font-size: 1.1rem;
      opacity: 0.9;
    }
    .hero-badge {
      display: inline-block;
      background: rgba(255,255,255,0.2);
      border: 1px solid rgba(255,255,255,0.4);
      border-radius: 20px;
      padding: 4px 14px;
      font-size: 0.85rem;
      margin-bottom: 16px;
      backdrop-filter: blur(4px);
    }

    /* Nav tabs */
    .tabs {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px;
      background: var(--green-dark);
      padding: 12px 16px;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    .tab-btn {
      background: transparent;
      border: 1px solid rgba(255,255,255,0.3);
      color: rgba(255,255,255,0.8);
      padding: 6px 16px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.9rem;
      transition: all 0.2s;
    }
    .tab-btn:hover, .tab-btn.active {
      background: white;
      color: var(--green-dark);
      border-color: white;
      font-weight: bold;
    }

    /* Sections */
    .section {
      display: none;
      max-width: 860px;
      margin: 0 auto;
      padding: 40px 20px;
    }
    .section.active { display: block; }

    .section-title {
      font-size: 1.6rem;
      font-weight: 800;
      color: var(--green-dark);
      border-left: 5px solid var(--green-light);
      padding-left: 14px;
      margin-bottom: 28px;
    }

    /* Cards */
    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 20px;
    }
    .card {
      background: white;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .card:hover {
      transform: translateY(-4px);
      box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    }
    .card-header {
      padding: 18px 18px 12px;
      background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
      color: white;
    }
    .card-header.brown {
      background: linear-gradient(135deg, var(--earth) 0%, #5a3e08 100%);
    }
    .card-header.blue {
      background: linear-gradient(135deg, var(--sky) 0%, #2a5fa0 100%);
    }
    .card-title {
      font-size: 1.2rem;
      font-weight: 700;
    }
    .card-sub {
      font-size: 0.8rem;
      opacity: 0.85;
      margin-top: 2px;
    }
    .card-body {
      padding: 16px 18px;
    }
    .card-body p {
      font-size: 0.92rem;
      color: var(--muted);
      margin-bottom: 10px;
    }

    /* Tags */
    .tag {
      display: inline-block;
      padding: 2px 10px;
      border-radius: 12px;
      font-size: 0.78rem;
      font-weight: bold;
      margin: 2px 2px;
    }
    .tag-easy { background: #d4edda; color: #155724; }
    .tag-mid  { background: #fff3cd; color: #856404; }
    .tag-hard { background: #f8d7da; color: #721c24; }
    .tag-onsen { background: #d1ecf1; color: #0c5460; }
    .tag-car  { background: #e2e3e5; color: #383d41; }
    .tag-train { background: #d6d8f7; color: #2f3593; }

    /* Route table */
    .route-block {
      background: white;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      margin-bottom: 24px;
    }
    .route-header {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px 20px;
      background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
      color: white;
    }
    .route-icon {
      font-size: 2rem;
    }
    .route-title { font-size: 1.1rem; font-weight: 700; }
    .route-subtitle { font-size: 0.82rem; opacity: 0.85; }
    .route-body { padding: 16px 20px; }
    .route-row {
      display: flex;
      gap: 8px;
      align-items: flex-start;
      padding: 10px 0;
      border-bottom: 1px solid #f0ece4;
      font-size: 0.92rem;
    }
    .route-row:last-child { border-bottom: none; }
    .route-label {
      min-width: 80px;
      color: var(--muted);
      font-size: 0.82rem;
      padding-top: 2px;
    }
    .route-val { flex: 1; }
    .route-step {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 0.88rem;
      padding: 3px 0;
    }
    .arrow { color: var(--green); font-weight: bold; }

    /* Philosophy */
    .philosophy-block {
      background: white;
      border-radius: 16px;
      padding: 28px 28px;
      margin-bottom: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      border-left: 5px solid var(--green-light);
    }
    .philosophy-block h3 {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--green-dark);
      margin-bottom: 12px;
    }
    .philosophy-block p {
      font-size: 0.95rem;
      color: var(--text);
      line-height: 1.9;
    }
    .quote {
      font-size: 1.1rem;
      font-style: italic;
      color: var(--green);
      border-left: 3px solid var(--green-light);
      padding-left: 16px;
      margin: 16px 0;
      font-weight: 500;
    }

    /* Onsen */
    .onsen-card {
      background: white;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      margin-bottom: 20px;
      display: flex;
      transition: transform 0.2s, box-shadow 0.2s;
      text-decoration: none;
      color: inherit;
      cursor: pointer;
    }
    .onsen-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
    .onsen-stripe {
      width: 8px;
      background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky) 100%);
      flex-shrink: 0;
    }
    .onsen-body { padding: 18px 20px; flex: 1; }
    .onsen-name { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
    .onsen-desc { font-size: 0.9rem; color: var(--muted); margin-bottom: 10px; }
    .onsen-info { font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); }
    .onsen-info span { display: flex; align-items: center; gap: 4px; }

    /* Food */
    .food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
    .food-card {
      background: white;
      border-radius: 16px;
      padding: 20px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      text-align: center;
      transition: transform 0.2s, box-shadow 0.2s;
      text-decoration: none;
      color: inherit;
      display: block;
      cursor: pointer;
    }
    .food-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.14); }
    .food-emoji { font-size: 3rem; display: block; margin-bottom: 10px; }
    .food-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
    .food-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.7; }
    .food-where { margin-top: 10px; font-size: 0.8rem; color: var(--earth); font-weight: bold; }
    .food-search { margin-top: 8px; font-size: 0.75rem; color: var(--green-light); }

    /* Onsen grid (per-mountain cards) */
    .onsen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
    .onsen-item-card {
      background: white;
      border-radius: 16px;
      padding: 18px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      text-align: center;
      transition: transform 0.2s, box-shadow 0.2s;
      text-decoration: none;
      color: inherit;
      display: block;
      cursor: pointer;
    }
    .onsen-item-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(74,144,217,0.22); }
    .onsen-item-emoji { font-size: 2.4rem; display: block; margin-bottom: 8px; }
    .onsen-item-name { font-size: 1rem; font-weight: 700; margin-bottom: 5px; }
    .onsen-item-where { margin-top: 8px; font-size: 0.78rem; color: #4a90d9; font-weight: bold; }
    .onsen-item-search { margin-top: 6px; font-size: 0.75rem; color: #87c0f0; }

    /* Footer */
    footer {
      text-align: center;
      padding: 32px 20px;
      background: var(--green-dark);
      color: rgba(255,255,255,0.6);
      font-size: 0.85rem;
    }
    footer strong { color: rgba(255,255,255,0.9); }

    /* Difficulty meter */
    .diff-bar {
      display: flex;
      gap: 3px;
      margin-top: 6px;
    }
    .diff-dot {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #ddd;
    }
    .diff-dot.filled { background: var(--green-light); }
    .diff-dot.hard { background: #e74c3c; }

    /* 百名山タブ */
    .hyaku-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
      margin-bottom: 24px;
    }
    .hyaku-progress-wrap {
      flex: 1;
      min-width: 200px;
    }
    .hyaku-progress-label {
      font-size: 1rem;
      font-weight: 700;
      color: var(--green-dark);
      margin-bottom: 6px;
    }
    .hyaku-progress-bar {
      height: 12px;
      background: #ddd;
      border-radius: 6px;
      overflow: hidden;
    }
    .hyaku-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--green-light), var(--earth-light));
      border-radius: 6px;
      transition: width 0.5s ease;
    }
    .hyaku-view-toggle {
      display: flex;
      gap: 8px;
    }
    .hyaku-view-btn {
      background: white;
      border: 2px solid var(--green);
      color: var(--green-dark);
      padding: 7px 18px;
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.88rem;
      font-weight: bold;
      transition: all 0.2s;
    }
    .hyaku-view-btn.active {
      background: var(--green);
      color: white;
    }
    #hyaku-map {
      width: 100%;
      height: 480px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    }
    .hyaku-list-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
      gap: 14px;
    }
    .hyaku-card {
      background: white;
      border-radius: 12px;
      padding: 14px 14px 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
      cursor: pointer;
      transition: transform 0.15s, box-shadow 0.15s;
      border: 2px solid transparent;
      position: relative;
    }
    .hyaku-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
    .hyaku-card.climbed { border-color: var(--earth-light); background: #fffbf0; }
    .hyaku-card-num {
      font-size: 0.72rem;
      color: var(--muted);
      margin-bottom: 2px;
    }
    .hyaku-card-name {
      font-size: 0.95rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 4px;
    }
    .hyaku-card-elev {
      font-size: 0.78rem;
      color: var(--muted);
    }
    .hyaku-card-date {
      font-size: 0.75rem;
      color: var(--earth);
      margin-top: 4px;
      font-weight: bold;
    }
    .hyaku-card-unmark {
      position: absolute;
      bottom: 8px; right: 8px;
      background: none;
      border: none;
      color: #aaa;
      font-size: 1rem;
      cursor: pointer;
      line-height: 1;
      padding: 2px 4px;
      border-radius: 4px;
    }
    .hyaku-card-unmark:hover { color: #e74c3c; background: #fee; }

    /* GPX読み込み */
    .gpx-btn {
      background: linear-gradient(135deg, #e67e22, #d35400);
      color: white;
      border: none;
      border-radius: 20px;
      padding: 8px 18px;
      font-size: 0.88rem;
      font-weight: bold;
      cursor: pointer;
      transition: opacity 0.2s;
      white-space: nowrap;
    }
    .gpx-btn:hover { opacity: 0.85; }
    #gpx-result {
      background: white;
      border-radius: 16px;
      padding: 20px 24px;
      margin-top: 16px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.10);
      border-left: 5px solid #e67e22;
      animation: fadeInUp 0.3s ease;
    }
    .gpx-result-title {
      font-size: 1rem;
      font-weight: 800;
      color: #c0392b;
      margin-bottom: 14px;
    }
    .gpx-mountain-match {
      background: #fff8f0;
      border-radius: 10px;
      padding: 14px 16px;
      margin-bottom: 14px;
    }
    .gpx-mountain-name {
      font-size: 1.1rem;
      font-weight: 800;
      color: var(--green-dark);
      margin-bottom: 4px;
    }
    .gpx-meta {
      font-size: 0.82rem;
      color: var(--muted);
    }
    .gpx-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      margin-top: 12px;
    }
    .gpx-confirm-btn {
      background: var(--green);
      color: white;
      border: none;
      border-radius: 10px;
      padding: 8px 20px;
      font-size: 0.9rem;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.2s;
    }
    .gpx-confirm-btn:hover { background: var(--green-dark); }
    .gpx-cancel-btn {
      background: #eee;
      color: #555;
      border: none;
      border-radius: 10px;
      padding: 8px 16px;
      font-size: 0.9rem;
      cursor: pointer;
    }
    .type-btn {
      background: #f0f0f0;
      border: 1px solid #ddd;
      border-radius: 12px;
      padding: 4px 8px;
      font-size: 0.75rem;
      cursor: pointer;
      transition: all 0.15s;
      white-space: nowrap;
    }
    .type-btn.active {
      background: var(--green);
      color: white;
      border-color: var(--green);
    }

    /* 選択山の周辺情報パネル */
    #hyaku-detail-panel {
      background: white;
      border-radius: 16px;
      padding: 20px 24px;
      margin-top: 16px;
      box-shadow: 0 2px 12px rgba(0,0,0,0.08);
      border-left: 5px solid var(--green-light);
      animation: fadeInUp 0.3s ease;
    }
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(10px); }
      to   { opacity: 1; transform: none; }
    }
    .detail-mountain-name {
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--green-dark);
      margin-bottom: 14px;
    }
    .detail-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 14px;
    }
    .detail-block {
      background: var(--bg);
      border-radius: 10px;
      padding: 12px 14px;
    }
    .detail-block-title {
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--green-dark);
      margin-bottom: 8px;
    }
    .detail-block p {
      font-size: 0.85rem;
      color: var(--text);
      line-height: 1.7;
      margin: 0;
    }
    .detail-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }
    .detail-chip {
      background: white;
      border: 1px solid #dde;
      border-radius: 12px;
      padding: 3px 10px;
      font-size: 0.8rem;
      color: var(--text);
      text-decoration: none;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
    }
    a.detail-chip:hover {
      background: #f0f7e8;
      border-color: var(--green-light);
      color: var(--green-dark);
    }
    .hyaku-card-star {
      position: absolute;
      top: 10px; right: 10px;
      font-size: 1.1rem;
    }
    .hyaku-popup-btn {
      background: var(--green);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 6px 14px;
      font-size: 0.85rem;
      cursor: pointer;
      margin-top: 8px;
      width: 100%;
      font-weight: bold;
      transition: background 0.2s;
    }
    .hyaku-popup-btn:hover { background: var(--green-dark); }
    .hyaku-popup-btn.climbed-btn {
      background: var(--earth-light);
      color: #5a3e08;
    }
    #confetti-canvas {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      pointer-events: none;
      z-index: 9999;
    }
    .flash-overlay {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(255,220,50,0.35);
      pointer-events: none;
      z-index: 9998;
      opacity: 0;
      transition: opacity 0.1s;
    }

    /* ===== YAMAPスタイル活動カード ===== */
    .yamap-activity-card {
      background: white;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 2px 10px rgba(0,0,0,0.10);
      margin-bottom: 12px;
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .yamap-activity-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(0,0,0,0.16);
    }
    .yamap-cover {
      position: relative;
      min-height: 90px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 10px 14px 12px;
      overflow: hidden;
    }
    .yamap-cover-bg-emoji {
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -65%);
      font-size: 3rem;
      opacity: 0.25;
      pointer-events: none;
    }
    .yamap-cover-info { position: relative; z-index: 1; }
    .yamap-cover-title {
      color: white;
      font-size: 0.95rem;
      font-weight: 800;
      text-shadow: 0 1px 4px rgba(0,0,0,0.4);
      line-height: 1.3;
    }
    .yamap-cover-date {
      color: rgba(255,255,255,0.88);
      font-size: 0.75rem;
      margin-top: 2px;
    }
    .yamap-cover-star {
      position: absolute;
      top: 8px; right: 10px;
      font-size: 1.2rem;
    }
    .yamap-body { padding: 10px 12px; }
    .yamap-stats {
      display: flex;
      border: 1px solid #efefef;
      border-radius: 8px;
      overflow: hidden;
      margin-bottom: 8px;
    }
    .yamap-stat {
      flex: 1;
      text-align: center;
      padding: 6px 2px;
      border-right: 1px solid #efefef;
    }
    .yamap-stat:last-child { border-right: none; }
    .yamap-stat-label {
      font-size: 0.62rem;
      color: var(--muted);
      margin-bottom: 1px;
      letter-spacing: 0.02em;
    }
    .yamap-stat-value {
      font-size: 0.82rem;
      font-weight: 800;
      color: var(--text);
    }
    .yamap-link-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      background: linear-gradient(135deg, #00bcd4, #0097a7);
      color: white !important;
      border: none;
      border-radius: 8px;
      padding: 6px 10px;
      font-size: 0.78rem;
      font-weight: bold;
      cursor: pointer;
      text-decoration: none;
      transition: opacity 0.2s;
      flex: 2;
    }
    .yamap-link-btn:hover { opacity: 0.85; }
    .yamap-delete-btn {
      background: none;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      padding: 6px 8px;
      font-size: 0.75rem;
      color: #bbb;
      cursor: pointer;
      transition: all 0.2s;
      flex: 1;
    }
    .yamap-delete-btn:hover { border-color: #e74c3c; color: #e74c3c; }
    .yamap-action-row {
      display: flex;
      gap: 6px;
    }
    /* リストビューの登頂済みカード */
    .hyaku-card.climbed-yamap {
      padding: 0;
      overflow: hidden;
    }
    .hyaku-card.climbed-yamap:hover { transform: translateY(-3px); }

    @media (max-width: 600px) {
      .hero { padding: 40px 16px 60px; }
      .card-grid { grid-template-columns: 1fr; }
      .onsen-card { flex-direction: column; }
      .onsen-stripe { width: 100%; height: 6px; }
      .hyaku-list-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
      #hyaku-map { height: 320px; }
    }

    /* ===== 山小屋タブ ===== */
    .yamagoya-mountain-header {
      color: white;
      padding: 12px 16px;
      border-radius: 12px 12px 0 0;
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: linear-gradient(135deg, #8d6e63 0%, #4e342e 100%);
    }
    .yamagoya-mountain-header.climbed {
      background: linear-gradient(135deg, #9aaa9a 0%, #6a7a6a 100%);
    }
    .yamagoya-body {
      background: white;
      border-radius: 0 0 12px 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
      overflow: hidden;
    }
    .yamagoya-hut-card {
      padding: 14px 16px;
      border-left: 4px solid #8d6e63;
    }
    .yamagoya-hut-card.user-added { border-left-color: #66bb6a; }
    .yamagoya-hut-card + .yamagoya-hut-card { border-top: 1px solid #f0ece4; }
    .yamagoya-hut-name {
      font-weight: 700;
      font-size: 1rem;
      color: #3e2723;
      margin-bottom: 4px;
    }
    .yamagoya-badge {
      display: inline-block;
      border-radius: 6px;
      padding: 1px 7px;
      font-size: 0.72rem;
      font-weight: 600;
      margin-left: 6px;
      vertical-align: middle;
    }
    .yamagoya-badge.fixed { background: #efebe9; color: #5d4037; }
    .yamagoya-badge.user  { background: #e8f5e9; color: #2e7d32; }
    .yamagoya-event-chip {
      display: inline-block;
      background: #fff3e0;
      color: #e65100;
      border-radius: 6px;
      padding: 2px 8px;
      font-size: 0.8rem;
      margin: 2px 4px 2px 0;
    }
    .yamagoya-info-chip {
      display: inline-block;
      background: #f5f5f5;
      color: var(--muted);
      border-radius: 6px;
      padding: 2px 8px;
      font-size: 0.8rem;
      margin: 2px 4px 2px 0;
    }
    .yamagoya-link-chip {
      display: inline-block;
      background: #e3f2fd;
      color: #1565c0;
      border-radius: 6px;
      padding: 2px 8px;
      font-size: 0.8rem;
      font-weight: 600;
      margin: 2px 4px 2px 0;
      text-decoration: none;
    }
    .yamagoya-add-btn {
      background: rgba(255,255,255,0.2);
      border: 1px solid rgba(255,255,255,0.5);
      color: white;
      padding: 6px 13px;
      border-radius: 8px;
      font-size: 0.82rem;
      cursor: pointer;
      white-space: nowrap;
      min-height: 36px;
    }
    /* 山小屋モーダルのフォーム */
    .yg-form-row { margin-bottom: 14px; }
    .yg-form-row label {
      display: block;
      font-size: 0.82rem;
      color: var(--muted);
      margin-bottom: 4px;
      font-weight: 600;
    }
    .yg-form-row input,
    .yg-form-row textarea {
      width: 100%;
      padding: 11px 14px;
      border: 2px solid #ddd;
      border-radius: 10px;
      font-size: 0.92rem;
      outline: none;
      transition: border-color 0.2s;
      font-family: inherit;
    }
    .yg-form-row input:focus,
    .yg-form-row textarea:focus { border-color: #8d6e63; }
    .yg-form-row textarea { resize: vertical; min-height: 72px; }

    /* ===== YAMAP計画モーダル ===== */
    .plan-modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.55);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .plan-modal-overlay.open { display: flex; }
    .plan-modal {
      background: white;
      border-radius: 20px;
      padding: 28px 24px;
      width: 100%;
      max-width: 440px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    }
    .plan-modal h3 {
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--green-dark);
      margin-bottom: 8px;
    }
    .plan-modal-desc {
      font-size: 0.85rem;
      color: var(--muted);
      margin-bottom: 16px;
      line-height: 1.5;
    }
    .plan-modal input[type="url"] {
      width: 100%;
      padding: 14px 16px;
      border: 2px solid #ddd;
      border-radius: 12px;
      font-size: 0.95rem;
      outline: none;
      transition: border-color 0.2s;
    }
    .plan-modal input[type="url"]:focus { border-color: var(--green); }
    .plan-modal-btns {
      display: flex;
      gap: 10px;
      margin-top: 16px;
    }
    .plan-modal-btns button {
      flex: 1;
      padding: 14px;
      border: none;
      border-radius: 12px;
      font-size: 0.95rem;
      font-weight: 700;
      cursor: pointer;
      min-height: 48px; /* スマホでタップしやすいサイズ */
    }
    .plan-btn-save { background: var(--green); color: white; }
    .plan-btn-cancel { background: #f0ece4; color: var(--text); }
    .plan-btn-delete { background: #f8d7da; color: #721c24; flex: 0 0 auto; padding: 14px 18px; }

    /* ===== マイアクセスブロック ===== */
    .access-user-block {
      background: #f0f7e8;
      border-radius: 10px;
      padding: 12px 14px;
      margin-top: 10px;
      border-left: 4px solid var(--green-light);
    }
    .access-user-block .route-row {
      border-bottom: none;
      padding: 4px 0;
    }

    /* ===== 詳細パネルのタブ ===== */
    .detail-tabs {
      display: flex;
      gap: 6px;
      flex-wrap: nowrap;
      overflow-x: auto;
      margin-bottom: 14px;
      padding-bottom: 12px;
      border-bottom: 1px solid #eee;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .detail-tabs::-webkit-scrollbar { display: none; }
    .detail-tab-btn {
      background: #f0ece4;
      border: none;
      border-radius: 20px;
      padding: 7px 15px;
      font-size: 0.82rem;
      font-weight: bold;
      cursor: pointer;
      color: var(--text);
      transition: all 0.15s;
      white-space: nowrap;
      flex-shrink: 0;
    }
    .detail-tab-btn:hover { background: #e0dcd4; }
    .detail-tab-btn.active {
      background: var(--green-dark);
      color: white;
    }
