
/*
Theme Name: 786 Eco Company
Theme URI: https://786-car.online/
Author: 786 Eco Company
Description: 786エコカンパニー公式サイト
Version: 1.1.0
Requires PHP: 7.4
Text Domain: eco786
*/

/* ==============================
   基本設定 BLACK × RED
============================== */
:root {
  --dark: #0b0b0d;
  --green: #c71936;
  --forest: #a31328;
  --pale: #160d11;
  --red: #d6193b;
  --text: #f2ebed;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0d0b0d;
  color: var(--text);
  font-family: system-ui, "Noto Sans JP", Meiryo, sans-serif;
  font-size: 18px;
  line-height: 1.8;
}

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

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

.wrap {
  width: min(1700px, calc(100% - 64px));
  margin-inline: auto;
}

/* ==============================
   ヘッダー全体
============================== */
.site-head {
  position: relative;
  z-index: 20;
  overflow: hidden;
  background: linear-gradient(
    110deg,
    #050505 0%,
    #090708 72%,
    #21050a 100%
  );
  color: #fff;
  border-bottom: 5px solid #b50927;
  box-shadow: inset 0 -8px 24px #74061c35;
}

.site-head::after {
  content: "";
  position: absolute;
  right: -55px;
  bottom: -42px;
  width: 280px;
  height: 100px;
  background: #bd0925;
  transform: skewY(-25deg);
  pointer-events: none;
  opacity: .9;
}

.site-head .head-inner {
  position: relative;
  z-index: 1;
  width: min(1900px, calc(100% - 72px));
  display: grid;
  grid-template-columns: minmax(340px, 32%) minmax(0, 1fr);
  align-items: stretch;
  gap: 34px;
  padding: 28px 0 30px;
}

/* ==============================
   左側：会社名・営業時間
============================== */
.site-head .header-company {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  gap: 16px;
  padding: 6px 28px 6px 0;
  border-right: 2px solid #777477;
}

.site-head .header-company .brand {
  display: block;
  margin: 0;
  color: #f7f7f7;
  font-size: clamp(34px, 3vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.045em;
  text-shadow:
    0 2px 0 #787878,
    0 4px 2px #252525,
    0 0 13px #ffffff38;
}

.site-head .brand-main {
  display: block;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.site-head .brand-jp {
  display: inline;
  color: inherit;
  font-size: .72em;
  letter-spacing: -.065em;
}

.site-head .header-company .brand-sub {
  display: block;
  margin-top: 8px;
  color: #e72747;
  font-size: clamp(13px, 1.25vw, 21px);
  font-weight: 900;
  letter-spacing: .13em;
  text-shadow: none;
}

.site-head .header-company .header-hours {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.site-head .header-hours span {
  color: #fff;
  font-size: clamp(20px, 1.65vw, 29px);
  font-weight: 900;
  line-height: 1.35;
}

.site-head .header-hours strong {
  color: #ed2d4b;
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 900;
  line-height: 1.35;
}

.site-head .header-hours .reservation-notice {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(13px, 1.05vw, 18px);
  font-weight: 800;
  line-height: 1.5;
}

/* ==============================
   右側：メニュー
============================== */
.site-head .header-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
  gap: 28px;
}

.site-head .header-right .menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0 0 22px;
  column-gap: clamp(14px, 1.45vw, 28px);
  row-gap: 12px;
  border-bottom: 2px solid #a51532;
  box-shadow: 0 9px 9px -10px #ff385b;
  font-size: clamp(16px, 1.2vw, 22px);
  font-weight: 900;
  line-height: 1.5;
}

.site-head .header-right .menu a {
  display: inline-block;
  padding: 4px 0;
  color: #fff;
  white-space: nowrap;
}

.site-head .header-right .menu a:hover {
  color: #ff617c;
}

/* ==============================
   右側：お問い合わせ4ボタン
============================== */
.site-head .header-right .header-contact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  gap: clamp(10px, 1.05vw, 20px);
}

.site-head .header-right .header-contact a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  min-height: clamp(64px, 4.5vw, 82px);
  padding: 12px 8px;
  border-radius: 13px;
  text-align: center;
  white-space: normal;
  line-height: 1.35;
  box-shadow: 0 5px 16px #0008;
  transition: transform .2s, filter .2s;
}

