/* ============================================================
   GOLD STAR Co., Ltd. — Corporate Site CSS
   Design: Trust × Advanced / Inspired by Sekisui Chemical
   ============================================================ */

/* --------------------------------------------------
   0. CSS Custom Properties (Variables)
-------------------------------------------------- */
:root {
  --gold:        #ccb300;
  --gold-dark:   #B39D00;
  --gold-pale:   rgba(204, 179, 0, 0.10);
  --white:       #FFFFFF;
  --off-white:   #F8F8F8;
  --text:        #333333;
  --text-light:  #666666;
  --text-muted:  #888888;
  --border:      #E0E0E0;
  --footer-bg:   #222222;
  --shadow-sm:   0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-md:   0 8px 40px rgba(0, 0, 0, 0.10);
  --shadow-lg:   0 16px 60px rgba(0, 0, 0, 0.14);
  --font-jp:     'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic Medium', 'Yu Gothic', sans-serif;
  --font-en:     'Montserrat', sans-serif;
  --max-w:       1200px;
  --section-py:  120px;
  --transition:  0.3s ease;
}

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

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

body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --------------------------------------------------
   2. Utility
-------------------------------------------------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* --------------------------------------------------
   3. HEADER
-------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
}

.header-inner > * + * {
margin-left: 10px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  z-index: 1100;
}

.logo-star {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

.logo-text {
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  transition: color var(--transition);
}

.site-header.scrolled .logo-text {
  color: var(--text);
}

.logo-text-light {
  font-weight: 300;
  color: var(--white);
  transition: color var(--transition);
}

.site-header.scrolled .logo-text-light {
  color: var(--text-light);
}

/* PC Navigation */
.header-nav{
margin-left: auto;
}

.header-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-jp);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

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

.nav-link:hover::after {
  width: 100%;
}

.site-header.scrolled .nav-link {
  color: var(--text);
}

.site-header.scrolled .nav-link:hover {
  color: var(--gold);
}

/* Contact button in nav */
.nav-contact-btn {
  padding: 10px 22px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  transition: background var(--transition), border-color var(--transition), color var(--transition) !important;
}

.nav-contact-btn::after {
  display: none;
}

.nav-contact-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white) !important;
}

.site-header.scrolled .nav-contact-btn {
  border-color: var(--text);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  padding: 4px;
}

.hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  transform-origin: center;
}

.site-header.scrolled .hamburger-line {
  background: var(--text);
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(34, 34, 34, 0.97);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.mobile-nav-link {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.1em;
  transition: color var(--transition);
}

.mobile-nav-link:hover {
  color: var(--gold);
}

/* --------------------------------------------------
   4. HERO SECTION
-------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

/* Background with Ken Burns effect */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/FV_bg.png') center center / cover no-repeat;
  animation: kenBurns 20s ease-in-out infinite alternate;
  transform-origin: center center;
}

@keyframes kenBurns {
  0%   { transform: scale(1.10); }
  100% { transform: scale(1.00); }
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.58) 0%,
    rgba(0, 0, 0, 0.30) 50%,
    rgba(0, 0, 0, 0.20) 100%
  );
}

/* Copy block */
.hero-content {
  position: absolute;
  z-index: 2;
  max-width: 760px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-text-block {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Gold vertical accent line */
.hero-accent-line {
  width: 4px;
  background: var(--gold);
  flex-shrink: 0;
  margin-right: 28px;
  border-radius: 2px;
}

.hero-text-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-sub-text {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.20em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-heading {
  font-family: var(--font-jp);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.40);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.8));
  animation: scrollLineAnim 2s ease-in-out infinite;
}

@keyframes scrollLineAnim {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1.0); transform-origin: top; }
}

