/* ============================================================
   access.css — merged
   既存スタイル ＋ アクセス図コンポーネント
   ============================================================ */

/* ── CSS変数 ── */
:root {
  --green:       #6b8f6a;
  --green-light: #e8f0e7;
  --green-dark:  #3e5c3d;
  --brown:       #a71616;
  --text:        #333;
  --muted:       #888;
  --border:      #d6e0d5;
  --bg:          #f9faf7;
}


/* ================================================================
   既存スタイル（変更なし・重複解消のみ）
   ================================================================ */
html {
  scroll-behavior: smooth;
}
/* ── セクション共通 ── */
section {
  margin-bottom: 40px;
}

#access-p {
  padding-top: 35px;
  max-width: 990px;
  margin: 0 auto;
}

section > h3 {
  margin-top: 0;
  margin-bottom: 0;
}

section p {
  margin-top: 0;
}

.section__body {
  padding: 16px;
  background: #fff;
}

/* ── 所在地 ── */
.address {
  color: #333;
  margin-bottom: 4px;
  margin-top: 1em;
}
.addr-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 20px;
  background: #f5f8f4;
  border-radius: 10px;
  border: 1px solid #d6e0d5;
  margin: 12px 0;
  font-weight: bold;
}
.addr-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.addr-left svg {
  width: 18px; height: 18px;
  stroke: #3a7d44; fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.addr-text {
  font-size: 14px;
  color: #3e5c3d;
}
.addr-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #3a7d44;
  color: white !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}
