/*
Theme Name: 東宝堂コーポレートサイト
Theme URI: https://touhoudou.jp/
Author: 株式会社HINATA
Author URI: https://touhoudou.jp/
Description: 沖縄国際通りの老舗お土産屋「東宝堂」公式コーポレートサイト用WordPressテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: touhoudou
*/

:root {
  --primary: #E8421E;
  --primary-dark: #C4361A;
  --yellow: #FFE500;
  --yellow-light: #FFFEC6;
  --orange: #F5911E;
  --cream: #FFF9F0;
  --white: #FFFFFF;
  --text: #2D2017;
  --text-light: #6B5B4E;
  --border: #E8DDD3;
  --shadow: rgba(45, 32, 23, 0.08);
  --radius: 14px;
  --max-w: 1080px;
  --font: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.8; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px var(--shadow);
}
.hd-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.hd-logo img { height: 40px; }
.hd-nav { display: flex; gap: 24px; }
.hd-nav a { font-size: 13px; font-weight: 500; transition: color 0.2s; }
.hd-nav a:hover { color: var(--primary); }
.hd-ham {
  display: none; background: none; border: none; cursor: pointer;
  width: 28px; height: 28px; position: relative;
}
.hd-ham span {
  display: block; width: 22px; height: 2px; background: var(--text);
  position: absolute; left: 3px; transition: all 0.3s;
}
.hd-ham span:nth-child(1) { top: 6px; }
.hd-ham span:nth-child(2) { top: 13px; }
.hd-ham span:nth-child(3) { top: 20px; }
.hd-ham.on span:nth-child(1) { top: 13px; transform: rotate(45deg); }
.hd-ham.on span:nth-child(2) { opacity: 0; }
.hd-ham.on span:nth-child(3) { top: 13px; transform: rotate(-45deg); }
.mob-nav {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
.mob-nav.on { display: flex; }
.mob-nav a { font-size: 18px; font-weight: 500; }

/* ===== HERO ===== */
.hero {
  margin-top: 64px; position: relative; overflow: hidden;
  height: 540px; display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-ov {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,50,20,0.92), rgba(220,110,15,0.90));
}
.hero-c {
  position: relative; z-index: 2; text-align: center; color: var(--white); padding: 0 24px;
}
.hero-c h1 { font-size: 40px; font-weight: 700; line-height: 1.4; text-shadow: 0 2px 16px rgba(0,0,0,0.4); margin-bottom: 12px; }
.hero-c p { font-size: 17px; opacity: 0.95; margin-bottom: 24px; }
.hero-c .sub { font-size: 14px; opacity: 0.8; margin-bottom: 32px; }

/* ===== FUNNEL HUB ===== */
.hub { padding: 72px 24px; background: var(--cream); }
.hub-inner { max-width: var(--max-w); margin: 0 auto; }
.sec-title { text-align: center; margin-bottom: 48px; }
.sec-title h2 {
  font-size: 26px; font-weight: 700; display: inline-block;
  position: relative; padding-bottom: 12px;
}
.sec-title h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 48px; height: 3px; background: var(--primary); border-radius: 2px;
}
.sec-title p { color: var(--text-light); margin-top: 10px; font-size: 15px; }

.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.hub-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow); transition: all 0.3s;
  display: flex; flex-direction: column; border: 2px solid transparent;
}
.hub-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(45,32,23,0.12); border-color: var(--primary); }
.hub-card .card-img { height: 180px; overflow: hidden; }
.hub-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.hub-card:hover .card-img img { transform: scale(1.06); }
.hub-card .card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.hub-card .card-label {
  display: inline-block; background: var(--primary); color: var(--white);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
  margin-bottom: 10px; align-self: flex-start;
}
.hub-card h3 { font-size: 18px; margin-bottom: 8px; }
.hub-card p { font-size: 13px; color: var(--text-light); line-height: 1.8; flex: 1; }
.hub-card .card-toggle {
  font-size: 12px; color: var(--primary); margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 4px; font-weight: 500;
}
.hub-card .card-toggle i { transition: transform 0.3s; }
.hub-card.active .card-toggle i { transform: rotate(180deg); }
.hub-card.active { border-color: var(--primary); }

