/* =====================================================
   相和プラント Webサイト - style.css
   空快デザインシステムベース
   ===================================================== */

/* CSS Variables */
:root {
  --primary: #1e88d2;
  --primary-dark: #1c59a2;
  --accent: #0b76cb;
  --text: #323232;
  --text-light: rgba(50,50,50,0.7);
  --white: #fff;
  --border: rgba(50,50,50,0.15);
  --bg-light: rgba(227,228,235,0.15);
  
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Josefin Sans", sans-serif;
  
  --max-width: 1170px;
  --header-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

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

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* =====================================================
   Header
   ===================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

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

.logo img {
  height: 30px;
  width: auto;
}

.logo span {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu li a {
  font-size: 14px;
  font-weight: 400;
  padding: 10px 0;
  position: relative;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  transition: width 0.3s ease;
}

.nav-menu li a:hover::after,
.nav-menu li a.current::after {
  width: 100%;
}

.nav-menu li a.current {
  color: var(--primary);
}

/* Home icon */
.nav-menu li a.nav-home::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666666'%3E%3Cpath d='M12 2.5L1 12h3v9h7v-6h2v6h7v-9h3L12 2.5z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: -2px;
}

/* Home icon - current page (blue) */
.nav-menu li a.nav-home.current::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231e88d2'%3E%3Cpath d='M12 2.5L1 12h3v9h7v-6h2v6h7v-9h3L12 2.5z'/%3E%3C/svg%3E");
}

/* Hamburger Menu Button */
.menu-btn {
  display: none;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.menu-btn span,
.menu-btn::before,
.menu-btn::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  transition: all 0.3s ease;
}

.menu-btn::before {
  top: 0;
}

.menu-btn span {
  top: 50%;
  transform: translateY(-50%);
}

.menu-btn::after {
  bottom: 0;
}

.menu-btn.active::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.menu-btn.active span {
  opacity: 0;
}

.menu-btn.active::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* =====================================================
   Hero / Main Visual
   ===================================================== */
.hero {
  margin-top: var(--header-height);
  position: relative;
  height: 725px;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-text {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-width);
  padding: 0 20px;
  font-size: 60px;
  font-weight: 700;
  color: var(--white);
  text-shadow:
    4px 4px 0 rgba(0, 0, 0, 1),
    1px 1px 0 rgba(0, 0, 0, 1),
    -1px -1px 0 rgba(0, 0, 0, 0.8);
  line-height: 1.5;
}

.hero h1 {
  font-size: 40px;
  font-weight: 700;
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.8),
    0px 0px 10px rgba(0, 0, 0, 0.4);
  line-height: 1.5;
}

/* Page Header (for sub pages) */
.page-header {
  margin-top: var(--header-height);
  height: 250px;
  background: linear-gradient(135deg, rgba(30, 136, 210, 0.9), rgba(28, 89, 162, 0.9));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--white);
}

.page-header h1 {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 32px;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header--works {
  background: url('../images/page-header-works.jpg') center/cover no-repeat;
}

.page-header--example {
  background: url('../images/page-header-example.jpg') center/cover no-repeat;
}

.page-header--company {
  background: url('../images/page-header-company.jpg') center/cover no-repeat;
}

.page-header--contact {
  background: url('../images/page-header-contact.jpg') center/cover no-repeat;
}

/* =====================================================
   Section Styles
   ===================================================== */
.section {
  padding: 50px 0;
}

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

/* Section Title (English) */
.section-title {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 400;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}

/* Heading (Gradient) */
.heading {
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  display: block;
  margin-bottom: 15px;
}

/* =====================================================
   News Section (空快風 What's New)
   ===================================================== */
.news-section {
  position: relative;
  margin-top: 0;
  z-index: 10;
}

.news-section .container {
  max-width: var(--max-width);
}

.news-header {
  display: block;
  background-color: var(--primary);
  color: var(--white);
  padding: 18px 50px;
  font-family: 'GenJyuuGothic', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  position: relative;
  top: -70px;
  margin-bottom: -70px;
}

.news-content {
  background-color: var(--white);
  padding: 20px 30px;
}

/* =====================================================
   News Table
   ===================================================== */
.news {
  width: 100%;
  border-collapse: collapse;
}

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

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

.news th {
  width: 120px;
  padding: 15px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-align: left;
  vertical-align: top;
}

.news td {
  padding: 15px 10px;
  font-size: 15px;
}

.news td a {
  color: var(--text);
}

.news td a:hover {
  color: var(--primary);
  opacity: 1;
}

/* =====================================================
   Tabs
   ===================================================== */
.tabs {
  margin-bottom: 25px;
}

.tab-nav {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
}

.tab-nav button {
  padding: 12px 25px;
  font-size: 15px;
  font-weight: 500;
  background-color: #333;
  color: var(--white);
  border-radius: 6px 6px 0 0;
  transition: background-color 0.3s ease;
}

.tab-nav button:hover,
.tab-nav button.active {
  background-color: var(--primary);
}

.tab-content {
  display: none;
  padding: 20px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 6px 6px 6px;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary);
}

