/* ===== SAKURA HOLDINGS DESIGN SYSTEM ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+JP:wght@300;400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --pink: #EC275F;
  --pink-hover: #DF0040;
  --pink-light: rgba(236,39,95,0.1);
  --pink-glow: rgba(236,39,95,0.3);
  --black: #0a0a0a;
  --black-light: #111111;
  --black-card: #141414;
  --black-border: #1e1e1e;
  --white: #ffffff;
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #9a9a9a;
  --gray-600: #666666;
  --font-en: 'Inter', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  --container: 1280px;
  --header-h: 76px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --shadow: 0 8px 32px rgba(0,0,0,0.3);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.2);
  --glass-bg: rgba(20,20,20,0.6);
  --glass-border: rgba(255,255,255,0.08);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-en);
  background: var(--black);
  color: var(--white-70);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html:lang(ja) body, html:lang(ja) input, html:lang(ja) textarea, html:lang(ja) button {
  font-family: var(--font-jp);
}
a { color: var(--pink); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--pink-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { color: var(--white); line-height: 1.3; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Utility --- */
.text-pink { color: var(--pink); }
.text-white { color: var(--white); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { margin-bottom: 16px; }
.section-title p { color: var(--white-50); max-width: 600px; margin: 0 auto; font-size: 1.05rem; }
.badge { display: inline-block; background: var(--pink-light); color: var(--pink); padding: 6px 16px; border-radius: 50px; font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all var(--transition); text-decoration: none; }
.btn-primary { background: var(--pink); color: var(--white); box-shadow: 0 4px 20px var(--pink-glow); }
.btn-primary:hover { background: var(--pink-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 30px var(--pink-glow); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid var(--white-20); }
.btn-outline:hover { border-color: var(--pink); color: var(--pink); }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all var(--transition);
}
.glass-card:hover { border-color: rgba(236,39,95,0.2); transform: translateY(-4px); box-shadow: var(--shadow); }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--black-border);
  transition: all var(--transition);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--white); letter-spacing: -0.5px; }
.logo-text span { color: var(--pink); }
.logo-img {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.footer .logo { width: 100%; }
.footer .logo-img {
  height: auto;
  width: 100%;
  max-width: 480px;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 24px; }
.nav-links { display: flex; gap: 18px; list-style: none; flex-wrap: nowrap; align-items: center; }
.nav-links a { color: var(--white-70); font-size: 0.82rem; font-weight: 500; padding: 8px 0; position: relative; transition: color var(--transition); white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--pink); transition: width var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 16px; }
.japan-time { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--white-50); background: var(--white-05); padding: 6px 14px; border-radius: 50px; border: 1px solid var(--white-10); }
.japan-time .time-value { color: var(--pink); font-weight: 600; font-variant-numeric: tabular-nums; }
.lang-toggle { display: flex; background: var(--white-05); border-radius: 50px; border: 1px solid var(--white-10); overflow: hidden; }
.lang-toggle button { padding: 6px 14px; font-size: 0.8rem; font-weight: 600; border: none; background: transparent; color: var(--white-50); cursor: pointer; transition: all var(--transition); font-family: inherit; }
.lang-toggle button.active { background: var(--pink); color: var(--white); }

/* Mobile Menu */
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(10,10,10,0.75) 0%, rgba(10,10,10,0.70) 50%, rgba(10,10,10,0.75) 100%);
  z-index: 1;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(236,39,95,0.10) 0%, transparent 70%);
  animation: heroPulse 8s ease-in-out infinite;
  z-index: 2;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236,39,95,0.035) 0%, transparent 70%);
  animation: heroPulse 10s ease-in-out infinite reverse;
  z-index: 2;
}
@keyframes heroPulse { 0%,100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.1); } }

.hero-content { position: relative; z-index: 3; max-width: 700px; }
.hero-content h1 { margin-bottom: 20px; color: var(--white); }
.hero-content h1 .text-pink { color: var(--pink); }
.hero-content p { font-size: 1.15rem; margin-bottom: 32px; color: var(--white-70); }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sakura Petals */
.petal {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--pink);
  border-radius: 50% 0 50% 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: petalFall linear infinite;
}
@keyframes petalFall {
  0% { opacity: 0; transform: translate(0, -10vh) rotate(0deg); }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { opacity: 0; transform: translate(-100px, 110vh) rotate(720deg); }
}

