/* ============================================
   嶋本建設株式会社 - Corporate Website
   Color Theme: Maldives Ocean
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #333;
  line-height: 1.8;
  background: #fff;
}

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

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

/* --- Color Variables --- */
:root {
  --primary: #0891b2;       /* Maldives ocean blue */
  --primary-dark: #0e7490;  /* Deeper ocean */
  --primary-darker: #155e75;/* Deep sea */
  --accent: #06b6d4;        /* Bright cyan */
  --light: #ecfeff;         /* Light cyan tint */
  --gradient: linear-gradient(135deg, #0e7490 0%, #0891b2 40%, #06b6d4 100%);
  --text: #1e293b;
  --text-light: #64748b;
  --white: #ffffff;
  --gray-bg: #f8fafc;
  --border: #e2e8f0;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--gradient);
  box-shadow: 0 2px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.logo-text {
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* --- Navigation --- */
.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-list a {
  display: block;
  padding: 8px 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border-radius: 4px;
  transition: background 0.3s;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.3s;
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 60%;
}

.nav-list a:hover {
  background: rgba(255,255,255,0.1);
}

/* --- Hamburger Menu --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  z-index: 1;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,116,144,0.85) 0%, rgba(8,145,178,0.7) 50%, rgba(6,182,212,0.6) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
}

.hero-content h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 4px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 18px;
  line-height: 2;
  text-shadow: 0 1px 5px rgba(0,0,0,0.2);
  max-width: 700px;
  margin: 0 auto;
}

.hero-content .cta-text {
  margin-top: 24px;
  font-size: 16px;
  opacity: 0.9;
}

/* --- Page Hero (Sub pages) --- */
.page-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
}

.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,116,144,0.88) 0%, rgba(8,145,178,0.75) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
}

.page-hero-content .en-title {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.9;
}

.page-hero-content h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

/* --- Section --- */
.section {
  padding: 80px 24px;
}

.section-gray {
  background: var(--gray-bg);
}

.section-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
}

.section-title .divider {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 16px;
}

.section-title .divider span {
  display: block;
  height: 3px;
  border-radius: 2px;
}

.section-title .divider span:first-child {
  width: 40px;
  background: #c4e8ef;
}

.section-title .divider span:last-child {
  width: 40px;
  background: var(--primary);
}

/* --- Company Table --- */
.company-table {
  width: 100%;
  border-collapse: collapse;
}

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

.company-table th {
  text-align: left;
  padding: 20px 24px;
  width: 160px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  vertical-align: top;
}

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

/* --- Business Section --- */
.business-block {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.business-block.reverse {
  flex-direction: row-reverse;
}

.business-image {
  flex: 0 0 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.business-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.business-text {
  flex: 1;
}

.business-text h3 {
  font-size: 24px;
  color: var(--primary-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.business-text p {
  margin-bottom: 16px;
  line-height: 2;
}

.business-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}

.business-list li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
  font-size: 15px;
}

.business-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* --- News --- */
.news-list {
  list-style: none;
}

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

.news-date {
  flex: 0 0 120px;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
}

.news-tag {
  flex: 0 0 80px;
  display: inline-block;
  padding: 2px 12px;
  font-size: 12px;
  background: var(--primary);
  color: var(--white);
  border-radius: 3px;
  text-align: center;
}

.news-title {
  flex: 1;
  font-size: 15px;
}

/* --- Greeting Page --- */
.greeting-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--light);
  font-size: 14px;
  color: var(--text-light);
}

.greeting-date {
  font-weight: 500;
}

.greeting-author {
  color: var(--primary-dark);
  font-weight: 600;
}

.greeting-body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 2.1;
  color: var(--text);
}

.greeting-body p {
  margin-bottom: 24px;
}

.greeting-sign {
  text-align: right;
  margin-top: 40px;
  font-weight: 600;
  color: var(--primary-dark);
}

.back-to-news {
  max-width: 780px;
  margin: 48px auto 0;
  text-align: center;
}

.back-link {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
}

.back-link:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- News list link --- */
.news-list li.news-link {
  transition: background 0.2s;
}

.news-list li.news-link:hover {
  background: var(--light);
}

.news-list li.news-link a {
  display: contents;
  color: inherit;
}

/* --- Contact Section --- */
.contact-section {
  text-align: center;
  padding: 64px 24px;
  background: var(--gray-bg);
}

.contact-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text);
}

.contact-phone {
  font-size: 48px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: block;
}

.contact-phone::before {
  content: '\260E';
  margin-right: 12px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 48px;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.contact-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.contact-btn svg {
  width: 24px;
  height: 24px;
}

.contact-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-light);
}

/* --- Contact Form --- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group label .required {
  display: inline-block;
  background: #ef4444;
  color: white;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.1);
}

.form-group textarea {
  height: 180px;
  resize: vertical;
}

.submit-btn {
  display: inline-block;
  padding: 16px 64px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: var(--primary-dark);
}

/* --- Floating Contact Button --- */
.float-contact {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(6,182,212,0.4);
  transition: transform 0.3s, box-shadow 0.3s;
  z-index: 999;
}

.float-contact:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(6,182,212,0.5);
}

.float-contact svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
}

/* --- Footer --- */
.footer {
  background: var(--primary-darker);
  color: var(--white);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

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

.footer-logo .logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.footer-address {
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.85;
}

.footer-nav {
  display: flex;
  gap: 32px;
  list-style: none;
}

.footer-nav a {
  font-size: 14px;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.3s;
}

.footer-nav a:hover {
  opacity: 1;
}

.footer-nav a::before {
  content: '- ';
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  opacity: 0.7;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }

  .hamburger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-darker);
    padding: 80px 24px 24px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0,0,0,0.2);
  }

  .nav.open {
    right: 0;
  }

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

  .nav-list a {
    padding: 16px 12px;
    font-size: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-radius: 0;
  }

  .nav-list a::after {
    display: none;
  }

  .hero {
    height: 450px;
    margin-top: 64px;
  }

  .hero-content h1 {
    font-size: 28px;
    letter-spacing: 2px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .page-hero {
    height: 200px;
    margin-top: 64px;
  }

  .page-hero-content h1 {
    font-size: 24px;
  }

  .section {
    padding: 48px 16px;
  }

  .section-title h2 {
    font-size: 24px;
  }

  .business-block {
    flex-direction: column;
    gap: 24px;
  }

  .business-block.reverse {
    flex-direction: column;
  }

  .business-image {
    flex: none;
    width: 100%;
  }

  .business-list {
    grid-template-columns: 1fr;
  }

  .company-table th,
  .company-table td {
    display: block;
    padding: 8px 16px;
    width: 100%;
  }

  .company-table th {
    padding-bottom: 0;
    color: var(--primary-dark);
  }

  .company-table tr {
    padding: 8px 0;
  }

  .news-list li {
    flex-wrap: wrap;
    gap: 8px;
  }

  .news-date {
    flex: 0 0 auto;
  }

  .contact-phone {
    font-size: 32px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }

  .float-contact {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
}
