:root {
  --bg: #fff3e6;
  --paper: #ffffff;
  --ink: #1f2a2e;
  --muted: #667176;
  --line: #ead8c8;
  --accent: #e66a1a;
  --accent-deep: #b84f12;
  --accent-2: #fff8f0;
  --soft: #ffe8d2;
  --shadow: 0 18px 45px rgba(35, 48, 54, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  letter-spacing: 0.02em;
}

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

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 243, 230, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  text-decoration: none;
}

.brand-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-ja { font-weight: 800; font-size: 24px; }
.brand-en { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 13px;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav a:hover { color: var(--accent-deep); border-bottom-color: var(--accent-deep); }

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #fff0df 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 88px 24px 76px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.hero-label {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-company {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 22px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hero-company img {
  width: clamp(54px, 7vw, 92px);
  height: clamp(54px, 7vw, 92px);
  object-fit: contain;
  flex: 0 0 auto;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.15;
  letter-spacing: 0.04em;
}

.hero-copy {
  margin: 0 0 28px;
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 600;
}

.hero-message {
  margin: 0;
  color: var(--muted);
  max-width: 670px;
}

.hero-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hero-card-grid figure { margin: 0; }
.hero-card-grid figure:first-child { grid-column: 1 / -1; }
.hero-card-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 13px; }
.hero-card-grid figure:first-child img { height: 250px; }

main { overflow: hidden; }

.section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 78px 24px;
}

.section + .section { border-top: 1px solid var(--line); }

.section-head {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: baseline;
}

.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(25px, 3.2vw, 40px);
  line-height: 1.35;
}

h3 {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.45;
}

h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--accent);
}

