/* ===================================================
   common.css — セカンド・ライフ 共通スタイル
   VERSION: 2026-08-19-v9  (スマホ横スクロール解消・html)
   =================================================== */

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

/* ── CSS Variables ──────────────────────────────── */
:root {
  --green:        #27ae60;
  --green-dark:   #1d8a4b;
  --green-pale:   #edf7f2;
  --orange:       #e07820;
  --orange-pale:  #fff6ee;
  --blue:         #2878b4;
  --c-matsubara:  #788f00;
  --c-otori:      #e07820;
  --c-fukai:      #2878b4;
  --c-related:    #6b7c74;

  --text:         #1a2820;
  --text-sub:     #52675c;
  --text-muted:   #90a89e;
  --bg:           #f5f9f6;
  --surface:      #ffffff;
  --border:       #dce8e1;

  --radius:       12px;
  --radius-sm:    8px;
  --radius-pill:  100px;
  --shadow:       0 2px 14px rgba(0,0,0,.07);
  --shadow-md:    0 6px 24px rgba(0,0,0,.10);
  --ease:         cubic-bezier(.25,.46,.45,.94);
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Noto Sans JP', "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: color .25s var(--ease); }
ul { list-style: none; }
img { max-width: 100%; height: auto; vertical-align: bottom; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Layout ─────────────────────────────────────── */
.container { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 24px; }
.section     { padding: 80px 0; }
.section-sm  { padding: 56px 0; }

/* ── Section header ─────────────────────────────── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-header.left { text-align: left; }
.section-label {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700; color: var(--text); letter-spacing: .02em; line-height: 1.4;
}

/* ── Header ─────────────────────────────────────── */
header {
  position: static; z-index: 200;
  background: #fff; overflow: visible;
  transition: box-shadow .3s;
}
header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.10); }

/* Outer wrapper: logo box | right column */
.header-main {
  display: flex; align-items: stretch;
  padding: 0 0 0 165px; /* space reserved for absolute logo */
  max-width: none; margin: 0; gap: 0;
  position: relative;
}

/* Floating logo box — absolutely positioned, overlaps hero */
.logo-floating-box {
  position: absolute; top: 0; left: 0;
  width: 165px; z-index: 300;
  background: #fff;
  box-shadow: 4px 6px 22px rgba(0,0,0,.16);
}
.logo-floating-box img {
  display: block; height: 165px; width: 165px;
}

/* Right column: contact bar + nav */
.header-right-area {
  flex: 1; display: flex; flex-direction: column; min-width: 0;
}
.contact-bar-row {
  display: flex; align-items: center; justify-content: flex-end;
  padding: 10px 28px; gap: 14px;
  border-bottom: 1px solid var(--border);
  flex: 1;
}
.contact-label { font-size: 14px; color: var(--text-sub); letter-spacing: .04em; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-tel {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  background: var(--green-pale); border: 1px solid #c6e8d4;
  padding: 8px 20px; border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
}
.btn-tel:hover { background: #c6e8d4; color: var(--green-dark); }
.btn-tel-icon { width: 18px; height: 18px; color: var(--green); }
.btn-contact {
  display: flex; align-items: center; gap: 7px;
  font-size: .9375rem; font-weight: 700; color: #fff; background: var(--orange);
  padding: 10px 24px; border-radius: var(--radius-sm);
  transition: background .2s, transform .2s;
}
.btn-contact:hover { background: #b85f16; transform: translateY(-1px); }

/* ── Main navigation ────────────────────────────── */
.main-nav { border-top: 3px solid var(--green); background: #fff; }
.main-nav .nav-inner {
  display: flex; justify-content: stretch;
  max-width: none; margin: 0; padding: 0 0 0 165px;
}
.main-nav a {
  flex: 1; display: block; padding: 15px 8px;
  font-size: .9375rem; font-weight: 700; color: var(--text-sub);
  text-align: center; border-right: 1px solid var(--border);
  position: relative; transition: color .25s, background .2s;
  white-space: nowrap;
}
.main-nav a:last-child { border-right: none; }
.main-nav a::after { display: none; }
.main-nav a:hover   { color: var(--green); background: var(--green-pale); }
.main-nav a.active  { color: var(--green); background: var(--green-pale); font-weight: 700; }

/* ── Hamburger button ───────────────────────────── */
.hamburger-btn {
  display: none; position: fixed; right: 16px; top: 14px; z-index: 9998;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); flex-direction: column; align-items: center;
  justify-content: center; gap: 5px;
  box-shadow: 0 4px 14px rgba(39,174,96,.35); transition: background .2s, transform .2s;
  border: none; cursor: pointer;
}
.hamburger-btn:hover { background: var(--green-dark); transform: scale(1.06); }
.hamburger-btn span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }

/* ── Mobile overlay ─────────────────────────────── */
.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  z-index: 9997; opacity: 0; pointer-events: none; transition: opacity .3s;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.mobile-overlay.open { opacity: 1; pointer-events: all; }

/* ── Mobile menu ────────────────────────────────── */
.mobile-menu {
  position: fixed; top: 0; right: 0;
  width: min(360px, 90vw); height: 100svh;
  background: #fff; z-index: 9999; overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden; pointer-events: none;
  transition: transform .4s cubic-bezier(.16,1,.3,1), visibility .4s;
  display: flex; flex-direction: column;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
/* Desktop: mobile drawer must never show, even if transforms are stripped */
@media (min-width: 769px) {
  .mobile-menu, .mobile-overlay, .hamburger-btn { display: none !important; }
}
.mm-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.mm-header img { height: 34px; width: auto; }
.mm-close {
  width: 42px; height: 42px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--text-sub); cursor: pointer;
  transition: background .2s, color .2s;
}
.mm-close:hover { background: var(--border); color: var(--text); }
.mm-contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
}
.mm-contact a {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 13.5px; color: #fff;
}
.mm-tel  { background: var(--green); }
.mm-mail { background: var(--orange); }
.mm-nav { flex: 1; padding: 6px 0; }
.mm-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; font-size: 15px; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--bg);
  transition: background .18s, color .18s;
}
.mm-nav a:hover { background: var(--green-pale); color: var(--green); }
.mm-nav a::after { content: '›'; font-size: 20px; color: var(--text-muted); }
.mm-nav li.sub a {
  padding-left: 42px; font-size: 13px; font-weight: 400; color: var(--text-sub);
}
.mm-nav li.sub a::after { font-size: 16px; }