.scroll-text {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

/* --------------------------------------------------
   5. GREETING SECTION
-------------------------------------------------- */
.greeting-section {
  background: var(--off-white);
  padding: var(--section-py) 0;
  overflow: hidden;
}

.greeting-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left column */
.greeting-text {
  padding-right: 20px;
}

.greeting-heading {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
  letter-spacing: 0.02em;
}

.heading-underline {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin-top: 24px;
}

.greeting-body {
  margin-top: 40px;
  font-size: 16px;
  line-height: 2.0;
  color: var(--text);
}

/* Right column — broken grid layout */
.greeting-image-wrap {
  position: relative;
  margin-top: 60px; /* Y-axis offset (broken grid) */
  margin-right: -80px; /* Bleed off-screen right */
}

.greeting-image-container {
  overflow: hidden;
  border-radius: 2px;
}

.greeting-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.greeting-image-container:hover .greeting-image {
  transform: scale(1.03);
}

/* --------------------------------------------------
   6. SLOGAN SECTION
-------------------------------------------------- */
.slogan-section {
  background: var(--white);
  padding: var(--section-py) 0;
}

.slogan-inner {
  text-align: center;
}

.slogan-heading {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text);
  line-height: 1.5;
}

.slogan-body-wrap {
  max-width: 800px;
  margin: 60px auto 0;
}

.slogan-body {
  font-size: 16px;
  line-height: 2.0;
  color: var(--text);
  text-align: left;
}

/* --------------------------------------------------
   7. BUSINESS FIELDS SECTION
-------------------------------------------------- */
.business-section {
  background: var(--white);
  padding: 150px 0;
}

/* Section Title Row */
.section-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
}

.section-title-accent {
  width: 40px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.section-label-en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
}

.section-label-ja {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
}

/* Business Grid */
.business-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 40px;
}

/* 7th item: left-align in a 3-col grid */
.biz-card:nth-child(7) {
  grid-column: 1;
}

/* Business Card */
.biz-card {
  display: flex;
  flex-direction: column;
}

.biz-card-img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
}

.biz-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.biz-card-img-wrap:hover .biz-card-img {
  transform: scale(1.05);
}

.biz-card-body {
  padding: 20px 0 0 0;
}

.biz-card-number {
  display: block;
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 8px;
}

.biz-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------
   8. CEO MESSAGE SECTION
-------------------------------------------------- */
.ceo-section {
  position: relative;
  background: var(--white);
  padding: 150px 0;
  overflow: hidden;
}

/* Background accent rectangle */
.ceo-bg-accent {
  position: absolute;
  top: 60px;
  right: 0;
  width: 55%;
  height: calc(100% - 120px);
  background: var(--gold-pale);
  z-index: 0;
  border-radius: 2px 0 0 2px;
}

.ceo-container {
  position: relative;
  z-index: 1;
}

/* White text box overlapping accent */
.ceo-textbox {
  max-width: 700px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 2px;
  position: relative;
  z-index: 2;
}

.ceo-textbox-inner {
  padding: 56px 64px;
}

.ceo-section-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.ceo-heading-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 36px;
}

.ceo-body p {
  font-size: 15px;
  line-height: 2.0;
  color: var(--text);
  margin-bottom: 36px;
}

.ceo-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-align: right;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------
   9. COMPANY PROFILE SECTION
-------------------------------------------------- */
.company-section {
  background: var(--off-white);
  padding: var(--section-py) 0;
}

.company-section .section-title-row{
max-width:800px;
margin-left:auto;
margin-right:auto;
}

.company-title-wrap {
  text-align: center;
  margin-bottom: 64px;
}

.company-label-en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.company-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.company-heading-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

/* Table */
.company-table-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

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

.company-table tbody tr:first-child {
  border-top: 1px solid var(--border);
}

.company-table th,
.company-table td {
  padding: 24px 16px;
  font-size: 15px;
  line-height: 1.8;
  vertical-align: top;
}

