/* 上部メニューとトップの見出しは、ここでまとめて管理します。 */
html { scroll-padding-top: 96px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #064691;
  outline-offset: 4px;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #edf0f2;
  box-shadow: 0 2px 12px rgba(24,61,100,.05);
}
header .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 24px;
}
.brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
/* 元の正方形画像は変更せず、ロゴの周囲の白い余白だけを表示枠の外へ。 */
header .logo {
  display: block;
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 62px;
  overflow: hidden;
}
header .logo img {
  position: absolute;
  width: 294px;
  height: auto;
  max-width: none;
  left: -97px;
  top: -109px;
}
.company-name {
  color: #064691;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.5;
}
header .nav { display: none; }
.menu-toggle {
  display: flex;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  position: relative;
  padding: 0;
  border: 1px solid #dce4ea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  width: 22px;
  height: 2px;
  background: #064691;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-open .menu-toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 22px; transform: rotate(-45deg); }
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 6px 24px 16px;
  max-height: calc(100vh - 80px);
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-top: 1px solid #edf0f2;
  box-shadow: 0 12px 24px rgba(24,61,100,.14);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 12px 4px;
  border-bottom: 1px solid #edf0f2;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #064691;
}
.mobile-menu a::after { content: '›'; margin-left: 12px; color: #7890a4; }
.mobile-menu a:last-child { color: #d13c65; border-bottom: 0; }

/* アイボリーの背景、植物写真、言葉と色使いは引き継ぎます。 */
.hero {
  position: relative;
  min-height: 480px;
  background: linear-gradient(104deg,#fffdf9 0%,#fff 59%,#f3f8ee 100%);
}
.hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 38%;
  background: url('assets/hero_green_right.jpg') center / cover no-repeat;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(255,255,255,.98),rgba(255,255,255,.55) 24%,rgba(255,255,255,.03) 70%);
}
.hero-copy { position: relative; z-index: 1; width: 70%; padding: 64px 0; }
.hero-eyebrow { font-size: 12px; letter-spacing: .18em; color: #9b7c47; font-weight: 700; margin-bottom: 16px; }
.hero .hand {
  font-family: 'Noto Serif JP','Yu Mincho',serif;
  color: #172f4d;
  font-size: clamp(34px,4.4vw,54px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.055em;
  white-space: nowrap;
  margin: 0;
}
.underline {
  width: 90%;
  height: 6px;
  margin: 10px 0 24px;
  border-radius: 999px;
  background: linear-gradient(90deg,#ed6b88 0 34%,#e7bd61 34% 67%,#86b978 67%);
}
.hero-brand-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 24px; color: #103c70; }
.hero-brand-line .future { font-size: 24px; font-weight: 800; line-height: 1.5; }
.hero-brand-line .almile { font-size: 30px; font-weight: 800; line-height: 1.5; }
.hero-message { max-width: 520px; border-top: 1px solid #dedbd2; padding-top: 20px; }
.hero-message .lead { font-family: 'Noto Serif JP',serif; font-size: 20px; font-weight: 600; line-height: 1.7; margin: 0 0 12px; }
.hero-message .desc { color: #526577; font-size: 15px; line-height: 1.9; margin: 0; }

@media (min-width: 1180px) {
  header .nav { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 800; color: #064691; }
  header .nav a { white-space: nowrap; padding: 14px 0; }
  header .nav .mail { background: #f94b76; color: #fff; padding: 12px 16px; border-radius: 7px; }
  .menu-toggle, .mobile-menu { display: none; }
}
@media (max-width: 850px) {
  .hero-copy { width: 100%; padding: 40px 0; }
  .hero-photo { width: 46%; opacity: .38; }
  .hero .hand { font-size: clamp(22px,6.2vw,42px); }
  .hero-message { max-width: 540px; }
  .hero-message .desc br { display: none; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 84px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  header .head { min-height: 72px; gap: 10px; }
  .brandline { gap: 8px; }
  header .logo { flex-basis: 82px; width: 82px; height: 56px; }
  header .logo img { width: 254px; left: -84px; top: -94px; }
  .company-name { font-size: clamp(12px,3.4vw,15px); }
  .mobile-menu { padding-left: 16px; padding-right: 16px; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); }
  .hero { min-height: 0; }
  .hero-copy { padding: 36px 0 44px; }
  .hero-eyebrow { font-size: 11px; }
  .underline { width: 100%; margin-bottom: 22px; }
  .hero-brand-line { gap: 4px 10px; }
  .hero-brand-line .future { font-size: 19px; }
  .hero-brand-line .almile { font-size: 25px; }
  .hero-message .lead { font-size: 18px; }
  .hero-message .desc { font-size: 16px; }
  .purpose h2 { font-size: clamp(26px,8vw,36px); line-height: 1.5; }
  .purpose-kicker { font-size: 16px; }
  .title { display: block; }
  .title p { margin-top: 8px; line-height: 1.7; }
  .manga-button-clean {
    display: block;
    position: relative;
    padding: 20px 38px 20px 18px;
    text-align: center;
    line-height: 1.8;
  }
  .manga-button-clean span {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .menu-toggle span { transition: none; }
}

/* 第3段階：フッターと住所・受付案内を読みやすくします。 */
footer { padding: 24px 0; }
footer .foot { display: flex; align-items: center; gap: 24px; }
footer .footer-logo {
  display: block; position: relative; flex: 0 0 auto;
  width: 96px; height: 62px; overflow: hidden;
}
footer .footer-logo img {
  position: absolute; width: 294px; height: auto; max-width: none;
  left: -97px; top: -109px; margin: 0;
}
footer .links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; line-height: 1.7; }
footer .links a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; }
footer .links span { display: block; flex-basis: 100%; font-size: 12px; line-height: 1.8; }
.card .card-body p { font-size: 16px; line-height: 1.85; }
.venue-tile .venue-address { font-size: 16px; line-height: 1.85; }
.venue-tile .region-badge { font-size: 13px; }
.venue-tile-actions .map-details summary, .venue-tile-actions .venue-official-link { font-size: 14px; min-height: 44px; }
.club-note { font-size: 16px; line-height: 1.85; }
.support-box p { font-size: 16px; line-height: 1.85; }
.form-note { font-size: 14px; line-height: 1.85; color: #526577; }
.contact p { font-size: 15px; line-height: 1.8; }
@media (max-width: 850px) {
  footer .foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  footer .links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; gap: 4px 16px; }
  footer .links span { grid-column: 1 / -1; margin-top: 8px; }
}

/* 第4段階：会場写真は全体を残し、読み込み前も表示領域を確保します。 */
.places .card > img {
  width: 100%; height: auto; aspect-ratio: 16 / 9;
  object-fit: contain; background: #fbf7ed;
}
.venue-tile-photo { height: auto; aspect-ratio: 16 / 10; background: #fbf7ed; }
.venue-tile-photo img { width: 100%; height: 100%; object-fit: contain; }

/* Animated brand: override old square PNG cropping, including mobile */
header .logo {flex:0 0 138px !important;width:138px !important;height:88px !important;overflow:hidden !important;display:flex !important;align-items:center;justify-content:center;}
header .logo img {position:static !important;left:auto !important;top:auto !important;width:138px !important;height:auto !important;max-width:100% !important;object-fit:contain !important;}
@media(max-width:480px){header .logo{flex-basis:110px !important;width:110px !important;height:74px !important;}header .logo img{width:110px !important;}}
@media(prefers-reduced-motion:reduce){header .logo img, .footer img{animation:none !important;}}

/* 2026-11-07: unified logo sizing. Replaces old PNG crop offsets. */
header .logo {position:relative !important;display:flex !important;align-items:center !important;justify-content:center !important;flex:0 0 94px !important;width:94px !important;height:82px !important;overflow:hidden !important;}
header .logo img {position:static !important;display:block !important;width:auto !important;height:80px !important;max-width:100% !important;max-height:100% !important;object-fit:contain !important;margin:0 !important;left:auto !important;top:auto !important;}
footer .footer-logo {position:relative !important;display:flex !important;align-items:center !important;justify-content:center !important;flex:0 0 100px !important;width:100px !important;height:102px !important;overflow:hidden !important;}
footer .footer-logo img {position:static !important;display:block !important;width:auto !important;height:100px !important;max-width:100% !important;max-height:100% !important;object-fit:contain !important;margin:0 !important;left:auto !important;top:auto !important;}
@media(max-width:480px){header .logo{flex-basis:76px !important;width:76px !important;height:72px !important;}header .logo img{height:70px !important;}footer .footer-logo{width:96px !important;height:100px !important;}}
