/*
Theme Name: ワークマンおかだ
Theme URI: https://www.workmanokada.net
Author: ワークマンおかだ
Description: ワークマンおかだ 公式サイトテーマ
Version: 1.0
*/

/* ===== リセット & ベース ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== CSS変数 ===== */
:root {
  --color-primary: #1a1a1a;
  --color-accent: #e63c00;
  --color-bg-light: #f7f5f2;
  --color-border: #e0dcd8;
  --max-width: 1100px;
  --sp: clamp(1rem, 5vw, 2rem);
}

/* ===== ユーティリティ ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp);
}
.section { padding: 60px 0; }
.section-title {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-accent);
  display: inline-block;
}

/* ===== ボタン ===== */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid currentColor;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  text-align: center;
}
.btn-outline-white { color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--color-primary); }
.btn-accent { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.btn-accent:hover { background: #c43400; border-color: #c43400; }
.btn-dark { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-group { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ===== 上部バー ===== */
.top-bar {
  background: var(--color-primary);
  color: #fff;
  padding: 8px var(--sp);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  font-size: 13px;
}
.top-bar .tel { font-size: 16px; font-weight: 700; letter-spacing: 0.05em; color: #fff; }
.top-bar .hours { opacity: 0.75; color: #fff; }

/* ===== ヘッダー ===== */
header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}
.logo img { height: 42px; width: auto; }
nav ul { display: flex; gap: 4px; align-items: center; }
nav ul li a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  border-radius: 4px;
  transition: background 0.15s;
}
nav ul li a:hover { background: var(--color-bg-light); }
nav ul li.btn-item a {
  background: var(--color-accent);
  color: #fff;
  padding: 8px 14px;
}
nav ul li.btn-item a:hover { background: #c43400; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
}

/* ===== ヒーロー（背景画像＋テキスト） ===== */
.hero-wrap {
  position: relative;
  width: 100%;
  line-height: 0;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
}
/* 左側を白、右側を透明にして画像を見せる（境界線シャープ） */
.hero-overlay {
  display: none;
}
.hero-wrap { position: relative; }
.hero-content {
  position: relative;
  bottom: 200px;
  left: 0;
  z-index: 1;
  width: 50%;
  padding: 0 40px 0 clamp(1rem, 5vw, 80px);
  color: var(--color-primary);
}
.hero-info {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.hero-shop {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: -30px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  color: var(--color-primary);
  text-shadow: none;
}
.hero-sub {
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.9;
  color: #444;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-info {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
  font-size: 13px;
  color: #555;
}
.hero-shop { font-weight: 700; color: var(--color-primary); }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
/* ヒーロー内ボタンは黒ベース */
.hero-btns .btn-outline-white {
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.hero-btns .btn-outline-white:hover {
  background: var(--color-primary);
  color: #fff;
}

/* ===== カラーバナー画像 ===== */
.banner-img { width: 100%; overflow: hidden; }
.banner-img img { width: 100%; display: block; }

/* ===== Instagram バナー ===== */
.instagram-bar {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fff;
  text-align: center;
  padding: 14px;
}
.instagram-bar a { color: #fff; font-weight: 700; font-size: 14px; letter-spacing: 0.05em; }

/* ===== お客様への想い ===== */
.message { background: #fff; margin-top:-150px;}
.message-inner { max-width: 720px;}
.message p { font-size: 15px; line-height: 2; color: #444;}

/* ===== FEATURE ===== */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
}
.feature-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--color-border);
}
.feature-item:last-child { border-bottom: none; }
.feature-item.reverse .feature-text { order: 2; }
.feature-item.reverse .feature-img  { order: 1; }
.feature-text {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-img img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.feature-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.feature-title { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 700; margin-bottom: 16px; line-height: 1.5; }
.feature-text p { color: #555; font-size: 14px; line-height: 1.9; }

/* ===== 業務内容 ===== */
.business { background: var(--color-bg-light); }
.business-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.business-images { display: flex; flex-direction: column; gap: 8px; }
.business-images img { width: 100%; border-radius: 4px; }
.business-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 16px; }
.business-list li {
  padding: 6px 0 6px 14px;
  font-size: 14px;
  border-left: 3px solid var(--color-accent);
  color: #444;
}
.business-desc { color: #555; margin-bottom: 20px; }

/* ===== 取り扱いメーカー ===== */
.makers { background: #fff; }
.makers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  margin-top: 8px;
}
.maker-item {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  transition: background 0.15s;
}
.maker-item:hover { background: var(--color-bg-light); }
.maker-item img { height: 55px; width: auto; object-fit: contain; }
.maker-item span { margin-top: 8px; font-size: 12px; color: #666; text-align: center; }

/* ===== 新着情報・お問い合わせ ===== */
.contact-row { background: var(--color-primary); color: #fff; }
.contact-row-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.contact-col { padding: 48px 40px; border-right: 1px solid rgba(255,255,255,0.1); }
.contact-col:last-child { border-right: none; }
.contact-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.news-item { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.news-item time { font-size: 12px; color: rgba(255,255,255,0.5); display: block; margin-bottom: 4px; }
.news-item a { color: #fff; font-size: 14px; }
.news-item a:hover { text-decoration: underline; }
.tel-big { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: 0.05em; margin: 12px 0 6px; }
.tel-icon { vertical-align: middle; margin-right: 4px; color: #fff; }
.contact-desc { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 20px; line-height: 1.8; }

/* ===== アクセスページ ===== */
.page-title-bar {
  background: var(--color-primary);
  color: #fff;
  padding: 32px 0;
}
.page-title-bar h1 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
.access-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.access-images { display: flex; flex-direction: column; gap: 8px; }
.access-images img { width: 100%; border-radius: 4px; }
.info-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.info-table th, .info-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  vertical-align: top;
}
.info-table th {
  background: var(--color-bg-light);
  font-weight: 700;
  width: 35%;
  color: var(--color-primary);
}
.info-table td { color: #444; }
.map-wrap { margin-top: 32px; }
.map-wrap iframe { width: 100%; height: 380px; border: none; display: block; }

/* ===== お問い合わせページ ===== */
.contact-intro { font-size: 14px; line-height: 2; color: #555; margin-bottom: 32px; }
.contact-form-table { width: 100%; border-collapse: collapse; }
.contact-form-table th, .contact-form-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  font-size: 14px;
}
.contact-form-table th {
  background: var(--color-bg-light);
  font-weight: 700;
  width: 30%;
  color: var(--color-primary);
}
.contact-form-table th span { color: var(--color-accent); font-size: 12px; margin-left: 6px; }
.contact-form-table input[type="text"],
.contact-form-table input[type="email"],
.contact-form-table input[type="tel"],
.contact-form-table textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-family: inherit;
  border-radius: 3px;
  transition: border-color 0.15s;
}
.contact-form-table input:focus,
.contact-form-table textarea:focus { outline: none; border-color: var(--color-accent); }
.contact-form-table textarea { min-height: 140px; resize: vertical; }
.contact-form-table select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-family: inherit;
  border-radius: 3px;
}
.privacy-policy {
  background: var(--color-bg-light);
  padding: 20px;
  font-size: 13px;
  color: #555;
  line-height: 1.9;
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  max-height: 160px;
  overflow-y: auto;
}
.submit-wrap { text-align: center; margin-top: 32px; }
.submit-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 14px 60px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.1em;
  border-radius: 3px;
  transition: background 0.2s;
}
.submit-btn:hover { background: #c43400; }

/* ===== 新着情報アーカイブ ===== */
.news-list-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 24px;
  align-items: baseline;
}
.news-list-item time { font-size: 13px; color: #999; flex-shrink: 0; }
.news-list-item .cat { font-size: 11px; background: var(--color-accent); color: #fff; padding: 2px 8px; border-radius: 2px; flex-shrink: 0; }
.news-list-item a { font-size: 15px; color: var(--color-primary); }
.news-list-item a:hover { color: var(--color-accent); }

/* 記事本文 */
.post-content { max-width: 800px; }
.post-content p { margin-bottom: 1.5em; line-height: 1.9; }
.post-content h2 { font-size: 1.4rem; margin: 2em 0 1em; padding-bottom: 8px; border-bottom: 2px solid var(--color-border); }
.post-content h3 { font-size: 1.2rem; margin: 1.8em 0 0.8em; }
.post-meta { font-size: 13px; color: #999; margin-bottom: 24px; }
.back-btn { margin-top: 40px; }

/* ===== フッター ===== */
footer {
  background: #111;
  color: rgba(255,255,255,0.9);
  padding: 48px 0 0;
}
.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp) 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: start;
}
.footer-logo img { height: 42px; width: auto; opacity: 0.9; }
.footer-info { font-size: 13px; line-height: 2; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-nav ul li a { font-size: 13px; color: rgba(255,255,255,0.9); }
.footer-nav ul li a:hover { color: #000; }
.footer-products {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px var(--sp);
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-products-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}
.footer-products p { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 2; }
.copyright-bar {
  background: #000;
  padding: 14px var(--sp);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  margin-top: 24px;
}

/* ===== SP固定フッター ===== */
.sp-footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  z-index: 200;
}
.sp-footer-inner { display: flex; }
.sp-footer-inner a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  gap: 4px;
}
.sp-footer-inner a .icon { font-size: 18px; color: #fff !important; }
.sp-footer-inner a:nth-child(2) { background: var(--color-accent); }

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .feature-item { grid-template-columns: 1fr; }
  .feature-item.reverse .feature-text { order: 1; }
  .feature-item.reverse .feature-img  { order: 2; }
  .feature-text { padding: 32px 24px; }
  .business-inner { grid-template-columns: 1fr; }
  .business-images { flex-direction: row; }
  .makers-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-row-inner { grid-template-columns: 1fr; }
  .contact-col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-main { grid-template-columns: 1fr; gap: 24px; }
  .access-inner { grid-template-columns: 1fr; }
  .contact-form-table th { width: 100%; display: block; }
  .contact-form-table td { display: block; }
  .contact-form-table tr { display: block; margin-bottom: 8px; }
}
@media (max-width: 640px) {
	.message { background: #fff; margin-top:-15px;}
  nav { display: none; }
  nav.open {
    display: block;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: auto;
    background: #fff;
    z-index: 99;
    padding: 8px 16px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  nav.open ul { flex-direction: column; align-items: center; }
  nav.open ul li { width: 100%; text-align: center; }
  nav.open ul li a { padding: 14px 16px; border-bottom: 1px solid var(--color-border); font-size: 15px; border-radius: 0; }
  .menu-toggle { display: flex; }
  .top-bar { display: none; }
  .makers-grid { grid-template-columns: repeat(2, 1fr); }
  .business-images { flex-direction: column; }
  .business-list { grid-template-columns: 1fr; }
  .hero-wrap {
    min-height: 280px;
    align-items: flex-end;
    background-position: center top;
  }
  .hero-overlay { display: none; }
  /* 情報ブロックを画像の外・下に切り出す */
  .hero-content {
    position: static;
    width: 100%;
    background: #fff;
    padding: 24px 20px 20px;
    color: var(--color-primary);
  }
  .hero-title { font-size: 1.6rem; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { text-align: center; }
  .sp-footer { display: block; }
  body { padding-bottom: 60px; }
  .news-list-item { flex-wrap: wrap; gap: 8px; }
}