.company-table th {
  width: 30%;
  font-weight: 700;
  color: var(--gold);
  text-align: left;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.company-table td {
  width: 70%;
  color: var(--text);
}

.table-link {
  color: var(--text);
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-link:hover {
  color: var(--gold);
}

/* --------------------------------------------------
   10. CONTACT SECTION
-------------------------------------------------- */
.contact-section {
  background: var(--white);
  padding: 150px 0;
}

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

.contact-label-en {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.contact-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.contact-heading-line {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 48px;
}

.contact-message {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 40px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 60px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-jp);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 20px rgba(204, 179, 0, 0.30);
}

.contact-btn:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(204, 179, 0, 0.40);
}

/* --------------------------------------------------
   11. FOOTER
-------------------------------------------------- */
.site-footer {
  background: var(--footer-bg);
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.footer-copy {
  font-family: var(--font-en);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* --------------------------------------------------
   12. SCROLL ANIMATION (Fade-in on scroll)
-------------------------------------------------- */
.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered delay for business cards */
.biz-card:nth-child(1) { transition-delay: 0.05s; }
.biz-card:nth-child(2) { transition-delay: 0.10s; }
.biz-card:nth-child(3) { transition-delay: 0.15s; }
.biz-card:nth-child(4) { transition-delay: 0.20s; }
.biz-card:nth-child(5) { transition-delay: 0.25s; }
.biz-card:nth-child(6) { transition-delay: 0.30s; }
.biz-card:nth-child(7) { transition-delay: 0.35s; }

/* --------------------------------------------------
   13. RESPONSIVE — Tablet (≤ 1024px)
-------------------------------------------------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 32px;
  }

  .header-inner {
    padding: 0 32px;
  }

  .header-inner{
    justify-content: space-between;
  }

  .header-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero-content {
    padding: 0 40px 100px;
  }

  /* Greeting */
  .greeting-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .greeting-text {
    padding-right: 0;
  }

  .greeting-image-wrap {
    margin-top: 48px;
    margin-right: -32px;
  }

  .greeting-image {
    height: 360px;
  }

  /* Business */
  .business-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 32px;
  }

  .biz-card:nth-child(7) {
    grid-column: 1;
  }

  /* CEO */
  .ceo-bg-accent {
    width: 70%;
  }

  .ceo-textbox {
    max-width: 100%;
  }

  .ceo-textbox-inner {
    padding: 44px 48px;
  }
}

/* --------------------------------------------------
   14. RESPONSIVE — Smartphone (≤ 768px)
-------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --section-py: 80px;
  }

  .container {
    padding: 0 24px;
  }

  .header-inner {
    padding: 0 24px;
    height: 64px;
  }

  /* Hero */
  .hero-content {
    padding: 0 28px 80px;
    width: 80%;
  }

  .hero-heading {
    font-size: clamp(26px, 7vw, 36px);
  }

  .hero-accent-line {
    margin-right: 18px;
  }

  /* Greeting */
  .greeting-heading {
    font-size: 22px;
  }

  .greeting-image-wrap {
    margin-right: -24px;
  }

  .greeting-image {
    height: 260px;
  }

  /* Slogan */
  .slogan-heading {
    font-size: 24px;
    letter-spacing: 0.03em;
  }

  .slogan-body-wrap {
    margin-top: 40px;
  }

  /* Business */
  .business-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .biz-card:nth-child(7) {
    grid-column: 1;
  }

  .section-title-row {
    margin-bottom: 48px;
  }

  /* CEO */
  .ceo-bg-accent {
    display: none;
  }

  .ceo-textbox {
    box-shadow: var(--shadow-md);
  }

  .ceo-textbox-inner {
    padding: 36px 28px;
  }

  .ceo-name {
    font-size: 13px;
  }

  /* Company */
  .company-table th {
    font-size: 13px;
    white-space: normal;
    width: 35%;
  }

  .company-table td {
    font-size: 13px;
    width: 65%;
  }

  .company-table th,
  .company-table td {
    padding: 18px 10px;
  }

  /* Contact */
  .contact-btn {
    width: 100%;
    max-width: 320px;
  }

  /* Footer */
  .footer-inner {
    padding: 0 24px;
  }
}

/* --------------------------------------------------
   15. RESPONSIVE — Small Phone (≤ 480px)
-------------------------------------------------- */
@media (max-width: 480px) {
  .greeting-heading {
    font-size: 19px;
  }

  .slogan-heading {
    font-size: 20px;
  }

  .hero-heading {
    font-size: 24px;
  }

  .company-table {
    display: block;
    overflow-x: auto;
  }

  .company-table tbody {
    display: block;
  }

  .company-table tr {
    display: grid;
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
  }

  .company-table tr:first-child {
    border-top: 1px solid var(--border);
  }

  .company-table th,
  .company-table td {
    width: 100%;
    padding: 4px 10px;
    border: none;
  }

  .company-table th {
    padding-bottom: 6px;
  }
}
