/* ========================================
   バナナハウス株式会社 ワイヤーフレーム共通CSS
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* --- Variables --- */
:root {
  --bg: #f5f5f5;
  --white: #ffffff;
  --border: #cccccc;
  --text-dark: #222222;
  --text-mid: #555555;
  --text-light: #888888;
  --placeholder-bg: #e0e0e0;
  --highlight: #b8d4e8;
  --highlight-dark: #8ab4cc;
  --nav-bg: #2c2c2c;
  --nav-text: #f0f0f0;
  --accent-line: #999999;
  --wf-notice: #fff3cd;
  --wf-notice-border: #e0a800;
  --footer-bg: #3a3a3a;
  --footer-text: #cccccc;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
}
a { color: var(--text-dark); text-decoration: underline; }
a:hover { opacity: 0.75; }
img { max-width: 100%; }
ul { list-style: none; }

/* --- Wireframe Notice Bar --- */
.wf-notice {
  background: var(--wf-notice);
  border-bottom: 2px solid var(--wf-notice-border);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #856404;
  font-weight: 500;
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* --- Section --- */
.section { padding: 60px 0; }
.section--gray { background: var(--bg); }
.section--white { background: var(--white); }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-line);
  margin-bottom: 32px;
}
.section-title span { font-size: 0.85rem; font-weight: 400; color: var(--text-light); margin-left: 12px; }

/* --- Placeholder Box --- */
.box {
  background: var(--placeholder-bg);
  border: 2px dashed var(--border);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.82rem;
  text-align: center;
  min-height: 60px;
}
.box--img { min-height: 200px; }
.box--img-sm { min-height: 120px; }
.box--hero { min-height: 480px; font-size: 0.9rem; }
.box--icon {
  width: 56px; height: 56px;
  min-height: unset;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 0.75rem;
}
.box--logo {
  width: 120px; height: 50px;
  min-height: unset;
  border-radius: 4px;
  font-size: 0.75rem;
}
.box--map { min-height: 280px; }
.box--chart { min-height: 400px; font-size: 0.9rem; }
.box--video { min-height: 300px; }

/* --- Annotation --- */
.annotation {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
  font-style: italic;
  margin-top: 4px;
}

/* --- Card --- */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  position: relative;
}
.card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.card__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card__excerpt { font-size: 0.88rem; color: var(--text-mid); }
.card__link { font-size: 0.85rem; color: var(--text-mid); display: inline-block; margin-top: 12px; }
.card__meta { font-size: 0.8rem; color: var(--text-light); margin-bottom: 6px; }

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  background: var(--placeholder-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 0.75rem;
  color: var(--text-mid);
  margin-right: 4px;
}
.tag--date { background: var(--white); }

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  background: var(--highlight);
  border: 2px solid var(--highlight-dark);
  color: var(--text-dark);
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--highlight-dark); }

.btn-secondary {
  display: inline-block;
  background: var(--white);
  border: 2px solid var(--accent-line);
  color: var(--text-mid);
  padding: 8px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--bg); }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb__list { display: flex; gap: 6px; font-size: 0.82rem; color: var(--text-light); flex-wrap: wrap; }
.breadcrumb__list li + li::before { content: '›'; margin-right: 6px; }