/* ── Page title area (inner pages) ──────────────── */
.page-title-area {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 36px 0 24px; text-align: center;
}
.page-title-area .en-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.page-title-area h1 {
  font-size: 1.625rem; font-weight: 700; color: var(--text);
}
.breadcrumbs { font-size: 12px; color: var(--text-muted); margin-top: 12px; }
.breadcrumbs a { color: var(--green); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ── Buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 28px; font-size: .9375rem; font-weight: 700; border-radius: var(--radius-sm);
  transition: background .2s, transform .2s, box-shadow .2s; cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-green  { background: var(--green); color: #fff; }
.btn-green:hover  { background: var(--green-dark); box-shadow: 0 4px 14px rgba(39,174,96,.28); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #b85f16; box-shadow: 0 4px 14px rgba(224,120,32,.28); }
.btn-blue   { background: var(--blue); color: #fff; }
.btn-blue:hover   { background: #1e609a; }
.btn-outline { background: transparent; border: 2px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green-pale); }
.btn-full { width: 100%; padding: 14px; font-size: 15px; border-radius: var(--radius-sm); }

/* ── Tags ───────────────────────────────────────── */
.tag {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
  color: #fff; white-space: nowrap; flex-shrink: 0;
  min-width: 90px; text-align: center;
}
.tag-news      { background: var(--green); }
.tag-matsubara { background: var(--c-matsubara); }
.tag-otori     { background: var(--c-otori); }
.tag-fukai     { background: var(--c-fukai); }
.tag-related   { background: var(--c-related); }

/* ── Scroll reveal ──────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Block title (left-bordered) ────────────────── */
.block-title {
  font-size: 1.0625rem; font-weight: 700; color: var(--green);
  border-left: 3px solid var(--green); padding-left: 12px;
  margin: 28px 0 16px; line-height: 1.5;
}

/* ── Info tables ────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-table th, .info-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.info-table th { background: var(--bg); width: 22%; font-weight: 600; text-align: left; white-space: nowrap; }
.info-table tr:first-child th,
.info-table tr:first-child td { border-top: 1px solid var(--border); }
.info-table.price th { background: var(--green-pale); text-align: center; color: var(--green-dark); }
.info-table.price td { text-align: center; }
.total-price { color: #c0392b; font-weight: 700; font-size: 16px; }

/* ── Page load fade ─────────────────────────────── */
@keyframes pageFadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
body { animation: pageFadeIn .45s cubic-bezier(.25,.46,.45,.94) both; }

/* ── Back to top ────────────────────────────────── */
.back-to-top {
  position: fixed; right: 24px; bottom: 28px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(39,174,96,.35);
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* ── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); border-radius: 3px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Footer ─────────────────────────────────────── */
footer { background: var(--surface); border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 44px 0; max-width: 1240px; margin: 0 auto;
}
.footer-logo img { height: 60px; width: auto; }
.footer-info { font-size: 16px; color: var(--text-sub); line-height: 1.9; }
.footer-info a { color: var(--blue); text-decoration: underline; }
.footer-bottom {
  background: var(--green); color: rgba(255,255,255,.88);
  text-align: center; padding: 13px; font-size: 12px; letter-spacing: .06em;
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .main-nav a { padding: 13px 18px; }
}
@media (max-width: 768px) {
  header { border-bottom: 3px solid var(--green); }
  .header-main { padding: 8px 70px 8px 14px; min-height: 62px; align-items: center; }
  .header-right-area, .main-nav { display: none !important; }
  .logo-floating-box { position: static; width: auto; box-shadow: none; }
  .logo-floating-box img { height: 50px; width: auto; }
  .hamburger-btn { display: flex !important; position: fixed; }
  .section  { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .container { padding: 0 16px; }
  .footer-inner { flex-direction: column; text-align: center; padding: 36px 24px; }
  .footer-info  { text-align: center; }
}