.addr-btn:hover { background: #2d6035; }
.addr-btn svg {
  width: 14px; height: 14px;
  stroke: white; fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ── Googleマップ ── */
.map-embed {
  margin-top: 12px;
  border: 1px solid #ddd;
  overflow: hidden;
}
.map-embed iframe {
  width: 100%;
  height: 400px;
  display: block;
  border: none;
}

/* ── 手段ブロック（旧） ── */
.means {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.means:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.means__title::before {
  content: '●';
  font-size: 10px;
}
.means__body p {
  margin-bottom: 2px;
  margin-left: 1em;
}

/* ── 駐車場 ── */
.parking-lead {
  color: #333;
  margin-bottom: 4px;
}

.img-placeholder {
  background: #f5f5f5;
  border: 1px dashed #ccc;
  border-radius: 2px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.sub-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #eee;
}
.sub-section img ,.section__body img{
  width: 90%;
  margin: 20px auto;
  display: block;
}
.sub-section p {
  color: #333;
  line-height: 1.9;
}

/* p.note は下のアクセス図コンポーネントの .note と別物なので接頭詞つきで保持 */
p.note {
  color: #e73131;
  margin-top: 4px;
  font-weight: bold;
}
/*googleボタン*/
.map-btn { display: inline-flex; align-items: center; gap: 8px; background: #3a7d44; color: white !important; border: none; border-radius: 8px; padding: 12px 20px; font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; }
.map-btn:hover { background: #2d6035; }
.map-btn svg { width: 16px; height: 16px; flex-shrink: 0; }


/*どの方法ボタン*/
.nav-outer { background: var( --green-light); border-radius: 12px; padding: 20px 24px 24px; margin: 8px 0; }
.nav-label { font-size: 24px; font-weight: 500; color: var(--green-dark);; margin: 0 0 4px; text-align: center;}
.nav-sub { font-size: 14px; color: var(--green-dark);; margin: 0 0 16px; text-align: center;}
.nav-btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 360px) { .nav-btns { grid-template-columns: 1fr; } .nav-btn { flex-direction: row !important; padding: 14px 16px !important; justify-content: flex-start !important; gap: 12px !important; } .nav-arrow { display: none; } }
.nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 16px 8px;
  border-radius: 10px; border: 2px solid #3a7d44;
  color: #27500A; background: white ;
  font-size: 16px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover { background: #3a7d44; color: white  !important; }
.nav-btn:hover svg { stroke: white; }
.nav-btn svg { width: 28px; height: 28px; stroke: #3a7d44; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.15s; flex-shrink: 0; }
.nav-arrow { font-size: 11px; color: #3B6D11; }
.nav-btn:hover .nav-arrow  {  color: #FFF !important; }

/* ================================================================
   アクセス図コンポーネント（新規）
   ================================================================ */

/* ── Hero ── */
.access-hero {
  padding: 64px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.access-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, #d4e6d3 0%, transparent 65%),
    radial-gradient(ellipse at 20% 80%, #e6ddd0 0%, transparent 50%);
  z-index: 0;
}
.access-hero__inner {
  position: relative;
  z-index: 1;
}
.access-hero__en {
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--green);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.access-hero__title {
  font-size: 28px;
  letter-spacing: 0.15em;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.access-hero__sub {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ── アコーディオンリスト ── */
.access-accordion-list {
  margin-top:20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.access-accordion {
  border: 2px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.access-accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  gap: 12px;
}
.access-accordion__header:hover {
  background: var(--green-light);
}
.access-accordion__header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.access-accordion__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color:#FFF;
}
.access-accordion__icon svg { width: 22px; height: 22px; }
.access-accordion__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--green-dark);
}
.access-accordion__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.3s ease;
}
.access-accordion__chevron svg { width: 20px; height: 20px; }
.access-accordion.open .access-accordion__chevron {
  transform: rotate(180deg);
}
.access-accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.access-accordion.open .access-accordion__body {
  max-height: 2000px;
}
.access-accordion__inner {
  padding: 20px 24px 28px;
  border-top: 2px solid var(--border);
}

/* ── タブコンテンツ（後方互換） ── */
.access-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 28px 28px 48px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 0 4px 4px 4px;
}


@keyframes accessFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── セクション見出し ── */
.access-sec-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.access-sec-heading__icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.access-sec-heading__icon svg { width: 22px; height: 22px; }
.access-sec-heading__text {
  font-size: 16px;
  font-weight: 500;
  color: var(--green-dark);
}
.access-sec-heading__en {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-left: auto;
}

/* ── ステップフロー（バス） ── */
.access-steps { display: flex; flex-direction: column; }

.access-step {
  display: flex;
  gap: 16px;
}
.access-step__left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 36px;
}
.access-step__num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.access-step__line {
  width: 1.5px;
  flex: 1;
  min-height: 28px;
  background: var(--border);
  margin: 0 auto;
}
.access-step__body {
  padding: 4px 0 28px;
  flex: 1;
}
.access-step__title {
  font-size: 16px;
  font-weight: 500;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.access-step__desc {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
}
.access-step__badge {
  display: inline-block;
  margin-top: 6px;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* ── タクシーカード ── */
.access-info-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.access-info-card__title {
  font-size: 14px;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.access-info-card p {
  font-size: 16px;
  color: #333;
  line-height: 1.8;
}
.access-address-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--green-light);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
}
.access-address-box__label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3px;
}
.access-address-box__name {
  font-size: 16px;
  color: var(--green-dark);
  font-weight: bold;
}
.access-address-box__addr {
  font-size: 16px;
  color: var(--green-dark);
  margin-top: 2px;
}
.access-copy-btn {
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.access-copy-btn:hover { background: var(--green); }

/* ── ルートカード（車） ── */
.access-route-list { display: flex; flex-direction: column; gap: 12px; }

.access-route-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.access-route-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }

.access-route-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 12px;
}
.access-route-card__header-left { display: flex; align-items: center; gap: 12px; }

.access-route-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.access-route-card__icon svg { width: 22px; height: 22px; }

.access-route-card__name {
  font-size: 16px;
  font-weight: bold;
  color: var(--green-dark);
}
.access-route-card__via {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.access-route-card__chevron {
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.access-route-card.open .access-route-card__chevron { transform: rotate(180deg); }

.access-route-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.access-route-card.open .access-route-card__body { max-height: 320px; }

.access-route-steps {
  padding: 0 20px 16px;
  border-top: 1px solid var(--border);
}
.access-route-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #eee;
  font-size: 15px;
  color: #333;
  line-height: 1.6;
}
.access-route-step:last-child { border-bottom: none; }
.access-route-step__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── 注意書き（アクセス図用。p.note と別） ── */
.access-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #ffdcdc;
  border-left: 3px solid var(--brown);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  font-size: 16px;
  color:  var(--brown);
  margin-top: 16px;
  line-height: 1.7;
}
.access-note svg { flex-shrink: 0; margin-top: 2px; }




/* ================================================================
   レスポンシブ（既存 ＋ 新規まとめ）
   ================================================================ */
@media (max-width: 540px) {
  /* 既存 */
  .wrap            { padding: 20px 14px 48px; }
  .page-title-bar  { padding: 10px 14px; }
  .page-title-bar .title-jp { font-size: 15px; }
  .route-table th  { width: 72px; font-size: 12px; padding: 6px 8px; }
  .route-table td  { font-size: 12px; padding: 6px 8px; }

  /* 新規 */
  .access-hero     { padding: 40px 16px 32px; }
  .access-tabs     { gap: 3px; }
  .access-tab-btn  { padding: 10px 14px; font-size: 13px; }
  .access-section  { padding: 20px 16px 36px; }
}