@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@500;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');
@import url('header.css');
@import url('footer.css');

/* ローディング画面 =============*/
.splash {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--yellow);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}
.splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.splash-img {
  width: 120px;
  height: auto;
  animation: splashSpin 2s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}
@keyframes splashSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.splash-bar-wrap {
  width: 180px;
  height: 6px;
  background: rgba(121, 18, 24, 0.15);
  border-radius: 3px;
  overflow: hidden;
}
.splash-bar {
  width: 0%;
  height: 100%;
  background: var(--base);
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.splash-text {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--base);
  letter-spacing: 2px;
  margin: 0;
}

/* スクロールプログレスバー =============*/
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #F0963C;
  width: 0%;
  z-index: 9999;
  transition: none;
}

/* カラーパレット（共通変数） =============*/
:root {
    --base: #791218;
    --yellow: #ffd600;
    --light-yellow: #fff9e6;
    --beige: #fbf5e3;
    --light-beige: #faebc0;
    --deep-red: #7a0000;
    
    /* レスポンシブブレークポイント（統一） */
    /* スマホ: ～767px */
    /* タブレット: 768px～1023px */
    /* PC: 1024px～ */
}

/* ベース設定 =============*/
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Sans CJK JP', 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif; color: var(--base); background: #fff; line-height: 1.7; font-size: 16px; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ライトボックス（共通） =============*/
.lightbox-modal{display:none;position:fixed;top:0;left:0;width:100%;height:100%;z-index:9999;}
.lightbox-modal.active{display:flex;align-items:center;justify-content:center;}
.lightbox-overlay{position:absolute;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.85);cursor:pointer;}
.lightbox-content{position:relative;max-width:90%;max-height:90%;z-index:1;}
.lightbox-image{max-width:100%;max-height:85vh;display:block;border-radius:8px;box-shadow:0 4px 20px rgba(0,0,0,.3);}
.lightbox-close{position:absolute;top:-40px;right:0;width:36px;height:36px;background:#fff;border:none;border-radius:50%;font-size:24px;line-height:1;color:#791218;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:transform .2s ease;}
.lightbox-close:hover{transform:scale(1.1);}

/* 右サイドの縦タブ（全ページ共通） =============*/
.side-tabs { position: fixed; top: 40%; right: 0; z-index: 999; display: flex; flex-direction: column; gap: 12px; }
.side-tab { writing-mode: vertical-rl; background: #d46a00; color: #fff; padding: 16px 12px; font-size: 14px; font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; letter-spacing: 1px; border-radius: 8px 0 0 8px; }

/* レスポンシブ：スマホ =============*/
@media (max-width: 600px) {
    .side-tabs { top: auto; bottom: 0; left: 0; right: 0; flex-direction: row; gap: 0; justify-content: center; }
    .side-tab { writing-mode: horizontal-tb; flex: 1; text-align: center; border-radius: 0; padding: 14px 8px; font-size: 13px; }
    .side-tab:first-child { border-right: 1px solid #fff; }
}

/* FV（背景画像＋波形） =============*/
.hero {
  margin-top: 0;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}
.hero-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(121, 18, 24, 0.15);
  z-index: 1;
}
.hero-bg-layer {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center 75%;
  background-repeat: no-repeat;
  opacity: 0;
  animation: heroFade 20s infinite, heroZoom 20s infinite;
}
.hero-bg-1 {
  background-image: url('../img/fv.jpg');
  background-position: center 75%;
  animation-delay: 0s;
}
.hero-bg-2 {
  background-image: url('../img/koro.jpg');
  background-position: center bottom;
  animation-delay: 5s;
}
.hero-bg-3 {
  background-image: url('../img/1760936573133.jpg');
  background-position: center center;
  animation-delay: 10s;
}
.hero-bg-4 {
  background-image: url('../img/fv04.jpg');
  background-position: center center;
  animation-delay: 15s;
}
@keyframes heroFade {
  0%      { opacity: 0; }
  3%      { opacity: 1; }
  25%     { opacity: 1; }
  28%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes heroZoom {
  0%      { transform: scale(1); }
  25%     { transform: scale(1.08); }
  28%     { transform: scale(1.08); }
  100%    { transform: scale(1); }
}
.hero-wave {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 180px;
  z-index: 2;
  pointer-events: none;
}
.hero-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-wave-path {
  fill: var(--yellow);
}
.hero-inner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 15%; }
/* ヒーロー キャッチコピー */
.hero-catch {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-size: 50px;
  font-weight: 400;
  color: #fff;
  text-align: center;
  letter-spacing: 0.03em;
  line-height: 1.8;
  text-shadow: 0 2px 20px rgba(40,10,5,0.15), 0 1px 6px rgba(40,10,5,0.1);
  margin: 0;
  padding-bottom: 0;
}
.hero-sub {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Meiryo', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.12em;
  margin: 0 0 14px;
  text-shadow: 0 1px 8px rgba(40,10,5,0.12);
  opacity: 0;
  animation: heroSubIn 0.8s ease 5.5s forwards;
}
@keyframes heroSubIn {
  to { opacity: 1; }
}
.hero-catch-line { display: block; }
.sp-break { display: none; }
.pc-break { display: block; }
.hero-char {
  display: inline-block;
  opacity: 0;
  filter: blur(6px);
  animation: heroCharIn 0.5s ease forwards;
}
.hero-char:nth-child(1)  { animation-delay: 2.5s; }
.hero-char:nth-child(2)  { animation-delay: 2.6s; }
.hero-char:nth-child(3)  { animation-delay: 2.7s; }
.hero-char:nth-child(4)  { animation-delay: 2.8s; }
.hero-char:nth-child(5)  { animation-delay: 2.9s; }
.hero-char:nth-child(6)  { animation-delay: 3.0s; }
.hero-char:nth-child(8)  { animation-delay: 3.7s; }
.hero-char:nth-child(9)  { animation-delay: 3.8s; }
.hero-char:nth-child(10) { animation-delay: 3.9s; }
.hero-char:nth-child(11) { animation-delay: 4.0s; }
.hero-char:nth-child(12) { animation-delay: 4.1s; }
.hero-char:nth-child(13) { animation-delay: 4.2s; }
.hero-char:nth-child(14) { animation-delay: 4.3s; }
@keyframes heroCharIn {
  0%  { opacity: 0; filter: blur(6px); }
  100% { opacity: 1; filter: blur(0); }
}
.hero-croquette { position: absolute; left: 100px; bottom: 20px; width: 170px; z-index: 3; cursor: pointer; }
.hero-croquette-circle {
  position: absolute;
  top: 50%; left: 50%;
  width: 230px; height: 230px;
  transform: translate(-50%, -50%);
  animation: circleRotate 12s linear infinite;
  pointer-events: none;
}
.hero-croquette-circle text {
  font-family: 'Noto Sans JP', 'Hiragino Sans', sans-serif;
  font-size: 12px;
  font-weight: 300;
  fill: #fff;
  letter-spacing: 2px;
}
@keyframes circleRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.hero-croquette img:first-of-type { display: block; transition: transform 0.3s ease; position: relative; z-index: 1; }
.hero-croquette:hover img:first-of-type { animation: heroCroquetteBounce 0.3s ease 2; }
.hero-croquette-top { position: fixed; top: 24px; left: 24px; width: 80px; height: auto; opacity: 0; pointer-events: none; z-index: 901; transition: opacity 0.2s ease; }
.hero-croquette:hover .hero-croquette-top { opacity: 1; }
@keyframes heroCroquetteBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (min-width: 1000px) {
    .hero-croquette { left: 100px; }
}

/* 導入の黄色セクション =============*/
.lead { background: var(--yellow); position: relative; z-index: 1; padding: 0 20px 0; text-align: center; }
.lead-inner { max-width: 1000px; margin: 0 auto; }
.lead-copy { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 30px; font-weight: 700; line-height: 1.8; margin-bottom: 10px; }
.lead-line { display: inline-block; opacity: 0; transform: translateY(20px); animation: fadeInUp 1s ease-out forwards; }
.lead-line:nth-child(1) { animation-delay: 0.3s; }
.lead-line:nth-child(3) { animation-delay: 0.6s; }
@keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
.lead-sub-wrapper { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 0; width: 100%; }
.lead-sub { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 15px; line-height: 2.3; font-weight: normal; flex: 1; margin: 0; text-align: center; order: 2; }
.lead-mascot { width: 120px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.lead-mascot.jump { animation: mascotJump 0.6s ease; }
@keyframes mascotJump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.lead-mascot img { display: block; width: 100%; height: auto; transition: transform 0.3s ease; }
.mascot-name { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; color: #fff; font-size: 14px; font-weight: 500; margin-top: 8px; text-align: center; }
.lead-mascot-left { order: 1; }
.lead-mascot-left .mascot-name { transform: translateX(-10px); }
.lead-mascot-right .mascot-name { transform: translateX(5px); }
.lead-mascot-right { order: 3; }

/* セクション共通見出し =============*/
.section-head { text-align: center; padding: 50px 20px; position: relative; }
.head-icon { position: absolute; width: 60px; top: 40%; left: calc(50% + 80px); transform: translateY(-50%); transition: transform 0.6s ease; transform-style: preserve-3d; cursor: pointer; }
.head-icon:hover { animation: headIconBounce 0.3s ease 2; }
.head-icon.rotate { animation: paperMarioRotate 0.6s ease; }
@keyframes headIconBounce { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 10px)); } }
@keyframes paperMarioRotate { 0% { transform: translateY(-50%) rotateY(0deg); } 50% { transform: translateY(-50%) rotateY(90deg); } 100% { transform: translateY(-50%) rotateY(0deg); } }
.en-label { display: inline-block; font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 16px; color: var(--base); margin-bottom: 2px; letter-spacing: 1px; }
.section-head:has([class*="products"]) .en-label,
#products .en-label,
#news .en-label,
#company .en-label { color: var(--yellow); }
.section-head h2 { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 30px; margin-bottom: 12px; letter-spacing: 1px; color: var(--base); }
.section-head p { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 15px; color: var(--base); font-weight: normal; }

/* 商品情報リスト =============*/
.products { background: var(--beige); position: relative; z-index: 1; padding-top: 50px; padding-bottom: 50px; }
.product-list { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; padding: 0 28px 50px; }
.product-card { display: grid; grid-template-columns: 280px 1fr; background: #fff; border-radius: 10px; box-shadow: none; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s ease; }
.product-card:hover { transform: translateY(-2px); box-shadow: none; }
.product-thumb { padding: 15px; overflow: hidden; border-radius: 8px; position: relative; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; min-height: 200px; }
.product-body { padding: 22px 26px; position: relative; min-width: 0; overflow: hidden; }
.product-body h3 { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 21px; margin-bottom: 10px; color: var(--base); display: flex; align-items: center; gap: 8px; }
.product-body .bullet { color: var(--yellow); font-size: 16px; }
.product-body p { font-size: 15px; line-height: 1.8; color: var(--base); font-weight: normal; margin-bottom: 0; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; }
.product-body .arrow { position: absolute; right: 24px; bottom: 18px; width: 30px; height: 1px; }
.product-body .arrow:before { content: ''; position: absolute; top: calc(50% - 1px); right: 0; transform: translateY(calc(-50% - 1px)) rotate(30deg); width: 6px; height: 2px; background-color: #7a3a00; transition: 0.3s; }
.product-body .arrow:after { content: ''; position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 30px; height: 2px; background-color: #7a3a00; transition: 0.3s; }
.product-card:hover .arrow:before { right: -5px; }
.product-card:hover .arrow:after { right: -5px; }

/* 統一ボタンスタイル（共通クラス） =============*/
.btn-arrow { position: relative; display: inline-block; min-width: 300px; font-size: 14px; text-align: center; padding: 12px 24px; border-radius: 50px; text-decoration: none; transition: all 0.3s ease; }
.btn-arrow:before { content: ''; position: absolute; top: calc(50% - 1px); right: 20px; transform: translateY(calc(-50% - 1px)) rotate(30deg); width: 6px; height: 2px; background-color: var(--base); transition: 0.3s; }
.btn-arrow:after { content: ''; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); width: 30px; height: 2px; background-color: var(--base); transition: 0.3s; }
.btn-arrow:hover:before { right: 15px; }
.btn-arrow:hover:after { right: 15px; }
/* 既存のボタンにも適用 */
.flow-btn, .info-col a, .contact-btn { position: relative; display: inline-block; min-width: 300px; font-size: 14px; text-align: center; padding: 12px 24px; border-radius: 50px; text-decoration: none; transition: all 0.3s ease; }
.flow-btn:before, .info-col a:before, .contact-btn:before { content: ''; position: absolute; top: calc(50% - 1px); right: 20px; transform: translateY(calc(-50% - 1px)) rotate(30deg); width: 6px; height: 2px; background-color: var(--base); transition: 0.3s; }
.flow-btn:after, .info-col a:after, .contact-btn:after { content: ''; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); width: 30px; height: 2px; background-color: var(--base); transition: 0.3s; }
.flow-btn:hover:before, .info-col a:hover:before, .contact-btn:hover:before { right: 15px; }
.flow-btn:hover:after, .info-col a:hover:after, .contact-btn:hover:after { right: 15px; }

/* 開発の流れセクション =============*/
.flow { background: var(--yellow); position: relative; z-index: 1; padding: 40px 20px 100px; overflow: hidden; }
.flow-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 50px; align-items: center; }
.flow-head { position: relative; display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 24px; grid-column: 1; grid-row: 1; }
.flow-text { grid-column: 1; grid-row: 2; }
.flow-image { grid-column: 2; grid-row: 1 / 3; align-self: center; }
.flow-head h2 { position: relative; }
.flow-head-chara { position: absolute; width: 60px; left: calc(100% + 10px); bottom: 10px; transform-style: preserve-3d; cursor: pointer; }
.flow-head-chara.rotate { animation: flowCharaRotate 0.6s ease; }
@keyframes flowCharaRotate { 0% { transform: rotateY(0deg); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0deg); } }
.flow-head .en-label { color: #fff; margin-bottom: 6px; }
.flow-head h2 { font-size: 30px; font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; margin: 0; color: var(--base); }
.flow-text p { font-size: 15px; line-height: 1.9; margin-bottom: 40px; font-weight: normal; color: var(--base); }
.flow-btn { border: 2px solid var(--base); color: var(--base); background: transparent; }
.flow-image img { width: 100%; height: 260px; object-fit: cover; border-radius: 6px; }
.flow-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath fill='%23fbf5e3' d='M0,192L120,176C240,160,480,128,720,144C960,160,1200,224,1320,256L1440,288L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z'/%3E%3C/svg%3E") center/100% 100% no-repeat; }

.lead-wave-bottom { width: 100%; line-height: 0; overflow: hidden; background: var(--beige); position: relative; z-index: 1; }
.lead-wave-bottom svg { min-width: 1212px; width: 100%; height: 100px; display: block; left: 50%; transform: translateX(-50%); position: relative; }
.flow-wave-top { width: 100%; line-height: 0; overflow: hidden; background: var(--beige); position: relative; z-index: 1; }
.flow-wave-top svg { min-width: 1212px; width: 100%; height: 120px; display: block; left: 50%; transform: translateX(-50%) scaleY(-1); position: relative; }

/* お知らせリスト =============*/
.news { background: var(--light-beige); position: relative; z-index: 1; padding: 50px 20px 90px; }
.news-list { max-width: 800px; margin: 0 auto 34px; display: flex; flex-direction: column; gap: 12px; }
.news-list a.news-row { text-decoration: none; color: inherit; transition: background 0.2s ease, box-shadow 0.2s ease; }
.news-list a.news-row:hover { background: #fff3c4; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.news-row { display: grid; grid-template-columns: 100px 90px 1fr; align-items: center; gap: 0 16px; padding: 12px 14px; background: #fff8dc; border-radius: 8px; font-size: 15px; font-weight: normal; }
.news-row .date { color: var(--base); font-size: 13px; font-weight: normal; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 14px; text-align: center; font-weight: 700; font-size: 11px; }
.tag-imp { background: #ffde59; color: var(--base); }
.tag-company { background: #c9f2f0; color: #2c7c78; }
.tag-recruit { background: #ffe1a8; color: var(--base); }
.tag-product { background: #d7e6ff; color: #284a92; }
.tag-other { background: #f1d9ff; color: #6a3b8a; }
.news-row .title { color: var(--base); font-size: 15px; font-weight: normal; }
.news-more { text-align: center; } 

/* 各種情報リスト =============*/
.info { background: var(--beige); position: relative; z-index: 1; padding: 50px 20px 80px; }
.info-inner { max-width: 800px; text-align: center; margin: 0 auto; display: grid; grid-template-columns: repeat(2,1fr); gap: 50px; }
.info-col h3 { font-size: 18px; margin-bottom: 14px; font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; }
.info-title { display: inline-flex; align-items: center; gap: 10px; }
.info-title::before,
.info-title::after {
  content: '●';
  font-size: 8px;
  color: var(--yellow);
}
.info-col ul { list-style: none; }
.info-col li { padding: 0; border-bottom: 1px solid #e8d6ad; font-size: 15px; font-weight: normal; }
.info-col a { width: 100%; color: var(--base); text-align: left; display: flex; align-items: center; justify-content: space-between; font-weight: normal; font-size: 15px; }
.info-col a:hover { background: rgba(121, 18, 24, 0.05); }

/* トップページ フェードアップアニメーション =============*/
.flow-text p,
.flow-text .flow-btn,
.product-card,
.news-row,
.info-col {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.flow-text.is-visible p,
.flow-text.is-visible .flow-btn,
.product-card.is-visible,
.news-row.is-visible,
.info-col.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.flow-text.is-visible .flow-btn {
  transition-delay: 0.2s;
}

/* お問い合わせセクション =============*/
#top-contact.contact { background: url('../img/office.jpg') center / cover no-repeat; position: relative; z-index: 1; padding: 130px 20px; }
#top-contact.contact::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.4); z-index: 1; }
#top-contact .contact-inner { position: relative; max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; color: #fff; z-index: 2; }
#top-contact .contact-text { color: #fff; }
#top-contact .contact-label { display: inline-block; font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 16px; color: var(--yellow); margin-bottom: 2px; letter-spacing: 1px; }
#top-contact .contact-text h2 { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 30px; margin-bottom: 12px; letter-spacing: 1px; color: #fff; }
#top-contact .contact-sub { font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; font-size: 15px; color: #fff; font-weight: normal; }
#top-contact .contact-actions { display: flex; flex-direction: column; gap: 12px; flex-wrap: wrap; }
#top-contact .contact-btn .arrow { display: none; }
#top-contact .contact-btn.primary { background: var(--yellow); color: var(--base); }
#top-contact .contact-btn.primary:hover { background: #ffed4d; }
#top-contact .contact-btn.secondary { background: #fff; color: var(--base); }
#top-contact .contact-btn.secondary:hover { background: #f5f5f5; }
#top-contact .contact-btn.secondary:before, #contact .contact-btn.secondary:after { background-color: var(--base); }

/* レスポンシブ：タブレット（768px～1023px） =============*/
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .nav { display: none; }
    .hero-mascot-left { left: 12px; }
    .hero-mascot-right { right: 12px; }
    .hero-croquette { width: 130px; left: 12px; }
    .hero-croquette-circle { width: 210px; height: 210px; }
    .hero-catch { font-size: 34px; }
    .hero-sub { font-size: 16px; }
    .flow-inner { grid-template-columns: 1fr; gap: 24px; }
    .flow-image { grid-row: auto; grid-column: auto; }
    .flow-image img { height: 220px; }
    .product-card { grid-template-columns: 200px 1fr; }
    .info-inner { grid-template-columns: 1fr; }
    .contact-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
    .lead-copy { font-size: 24px; }
    .lead-sub { font-size: 14px; }
    .lead-mascot { width: 100px; }
    .section-head h2 { font-size: 26px; }
    .head-icon { width: 50px; left: calc(50% + 60px); }
}
/* レスポンシブ：スマホ（～767px） =============*/
@media (max-width: 767px) {
    /* heroセクション */
    .hero { min-height: 100svh; min-height: -webkit-fill-available; }
    .hero-bg { position: absolute; height: 100%; }
    .hero-bg-layer { background-size: cover; background-position: center bottom; }
    .hero-bg-1 { background-position: center bottom; }
    .hero-bg-2 { background-position: center bottom; }
    .hero-bg-3 { background-position: center bottom; }
    .hero-bg-4 { background-position: center bottom; }
    .sp-break { display: block; }
    .pc-break { display: none; }
    .splash-img { width: 80px; }
    .hero-catch { font-size: 28px; letter-spacing: 0.05em; line-height: 1.6; }
    .hero-sub { font-size: 13px; letter-spacing: 0.05em; }
    .hero-croquette { width: 100px; left: 16px; bottom: 40px; }
    .hero-croquette-circle { width: 165px; height: 165px; }
    .hero-croquette-circle text { font-size: 13px; }
    .hero-wave { height: 120px; }
    
    /* leadセクション */
    .lead { padding: 40px 16px 10px; }
    .lead-wave-bottom svg { height: 60px; }
    .flow-wave-top svg { height: 60px; }
    .lead-copy { font-size: 20px; line-height: 1.6; margin-bottom: 20px; }
    .lead-sub-wrapper { display: flex; flex-direction: row; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; justify-content: center; align-items: flex-end; }
    .lead-sub { font-size: 13px; line-height: 2; margin-bottom: 0; width: 100%; flex-basis: 100%; order: 1; text-align: center; }
    .lead-mascot { width: 80px; }
    .lead-mascot-left { order: 2; flex: 0 0 auto; }
    .lead-mascot-right { order: 2; flex: 0 0 auto; }
    .mascot-name { font-size: 12px; transform: none; }
    
    /* セクション見出し */
    .section-head { padding: 40px 16px; }
    .section-head h2 { font-size: 22px; }
    .section-head p { font-size: 14px; }
    .head-icon { width: 40px; left: calc(50% + 50px); }
    .en-label { font-size: 13px; }
    
    /* 商品情報 */
    .products { padding-top: 40px; padding-bottom: 40px; }
    .product-list { padding: 0 16px 40px; gap: 16px; }
    .product-card { grid-template-columns: 1fr; }
    .product-thumb { height: 200px; padding: 12px; }
    .product-body { padding: 18px 20px 40px; }
    .product-body h3 { font-size: 18px; }
    .product-body p { font-size: 14px; line-height: 1.7; }
    
    /* 開発の流れ */
    .flow { padding: 40px 16px 60px; }
    .flow-inner { grid-template-columns: 1fr; gap: 16px; }
    .flow-head { grid-column: auto; grid-row: auto; order: 1; margin-bottom: 0; }
    .flow-head h2 { font-size: 22px; }
    .flow-head-chara { width: 40px; }
    .flow-image { grid-column: auto; grid-row: auto; order: 2; }
    .flow-image img { height: 200px; border-radius: 10px; }
    .flow-text { grid-column: auto; grid-row: auto; order: 3; }
    .flow-text p { font-size: 14px; margin-bottom: 20px; }
    .flow-btn { min-width: 100%; font-size: 13px; padding: 10px 20px; }
    
    /* お知らせ */
    .news { padding: 30px 16px 50px; }
    .section-head { padding: 30px 16px; }
    .news-list { gap: 10px; }
    .news-row { grid-template-columns: auto auto 1fr; gap: 0 10px; padding: 12px 14px; align-items: center; }
    .news-row .date { font-size: 11px; }
    .news-row .tag { font-size: 10px; padding: 2px 8px; }
    .news-row .title { font-size: 14px; line-height: 1.5; grid-column: 1 / -1; margin-top: 6px; }
    
    /* 各種情報 */
    .info { padding: 40px 16px 60px; }
    .info-inner { grid-template-columns: 1fr; gap: 30px; }
    .info-col h3 { font-size: 16px; }
    .info-col a { font-size: 14px; min-width: 100%; }
    
    /* お問い合わせ */
    #top-contact.contact { padding: 60px 16px; }
    #top-contact .contact-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    #top-contact .contact-text h2 { font-size: 22px; }
    #top-contact .contact-sub { font-size: 14px; }
    #top-contact .contact-actions { width: 100%; }
    #top-contact .contact-btn { min-width: 100%; font-size: 13px; padding: 12px 20px; }
}