/* --- Table --- */
.wf-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.wf-table th, .wf-table td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; }
.wf-table th { background: var(--placeholder-bg); font-weight: 700; width: 30%; white-space: nowrap; }
.wf-table tr:nth-child(even) td { background: #fafafa; }

/* --- Hero Section --- */
.hero { position: relative; background: var(--placeholder-bg); }
.hero__inner {
  position: relative;
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  min-height: 420px;
}
.hero__placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-light);
  background: repeating-linear-gradient(45deg, #e8e8e8, #e8e8e8 10px, #f0f0f0 10px, #f0f0f0 20px);
}
.hero__content { position: relative; z-index: 1; }
.hero__lead {
  font-size: 1.4rem;
  font-weight: 700;
  background: rgba(255,255,255,0.9);
  padding: 16px 28px;
  border-radius: 4px;
  max-width: 640px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.hero__sub { font-size: 0.9rem; color: var(--text-mid); background: rgba(255,255,255,0.85); padding: 6px 16px; border-radius: 3px; margin-bottom: 16px; }
.hero__dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.hero__dot--active { background: var(--accent-line); }

/* --- Filter Tabs --- */
.filter-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-tab { padding: 7px 18px; background: var(--white); border: 1px solid var(--border); border-radius: 3px; font-size: 0.85rem; cursor: pointer; }
.filter-tab.active, .filter-tab:hover { background: var(--placeholder-bg); font-weight: 700; }

/* --- Pagination --- */
.pagination { display: flex; gap: 4px; justify-content: center; margin-top: 40px; }
.pagination a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 3px; font-size: 0.88rem; text-decoration: none; background: var(--white); }
.pagination a.active, .pagination a:hover { background: var(--placeholder-bg); font-weight: 700; }

/* --- News / IR List Item --- */
.news-item { background: var(--white); border: 1px solid var(--border); border-radius: 4px; padding: 16px 20px; display: flex; gap: 16px; align-items: flex-start; }
.news-item + .news-item { margin-top: 8px; }
.news-item__date { flex-shrink: 0; font-size: 0.82rem; color: var(--text-light); min-width: 80px; }
.news-item__body { flex: 1; }
.news-item__title { font-size: 0.95rem; font-weight: 500; }
.news-item__excerpt { font-size: 0.82rem; color: var(--text-mid); margin-top: 4px; }