.lead {
  margin: 0;
  font-size: 18px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.info-table th,
.info-table td {
  padding: 11px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.info-table th {
  width: 130px;
  padding-right: 18px;
  text-align: left;
  color: var(--muted);
  font-weight: 600;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.timeline time {
  color: var(--muted);
  font-weight: 600;
}

.business-list,
.equipment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.business-list li,
.equipment-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.product-gallery {
  margin: 0 0 26px;
}

.photo-card {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 12px 15px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.photo-card img.image-top {
  object-position: center top;
}

.holiday-card {
  padding: 18px;
}

.holiday-figure {
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) - 6px);
  background: #f4f4f4;
}

.holiday-figure img {
  width: 100%;
  height: auto;
}

.holiday-link-wrap {
  margin: 18px 0 0;
}

.holiday-link {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: var(--accent);
}

.section-block {
  margin-top: 34px;
}

.caption-grid {
  margin-top: 22px;
}

.note-box {
  background: var(--accent-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.contact-card {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
}

.contact-card a { color: #fff; }

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  text-decoration: none;
}

.footer {
  padding: 32px 24px 44px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 920px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
  .nav { justify-content: flex-start; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 58px; }
  .section-head { grid-template-columns: 1fr; gap: 8px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .header-inner, .section, .hero-inner { padding-left: 18px; padding-right: 18px; }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .hero-company { flex-wrap: wrap; gap: 12px; }
  .hero-card-grid { grid-template-columns: 1fr; }
  .hero-card-grid figure:first-child { grid-column: auto; }
  .hero-card-grid img, .hero-card-grid figure:first-child img { height: auto; aspect-ratio: 4 / 3; }
  .card { padding: 22px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .info-table th, .info-table td { display: block; width: 100%; padding: 7px 0; }
  .info-table th { border-bottom: 0; padding-bottom: 0; }
}

/* v4修正：縦写真は余白を作らず、画像全体を自然な比率で表示 */
.press-photo-layout {
  display: grid;
  gap: 18px;
}

.photo-card-natural img {
  aspect-ratio: auto;
  height: auto;
  object-fit: initial;
  display: block;
}

.press-subgrid {
  margin: 0;
}

@media (max-width: 720px) {
  .press-subgrid {
    grid-template-columns: 1fr;
  }
}


/* v5修正：ロゴを社名の左へ移動し、写真カードの余白を詰める */
.caption-grid,
.product-gallery,
.press-photo-layout {
  align-items: start;
}

.photo-card-natural {
  align-self: start;
  height: fit-content;
}

.photo-card-natural img {
  width: 100%;
  height: auto;
}

@media (max-width: 560px) {
  .brand-logo { width: 40px; height: 40px; }
  .brand-ja { font-size: 23px; }
  .hero-company { gap: 14px; }
  .hero-company img { width: 66px; height: 66px; }
}


/* v6修正：Windows環境で社名が折り返さないように調整 */
.brand-main,
.hero-company {
  flex-wrap: nowrap;
  min-width: 0;
}

.brand-ja,
.hero-company span {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}

.brand-main {
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
}

.brand-ja {
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: 0.01em;
}

.hero-company {
  gap: clamp(14px, 1.8vw, 22px);
  font-size: clamp(40px, 4.4vw, 58px);
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.hero-company img {
  width: clamp(62px, 6vw, 84px);
  height: clamp(62px, 6vw, 84px);
}

.hero-inner > div:first-child {
  min-width: 0;
}

/* 画像カードの余白調整：自然比率画像は下側に余計な空きが出にくい構成にする */
.photo-card {
  height: auto;
}

.photo-card figcaption {
  padding-top: 10px;
  padding-bottom: 11px;
}

.photo-card-natural {
  display: inline-block;
  width: 100%;
}

.photo-card-natural img {
  vertical-align: bottom;
}

.caption-grid,
.product-gallery,
.press-photo-layout,
.press-subgrid {
  align-items: start;
}

@media (max-width: 920px) {
  .hero-company {
    font-size: clamp(38px, 8vw, 58px);
  }
}

@media (max-width: 560px) {
  .brand-main {
    gap: 9px;
  }
  .brand-logo { width: 36px; height: 36px; }
  .brand-ja { font-size: 21px; }
  .hero-company {
    flex-wrap: nowrap;
    gap: 10px;
    font-size: clamp(34px, 9vw, 44px);
    letter-spacing: 0.01em;
  }
  .hero-company img { width: 52px; height: 52px; }
}


/* v7修正：ヘッダーに代表電話番号を追加 */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 7px 12px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.header-phone span {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.header-phone:hover {
  background: #fff;
  border-color: var(--accent);
}

@media (max-width: 1080px) {
  .header-inner { gap: 14px; }
  .nav { gap: 10px; font-size: 12px; }
  .header-phone { font-size: 12px; padding: 7px 10px; }
}

@media (max-width: 920px) {
  .header-phone { margin-top: 2px; }
}

/* v8修正：モバイル表示ではロゴ・社名の右側に電話番号を配置し、ナビは下段へ送る */
@media (max-width: 920px) {
  .header-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
  }

  .brand {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-phone {
    order: 2;
    margin-left: auto;
    margin-top: 0;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-en {
    font-size: 10px;
  }

  .header-phone {
    padding: 6px 9px;
    font-size: 11px;
    gap: 5px;
  }

  .header-phone span {
    font-size: 10px;
  }
}

@media (max-width: 390px) {
  .brand-logo {
    width: 32px;
    height: 32px;
  }

  .brand-ja {
    font-size: 18px;
  }

  .brand-en {
    display: none;
  }

  .header-phone {
    padding: 6px 8px;
    font-size: 10.5px;
  }

  .header-phone span {
    display: none;
  }
}

/* v9修正：電話番号をロゴに近い視認性へ。PC/タブレット/スマホで段階的に調整 */
.header-phone {
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  border-color: rgba(184, 79, 18, 0.35);
  box-shadow: 0 8px 22px rgba(184, 79, 18, 0.18);
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.header-phone::before {
  content: "☎";
  font-size: 0.95em;
  line-height: 1;
}

.header-phone span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78em;
  font-weight: 800;
}

.header-phone:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-deep) 0%, #963f0d 100%);
  border-color: rgba(150, 63, 13, 0.45);
}

@media (max-width: 1080px) {
  .header-phone {
    padding: 9px 13px;
    font-size: clamp(13px, 1.6vw, 15px);
  }
}

@media (max-width: 920px) {
  .header-phone {
    align-self: center;
    padding: 9px 14px;
    font-size: clamp(14px, 3.5vw, 16px);
  }
}

@media (max-width: 560px) {
  .brand {
    flex: 1 1 150px;
  }

  .header-phone {
    padding: 8px 11px;
    gap: 5px;
    font-size: clamp(13px, 3.6vw, 15px);
    letter-spacing: 0.01em;
  }

  .header-phone::before {
    font-size: 0.9em;
  }

  .header-phone span {
    font-size: 0.72em;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 7px 8px;
  }

  .brand-logo {
    width: 31px;
    height: 31px;
  }

  .brand-ja {
    font-size: 17px;
    letter-spacing: 0;
  }

  .header-phone {
    padding: 7px 9px;
    font-size: clamp(12.5px, 3.6vw, 14px);
  }

  .header-phone span {
    display: none;
  }
}

@media (max-width: 340px) {
  .brand-ja {
    font-size: 16px;
  }

  .header-phone {
    padding: 7px 8px;
    font-size: 12px;
  }
}
