/* ===================================================
   theme.css — 食結レシピ テーマスタイル
   Original design (c) 食結レシピ / Tokushima-SSN
   This CSS file was written from scratch to reproduce
   the visual design without copying proprietary code.
   =================================================== */

/* ----- 変数 ----- */
:root {
  --green:       #0db36e;
  --green-dark:  #0a9a5e;
  --warm-bg:     #fff7e8;
  --footer-bg:   #6b4315;
  --text:        #333333;
  --border:      #cccccc;
  --pagetop-bg:  #0db36e;
}

/* ----- ベース ----- */
html { font-size: 62.5%; }

body {
  background: #fff;
  font-family: "Noto Sans JP", "-apple-system", "Helvetica Neue", Arial,
               "Yu Gothic", YuGothic, Meiryo, sans-serif;
  font-size: 14px;
  font-size: 1.4em;
  line-height: 1.4;
  color: var(--text);
  padding-top: 60px;
}
@media (min-width: 768px) {
  body { padding-top: 64px; }
}

figure { margin: 0; text-align: center; }
figure figcaption { margin-top: .5em; text-align: left; }

a { color: var(--text); text-decoration: underline; }
a:hover { color: var(--text); text-decoration: none; }

img { vertical-align: middle; max-width: 100%; }
address { font-style: normal; }

p {
  margin: .5em 0 1em;
  line-height: 1.8;
  letter-spacing: .05em;
}
p:first-child { margin-top: 0; }
p:last-child  { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding: 0 0 0 2.5em; line-height: 1.6; }
ul:last-child, ol:last-child { margin-bottom: 0; }

dl { margin: 0 0 1em; line-height: 1.6; }
dl:last-child { margin-bottom: 0; }
dl dt { font-weight: bold; }
dl dd { margin-left: 0; margin-bottom: .5em; }
dl dd:last-child { margin-bottom: 0; }

main { overflow: hidden; }
main section { margin-bottom: 10%; }

/* ===== ページタイトル (main h1) ===== */
main h1:not(.title) {
  position: relative;
  margin: 0 0 0.5em;
  padding: 1.7em 0;
  border-top: 5px solid #62cea1;
  border-bottom: 5px solid #62cea1;
  background: var(--green);
  text-align: center;
  color: #fff;
  line-height: 1.3;
  font-size: 3rem;
  font-weight: normal;
}
@media (max-width: 767px) {
  main h1:not(.title) { padding: 1.2em 0; font-size: 2.2rem; }
}

/* ===== パンくずナビ ===== */
.crumbs_area {
  position: relative;
  margin-bottom: 2.7em;
}
@media (max-width: 767px) {
  .crumbs_area { margin-bottom: 1.5em; }
}
.crumbs_area ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 1.3rem;
}
.crumbs_area ul li + li::before {
  content: '›';
  margin-right: 4px;
  color: #aaa;
}
.crumbs_area ul li a { color: var(--green-dark); text-decoration: none; }
.crumbs_area ul li a:hover { text-decoration: underline; }

/* ----- ユーティリティ ----- */
.text-center  { text-align: center; }
.text-large   { font-size: 1.2em; }
.text-xlarge  { font-size: 1.5em; }
.sp-text-center { text-align: left; }

.pc-only  { display: inline; }
.sp-only  { display: none; }

@media (max-width: 767px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
  .sp-text-center { text-align: center; }
}

/* ----- ハイライト背景 ----- */
.highlight {
  padding: 4% 0;
  background: var(--warm-bg);
  color: var(--text);
}

/* ===== 見出し ===== */

/* h2 : 中央寄せ、緑ライン下 */
h2, .title2 {
  display: flex;
  flex-direction: column;
  position: relative;
  max-width: 1000px;
  margin: 0 auto .7em;
  padding: 0;
  text-align: center;
  line-height: 1;
  color: var(--text);
  font-size: 24px;
  font-size: 2.4rem;
  font-weight: normal;
}
h2 small, h2 span { display: block; order: 3; color: var(--text); font-size: 18px; }
h2::after {
  content: '';
  display: block;
  order: 2;
  width: 40px;
  height: 2px;
  margin: .5em auto;
  background: var(--text);
}
@media (max-width: 767px) {
  h2 { font-size: 18px; }
  h2 small, h2 span { font-size: 16px; }
}