/* ===== SERVICES / HOW IT WORKS ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step-card { text-align: center; padding: 40px 24px; }
.step-card .step-num { font-size: 3rem; font-weight: 900; color: var(--pink); opacity: 0.3; margin-bottom: 12px; }
.step-card h4 { margin-bottom: 12px; font-size: 1.05rem; }
.step-card p { font-size: 0.9rem; color: var(--white-50); }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature-card { display: flex; gap: 20px; padding: 32px; }
.feature-icon { flex-shrink: 0; width: 56px; height: 56px; background: var(--pink-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--pink); }
.feature-card h4 { margin-bottom: 8px; font-size: 1rem; }
.feature-card p { font-size: 0.88rem; color: var(--white-50); margin: 0; }

/* ===== WHY CHOOSE US ===== */
.why-section { background: linear-gradient(180deg, var(--black) 0%, #0d0d0d 100%); }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, var(--pink) 0%, var(--pink-hover) 100%); text-align: center; }
.cta-section h2, .cta-section p { color: var(--white); }
.cta-section .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.cta-section .btn-outline:hover { background: var(--white); color: var(--pink); border-color: var(--white); }

/* ===== PAGE BACKGROUND IMAGES (hero only) ===== */
body.page-bg .page-hero {
  background-color: var(--black);
  background-image:
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.78) 100%),
    var(--page-bg-image);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(135deg, var(--black) 0%, #1a0a10 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--pink-glow) 0%, transparent 70%);
  opacity: 0.3;
}
.page-hero h1 { position: relative; z-index: 1; }
.page-hero .breadcrumb { position: relative; z-index: 1; color: var(--white-50); font-size: 0.9rem; margin-top: 12px; }
.page-hero .breadcrumb a { color: var(--white-70); }

/* ===== ABOUT / PROFILE ===== */
.profile-table { width: 100%; border-collapse: collapse; }
.profile-table tr { border-bottom: 1px solid var(--white-10); }
.profile-table th { text-align: left; padding: 16px 20px; color: var(--pink); font-weight: 600; width: 200px; font-size: 0.9rem; }
.profile-table td { padding: 16px 20px; color: var(--white-70); font-size: 0.95rem; }

/* Contact Form */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form .full-width { grid-column: 1 / -1; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 500; color: var(--white-70); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition);
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-light); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* Contact Info Cards */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
  align-items: stretch;
}
.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 20px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.contact-info-item:hover { border-color: rgba(236,39,95,0.3); transform: translateY(-3px); }
.contact-info-item .icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--pink-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-size: 1.4rem;
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 4px; }
.contact-info-item p { font-size: 0.85rem; color: var(--white-50); margin: 4px 0 0; line-height: 1.55; }
.contact-info-item a { color: var(--white-70); }
.contact-info-item a:hover { color: var(--pink); }

/* ===== PRESIDENT MESSAGE ===== */
.president-section { display: grid; grid-template-columns: 300px 1fr; gap: 60px; align-items: start; }
.president-photo { border-radius: var(--radius-lg); overflow: hidden; border: 2px solid var(--white-10); }
.president-photo img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.president-content blockquote { border-left: 3px solid var(--pink); padding-left: 24px; margin: 24px 0; font-style: italic; color: var(--white-50); }
.president-signature { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--white-10); }
.president-signature .name { font-size: 1.2rem; font-weight: 700; color: var(--white); }
.president-signature .title { color: var(--pink); font-size: 0.9rem; }

/* ===== AUCTION INFO ===== */
.auction-grade { display: flex; align-items: center; gap: 16px; padding: 20px; margin-bottom: 12px; }
.auction-grade .grade { flex-shrink: 0; width: 60px; height: 60px; background: var(--pink-light); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; color: var(--pink); }
.auction-grade h4 { margin-bottom: 4px; font-size: 0.95rem; }
.auction-grade p { margin: 0; font-size: 0.85rem; color: var(--white-50); }

/* Auction Sheet Visual Guide */
.auction-sheet-guide {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.auction-sheet-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--white-10);
  background: var(--white);
  box-shadow: var(--shadow);
}
.auction-sheet-image img {
  width: 100%;
  height: auto;
  display: block;
}
.auction-sheet-legend {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 24px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--white-70);
  transition: all var(--transition);
}
.legend-item:hover {
  border-color: rgba(236,39,95,0.4);
  background: var(--pink-light);
  color: var(--white);
}
.legend-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--pink);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

@media (max-width: 1024px) {
  .auction-sheet-legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .auction-sheet-legend { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.accordion-item { border: 1px solid var(--white-10); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); }
.accordion-item:hover { border-color: var(--white-20); }
.accordion-item.active { border-color: rgba(236,39,95,0.3); }
.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--white-05);
  border: none;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all var(--transition);
  gap: 12px;
}
.accordion-header:hover { background: var(--white-10); }
.accordion-icon { font-size: 1.2rem; transition: transform var(--transition); color: var(--pink); flex-shrink: 0; }
.accordion-item.active .accordion-icon { transform: rotate(45deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-body-inner { padding: 0 24px 20px; color: var(--white-50); font-size: 0.9rem; line-height: 1.7; }

/* ===== LEGAL PAGES ===== */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h4 { color: var(--pink); margin: 32px 0 12px; font-size: 1.1rem; }
.legal-content p { color: var(--white-70); font-size: 0.95rem; line-height: 1.8; }
.legal-content a { color: var(--pink); }

/* ===== FOOTER ===== */
.footer { background: var(--black-light); border-top: 1px solid var(--black-border); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; align-items: start; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white-50); margin-bottom: 20px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--white-50); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--pink); }
.footer-about p { color: var(--white-50); font-size: 0.88rem; line-height: 1.6; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.88rem; color: var(--white-50); }
.footer-contact-item a { color: var(--white-50); }
.footer-contact-item a:hover { color: var(--pink); }
.footer-bottom {
  border-top: 1px solid var(--black-border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--white-50);
}