/* --- Property Card --- */
.property-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.property-card__img { min-height: 150px; }
.property-card__body { padding: 14px; }
.property-card__name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.property-card__addr { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }
.property-card__specs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.property-card__price { font-size: 1.05rem; font-weight: 700; }
.property-card__yield { font-size: 0.85rem; color: var(--text-mid); }
.property-card__footer { padding: 8px 14px; border-top: 1px solid var(--border); background: #fafafa; font-size: 0.78rem; color: var(--text-light); display: flex; justify-content: space-between; align-items: center; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 32px; }
.timeline-item__dot { position: absolute; left: -28px; top: 4px; width: 14px; height: 14px; background: var(--placeholder-bg); border: 2px solid var(--accent-line); border-radius: 50%; }
.timeline-item__year { font-size: 0.8rem; font-weight: 700; color: var(--text-light); margin-bottom: 2px; }
.timeline-item__title { font-size: 1rem; font-weight: 700; }
.timeline-item__desc { font-size: 0.85rem; color: var(--text-mid); margin-top: 4px; }

/* --- Officer Table / Card --- */
.officer-card { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 20px; text-align: center; }
.officer-card__photo { margin: 0 auto 12px; }
.officer-card__role { font-size: 0.8rem; color: var(--text-light); margin-bottom: 4px; }
.officer-card__name { font-size: 1rem; font-weight: 700; }
.officer-card__note { font-size: 0.78rem; color: var(--text-mid); margin-top: 4px; }

/* --- Flow Diagram --- */
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow-step { flex: 1; min-width: 100px; background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 14px 10px; text-align: center; font-size: 0.85rem; }
.flow-step__num { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.flow-arrow { font-size: 1.4rem; color: var(--accent-line); flex-shrink: 0; }

/* --- FAQ --- */
.faq-item { border: 1px solid var(--border); border-radius: 4px; margin-bottom: 8px; }
.faq-item summary { padding: 14px 20px; font-size: 0.95rem; font-weight: 500; cursor: pointer; background: var(--white); border-radius: 4px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '＋'; color: var(--text-light); font-size: 1.1rem; }
.faq-item[open] summary::after { content: '－'; }
.faq-answer { padding: 14px 20px; font-size: 0.88rem; color: var(--text-mid); border-top: 1px solid var(--border); background: #fafafa; }

/* --- Form --- */
.form-row { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.form-label .required { font-size: 0.72rem; background: #555; color: #fff; padding: 1px 6px; border-radius: 2px; margin-left: 6px; vertical-align: middle; }
.form-label .optional { font-size: 0.72rem; background: #aaa; color: #fff; padding: 1px 6px; border-radius: 2px; margin-left: 6px; vertical-align: middle; }
.form-input { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 4px; font-size: 0.9rem; background: #fafafa; color: var(--text-light); }
.form-textarea { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 4px; font-size: 0.9rem; background: #fafafa; color: var(--text-light); height: 120px; }
.form-select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 4px; font-size: 0.9rem; background: #fafafa; color: var(--text-light); }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.checkbox-item { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: var(--text-mid); }
.fake-checkbox { width: 16px; height: 16px; border: 1.5px solid var(--border); border-radius: 3px; background: var(--white); flex-shrink: 0; }

/* --- Stat Box --- */
.stat-box { background: var(--white); border: 1px solid var(--border); border-radius: 6px; padding: 24px; text-align: center; }
.stat-box__number { font-size: 2rem; font-weight: 700; }
.stat-box__label { font-size: 0.85rem; color: var(--text-mid); margin-top: 4px; }

/* --- Sidebar --- */
.sidebar-box { background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-bottom: 16px; }
.sidebar-box__head { background: var(--placeholder-bg); padding: 10px 14px; font-size: 0.88rem; font-weight: 700; border-bottom: 1px solid var(--border); }
.sidebar-box__body { padding: 14px; font-size: 0.85rem; color: var(--text-mid); }

/* --- Page Nav (In-page anchor links) --- */
.page-nav { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; }
.page-nav__list { display: flex; gap: 0; overflow-x: auto; }
.page-nav__list a { padding: 6px 16px; font-size: 0.82rem; color: var(--text-mid); text-decoration: none; border-right: 1px solid var(--border); white-space: nowrap; }
.page-nav__list a:hover { background: var(--bg); }

/* --- Header --- */
.site-header { position: sticky; top: 0; z-index: 100; }
.header-top { background: var(--nav-bg); padding: 10px 0; }
.header-top__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-name { font-size: 0.95rem; font-weight: 700; color: var(--nav-text); white-space: nowrap; }
.header-tools { display: flex; align-items: center; gap: 12px; }
.search-box { width: 160px; height: 32px; min-height: unset; font-size: 0.8rem; }
.header-util { background: rgba(255,255,255,0.12); color: var(--nav-text); border: 1px solid rgba(255,255,255,0.25); padding: 4px 10px; border-radius: 3px; font-size: 0.78rem; cursor: pointer; }

.global-nav { background: #444444; }
.nav-list { display: flex; overflow-x: auto; }
.nav-list li a {
  display: block; padding: 12px 16px; font-size: 0.85rem; color: var(--nav-text);
  text-decoration: none; white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.nav-list li a:hover, .nav-list li a.active { background: rgba(255,255,255,0.12); }
.nav-list li a.nav-cta { background: rgba(255,255,255,0.15); font-weight: 700; }

/* --- Footer --- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 48px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-col__title { font-size: 0.88rem; font-weight: 700; color: #ffffff; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { color: var(--footer-text); font-size: 0.82rem; text-decoration: none; }
.footer-col ul li a:hover { color: #ffffff; }
.footer-copyright { background: #222; text-align: center; padding: 14px; font-size: 0.78rem; color: #888888; }

/* --- Inner Page Header --- */
.page-hero { background: var(--placeholder-bg); padding: 40px 0; border-bottom: 1px solid var(--border); }
.page-hero__title { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; }
.page-hero__sub { font-size: 0.9rem; color: var(--text-mid); }

/* --- Comparison Table (members) --- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.compare-table th, .compare-table td { border: 1px solid var(--border); padding: 12px 16px; text-align: center; }
.compare-table th { background: var(--placeholder-bg); font-weight: 700; }
.compare-table td:first-child { text-align: left; font-weight: 500; }
.compare-table tr:nth-child(even) td { background: #fafafa; }
.check { font-weight: 700; }
.na { color: var(--text-light); }

/* --- Utility --- */
.text-center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .page-hero__title { font-size: 1.4rem; }
  .section-title { font-size: 1.25rem; }
  .hero__lead { font-size: 1.1rem; }
}