/* h3 : 緑ボーダーボトム */
h3 {
  position: relative;
  margin: 0 0 .5em;
  padding: 0 0 .4em;
  border-bottom: 1px solid var(--green);
  color: var(--text);
  line-height: 1;
  font-size: 18px;
  font-size: 1.8rem;
  font-weight: normal;
}

/* h4 : 緑ショートライン */
h4 {
  position: relative;
  margin: 0 0 .5em;
  padding: 0 0 .6em;
  line-height: 1;
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: normal;
}
h4::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: var(--green);
}

/* ===== ボタン ===== */
.button, .button-round {
  display: inline-block;
  min-width: 280px;
  margin: 0;
  padding: .8em 0;
  line-height: 1;
  font-size: 18px;
  font-size: 1.8rem;
  text-decoration: none;
  text-align: center;
  appearance: none;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green);
  border-radius: 25px;
  transition: .3s linear;
}
.button:hover, .button-round:hover {
  background: var(--green);
  color: #fff;
  text-decoration: none;
}

/* 矢印付きボタン */
.add_arrow.button { position: relative; }
.add_arrow.button::after {
  content: '';
  display: block;
  position: absolute;
  right: 20px;
  top: 0;
  bottom: 0;
  width: 3px;
  height: 3px;
  margin: auto;
  border-top: 2px solid var(--green);
  border-right: 2px solid var(--green);
  transition: .2s;
  transform: rotate(45deg);
}
.add_arrow.button:hover::after {
  right: 14px;
  border-color: #fff;
}

@media (max-width: 767px) {
  .button, .button-round { font-size: 16px; }
}

/* ===== ヘッダー ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  background: #fff;
}
header section { margin: 0; }
header .row { margin-bottom: 0; }

header .primary_header {
  background: #fff;
  color: var(--text);
}

/* ロゴ */
header .title {
  height: auto;
  margin: 0;
  padding: 10px 1%;
  line-height: 1;
  text-align: center;
  background: none;
  font-size: 10px;
}
header .title img { width: 150px; max-width: 100%; vertical-align: middle; }

/* ナビ（モバイル：ドロップダウン） */
header .global_nav ul {
  display: none;
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  width: 100%;
  overflow: auto;
  background: rgba(0,0,0,.9);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #333;
}
header .global_nav ul li { border-bottom: 1px solid #333; }
header .global_nav ul li a {
  display: block;
  padding: 1.5em 1em;
  text-decoration: none;
  color: #fff;
}
header .global_nav ul li a:hover { color: #fff; }
header .global_nav ul li a:active { background: var(--green); color: #fff; }
header .global_nav ul li a .subtitle { display: none; }

/* ハンバーガーアイコン */
.menu_icon {
  position: absolute;
  top: 50%;
  right: 5%;
  margin-top: -10px;
}
.menu_icon a {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  font-size: 0;
}
.menu_icon .hamburger {
  display: block;
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 4px;
  background: var(--green);
  transition: .5s;
}
.menu_icon .hamburger::before,
.menu_icon .hamburger::after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--green);
  transition: .5s linear;
}
.menu_icon .hamburger::before { top: -8px; }
.menu_icon .hamburger::after  { top: 8px; }
/* ×アイコン */
.menu_icon .close:not(.fix) .hamburger { background: none; }
.menu_icon .close:not(.fix) .hamburger::before { top: 0; transform: rotate(45deg); }
.menu_icon .close:not(.fix) .hamburger::after  { top: 0; transform: rotate(-45deg); }

/* デスクトップナビ */
@media (min-width: 768px) {
  header .title { width: auto; padding: 0; }
  header .title img { width: 160px; }

  header .container {
    position: relative;
    max-width: none;
  }
  header .container .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
  }
  header .title,
  header .global_nav {
    display: flex;
    align-items: center;
    height: 64px;
    margin: 0;
  }
  header .title  { flex-shrink: 0; }
  header .global_nav {
    flex: 1;
    padding: 0 8px;
    justify-content: space-between;
  }
  header .global_nav ul {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: static;
    flex: 1;
    border: none;
    background: none;
    white-space: nowrap;
    font-size: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  header .global_nav ul li {
    border: none;
    line-height: 1.5;
    font-size: 14px;
    font-size: 1.4rem;
    text-align: center;
  }
  header .global_nav .nav-search {
    flex-shrink: 0;
    margin-left: 8px;
  }
  header .global_nav ul li a {
    display: block;
    padding: 0.7em 0.6em;
    text-align: center;
    color: var(--text);
    text-decoration: none;
  }
  header .global_nav ul li a:hover { color: var(--green); }
  header .global_nav ul li a[aria-current="page"] {
    color: var(--green-dark);
    font-weight: 700;
    position: relative;
  }
  header .global_nav ul li a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0.4em;
    right: 0.4em;
    height: 3px;
    background: var(--green);
    border-radius: 2px;
  }
  header .global_nav ul li a .subtitle { display: none; }
  .menu_icon { display: none; }

  header {
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
  }
}
@media (min-width: 768px) and (max-width: 1199px) {
  header .global_nav ul li a { padding: 0.7em 0.6em; }
}