.tab-content ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.tab-content li a {
  display: block;
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
}

.tab-content li a::before {
  content: '▶';
  position: absolute;
  left: 0;
  font-size: 10px;
  color: var(--primary);
}

/* =====================================================
   Cards (3 Column)
   ===================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  border: 2px solid var(--accent);
  border-radius: 8px;
  padding: 20px;
  background: linear-gradient(180deg, var(--bg-light), var(--white));
}

.card .heading {
  display: block;
  text-align: center;
  margin-bottom: 20px;
}

.card ul li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--border);
}

.card ul li:last-child {
  border-bottom: none;
}

.card ul li a {
  display: block;
  padding-left: 15px;
  position: relative;
}

.card ul li a::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* =====================================================
   Company Table
   ===================================================== */
.table {
  width: 100%;
  margin-bottom: 25px;
}

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

.table th {
  width: 200px;
  padding: 12px 15px;
  font-weight: 600;
  background-color: var(--bg-light);
  text-align: left;
  vertical-align: top;
}

.table td {
  padding: 12px 15px;
}

/* =====================================================
   Map
   ===================================================== */
.map-wrapper {
  width: 100%;
  height: 400px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =====================================================
   Works / Business Sections
   ===================================================== */
.work-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.work-section:last-child {
  border-bottom: none;
}

.work-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.work-content--reverse {
  direction: rtl;
}

.work-content--reverse > * {
  direction: ltr;
}

.work-image {
  background-color: var(--bg-light);
  height: 300px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 14px;
}

.work-text h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.work-text p {
  line-height: 1.8;
  color: var(--text-light);
}

/* =====================================================
   Business Categories (事業内容)
   ===================================================== */
.business-categories {
  margin-top: 20px;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.category-list li {
  padding: 15px 20px;
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
  font-weight: 500;
}

.work-description {
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text);
}

/* 事業内容ページの背景・border削除 */
.work-section.section--bg {
  background-color: transparent;
}

.work-section {
  border-bottom: none;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.work-gallery-item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.work-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-caption {
  text-align: center;
  padding: 10px;
  font-size: 14px;
  color: var(--text);
  background-color: var(--white);
}

/* =====================================================
   Example / Record List
   ===================================================== */
.example-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.example-item {
  padding: 20px;
  background-color: var(--bg-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 8px 8px 0;
}

.example-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.example-item p {
  font-size: 14px;
  color: var(--text-light);
}

/* =====================================================
   Gallery (納入実績)
   ===================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.gallery-item {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: #f8f9fa;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* 縦長画像用（最上段3枚） */
.gallery-item.gallery-item--tall {
  aspect-ratio: auto;
}

.gallery-item.gallery-item--tall img {
  object-fit: cover;
  height: auto;
}

/* =====================================================
   Form
   ===================================================== */
.form-intro {
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.6;
}

.form-intro .required-note {
  color: #e74c3c;
  font-weight: 600;
}

.form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-group label .required {
  font-size: 14px;
  color: #e74c3c;
  font-weight: 600;
  margin-left: 5px;
}

.label-en {
  display: block;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

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

.form-note {
  text-align: left;
  margin-bottom: 30px;
  font-size: 14px;
  color: var(--text);
}

.form-submit {
  text-align: center;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.form-submit button {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  background: rgb(74, 179, 210);
  border-radius: 4px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-submit button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.form-submit .btn-reset {
  background: var(--text-light);
  color: var(--white);
}

.form-submit .btn-reset:hover {
  background: var(--text);
}

/* =====================================================
   Solution Grid (トップ営業種目)
   ===================================================== */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.solution-item {
  background-color: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.solution-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* リンクなしの場合はホバー無効 */
.solution-item.no-link {
  cursor: default;
}

.solution-item.no-link:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.solution-item.no-link {
  padding: 20px 15px;
  text-align: center;
}

.solution-item a {
  display: block;
  padding: 20px 15px;
  text-align: center;
  color: var(--text);
}

.solution-icon {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.solution-item h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.solution-more {
  text-align: center;
  margin-top: 25px;
}

.solution-more .btn-more {
  display: inline-block;
  padding: 15px 50px;
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  background-color: #1e88d2;
  border-radius: 50px;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.solution-more .btn-more:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =====================================================
   Business Content (トップ業務内容)
   ===================================================== */
.business-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: center;
  margin-top: 20px;
}

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

.business-image img {
  width: 100%;
  height: auto;
  display: block;
}

.business-text {
  padding: 20px 0;
}

.business-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 15px;
}

.business-text p:last-child {
  margin-bottom: 0;
}

/* =====================================================
   Footer
   ===================================================== */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 35px 0;
  text-align: center;
}

.footer .btn {
  display: inline-block;
  padding: 15px 60px;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  background-color: #1C59A2;
  border: 3px solid var(--white);
  border-radius: 50px;
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.footer .btn:hover {
  background-color: #1E88D2;
  border-color: #1C59A2;
  opacity: 1;
}

.footer .tel {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.2;
}

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

.footer .tel .icon {
  margin-right: 8px;
}

.footer .fax {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.footer address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.footer small {
  font-size: 12px;
  opacity: 0.8;
}

/* Page Top Link */
.page-top {
  text-align: center;
  padding: 15px 0;
  border-top: 1px solid var(--border);
  background-color: var(--white);
}

.page-top a {
  font-size: 14px;
  color: var(--text-light);
}

/* =====================================================
   Company Intro Section
   ===================================================== */
.company-intro {
  text-align: center;
  padding: 40px 0;
}

.company-intro h3 {
  font-size: 28px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.company-intro p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.company-intro .btn-link {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 30px;
  border: 2px solid var(--primary);
  border-radius: 50px;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.company-intro .btn-link:hover {
  background-color: var(--primary);
  color: var(--white);
  opacity: 1;
}

/* =====================================================
   Policy Content (プライバシーポリシー・サイトポリシー)
   ===================================================== */
.policy-content {
  line-height: 1.8;
}

.policy-content p {
  margin-bottom: 20px;
}

.policy-content h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-top: 20px;
  margin-bottom: 10px;
  padding-left: 15px;
  border-left: 4px solid var(--primary);
}

.policy-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.policy-content ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.policy-content ul li::before {
  content: '*';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* プライバシーポリシーの利用目的リスト行間調整 */
.policy-content ul.compact-list {
  margin-bottom: 20px;
}

.policy-content ul.compact-list li {
  margin-bottom: 2px;
  line-height: 1.4;
}

/* 設備案内2カラム */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 30px;
  align-items: start;
}

.equipment-grid .table {
  margin-bottom: 0;
}

.equipment-grid .table tr {
  height: 48px;
}

.equipment-grid .table tr:last-child {
  border-bottom: none;
}

.equipment-grid .table th,
.equipment-grid .table td {
  display: table-cell;
  width: auto;
  vertical-align: middle;
  white-space: nowrap;
}

.equipment-grid .table th {
  width: 180px;
  padding: 10px 15px;
}

.equipment-grid .table td {
  padding: 10px 15px;
}

/* =====================================================
   Contact Info (in footer/contact page)
   ===================================================== */
.contact-info {
  text-align: center;
  padding: 25px;
  background-color: var(--bg-light);
  border-radius: 8px;
  margin-top: 25px;
}

.contact-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.contact-info .tel {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.contact-info address {
  font-style: normal;
  line-height: 1.8;
}

/* =====================================================
   Responsive (768px and below)
   ===================================================== */
@media (max-width: 768px) {
  /* Body font size */
  body {
    font-size: 14px;
  }

  /* Header */
  .header-inner {
    padding: 0 15px;
  }

  .logo img {
    height: 24px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    padding: 80px 30px 30px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    right: 0;
  }

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

  .nav-menu li a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
  }

  .menu-btn {
    display: block;
    margin-left: 15px;
  }

  /* Overlay */
  .overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .overlay.active {
    display: block;
  }

  /* Hero */
  .hero {
    height: 400px;
  }

  .hero-image {
    object-position: left center;
  }

  .hero-text {
    bottom: 20px;
    font-size: 28px;
    text-shadow:
      2px 2px 2px rgba(0, 0, 0, 1),
      1px 1px 0 rgba(0, 0, 0, 1),
      -1px -1px 0 rgba(0, 0, 0, 0.8);
  }

  .hero h1 {
    font-size: 28px;
    padding: 0 20px;
  }

  /* News Section SP */
  .news-section {
    margin-top: 0;
  }

  .news-header {
    padding: 12px 25px;
    font-size: 16px;
    top: 0;
    margin-bottom: 0;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    border-radius: 0;
  }

  .news-content {
    padding: 15px 20px;
  }

  .news th {
    display: block;
    width: 100%;
    padding: 15px 10px 5px;
  }

  .news td {
    display: block;
    padding: 0 10px 15px;
  }

  .page-header {
    height: 180px;
  }

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

  /* Section */
  .section {
    padding: 35px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  /* Cards */
  .cards {
    grid-template-columns: 1fr;
  }

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

  .business-text p {
    font-size: 14px;
    line-height: 1.8;
  }

  /* Solution Grid */
  .solution-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .solution-item a {
    padding: 20px 15px;
  }

  .solution-icon {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .solution-item h4 {
    font-size: 14px;
  }

  /* Tabs */
  .tab-nav {
    flex-wrap: wrap;
  }

  .tab-nav button {
    flex: 1;
    min-width: calc(50% - 5px);
    padding: 10px 15px;
    font-size: 14px;
  }

  .tab-content ul {
    grid-template-columns: 1fr;
  }

  /* Table */
  .table th,
  .table td {
    display: block;
    width: 100%;
  }

  .table th {
    padding: 15px;
  }

  .table td {
    padding: 15px;
    padding-top: 0;
  }

  /* Works */
  .work-content {
    grid-template-columns: 1fr;
  }

  .work-content--reverse {
    direction: ltr;
  }

  .work-image {
    height: 200px;
  }

  /* Business Categories */
  .category-list {
    grid-template-columns: 1fr;
  }

  .work-gallery {
    grid-template-columns: 1fr;
  }

  /* Example List */
  .example-list {
    grid-template-columns: 1fr;
  }

  /* Gallery */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .gallery-item {
    aspect-ratio: 4 / 3;
  }

  /* Footer SP */
  .footer .btn {
    padding: 12px 40px;
    font-size: 16px;
  }

  .footer .tel {
    font-size: 20px;
    margin-bottom: 0;
  }

  .footer .fax {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .footer .company-name {
    font-size: 18px;
  }

  .footer small {
    font-size: 10px;
    display: block;
    line-height: 1.4;
  }

  /* Equipment 2column SP */
  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .equipment-grid .table {
    border-collapse: collapse;
  }

  .equipment-grid .table:first-child tr:last-child {
    border-bottom: 1px solid var(--border);
  }
}

/* =====================================================
   Greeting Section (Company Page)
   ===================================================== */
.greeting-content {
  max-width: 800px;
  margin: 0 auto;
}

.greeting-content p {
  margin-bottom: 1em;
  text-align: justify;
  line-height: 1.7;
}

.greeting-content p:last-child {
  margin-bottom: 0;
}

.greeting-signature {
  text-align: right;
  margin-top: 2em;
  line-height: 1.8;
}

/* =====================================================
   Main Banner Section
   ===================================================== */
.main-banner-section {
  padding: 25px 0;
  text-align: center;
}

.main-banner-section a {
  display: inline-block;
}

.main-banner {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =====================================================
   Banner Section (関連会社リンク)
   ===================================================== */
.banner-section {
  padding: 25px 0;
  background-color: var(--bg-light);
}

.banner-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.banner-links a {
  display: block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.banner-links a:hover {
  opacity: 0.6;
}

.banner-links img {
  display: block;
  max-height: 60px;
  width: auto;
}

@media (max-width: 768px) {
  .banner-links {
    gap: 20px;
  }

  .banner-links img {
    max-height: 50px;
  }
}

/* =====================================================
   Page Layout with Sidebar
   ===================================================== */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.page-main {
  min-width: 0;
}

.page-sidebar {
  padding-top: 25px;
}

.sidebar-banner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-banner a {
  display: block;
}

.sidebar-banner a:hover {
  opacity: 1;
}

.sidebar-banner a:hover img {
  opacity: 0.5;
}

.sidebar-banner img {
  transition: opacity 0.3s ease;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 968px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-sidebar {
    padding-top: 0;
  }

  .sidebar-banner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .sidebar-banner a {
    width: calc(50% - 10px);
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .sidebar-banner a {
    width: 100%;
    max-width: 250px;
  }
}

/* Small screens - single column gallery */
@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    aspect-ratio: auto;
  }

  .gallery-item img {
    object-fit: contain;
    height: auto;
  }
}
