:root {
  --bg: #ffffff;
  --panel: #f8f9fb;
  --text: #111;
  --muted: #777;
  --line: #e5e5e5;

  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);

  --accent: #c9a063;
  --radius: 20px;
  --max: 1160px;
}

/* Base */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Noto Sans JP', 'Segoe UI', sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.8;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.section {
  padding: 30px 0;
}
.h2 {
  font-size: clamp(30px, 3vw, 44px);
  margin-bottom: 40px;
  position: relative;
  font-weight: 800;
}
.h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--accent);
}

/* Card */
.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  transition: 0.4s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.18);
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.brand {
  font-weight: 900;
  letter-spacing: 0.05em;
}
nav a {
  margin-left: 28px;
  font-weight: 700;
  color: #333;
}
nav a:hover {
  color: var(--accent);
}

#burger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  padding: 20px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  display: block;
  padding: 14px;
  border-radius: 10px;
}
.mobile-nav a:hover {
  background: #f2e6d3;
}
.hero {
  position: relative;
  height: 70vh;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
}

.hero-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 黒グラデーションで高級感 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25));
}
/* テキスト中央 */
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 40px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: 0.05em;
}
.hero-sub {
  margin-top: 20px;
  max-width: 800px;
  font-size: 18px;
  opacity: 0.9;
}
/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Service */
.biz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.biz-grid .card {
  padding: 0;
  overflow: hidden;
  text-align: center;
}
.biz-grid img {
  height: 200px;
  object-fit: cover;
}
.biz-grid h3 {
  padding: 20px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

/* Location */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
}
.table th {
  background: #f5f5f5;
  padding: 16px;
  text-align: left;
  width: 25%;
}
.table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

/* Footer */
footer {
  background: #f3f3f3;
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

/* Responsive */
@media (max-width: 900px) {
  nav {
    display: none;
  }
  #burger {
    display: block;
  }
  .about-grid,
  .biz-grid,
  .loc-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 220px 220px;
  }
}
@media (max-width: 560px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 220px 220px 220px;
  }
}
.card {
  width: 100%;
  max-width: none;
}
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.chart-box {
  background: #f8f9fb;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.chart-box h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
}

.tradingview-widget-container {
  height: 400px;
}

@media (max-width: 900px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
}
.about-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.map-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.ship-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.copper-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
/* ===== Responsive ===== */
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .about-grid,
  .loc-grid,
  .biz-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
  }
}
/* ===== Contact Mobile Fix ===== */
@media (max-width: 560px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid input,
  .contact-grid textarea,
  .contact-grid button {
    width: 100%;
  }

  .card {
    padding: 24px;
  }
}
/* Contact */
.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr; /* 常に1カラム */
  margin-bottom: 60px;
}

.contact-grid textarea {
  min-height: 180px;
}

.contact-grid input,
.contact-grid textarea {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 16px;
  width: 100%;
}

.contact-grid input:focus,
.contact-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-grid button {
  padding: 18px;
  background: linear-gradient(135deg, var(--accent), #9f7a3a);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

.contact-grid button:hover {
  filter: brightness(1.05);
}
/* スマホ用画像はデフォルト非表示 */
.hero-sp {
  display: none;
}

/* スマホ時に切り替え */
@media (max-width: 560px) {
  .hero-grid {
    display: none; /* 6枚消す */
  }

  .hero-sp {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-sp img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
@media (max-width: 560px) {
  .hero-title {
    font-size: 28px;
    line-height: 1.35;
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.7;
  }

  .hero-content {
    padding: 20px;
  }
}