.site-head .header-right .header-contact a span {
  font-size: clamp(13px, 1.1vw, 20px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.site-head .header-contact a:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.site-head .header-contact a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* 電話：赤 */
.site-head .header-contact a.header-phone {
  background: linear-gradient(#d20c30, #a80021);
  color: #fff;
  border: 1px solid #f13a58;
}

/* LINE：緑 */
.site-head .header-contact a.header-line {
  background: linear-gradient(#03d24c, #00b83b);
  color: #fff;
  border: 1px solid #31e56c;
}

/* Googleマップ：薄水色 */
.site-head .header-contact a.header-map {
  background: #b7ebf8;
  color: #122f38;
  border: 1px solid #8bd4e7;
}

.site-head .header-contact a.header-map span {
  color: #122f38;
}

/* 介護タクシー：薄黄色 */
.site-head .header-contact a.header-care-taxi {
  background: #f7e4a0;
  color: #251b0d;
  border: 1px solid #ffe9aa;
}

.site-head .header-contact a.header-care-taxi span {
  color: #251b0d;
}

/* ==============================
   メインビジュアル
============================== */
.hero {
  background: linear-gradient(
    135deg,
    #080809 25%,
    #290910 75%,
    #0a080a
  );
  color: #fff;
  padding: 75px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.eyebrow {
  color: #e33150;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .18em;
}

.hero h1 {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.3;
  margin: 18px 0;
}

.hero h1 em {
  color: #e33150;
  font-style: normal;
}

.hero p {
  color: #d5bdc2;
  font-size: 19px;
}

.hero-images {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 160px 160px;
  gap: 10px;
}

.hero-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.hero-images img:first-child {
  grid-row: span 2;
}

/* トップ右側リンク */
.hero-links .hero-tile {
  min-height: 165px;
  padding: 20px 14px;
}

.hero-links .hero-tile strong {
  font-size: 20px;
}

.hero-links .hero-tile small {
  font-size: 14px;
}

/* ==============================
   ボタン
============================== */
.btn {
  display: inline-block;
  min-height: 60px;
  margin: 8px 8px 0 0;
  padding: 17px 28px;
  border-radius: 12px;
  background: #b51632;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  text-align: center;
  line-height: 1.4;
}

.btn.dark {
  background: #211216;
  color: #fff;
  border: 1px solid #8b2337;
}

.btn.outline {
  background: transparent;
  color: #fff;
  border: 1px solid #9b3448;
}

.btn:hover,
.sns a:hover {
  filter: brightness(1.2);
}

/* ==============================
   各セクション
============================== */
section.section {
  padding: 80px 0;
}

.pale {
  background: #160d11;
}

.section h2,
.page-title {
  margin: 0 0 16px;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1.3;
}

.section-intro {
  color: #bdaeb2;
  font-size: 18px;
  margin-bottom: 28px;
}

/* ==============================
   在庫・サービスカード
============================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.card {
  min-width: 0;
  overflow: hidden;
  background: #1c1418;
  color: #f4eded;
  border: 1px solid #51212c;
  border-radius: 16px;
}

.card img {
  display: block;
  width: 100%;
  height: 205px;
  object-fit: cover;
  background: #24171c;
}

.card-body {
  padding: 20px;
}

.card h3 {
  margin: 0 0 7px;
  font-size: 23px;
}

.card p {
  color: #bdaeb2;
  font-size: 16px;
}

.service {
  padding: 28px;
}

.service h3 {
  margin: 0 0 12px;
}

/* ==============================
   保証バナー
============================== */
.banner {
  padding: 40px;
  border-radius: 20px;
  background: linear-gradient(125deg, #110c10, #4b0c1b);
  border: 1px solid #80243a;
  color: #fff;
}

.banner p {
  color: #d5bdc2;
}

/* ==============================
   店舗情報
============================== */
.info {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
}

.details {
  width: 100%;
  border-collapse: collapse;
}

.details th,
.details td {
  padding: 13px;
  border-bottom: 1px solid #53232e;
  text-align: left;
  vertical-align: top;
  font-size: 17px;
}

.details th {
  width: 115px;
}

/* ==============================
   SNS
============================== */
.sns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sns a {
  display: inline-block;
  min-height: 60px;
  padding: 17px 28px;
  border-radius: 12px;
  background: #35121d;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.sns a.youtube {
  background: #b71930;
}

/* ==============================
   ブログ
============================== */
.post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  min-width: 0;
  overflow: hidden;
  background: #1c1418;
  color: #f4eded;
  border: 1px solid #51212c;
  border-radius: 16px;
}

.post-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.post-card .inside {
  padding: 20px;
}

.post-card h3 {
  margin: 7px 0;
  font-size: 22px;
}

.post-card time {
  color: #bdaeb2;
  font-size: 14px;
}

/* ==============================
   固定ページ・フッター
============================== */
.content {
  padding: 70px 0;
  max-width: 1200px;
}

.content .entry {
  overflow-wrap: anywhere;
}

.content .entry img {
  height: auto;
}

.pagination {
  margin: 25px 0;
}

.footer {
  padding: 35px 0;
  background: #070708;
  color: #d9c9ce;
  border-top: 1px solid #641a2b;
  font-size: 16px;
}

.mobile-cta {
  display: none;
}

/* ==============================
   中型パソコン
============================== */
@media (max-width: 1350px) {
  .site-head .head-inner {
    grid-template-columns: minmax(290px, 30%) minmax(0, 1fr);
    gap: 22px;
  }

  .site-head .header-company {
    padding-right: 18px;
  }

  .site-head .header-company .brand {
    font-size: clamp(30px, 3vw, 42px);
  }

  .site-head .header-right .menu {
    justify-content: flex-end;
    font-size: 16px;
    gap: 10px 20px;
  }

  .site-head .header-right .header-contact a span {
    font-size: 14px;
  }
}

/* ==============================
   タブレット
============================== */
@media (max-width: 950px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .site-head .head-inner {
    width: calc(100% - 32px);
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px 0;
  }

  .site-head .header-company {
    width: 100%;
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid #71676a;
    gap: 12px;
  }

  .site-head .header-company .brand {
    font-size: clamp(32px, 6vw, 50px);
  }

  .site-head .header-company .brand-sub {
    font-size: clamp(12px, 2vw, 18px);
  }

  .site-head .header-hours span {
    font-size: 21px;
  }

  .site-head .header-hours strong {
    font-size: 20px;
  }

  .site-head .header-hours .reservation-notice {
    font-size: 15px;
  }

  .site-head .header-right {
    gap: 18px;
  }

  .site-head .header-right .menu {
    justify-content: flex-start;
    font-size: 17px;
    gap: 10px 20px;
    padding-bottom: 14px;
  }

  .site-head .header-right .header-contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .site-head .header-right .header-contact a {
    min-height: 65px;
  }

  .site-head .header-right .header-contact a span {
    font-size: 16px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cards,
  .post-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==============================
   スマートフォン
============================== */
@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .wrap,
  .site-head .head-inner {
    width: calc(100% - 24px);
  }

  .site-head .header-company .brand {
    font-size: clamp(27px, 7vw, 38px);
  }

  .site-head .header-company .brand-sub {
    font-size: 11px;
    letter-spacing: .09em;
  }

  .site-head .header-hours span,
  .site-head .header-hours strong {
    font-size: 18px;
  }

  .site-head .header-hours .reservation-notice {
    font-size: 13px;
  }

  .site-head .header-right .menu {
    font-size: 15px;
    gap: 9px 15px;
  }

  .site-head .header-right .header-contact {
    gap: 9px;
  }

  .site-head .header-right .header-contact a {
    min-height: 59px;
    padding: 9px 5px;
  }

  .site-head .header-right .header-contact a span {
    font-size: 13px;
  }

  .hero {
    padding: 50px 0;
  }

  .hero h1 {
    font-size: clamp(36px, 9vw, 48px);
  }

  .hero p {
    font-size: 17px;
  }

  .hero-images {
    grid-template-rows: 120px 120px;
  }

  .cards,
  .post-list,
  .info {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  section.section {
    padding: 55px 0;
  }

  .section h2,
  .page-title {
    font-size: 32px;
  }

  .card h3 {
    font-size: 21px;
  }

  .card p {
    font-size: 15px;
  }

  .banner {
    padding: 24px;
  }

  .btn {
    min-height: 55px;
    padding: 15px 18px;
    font-size: 16px;
  }

  .sns a {
    font-size: 16px;
    padding: 15px 18px;
  }

  .hero-links .hero-tile {
    min-height: 140px;
    padding: 15px 8px;
  }

  .hero-links .hero-tile strong {
    font-size: 17px;
  }

  .hero-links .hero-tile small {
    font-size: 12px;
  }

  .details th,
  .details td {
    font-size: 15px;
  }

  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    gap: 8px;
    padding: 8px;
    background: #100b0e;
    border-top: 1px solid #652034;
    box-shadow: 0 -2px 12px #0004;
  }

  .mobile-cta a {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    background: #b51632;
    color: #fff;
    font-weight: 900;
    text-align: center;
  }

  .mobile-cta a:first-child {
    background: #25141a;
  }

  .footer {
    padding-bottom: 100px;
  }
}