.hub-detail {
  display: none; grid-column: 1 / -1;
  background: var(--white); border-radius: var(--radius);
  padding: 28px 32px; border-left: 4px solid var(--primary);
  box-shadow: 0 4px 20px var(--shadow);
  animation: hubFade 0.3s ease;
}
.hub-detail.show { display: block; }
.hub-detail h4 { font-size: 17px; color: var(--primary); margin-bottom: 10px; }
.hub-detail h4 i { margin-right: 6px; }
.hub-detail p { font-size: 14px; line-height: 2; margin-bottom: 16px; }
.hub-detail-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--white); padding: 10px 24px;
  border-radius: 50px; font-size: 14px; font-weight: 700;
  transition: all 0.3s;
}
.hub-detail-link:hover { background: var(--primary-dark); transform: translateY(-2px); }
@keyframes hubFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== ABOUT ===== */
.about { padding: 72px 24px; }
.about-inner { max-width: var(--max-w); margin: 0 auto; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 32px var(--shadow); }
.about-img img { width: 100%; height: 320px; object-fit: cover; }
.about-text h3 { font-size: 22px; color: var(--primary); margin-bottom: 14px; }
.about-text p { font-size: 15px; margin-bottom: 14px; line-height: 2; }
.about-nums {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.about-num { text-align: center; }
.about-num .val { font-size: 28px; font-weight: 700; color: var(--primary); }
.about-num .label { font-size: 12px; color: var(--text-light); }

/* ===== FEATURES BAR ===== */
.feat-bar {
  background: linear-gradient(135deg, var(--primary), var(--orange));
  padding: 40px 24px;
}
.feat-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.feat-item {
  text-align: center; color: var(--white); padding: 20px 12px;
  background: rgba(255,255,255,0.1); border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
}
.feat-item i { font-size: 28px; margin-bottom: 8px; color: var(--yellow); }
.feat-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.feat-item p { font-size: 12px; opacity: 0.85; }

/* ===== STORE ===== */
.store { padding: 72px 24px; background: var(--cream); }
.store-inner { max-width: var(--max-w); margin: 0 auto; }
.store-flex {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px;
}
.store-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 4px 20px var(--shadow);
}
.store-card h3 { font-size: 18px; color: var(--primary); margin-bottom: 16px; border-bottom: 2px solid var(--primary); padding-bottom: 8px; }
.store-info { font-size: 14px; }
.store-info .row { display: flex; gap: 10px; margin-bottom: 10px; }
.store-info .row i { color: var(--primary); width: 18px; margin-top: 3px; }
.store-map {
  border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px var(--shadow);
}
.store-map iframe { width: 100%; height: 300px; border: none; }
.store-access {
  margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.acc-item {
  background: var(--white); border-radius: 10px; padding: 20px; text-align: center;
  box-shadow: 0 2px 12px var(--shadow);
}
.acc-item i { font-size: 24px; color: var(--orange); margin-bottom: 8px; }
.acc-item h4 { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.acc-item p { font-size: 12px; color: var(--text-light); }

/* ===== FAQ ===== */
.faq { padding: 72px 24px; }
.faq-inner { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white); border-radius: var(--radius); margin-bottom: 10px;
  box-shadow: 0 2px 12px var(--shadow); overflow: hidden;
}
.faq-q {
  padding: 18px 20px; cursor: pointer; display: flex; align-items: center; gap: 14px;
  font-weight: 700; font-size: 14px; transition: background 0.2s;
}
.faq-q:hover { background: var(--yellow-light); }
.faq-q .qi {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.faq-q .arr { margin-left: auto; color: var(--primary); transition: transform 0.3s; font-size: 12px; }
.faq-item.open .faq-q .arr { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-a-in { padding: 0 20px 18px 62px; font-size: 14px; line-height: 1.9; color: var(--text-light); }
.faq-bot-cta {
  text-align: center; margin-top: 32px; padding: 24px;
  background: var(--cream); border-radius: var(--radius); border: 2px dashed var(--primary);
}
.faq-bot-cta i { font-size: 28px; color: var(--primary); }
.faq-bot-cta p { font-size: 14px; margin-top: 8px; }

/* ===== SNS ===== */
.sns { padding: 48px 24px; background: var(--cream); text-align: center; }
.sns-row { display: flex; justify-content: center; gap: 20px; margin-top: 24px; }
.sns-ic {
  width: 56px; height: 56px; border-radius: 50%; color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  transition: all 0.3s;
}
.sns-ic:hover { transform: translateY(-4px) scale(1.1); }
.sns-ic.fb { background: #1877F2; }
.sns-ic.tw { background: #000; }
.sns-ic.yt { background: #FF0000; }
.sns-ic.ln { background: #06C755; }
.sns-ic.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* ===== CONTACT ===== */
.contact { padding: 72px 24px; background: var(--cream); }
.contact-inner { max-width: var(--max-w); margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact-card {
  background: var(--white); border-radius: var(--radius); padding: 36px 28px;
  text-align: center; box-shadow: 0 4px 20px var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}
.contact-card .btn-p,
.contact-card .phone { margin-top: auto; }
.contact-card > i { font-size: 36px; color: var(--primary); margin-bottom: 12px; }
.btn-p i { color: var(--white); }
.contact-card h3 { font-size: 17px; margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: var(--text-light); margin-bottom: 16px; }
.contact-card .phone { font-size: 26px; font-weight: 700; color: var(--primary); }
.btn-p {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: var(--white); padding: 12px 28px;
  border-radius: 50px; font-size: 14px; font-weight: 700; border: none;
  cursor: pointer; transition: all 0.3s;
}
.btn-p:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== RECRUIT ===== */
.recruit {
  padding: 60px 24px; background: linear-gradient(135deg, var(--orange), var(--primary));
}
.recruit-inner {
  max-width: 760px; margin: 0 auto;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(4px);
  border-radius: var(--radius); padding: 36px; color: var(--white);
  border: 1px solid rgba(255,255,255,0.2); text-align: center;
}
.recruit-inner h2 { font-size: 22px; margin-bottom: 12px; }
.recruit-inner p { font-size: 14px; opacity: 0.9; margin-bottom: 20px; }
.recruit-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.recruit-tags span {
  background: rgba(255,255,255,0.15); padding: 6px 14px; border-radius: 20px;
  font-size: 12px; border: 1px solid rgba(255,255,255,0.2);
}
.btn-w {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--primary); padding: 12px 28px;
  border-radius: 50px; font-size: 14px; font-weight: 700; transition: all 0.3s;
}
.btn-w:hover { background: var(--yellow-light); transform: translateY(-2px); }

/* ===== FOOTER ===== */
.ft { background: var(--text); color: rgba(255,255,255,0.75); padding: 40px 24px 20px; }
.ft-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px;
}
.ft-col h4 { color: var(--white); font-size: 14px; margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.ft-col p, .ft-col a { font-size: 12px; line-height: 2; }
.ft-col a:hover { color: var(--yellow); }
.ft-links { display: flex; flex-direction: column; gap: 2px; }
.ft-sns { display: flex; gap: 14px; margin-top: 10px; }
.ft-sns a { font-size: 18px; }
.ft-bottom {
  max-width: var(--max-w); margin: 24px auto 0; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08); text-align: center;
  font-size: 11px; color: rgba(255,255,255,0.4);
}

/* ===== BOT ===== */
.bot-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--primary); color: var(--white); border: none;
  cursor: pointer; font-size: 26px;
  box-shadow: 0 4px 20px rgba(232,66,30,0.4);
  transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.bot-btn:hover { transform: scale(1.1); }
.bot-btn .bdg {
  position: absolute; top: -2px; right: -2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow); color: var(--text);
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.bot-win {
  position: fixed; bottom: 96px; right: 24px; z-index: 9998;
  width: 370px; height: 500px;
  background: var(--white); border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
  display: none; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border);
}
.bot-win.on { display: flex; }
.bot-hd {
  background: var(--primary); color: var(--white); padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
}
.bot-hd .av {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.bot-hd .info h4 { font-size: 13px; }
.bot-hd .info p { font-size: 10px; opacity: 0.8; }
.bot-hd .cls { margin-left: auto; background: none; border: none; color: var(--white); font-size: 18px; cursor: pointer; }
.bot-bd { flex: 1; padding: 16px; overflow-y: auto; background: #F8F5F1; }
.bot-msg {
  background: var(--white); border-radius: 12px 12px 12px 4px;
  padding: 12px 16px; font-size: 13px; line-height: 1.7;
  box-shadow: 0 2px 8px var(--shadow); margin-bottom: 10px; max-width: 88%;
}
.bot-msg strong { color: var(--primary); }
.bot-qb { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.bot-qb button {
  background: var(--white); border: 1px solid var(--primary); color: var(--primary);
  border-radius: 18px; padding: 7px 14px; font-size: 12px; cursor: pointer;
  text-align: left; transition: all 0.2s; font-family: var(--font);
}
.bot-qb button:hover { background: var(--primary); color: var(--white); }
.bot-inp {
  display: flex; gap: 6px; padding: 10px 14px;
  border-top: 1px solid var(--border); background: var(--white);
}
.bot-inp input {
  flex: 1; border: 1px solid var(--border); border-radius: 18px;
  padding: 8px 14px; font-size: 13px; font-family: var(--font); outline: none;
}
.bot-inp input:focus { border-color: var(--primary); }
.bot-inp button {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--white); border: none;
  cursor: pointer; font-size: 14px;
}

/* ===== REVEAL ===== */
.rv { opacity: 0; transform: translateY(20px); transition: all 0.5s; }
.rv.vis { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hd-nav { display: none; }
  .hd-ham { display: block; }
  .hero { height: 420px; }
  .hero-c h1 { font-size: 26px; }
  .hub-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-nums { grid-template-columns: repeat(3, 1fr); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .store-flex { grid-template-columns: 1fr; }
  .store-access { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ft-inner { grid-template-columns: 1fr; gap: 20px; }
  .bot-win { width: calc(100vw - 32px); right: 16px; bottom: 92px; height: 420px; }
}
