/* =========================================
   DREAM VILLAGE — Corporate Site Styles
   ========================================= */

/* --- CSS Variables --- */
:root {
  --navy:        #1a2744;
  --navy-light:  #243560;
  --gold:        #c9a84c;
  --gold-light:  #e2c47a;
  --white:       #ffffff;
  --off-white:   #f7f8fa;
  --mid-gray:    #eef0f4;
  --text:        #2c2c2c;
  --text-mid:    #555555;
  --text-light:  #888888;
  --border:      #dde1ea;
  --radius:      8px;
  --shadow:      0 4px 20px rgba(26,39,68,0.09);
  --shadow-lg:   0 8px 40px rgba(26,39,68,0.14);
  --transition:  0.3s ease;
  --max-width:   1140px;
  --header-h:    72px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
               "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

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

/* =========================================
   HEADER
   ========================================= */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  /* PC：余白なし */
  padding-top: 0;
  background: rgba(26,39,68,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  transition: box-shadow var(--transition);
}
#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

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

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex-shrink: 0;
}
.logo-main {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}
.logo-sub {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

#main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
#main-nav ul li a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  letter-spacing: 0.03em;
  white-space: nowrap;
}
#main-nav ul li a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
#main-nav ul li a.nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 8px 16px;
}
#main-nav ul li a.nav-cta:hover {
  background: var(--gold-light);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 3px 12px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.45);
}
.btn-block { width: 100%; text-align: center; }

/* =========================================
   SECTION COMMONS
   ========================================= */
.section-light { background: var(--white); }
.section-mid   { background: var(--off-white); }
.section-dark  { background: var(--navy); }

section { padding: 100px 0; }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.section-dark .section-header h2 {
  color: var(--white);
}
.section-desc {
  margin-top: 16px;
  color: var(--text-mid);
  font-size: 0.95rem;
}
.section-dark .section-desc {
  color: rgba(255,255,255,0.7);
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--navy);
  margin: 16px auto 0;
  border-radius: 2px;
}
.divider-gold {
  background: var(--gold);
}

/* =========================================
   FADE-IN ANIMATION
   ========================================= */
/* JS読込前は必ず表示。body.js-ready がついた時だけ非表示→アニメーション */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
body.js-ready .fade-in {
  opacity: 0;
  transform: translateY(28px);
}
body.js-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   HERO
   ========================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #2d4a7a 100%);
  overflow: hidden;
  padding: 0;
}

/* Decorative background shapes */
#hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
#hero::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 120px 24px 80px;
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-content h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  color: rgba(255,255,255,0.8);
  line-height: 2;
  margin-bottom: 48px;
  letter-spacing: 0.03em;
}
/* スマホ専用改行：PCでは非表示 */
.sp-br { display: none; }

/* =========================================
   ABOUT
   ========================================= */
.about-grid {
  display: grid;
  gap: 60px;
}

.about-text p {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text-mid);
  margin-bottom: 16px;
  text-align: center;
}

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

.about-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.about-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.about-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.about-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.about-card p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* =========================================
   PROFILE
   ========================================= */
.profile-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 60px;
  align-items: start;
}

.profile-photo {
  text-align: center;
}

.profile-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto 24px;
  box-shadow: 0 8px 32px rgba(201,168,76,0.35);
  border: 4px solid var(--gold);
  background: #1a2744;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-name {
  color: var(--gold);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: inherit;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.profile-title {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.timeline li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-items: baseline;
}
.timeline li:first-child { padding-top: 0; }
.timeline li:last-child  { border-bottom: none; }

.tl-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 2px;
}
.tl-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

/* =========================================
   SERVICES
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  box-shadow: var(--shadow);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--gold);
}
.service-icon {
  font-size: 1.9rem;
  margin-bottom: 14px;
  display: block;
}
.service-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.5;
}
.service-card p {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.7;
}

.services-cta {
  text-align: center;
}

/* =========================================
   ACHIEVEMENTS
   ========================================= */
.achievements-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.achievement-tag {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 10px 22px;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  box-shadow: 0 2px 8px rgba(26,39,68,0.06);
}
.achievement-tag:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* =========================================
   GREETING
   ========================================= */
.greeting-box {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  padding: 48px 56px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}

.greeting-quote {
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0.7;
}

.greeting-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 2.1;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
}
.greeting-text p:last-child { margin-bottom: 0; }

.greeting-sig {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: right;
}
.sig-company {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.sig-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.1em;
}

/* =========================================
   CONTACT
   ========================================= */
/* Contact email direct link */
.contact-email-direct {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text-mid);
  text-align: center;
}
.contact-email-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.contact-email-link:hover {
  color: var(--gold);
}

.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.required {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}
.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-notice {
  text-align: center;
  font-size: 0.9rem;
  padding: 4px 0;
  min-height: 24px;
}
.form-notice.success { color: #2e7d32; }
.form-notice.error   { color: #c62828; }

/* =========================================
   FOOTER
   ========================================= */
#site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.footer-tagline {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: flex-end;
}
.footer-nav ul li a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-nav ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

/* =========================================
   RESPONSIVE — TABLET (≤900px)
   ========================================= */
@media (max-width: 900px) {

  /* ヘッダー全高を120pxに拡大し、ロゴをその下部に配置
     → どんな機種のステータスバーにも隠れない */
  :root { --header-h: 120px; }

  #site-header {
    padding-top: 0;
  }

  .header-inner {
    height: var(--header-h);
    align-items: flex-end;
    padding-bottom: 14px;
  }

  .nav-toggle { display: flex; }

  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--navy);
    padding: 16px 0 32px;
    transform: translateY(-110%);
    transition: transform 0.35s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  #main-nav.open {
    transform: translateY(0);
  }
  #main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  #main-nav ul li a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }
  #main-nav ul li a.nav-cta {
    margin: 16px 24px 0;
    border-radius: 4px;
    text-align: center;
    border-bottom: none;
  }

  section { padding: 80px 0; }

  .about-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
  .profile-photo { margin-bottom: 16px; }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .greeting-box {
    padding: 36px 32px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-nav ul { justify-content: center; }
}

/* =========================================
   RESPONSIVE — MOBILE (≤580px)
   ========================================= */
@media (max-width: 580px) {

  .hero-content h1 {
    font-size: 1.55rem;
  }
  .hero-sub {
    font-size: 0.9rem;
    line-height: 1.9;
    text-align: left;
  }
  /* スマホでは専用改行を表示し、PCの<br>は非表示に */
  .sp-br { display: inline; }
  .hero-sub br:not(.sp-br) { display: none; }
  /* ヘッダー120pxの下からコンテンツ開始 */
  .hero-content { padding: 140px 24px 60px; }

  section { padding: 64px 0; }

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

  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .service-card {
    padding: 22px 14px;
  }

  .timeline li {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }

  .greeting-box {
    padding: 28px 20px;
  }
  .greeting-text p {
    font-size: 0.9rem;
  }

  .achievements-grid {
    gap: 10px;
  }
  .achievement-tag {
    font-size: 0.82rem;
    padding: 8px 16px;
  }
}
