/*
Theme Name: sk-online
Description: sk-online Theme
Author: MonDragon Inc
Template: welcart_basic
Version: 1.0.0
*/


/* ===============================
   共通レイアウトベース
=============================== */
.topbar-inner,
.header-inner,
.brand-nav ul {
  padding-left: 20px;
  padding-right: 0;
}
header {
margin-bottom: 0;
}

/* ===============================
   トップバー（PCのみ表示）
=============================== */
.topbar {
  background: #f5f5f5;
  font-size: 14px;
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

/* ✅ 改修：トップバー左ブロック（ロゴ＋会社HPリンクを1つのaタグでまとめる） */
.topbar-left a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.topbar-left a:hover {
  color: #2c613a;
  text-decoration: underline;
}
.topbar-left img {
  height: 22px;
  width: auto;
  display: block;
}
@media (max-width: 1024px) {
  .topbar-left {
    display: none;
  }
}

/* ------------------------------- */
.topbar-center {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  justify-content: flex-end;
}
.topbar-center a,
.topbar-center span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}
.topbar-center a:hover {
  color: #2c613a;
}
.topbar-center i {
  font-size: 13px;
  color: #333;
}
.phone i {
  transform: scaleX(-1);
  display: inline-block;
}

/* カートボタン（右端固定） */
.cart-btn {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2c613a;
  color: #fff !important;
  padding: 0 20px;
  margin-left: 10px;
  margin-right: 0;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}
.cart-btn i {
  margin-right: 6px;
  color: #fff;
}

/* ===============================
   メインヘッダー（PC）
=============================== */
.brand-header {
  background: #fff;
  padding: 20px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

/* ===============================
   ロゴ：左画像＋右2行テキスト
=============================== */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #2c613a;
}
.brand-logo-left img {
  height: 42px;
  width: auto;
  display: block;
}
.brand-logo-right {
  display: flex;
  flex-direction: column;
  line-height: 1.4;
  text-align: left;
}
.brand-subtitle-line1 {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.brand-subtitle-line2 {
  font-size: 13px;
  color: #777;
  letter-spacing: 0.3px;
}

/* ===============================
   ナビゲーション（PC右寄せ配置）
=============================== */
.brand-nav {
  background: #fff;
  margin-left: auto;
}
.brand-nav ul {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  justify-content: flex-end;
  align-items: center;
}
.brand-nav li {
  position: relative;
}
.brand-nav li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: #ccc;
}
.brand-nav a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  letter-spacing: 0.5px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}
.brand-nav a:hover {
  color: #2c613a;
}
.brand-nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #2c613a;
  transition: width 0.3s ease;
}
.brand-nav a:hover::after {
  width: 100%;
}

/* ===============================
   スマホ表示（1024px以下）
=============================== */
@media (max-width: 1024px) {
  .topbar {
    display: none;
  }
  .brand-header {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
  }
  .header-inner {
    padding: 0 16px;
  }
  .brand-logo {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .brand-logo-left img {
    height: 36px;
  }
  .brand-logo-right {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
  }
  .brand-subtitle-line1 {
    font-size: 13px;
    color: #333;
    font-weight: 600;
  }
  .brand-subtitle-line2 {
    font-size: 12px;
    color: #777;
  }

  .header-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    min-width: 180px;
    flex-shrink: 0;
    position: relative;
    top: 4px;
  }
  .header-icons a,
  .menu-toggle {
    color: #000;
    text-decoration: none;
    font-size: 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
  }
  .header-icons i {
    display: block;
    font-size: 18px;
    margin-bottom: 2px;
  }
  .header-icons .cart-btn {
    background: none;
    color: #000 !important;
    padding: 0;
    margin: 0;
    height: auto;
  }
  .header-icons .cart-btn i {
    color: #000;
    margin-right: 0;
  }
  .menu-toggle {
    cursor: pointer;
    flex-shrink: 0;
  }
  .brand-nav {
    display: none;
  }
}

/* ===============================
     ▼ モバイルメニュー開閉制御
=============================== */
@media (max-width: 1024px) {

  .mobile-menu.open .mobile-header-icons {
    display: none;
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .mobile-menu-header .brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c613a;
  }

  .mobile-menu-header .brand-logo-left img {
    height: 34px;
    width: auto;
  }

  .mobile-menu-header .brand-logo-right {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
  }

  .mobile-menu-header .brand-subtitle-line1 {
    font-size: 13px;
    color: #333;
    font-weight: 600;
  }

  .mobile-menu-header .brand-subtitle-line2 {
    font-size: 12px;
    color: #777;
  }

  .mobile-menu-header .menu-close {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    font-size: 12px;
    gap: 2px;
    padding: 0;
    width: 44px;
    height: 44px;
    position: absolute;
    top: 4px;
    right: 10px;
    line-height: 1.2;
  }

  .mobile-menu-header .menu-close i {
    font-size: 18px;
    display: block;
    margin-bottom: 2px;
  }

  .mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
  }

  .mobile-menu.open {
    display: flex;
  }

  .mobile-menu-inner {
    margin-top: 10px;
    padding: 20px;
    text-align: center;
  }

  .mobile-login a {
    display: inline-block;
    margin: 10px;
    color: #000;
    text-decoration: none;
    font-size: 15px;
  }

  .mobile-login i {
    margin-right: 6px;
  }

  .mobile-banner img {
    width: 100%;
    margin: 20px 0;
    border-radius: 4px;
  }

  .mobile-menu-links {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
  }

  .mobile-menu-links li {
    border-bottom: 1px solid #eee;
  }

  .mobile-menu-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    color: #000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
  }

  .mobile-menu-links a i {
    font-size: 14px;
    color: #2c613a;
  }

  .mobile-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 30px;
    font-size: 14px;
    margin: 30px 0;
  }

  .mobile-footer-links a {
    color: #000;
    text-decoration: none;
  }

  .mobile-contact {
    text-align: center;
    margin-top: 20px;
  }

  .mobile-contact .phone-label {
    font-size: 13px;
    color: #555;
  }

  .mobile-contact .phone-number {
    font-size: 22px;
    font-weight: bold;
    margin: 6px 0 14px;
  }

  .mail-btn {
    background: #000;
    color: #fff;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
  }

  .mail-btn i {
    margin-left: 6px;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===============================
   PCではSP用アイコン非表示
=============================== */
@media (min-width: 1025px) {
  .header-icons,
  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }
}

/* ===============================
   Welcart Basic の #main 幅制限解除
=============================== */
#main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
}
/* ===============================
   汎用コンテナ（max幅1000px＋左右16px余白）
=============================== */
.container {
  width: 100%;
  max-width: 1032px;      /* ✅ 1000px + 16px × 2 */
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* ===============================
   Heroセクション（全幅背景＋残り高さ100%）
=============================== */
.hero {
  width: 100%;
  height: calc(100vh - 120px); /* ✅ topbar40px + header80px を差し引き */
  background-image: url('https://images.unsplash.com/photo-1501004318641-b39e6451bec6?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* オーバーレイ */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* コンテンツ中央 */
.hero .container {
  position: relative;
  z-index: 2;
}

/* テキスト */
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin: 0;
}

/* ===============================
   SP調整
=============================== */
@media (max-width: 768px) {
  .hero {
    height: calc(100vh - 100px); /* ✅ SPではheader等が小さいので微調整 */
    padding: 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}
