/* ===================================
   シン・電力株式会社 - スタイルシート
   博多電力風デザイン
   =================================== */

/* CSS Variables */
:root {
  --primary-green: #00A651;
  --primary-dark: #007A3D;
  --primary-light: #4DC875;
  --accent-teal: #00B4A0;
  --accent-lime: #8BC53F;
  --text-dark: #2D3436;
  --text-light: #636E72;
  --text-muted: #B2BEC3;
  --bg-light: #F0FAF4;
  --bg-mint: #E8F5E9;
  --white: #FFFFFF;
  --border-color: #E0E0E0;
  --shadow: 0 4px 20px rgba(0, 166, 81, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 166, 81, 0.15);
  --transition: all 0.3s ease;
  --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  --font-en: 'Hind', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ===================================
   Header
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .navbar {
  padding: 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 50px;
  height: 50px;
}

.logo-icon.small {
  width: 35px;
  height: 35px;
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-green);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.logo-sub {
  font-family: var(--font-en);
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* Navigation */
.navbar-nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-en);
  color: var(--text-dark) !important;
  text-transform: uppercase;
  padding: 28px 20px !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 20px;
  width: 0;
  height: 2px;
  background: var(--accent-teal);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: calc(100% - 40px);
}

.navbar-toggler {
  border: none;
  padding: 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 50%, var(--accent-teal) 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="3" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="60" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="70" cy="30" r="2.5" fill="rgba(255,255,255,0.1)"/></svg>');
  background-size: 200px;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, rgba(0, 122, 61, 0.8), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 60px 0;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title-line {
  display: block;
  font-size: 52px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  font-size: 18px;
  font-weight: 400;
  line-height: 2;
  margin-bottom: 40px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-custom {
  display: inline-block;
  padding: 16px 40px;
  background: var(--white);
  color: var(--primary-green);
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  transition: var(--transition);
}

.btn-primary-custom:hover {
  background: var(--accent-lime);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 197, 63, 0.5);
}

.btn-outline-custom {
  display: inline-block;
  padding: 15px 40px;
  background: transparent;
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--white);
  border-radius: 6px;
  transition: var(--transition);
}

.btn-outline-custom:hover {
  background: var(--white);
  color: var(--primary-green);
}

/* ===================================
   Section Common Styles
   =================================== */
.section-title {
  margin-bottom: 50px;
}

.section-title-en {
  display: block;
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--accent-teal);
  margin-bottom: 8px;
}

.section-title-en.white {
  color: rgba(255, 255, 255, 0.7);
}

.section-title-ja {
  display: block;
  font-size: 32px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: 0.05em;
}

.section-title-ja.white {
  color: var(--white);
}

/* ===================================
   Message Section
   =================================== */
.message-section {
  padding: 100px 0;
  background: var(--white);
}

.message-text {
  font-size: 16px;
  line-height: 2.2;
  color: var(--text-light);
}

/* ===================================
   Business Section
   =================================== */
.business-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.business-card {
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  height: 100%;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  gap: 24px;
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.business-card-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  color: var(--primary-green);
}

.business-card-icon svg {
  width: 100%;
  height: 100%;
}

.business-card-content {
  flex: 1;
}

.business-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.business-card-text {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-light);
  margin-bottom: 20px;
}

.business-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-green);
}

.business-card-link:hover {
  color: var(--accent-teal);
}

/* ===================================
   Numbers Section
   =================================== */
.numbers-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
}

.number-item {
  text-align: center;
  padding: 30px;
}

.number-value {
  display: block;
  font-family: var(--font-en);
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 12px;
}

.number-unit {
  font-size: 22px;
  font-weight: 400;
}

.number-label {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* ===================================
   News Section
   =================================== */
.news-section {
  padding: 100px 0;
  background: var(--white);
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
  text-decoration: none;
  transition: var(--transition);
}

.news-item:hover {
  background: var(--bg-light);
  padding-left: 10px;
  padding-right: 10px;
  margin-left: -10px;
  margin-right: -10px;
}

.news-date {
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
  margin: 0;
}

.news-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark);
  margin: 0;
  position: relative;
  padding-left: 20px;
}

.news-body::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 8px;
  border-top: 3px solid var(--primary-green);
  border-right: 3px solid var(--primary-green);
  transform: rotate(45deg);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-green) 100%);
}

.contact-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 2;
  margin-bottom: 40px;
}

.btn-contact {
  display: inline-block;
  padding: 20px 60px;
  background: var(--white);
  color: var(--primary-green);
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.btn-contact:hover {
  background: var(--accent-lime);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: #1a2a3a;
  color: var(--white);
}

.section-seperator {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-list li {
  margin-bottom: 12px;
}

.footer-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-list a:hover {
  color: var(--white);
}

.footer-company-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-company-address {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
}

.footer-bottom {
  padding: 30px 0;
}

.footer-logo {
  display: inline-block;
}

.footer-logo .logo-main {
  color: var(--white);
  font-size: 18px;
}

.copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

/* ===================================
   Back to Top
   =================================== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-green);
  color: var(--white);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 0.8;
  visibility: visible;
}

.back-to-top:hover {
  opacity: 1;
  background: var(--accent-teal);
  color: var(--white);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ===================================
   Page Header (for sub pages)
   =================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-green) 100%);
  padding: 140px 0 80px;
  text-align: center;
}

.page-header-title {
  color: var(--white);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-header-sub {
  font-family: var(--font-en);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===================================
   Content Section (for sub pages)
   =================================== */
.content-section {
  padding: 80px 0;
}

.content-section h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-lime);
}

.content-section p {
  margin-bottom: 20px;
  line-height: 2;
}

/* Company Table */
.company-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.company-table th,
.company-table td {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 200px;
  background: var(--bg-light);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

.company-table td {
  font-size: 15px;
  color: var(--text-dark);
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.company-table a {
  color: var(--primary-green);
}

.company-table a:hover {
  text-decoration: underline;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 991px) {
  .navbar-collapse {
    background: var(--white);
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    padding: 12px 0 !important;
  }

  .nav-link::after {
    bottom: 10px;
    left: 0;
  }

  .hero-title-line {
    font-size: 36px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .section-title-ja {
    font-size: 26px;
  }

  .business-card {
    flex-direction: column;
    padding: 30px;
  }

  .business-card-icon {
    width: 60px;
    height: 60px;
  }

  .number-value {
    font-size: 42px;
  }

  .number-unit {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .hero-title-line {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    text-align: center;
  }

  .message-section,
  .business-section,
  .numbers-section,
  .news-section,
  .contact-section {
    padding: 60px 0;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .section-title-ja {
    font-size: 22px;
  }

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

  .news-body {
    padding-left: 16px;
  }

  .news-body::before {
    width: 6px;
    height: 6px;
    top: 9px;
  }

  .number-value {
    font-size: 36px;
  }

  .company-table th {
    width: 120px;
    padding: 15px;
    font-size: 13px;
  }

  .company-table td {
    padding: 15px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .logo-main {
    font-size: 18px;
  }

  .logo-icon {
    width: 40px;
    height: 40px;
  }

  .hero-title-line {
    font-size: 24px;
  }

  .btn-contact {
    padding: 16px 40px;
    font-size: 14px;
  }
}
