/* ========================================
   Diostella — Corporate Site v2
   任天堂風構成 × 白ベース × ゴールドアクセント
   ======================================== */

:root {
  --bg:          #ffffff;
  --bg-section:  #f7f6f3;
  --bg-card:     #ffffff;
  --bg-sidebar:  #faf9f7;
  --gold:        #9a7b2d;
  --gold-light:  #b8942f;
  --gold-dim:    #c8b880;
  --gold-bg:     rgba(154, 123, 45, 0.06);
  --text:        #1a1a1a;
  --text-sub:    #555555;
  --text-muted:  #999999;
  --accent:      #3d5a80;
  --border:      #e5e3de;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Noto Sans JP', sans-serif;
  --nav-height:  64px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.9;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; }

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ========== Navigation ========== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.4s;
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.nav-logo:hover { color: var(--gold-light); }

/* Desktop nav links with dropdowns */
.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 0 18px;
  height: var(--nav-height);
  line-height: var(--nav-height);
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s, background 0.3s;
}

.nav-item > a:hover,
.nav-item:hover > a {
  color: var(--text);
  background: var(--bg-section);
}

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all 0.25s ease;
  list-style: none;
  z-index: 200;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--text-sub);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown a:last-child { border-bottom: none; }

.nav-dropdown a:hover {
  background: var(--gold-bg);
  color: var(--gold);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-sub);
  transition: all 0.3s;
}


/* ========== Breadcrumb ========== */

.breadcrumb {
  padding: 16px 0;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }


/* ========== Page Layout with Sidebar ========== */

.page-wrapper {
  padding-top: var(--nav-height);
}

.page-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - var(--nav-height) - 200px);
}

/* Sidebar */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  padding: 32px 0;
}

.sidebar-section {
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 8px 24px;
  letter-spacing: 0.03em;
}

.sidebar-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--gold);
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 2px;
}

.sidebar-links {
  list-style: none;
}

.sidebar-links a {
  display: block;
  padding: 8px 24px 8px 38px;
  font-size: 0.82rem;
  color: var(--text-sub);
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.sidebar-links a:hover {
  background: var(--gold-bg);
  color: var(--gold);
}

.sidebar-links a.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: var(--gold-bg);
  font-weight: 500;
}

/* Main content area */
.page-main {
  flex: 1;
  padding: 40px 48px 80px;
}

.page-title {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.page-title::after {
  display: none;
}


/* ========== Hero (Top page) ========== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--bg);
  padding-top: var(--nav-height);
}

.hero-content { position: relative; z-index: 1; }

.hero-visual {
  position: relative;
  display: inline-block;
}

.hero-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: 8px;
}

.hero-visual .hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  color: #f0d77b;
  letter-spacing: 0.2em;
  line-height: 1.2;
  margin: 0;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.hero-catchcopy {
  font-size: 1rem;
  color: var(--text-sub);
  font-weight: 300;
  line-height: 2;
}


/* ========== Section Common (Top page) ========== */

.top-section {
  padding: 80px 0;
}

.top-section:nth-child(even) {
  background: var(--bg-section);
}

.section-header {
  margin-bottom: 40px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.section-more {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 24px;
  letter-spacing: 0.03em;
}

.section-more::after {
  content: ' >';
}


/* ========== About section (Top) ========== */

.about-summary p {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 12px;
  max-width: 640px;
}

.about-summary strong {
  color: var(--gold);
  font-weight: 600;
}

.philosophy-main {
  font-size: 1.15rem;
  color: var(--text);
  font-weight: 500;
  line-height: 2.2;
  border-left: 3px solid var(--gold-dim);
  padding-left: 20px;
  margin: 16px 0;
}


/* ========== Works Cards ========== */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.work-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.work-info { padding: 20px; }

.work-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(61,90,128,0.08);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.work-info h3 { font-size: 1rem; font-weight: 500; color: var(--text); margin-bottom: 8px; }
.work-info p { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 12px; }

.work-link {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}


/* ========== News ========== */

.news-list { max-width: 700px; }

.news-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child { border-bottom: none; }

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 90px;
}

.news-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  border: 1px solid var(--gold-dim);
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}

.news-title { font-size: 0.9rem; color: var(--text-sub); }
.news-title:hover { color: var(--text); }


/* ========== Contact ========== */

.contact-section { text-align: center; }