/* 検索フォーム */
.search-form .form-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.search-form .form-input {
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
}
.search-form .form-btn {
  padding: 4px 10px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.search-form .form-btn:hover { background: var(--green-dark); }

/* お問い合わせボタン（ナビ内） */
header .global_nav ul li a.button {
  background: none;
  border: none;
  color: inherit;
  padding: 0.7em 0.8em;
  font-size: inherit;
  border-radius: 0;
  min-width: unset;
}
header .global_nav ul li a.button::after { display: none; }

/* ===== メインスライダー (Swiper) ===== */
.main-slider-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.swiper.main-slider {
  width: 100%;
  height: 600px;
}
.swiper.main-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* main_copy オーバーレイ */
.main_copy {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.main_copy li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.main_copy img { max-width: 90%; position: relative; z-index: 1; }

@media (max-width: 767px) {
  .swiper.main-slider { height: 500px; }
}

/* ===== お知らせ (news typeB) ===== */
.news { margin-top: 0; margin-bottom: 0; }
.news h2 { color: var(--text); }
.news dl { margin: 0; }
.news dl dt {
  margin: .5em 0 0;
  padding: 0 1em;
  font-weight: normal;
}
.news dl dd {
  margin: .5em 0;
  padding: 0 1em .5em;
  border-bottom: 1px solid #ccc;
}
.news dl a { text-decoration: underline; }
.news dl a:hover { text-decoration: none; }

@media (min-width: 768px) {
  /* typeB: h2 は上部中央、その下に dl リストを縦積み */
  .news dl { overflow-y: auto; max-height: 200px; }
  .news dl dt {
    width: 100px;
    clear: left;
    float: left;
    margin: 0;
    padding: 1em 0;
  }
  .news dl dd { margin: 0; padding: 1em 0; }
  .news dl dt + dd { padding-left: 120px; }
}

.news_list_btn {
  position: relative;
  left: 0;
  right: 0;
  margin: auto;
  width: 1000px;
  max-width: 100%;
  text-align: center;
}

/* ===== sec_02 : 食結レシピについて ===== */
.sec_02 h3 {
  border-bottom: 1px solid var(--green);
  padding: .5em 0;
  font-weight: bold;
}
.sec_02 h3::after, .sec_02 h3::before { content: none; }

@media (min-width: 768px) {
  .sec_02 .h2_wrap {
    padding: 10% 0;
    position: relative;
  }
  /* 見出し後ろに暖色帯 */
  .sec_02 .h2_wrap::after {
    content: "";
    position: absolute;
    left: -300%;
    right: -300%;
    top: 0;
    bottom: 0;
    background: var(--warm-bg);
    z-index: -1;
  }
  .sec_02 .h2_wrap h2 { margin-bottom: 0; }
  .sec_02 .col.img_wrap { transform: translateY(-10%); }
  .sec_02 .col:not(.img_wrap) { padding-top: 6%; }
  .sec_02 h3 { padding: 0 0 1em; }
}

/* ===== sec_03 : 食結びのご紹介 ===== */
.sec_03 h3 {
  border-bottom: 1px solid var(--green);
  padding: .5em 0;
  font-weight: bold;
}
.sec_03 h3::after, .sec_03 h3::before { content: none; }

.sec_03 h3 .num {
  color: var(--green);
  font-size: 30px;
  font-size: 3rem;
  margin-right: 10px;
}

@media (min-width: 768px) {
  .sec_03 .container { width: 100%; max-width: 100%; }
  .sec_03 h3 { padding: 0 0 .2em; }
  .sec_03 h3 .num { font-size: 75px; font-size: 7.5rem; }
  .sec_03 .row { position: relative; overflow: hidden; }

  /* 画像は絶対配置で左右半分を占める */
  .sec_03 .row .col.img_wrap figure {
    position: absolute;
    width: 49%;
    overflow: hidden;
  }
  .sec_03 .row .col.img_wrap figure img { max-width: none; width: 100%; height: 100%; object-fit: cover; }

  /* テキストブロック */
  .sec_03 .row .col:not(.img_wrap) {
    max-width: 500px;
    width: 48%;
    padding: 4% 0;
  }
  /* 通常（画像左・テキスト右）*/
  .sec_03 .row:not(.reverse) .col:not(.img_wrap) {
    float: left;
    margin-left: 52%;
  }
  /* reverse（画像右・テキスト左）*/
  .sec_03 .row.reverse .col:not(.img_wrap) {
    float: right;
    margin-right: 51%;
  }
}

/* ===== パララックス (お問い合わせ) ===== */
.parallax {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@supports (-webkit-touch-callout: none) {
  /* iOS では fixed attachment は動かないのでscrollに */
  .parallax { background-attachment: scroll; }
}
.parallax .parallax_contents { z-index: 1; }
.parallax .parallax_contents h2 { color: #fff; }
.parallax .parallax_contents h2::after { background: #fff; }
.parallax .parallax_contents h2 small { color: rgba(255,255,255,.8); }
.parallax .parallax_contents p { color: #fff; }
.parallax .parallax_contents a { color: #fff; }
.parallax .parallax_contents .button {
  border-color: #fff;
  color: #fff;
}
.parallax .parallax_contents .button:hover {
  background: #fff;
  color: var(--green);
}
.parallax .parallax_contents .add_arrow.button::after {
  border-color: #fff;
}
.parallax .parallax_contents .add_arrow.button:hover::after {
  border-color: var(--green);
}

.parallax_1 {
  height: 425px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .16) 0 8%, transparent 8.2%),
    radial-gradient(circle at 88% 82%, rgba(255, 255, 255, .12) 0 12%, transparent 12.2%),
    linear-gradient(135deg, #087a55 0%, #0a9a68 48%, #075f55 100%);
}
.parallax_1::before,
.parallax_1::after {
  content: '';
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  pointer-events: none;
}
.parallax_1::before {
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: -150px;
}
.parallax_1::after {
  width: 190px;
  height: 190px;
  right: -55px;
  top: -85px;
}
@media (min-width: 768px) {
  .parallax_1 { height: 500px; }
}

/* ===== スポンサー・パートナー ===== */
.partnership { margin-top: 4%; }
.partnership h4 {
  display: flex;
  text-align: center;
  margin: 0 auto;
  flex-direction: column;
}
.partnership h4::after {
  display: flex;
  position: static;
  text-align: center;
  margin: .5em auto;
}

@media (max-width: 767px) {
  .partnership .span_6 { margin-top: 5%; margin-bottom: 10%; }
}

/* sp_image_cols */
@media (max-width: 767px) {
  .sp_image_cols.sp_col2 .col { width: 48%; float: left; margin-bottom: 4%; }
  .sp_image_cols.sp_col2 .col:nth-child(2n+1) { margin-right: 4%; }
}

/* ===== SNSシェアボタン ===== */
.share_button {
  padding-top: 20px;
  margin-bottom: 50px;
}
.share_button .container > * {
  margin: 0 2px;
  vertical-align: bottom;
}

/* ===== フッター ===== */
footer {
  position: relative;
  padding: 2em 0;
  background: var(--footer-bg);
  color: #fff;
}
footer a { color: #fff; }
footer a:hover { color: #fff; }

footer nav ul { margin: 0; padding: 0; list-style: none; }
footer nav ul li + li { border-top: 1px solid #666; }
footer nav a { display: block; padding: 1em; text-decoration: none; }
footer nav a:hover { text-decoration: underline; }

footer .copyright p { text-align: center; }

/* ===== ページング ===== */
.pagination { display: none; justify-content: center; padding: 40px 0 16px; }
.pagination.active { display: flex; }
.page-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: center; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 12px;
  border: 1px solid #e0e0e0; border-radius: 6px;
  font-size: 1.3rem; color: var(--text); text-decoration: none;
  background: #fff; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.page-btn:hover { background: #f0f9f4; border-color: var(--green); color: var(--green-dark); }
.page-btn.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; pointer-events: none; }
.page-btn.disabled { color: #ccc; border-color: #eee; pointer-events: none; }
.page-dots { padding: 0 4px; color: #aaa; font-size: 1.3rem; line-height: 36px; }

/* ページトップボタン */
footer .pagetop {
  position: fixed;
  bottom: 5%;
  right: 5%;
  z-index: 100;
  margin: 0;
}
footer .pagetop a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--green);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
footer .pagetop a:hover {
  background: var(--green-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}

@media (min-width: 768px) {
  footer { padding: 50px 0; }
  footer .row:not(:last-child) { margin-bottom: 15px; }

  footer nav { text-align: center; }
  footer nav ul { margin: 0; padding: 0; list-style: none; font-size: 0; }
  footer nav ul > li {
    display: inline;
    padding: 0;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.5;
  }
  footer nav ul li + li { border: 0; }
  footer nav ul li:not(:first-child)::before {
    content: "|";
    margin: 0 1em;
  }
  footer nav a { display: inline; padding: 0; }
}

/* ===== テーブル ===== */
.table-default {
  width: 100%;
  border-collapse: collapse;
}
.table-default caption {
  margin-bottom: .5em;
  text-align: center;
  font-size: 1.6rem;
}
.table-default th,
.table-default td {
  padding: .7em 1em;
  border: 1px solid #ccc;
  vertical-align: top;
  line-height: 1.6;
}
.table-default th {
  width: 25%;
  background: var(--green);
  color: #fff;
  font-weight: normal;
  white-space: nowrap;
}
.table-default td {
  background: #fff;
}
@media (max-width: 767px) {
  .responsive-stack { display: block; }
  .responsive-stack thead { display: none; }
  .responsive-stack tbody,
  .responsive-stack tr,
  .responsive-stack th,
  .responsive-stack td { display: block; }
  .responsive-stack th,
  .responsive-stack td { width: 100% !important; }
  .responsive-stack tr:not(:last-child) th,
  .responsive-stack tr:not(:last-child) td { border-bottom: 0; }
}

/* ===== mb0 ===== */
.mb0 { margin-bottom: 0 !important; }

/* ===== セクション間隔 ===== */
@media (min-width: 768px) {
  main section { margin-bottom: 5%; }
  main section:last-child { margin-bottom: 7%; }
}

/* ===== タイル高さ揃え ===== */
@media (max-width: 767px) {
  .tile:not(.sp-tile) > * { height: auto !important; }
}

/* ===== 画像最大幅リセット ===== */
.sec_03 .row .col.img_wrap figure img,
.sec_02 .col.img_wrap figure img {
  width: 100%;
  height: auto;
}