/* ===== SLIDESHOW ===== */
.slideshow {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--white-10);
  background: var(--black-card);
  box-shadow: var(--shadow);
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 900px) { .slideshow { height: 420px; } }
@media (max-width: 600px) { .slideshow { height: 280px; } }
.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10,10,10,0.5);
  border: 1px solid var(--white-20);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.slideshow-arrow:hover { background: var(--pink); border-color: var(--pink); }
.slideshow-arrow.prev { left: 16px; }
.slideshow-arrow.next { right: 16px; }
.slideshow-pause {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  background: rgba(10,10,10,.85);
  color: #fff;
  font: 500 .75rem var(--font-en);
  cursor: pointer;
}
.slideshow-pause:hover { background: #201319; border-color: var(--pink); }
.slideshow-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slideshow-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.slideshow-dots button.active { background: var(--pink); transform: scale(1.3); }

/* ===== SOCIAL ICONS ===== */
.social-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-evenly;
  align-items: center;
  margin: 8px auto 0;
  max-width: 320px;
}
.social-link {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-70);
  transition: all var(--transition);
  flex: 0 0 auto;
}
.social-link:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--white);
  transform: translateY(-3px);
}
.social-link svg { width: 26px; height: 26px; }

/* Contact form selects */
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--white-05);
  border: 1px solid var(--white-10);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%23ec275f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}
.form-group select:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-light); }
.form-group select option { background: var(--black-card); color: var(--white); }
.phone-row { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 1; transform: none; transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.reveal-pending { opacity: 0; transform: translateY(30px); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1280px) {
  .japan-time { display: none; }
}

@media (max-width: 1400px) {
  :root { --header-h: 64px; }
  .logo-img { height: 28px; }
  .nav-links { display: none; position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: var(--black-light); flex-direction: column; padding: 80px 32px 32px; gap: 8px; z-index: 999; transition: right var(--transition); border-left: 1px solid var(--black-border); align-items: flex-start; }
  .nav-links.open { display: flex; right: 0; }
  .nav-links a { font-size: 1rem; padding: 12px 0; white-space: normal; }
  .menu-toggle { display: flex; z-index: 1001; }
}

@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .president-section { grid-template-columns: 220px 1fr; gap: 40px; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .logo-img { height: 24px; }
  .section { padding: 60px 0; }
  .hero { min-height: 70vh; }
  .steps-grid { grid-template-columns: 1fr; }
  .president-section { grid-template-columns: 1fr; }
  .president-photo { max-width: 250px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-info-grid { grid-template-columns: 1fr; }
  .phone-row { grid-template-columns: 110px 1fr; }
  .slideshow-arrow { width: 36px; height: 36px; font-size: 1.1rem; }
  .glass-card { padding: 24px; }
  .hero-buttons { flex-direction: column; }
  .top-bar .container { flex-direction: column; gap: 4px; text-align: center; }
  .header-actions { gap: 8px; }
  .japan-time { font-size: 0.75rem; padding: 4px 10px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.8rem; }
  .section-title { margin-bottom: 40px; }
  .lang-toggle button { padding: 4px 10px; font-size: 0.75rem; }
}

/* Language visibility — EN mode (default) */
[data-lang-ja] { display: none !important; }
[data-lang-en] { display: block; }
span[data-lang-en], a[data-lang-en], button[data-lang-en], label[data-lang-en] { display: inline; }
th[data-lang-en], td[data-lang-en] { display: table-cell; }
li[data-lang-en] { display: list-item; }
div.footer-contact-item[data-lang-en] { display: flex; }

/* Language visibility — JP mode */
html:lang(ja) [data-lang-en] { display: none !important; }
html:lang(ja) [data-lang-ja] { display: block !important; }
html:lang(ja) span[data-lang-ja], html:lang(ja) a[data-lang-ja], html:lang(ja) button[data-lang-ja], html:lang(ja) label[data-lang-ja] { display: inline !important; }
html:lang(ja) th[data-lang-ja], html:lang(ja) td[data-lang-ja] { display: table-cell !important; }
html:lang(ja) li[data-lang-ja] { display: list-item !important; }
html:lang(ja) div.footer-contact-item[data-lang-ja] { display: flex !important; }

/* Keep short highlighted Japanese phrases together on narrow screens. */
html:lang(ja) :is(h1, h2, h3, h4) { line-break: strict; }
html:lang(ja) :is(h1, h2, h3, h4) .text-pink { display: inline-block; max-width: 100%; }