.contact-section p {
  color: var(--text-sub);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.contact-btn {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  background: var(--gold);
  padding: 14px 40px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  transition: background 0.3s;
}

.contact-btn:hover { background: var(--gold-light); color: #fff; }


/* ========== Subpage Content Styles ========== */

/* Message page */
.message-hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.message-text { flex: 1; }

.message-role {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.message-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.message-name-en {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.message-body {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 2.2;
}

.message-photo img {
  width: 200px;
  height: 270px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}

/* Profile table */
.profile-table,
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.profile-table tr,
.company-table tr {
  border-bottom: 1px solid var(--border);
}

.profile-table th,
.company-table th {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
  padding: 12px 20px 12px 0;
  white-space: nowrap;
  width: 110px;
  vertical-align: top;
}

.profile-table td,
.company-table td {
  font-size: 0.9rem;
  color: var(--text);
  padding: 12px 0;
}

.company-table td a { color: var(--gold); }

/* Officers */
.officer-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.officer-card img {
  width: 160px;
  height: 210px;
  object-fit: cover;
  object-position: top;
  border-radius: 6px;
}

.officer-info h3 { font-size: 1.2rem; font-weight: 500; margin-bottom: 4px; }
.officer-role { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.officer-bio { font-size: 0.9rem; color: var(--text-sub); line-height: 2; }

/* History timeline */
.timeline { list-style: none; }

.timeline-item {
  display: flex;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  white-space: nowrap;
  min-width: 100px;
}

.timeline-text {
  font-size: 0.9rem;
  color: var(--text-sub);
}

/* Office */
.office-info {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 2;
}

.office-emoji {
  font-size: 2rem;
  margin-bottom: 16px;
}

/* Placeholder */
.placeholder-msg {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Business tags */
.biz-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(61,90,128,0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin: 0 6px 8px 0;
}


/* ========== Contact Page ========== */

.contact-page { padding: 140px 0 100px; min-height: calc(100vh - 120px); }
.contact-page-title { font-family: var(--font-display); font-size: 2.4rem; font-weight: 400; color: var(--gold); letter-spacing: 0.12em; text-align: center; margin-bottom: 16px; }
.contact-page-lead { text-align: center; color: var(--text-sub); font-size: 0.9rem; margin-bottom: 48px; line-height: 2; }

.contact-form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 500; color: var(--text); }
.required { color: #c0392b; font-size: 0.75rem; }

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body); font-size: 0.9rem; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg);
  color: var(--text); outline: none; transition: border-color 0.3s; width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(154,123,45,0.08);
}

.contact-form textarea { resize: vertical; min-height: 140px; }

.btn-submit {
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 500;
  color: #fff; background: var(--gold); border: none; border-radius: 6px;
  padding: 16px 32px; cursor: pointer; transition: background 0.3s;
}

.btn-submit:hover { background: var(--gold-light); }

.contact-thanks { max-width: 520px; margin: 0 auto; padding: 60px 20px; text-align: center; }
.thanks-icon { width: 56px; height: 56px; line-height: 56px; border-radius: 50%; background: #27ae60; color: #fff; font-size: 1.5rem; margin: 0 auto 20px; }
.contact-thanks h2 { font-family: var(--font-display); font-size: 1.6rem; color: var(--text); margin-bottom: 16px; }
.contact-thanks p { color: var(--text-sub); font-size: 0.95rem; line-height: 2; margin-bottom: 32px; }
.back-link { font-size: 0.85rem; color: var(--gold); border-bottom: 1px solid var(--gold-dim); padding-bottom: 2px; }


/* ========== Footer (Nintendo-style) ========== */

.footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
  max-width: 100%;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  display: inline-block;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col li::before {
  content: '>';
  color: var(--gold-dim);
  margin-right: 6px;
  font-size: 0.7rem;
}

.footer-col a {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.12em;
}

.footer-sns { display: flex; gap: 20px; }

.sns-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  transition: color 0.3s;
}

.sns-link svg { width: 20px; height: 20px; }
.sns-link span { font-size: 0.65rem; }
.sns-link:hover { color: var(--text); }

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-muted);
}


/* ========== Scroll Animation ========== */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ========== Responsive ========== */

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: flex; }

  /* Mobile menu */
  .mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px);
    padding: 80px 24px 32px;
    transition: right 0.35s ease;
    z-index: 150;
    border-left: 1px solid var(--border);
    overflow-y: auto;
  }

  .mobile-menu.open { right: 0; }

  .mobile-menu a {
    display: block;
    padding: 10px 0;
    font-size: 0.95rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
  }

  .mobile-menu .mobile-sub a {
    padding-left: 16px;
    font-size: 0.85rem;
    color: var(--text-sub);
  }

  /* Sidebar becomes top nav on mobile */
  .page-layout { flex-direction: column; }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }

  .sidebar-links { display: flex; flex-wrap: wrap; gap: 0; padding: 0 24px; }
  .sidebar-links a { padding: 6px 12px; border-left: none; font-size: 0.78rem; }

  .page-main { padding: 24px; }
  .page-title { font-size: 1.3rem; }

  .hero-title { font-size: 2.8rem; }
  .works-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .message-hero { flex-direction: column-reverse; }
  .message-photo img { width: 160px; height: 210px; }
  .officer-card { flex-direction: column; }

  .news-item { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; letter-spacing: 0.1em; }
  .nav-inner { height: 56px; }
  :root { --nav-height: 56px; }
}
