/* =========================================================
   Food Marico 追加スタイル
   現行テーマ layout.min.css（デザイナー制作）をそのまま読み込んだ上で、
   次の4点だけを足す。デザイン（色・形・画像のぼかし・マスク・余白）は変えない。
   1) 書体：FMCの基本書体 丸ゴシック（Zen Maru Gothic）／英字は現行どおり Jost
   2) ヘッダー：スクロール時にメニューが本文と重なって読めない問題の解消
   3) ショップへの導線（Contact と同じピル型ボタンを塗りで）
   4) ページ分割に伴う下層ページの見出し・お知らせ・実績表など
   ========================================================= */

/* 1) 書体 */
body { font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", sans-serif; }
.en, .header nav .nav li a, .header nav .contact span, footer .copy, footer .top { font-family: "Jost", sans-serif; }

/* 2) ヘッダー：スクロールしたらメニューの背後に半透明の白い面を敷く（現行の位置・大きさは維持） */
@media only screen and (min-width: 1080px) {
  .header nav {
    top: calc(2.6875rem - .625rem); right: calc(3.5rem - .625rem);
    padding: .625rem .625rem .625rem 2rem; border-radius: 999px;
    gap: min(3rem, 2.4vw);
    transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
  }
  .header nav .nav { gap: min(3rem, 2.4vw); }
  .header.scroll nav {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: 0 .5rem 2rem rgba(153, 70, 90, .12);
  }
  .header nav .nav li a[aria-current="page"] { color: #99465a; }
  .header nav .nav li a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: .15em; bottom: -.5rem; height: 1px; background: #99465a;
  }
  .header nav .contact { width: min(10.5rem, 12vw); }
  .header nav .contact + .contact { margin-left: calc(-1 * min(3rem, 2.4vw) + .75rem); }
}
/* スマホ：ハンバーガーの背後に白い円（スクロール時のみ）。メニューを開いたら消す */
.header .menu::before {
  content: ""; position: absolute; inset: -.5rem; border-radius: 50%;
  background: rgba(255, 255, 255, .9); box-shadow: 0 .25rem 1rem rgba(153, 70, 90, .15);
  opacity: 0; transition: opacity .3s; z-index: -1;
}
.header.scroll .menu::before { opacity: 1; }
.header.show .menu::before { opacity: 0; }
.header .menu { z-index: 9; }
@media only screen and (max-width: 1079px) {
  .header nav .nav li a small { display: block; font-family: "Zen Maru Gothic", sans-serif; font-size: .75rem; letter-spacing: .1em; text-align: center; margin-top: .5rem; opacity: .85; }
  .header nav .nav { gap: 2.5rem; }
  .header nav { gap: 2rem; }
}

/* 3) ショップ：Contact と同じピル型を塗りで */
.header nav .contact.fm-shop { background: #99465a; color: #fff; }
.header nav .contact.fm-shop img { filter: brightness(0) invert(1); width: auto; height: min(.875rem, 1vw); }
@media only screen and (max-width: 1079px) {
  .header nav .contact.fm-shop { background: #fff; color: #99465a; }
  .header nav .contact.fm-shop img { filter: none; height: .875rem; }
}

/* 4-a) 下層ページ（トップと同じ #index の各セクションを使うページ）の冒頭 */
#index .contents .fm-pagehead { padding: 14rem 0 0; position: relative; }
@media only screen and (max-width: 1079px) { #index .contents .fm-pagehead { padding: 8rem 0 0; } }
#index .contents .fm-pagehead h2 .en { color: #99465a; font-size: 3.5rem; font-weight: normal; letter-spacing: .15em; }
#index .contents .fm-pagehead .fm-jp { display: block; color: #99465a; font-size: .875rem; letter-spacing: .15em; margin-top: 1.25rem; }
#index .contents .fm-pagehead + #value { margin-top: 6rem; }
#index .contents .fm-first { margin-top: 0 !important; padding-top: 14rem; }
@media only screen and (max-width: 1079px) { #index .contents .fm-first { padding-top: 8rem; } }
#index .contents #aboutUs.fm-noh2 .cm_flex:first-of-type { margin-top: 0; }

/* 現行 #value2 のピル型リンク（cm_link）をどのセクションでも使えるように */
#index .contents .fm-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 4rem; }
@media only screen and (max-width: 1079px) { #index .contents .fm-links { justify-content: center; } }
#index .contents .fm-link, #information .fm-link {
  min-width: 18.5rem; height: 3.5rem; display: inline-flex; align-items: center; color: #99465a; font-weight: bold;
  padding: 0 4rem 0 1.5rem; border-radius: 1.75rem; border: 1px solid #99465a; position: relative; background: rgba(255,255,255,.48);
}
#index .contents .fm-link::after, #information .fm-link::after {
  content: ""; width: 1.5rem; aspect-ratio: 1/1; background: url(../img/arw.svg) center/cover no-repeat;
  position: absolute; top: 50%; transform: translate(50%, -50%); right: 1.75rem; transition: .375s cubic-bezier(0.33, 1, 0.65, 1);
}
#index .contents .fm-link:hover::after, #information .fm-link:hover::after { width: 1.75rem; }

/* トップ：お知らせの「一覧へ」 */
#index .contents #info .fm-more { text-align: right; margin-top: 1rem; }
#index .contents #info .fm-more a { color: #99465a; font-family: "Jost", sans-serif; letter-spacing: .1em; text-decoration: underline; }

/* お知らせの種類ラベル */
.cm_newsList li .date { line-height: 1.6 !important; margin: 0 !important; }
.cm_newsList li .date .fm-cat { display: block; width: fit-content; margin-top: .5rem; padding: .125rem .625rem; border-radius: 999px; border: 1px solid rgba(153,70,90,.5); color: #99465a; font-size: .6875rem; line-height: 1.6; letter-spacing: .05em; }
@media only screen and (min-width: 1080px) { .cm_newsList li .date { width: 9.5rem !important; } .cm_newsList li .title { width: calc(100% - 9.5rem) !important; } }

/* 商品セクション：ショップへのボタン（現行 cm_link2 の文言が長くなるため幅だけ可変に） */
#index .contents #products .cm_link2 { width: auto; min-width: 15rem; padding: 0 2rem; background: rgba(255,255,255,.12); transition: background .3s; }
#index .contents #products .cm_link2:hover { background: rgba(255,255,255,.24); }
#index .contents #products .cm_link2 img { width: .875rem; filter: brightness(0) invert(1); }
#index .contents #products .fm-note { font-size: .875rem; margin-top: 1.25rem; opacity: .9; }
@media only screen and (max-width: 1079px) { #index .contents #products .fm-note { text-align: center; padding: 0 2rem; } }

/* お問い合わせセクション */
.fm-contact { text-align: center; margin: 3rem auto 0; max-width: 35rem; }
.fm-contact .fm-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 18rem; height: 3.75rem; padding: 0 2.5rem; border-radius: 999px; background: #99465a; color: #fff; font-weight: bold; letter-spacing: .1em; transition: opacity .25s; }
.fm-contact .fm-btn:hover { opacity: .85; }
.fm-contact .fm-btn.fm-line { background: transparent; color: #99465a; border: 1px solid #99465a; margin-top: 2.5rem; font-family: "Jost", "Zen Maru Gothic", sans-serif; }
#index .contents .fm-contact .fm-note { font-size: .875rem; line-height: 1.75; margin: 1.25rem 0 0; text-align: center; }

/* 4-b) 下層ページ（現行のお知らせページと同じ #information.subPage の枠） */
#information .contents .w1120 > .title .h1 .fm-jp { display: block; color: #99465a; font-size: .875rem; letter-spacing: .15em; margin-top: 1.25rem; font-weight: normal; }
#information .fm-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; }
#information .fm-filters a { padding: .375rem 1rem; border-radius: 999px; border: 1px solid rgba(153,70,90,.4); color: #99465a; font-size: .8125rem; }
#information .fm-filters a[aria-current="page"] { background: #99465a; color: #fff; border-color: #99465a; }
#information .contents .w1120 .body .head .date .fm-cat { display: inline-block; margin-left: 1rem; padding: .125rem .625rem; border-radius: 999px; border: 1px solid rgba(153,70,90,.5); color: #99465a; font-size: .75rem; }
#information .post blockquote { margin: 2.25rem 0 0; padding: 1.5rem 2rem; border-left: 2px solid #99465a; background: rgba(153,70,90,.05); border-radius: 0 1rem 1rem 0; }
#information .post blockquote p { margin: 0; }
#information .post .fm-ext { color: #99465a; }
#information .post h3.fm-h { color: #99465a; font-size: 1.375rem; letter-spacing: .1em; line-height: 1.5; background: none; border: none; padding: 0; border-radius: 0; margin-top: 4.5rem; position: relative; }
#information .post h3.fm-h::before { content: ""; position: absolute; left: -2.625rem; top: 50%; width: 2rem; height: 2px; background: #99465a; }
@media only screen and (max-width: 1079px) { #information .post h3.fm-h::before { display: none; } }
#information .post h3.fm-h:first-child { margin-top: 0; }
#information .post .fm-for { display: block; color: #99465a; font-size: .875rem; margin-top: 1rem; }
#information .post .fm-links { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 3.5rem; }
#information .post .fm-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 18rem; height: 3.75rem; padding: 0 2.5rem; border-radius: 999px; background: #99465a; color: #fff; font-weight: bold; letter-spacing: .1em; text-decoration: none; }
#information .contents .w1120 .body .empty { color: #2f2f2f; line-height: 2; }

/* 実績・メディア掲載（現行 #aboutUs の History 表をそのまま使う）：スマホは横スクロール＋縦も伸ばす */
@media only screen and (max-width: 1079px) {
  #index .contents #aboutUs.fm-history .cm_flex .txtBox .sp-scroll { height: auto; max-height: none; }
}
#index .contents #aboutUs .cm_flex .txtBox .history tr td .link img { width: .8125rem; }

/* フッター：サイト内リンク（現行フッターの上に1行だけ追加） */
footer .fm-ftnav { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; padding: 0 0 3rem; margin-bottom: 3rem; border-bottom: 1px solid rgba(153,70,90,.2); }
footer .fm-ftnav a { color: #99465a; font-size: .8125rem; letter-spacing: .05em; }
footer .fm-ftnav a:hover { text-decoration: underline; }
@media only screen and (max-width: 1079px) { footer .fm-ftnav { gap: .75rem 1.5rem; } }

/* 下層ページ見出しの和文（Action・History など） */
#index .contents .fm-jp { display: block; color: #99465a; font-size: .875rem; letter-spacing: .15em; margin-top: 1.25rem; }
#index .contents #action .fm-jp + .cm_flex { margin-top: 5rem; }
#index .contents #action .fm-links { margin-top: 3.5rem; }

/* パートナーの区分見出し（自治体） */
#index .contents #team .fm-team-group { display: flex; align-items: center; gap: 1.5rem; margin-top: 6rem; color: #99465a; font-weight: bold; font-size: 1.125rem; letter-spacing: .15em; }
#index .contents #team .fm-team-group::before, #index .contents #team .fm-team-group::after { content: ""; flex: 1; height: 1px; background: rgba(153,70,90,.3); }

/* 1080〜1399px：メニュー項目が増えた分、ロゴと重ならないよう文字と間隔を少しだけ小さく */
@media only screen and (min-width: 1080px) and (max-width: 1399px) {
  .header nav { gap: 2vw; padding-left: 1.5rem; }
  .header nav .nav { gap: 2vw; }
  .header nav .nav li a, .header nav .contact span { font-size: 1.25vw; }
  .header nav .contact { width: 10vw; height: 3.6vw; }
  .header nav .contact + .contact { margin-left: calc(-2vw + .5rem); }
}

/* 丸ゴシックは「palt（詰め組み）」が効かないため、大見出しの字間だけ少し詰めて現行の改行位置に合わせる */
.lead { letter-spacing: .05em; }
/* 別ページへ移動するリンクの矢印は右向き（現行の下向き矢印はページ内移動用） */
#index .contents .fm-link::after, #information .fm-link::after, #index .contents #value2 .w1120 .cm_flex .txtBox .cm_link::after { transform: translate(50%, -50%) rotate(-90deg); }
#index .contents .fm-pagehead + #value { margin-top: 9.5rem; }

/* スマホのメニュー内 Shop ボタン：白地なので矢印アイコンをブランド色に */
@media only screen and (max-width: 1079px) {
  .header nav .contact.fm-shop img { width: auto; filter: brightness(0) saturate(100%) invert(32%) sepia(23%) saturate(1500%) hue-rotate(301deg) brightness(90%); }
}

/* 実績表：スマホでは横スクロールせず、1件ずつ縦に積む（同じ色・罫線のまま） */
@media only screen and (max-width: 1079px) {
  #index .contents #aboutUs.fm-history .cm_flex .txtBox .sp-scroll { overflow: visible; }
  #index .contents #aboutUs.fm-history .history thead { display: none; }
  #index .contents #aboutUs.fm-history .history, #index .contents #aboutUs.fm-history .history tbody { display: block; width: 100%; }
  #index .contents #aboutUs.fm-history .history tr { display: grid; grid-template-columns: auto 1fr auto; gap: .25rem .75rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(153,70,90,.2); }
  #index .contents #aboutUs.fm-history .cm_flex .txtBox .sp-scroll table.history tr td { display: block; white-space: normal; padding: 0; border: none; line-height: 1.6; }
  #index .contents #aboutUs.fm-history .history tr td:nth-child(1) { color: #99465a; font-size: .75rem; white-space: nowrap; }
  #index .contents #aboutUs.fm-history .history tr td:nth-child(2) { color: #99465a; font-size: .75rem; }
  #index .contents #aboutUs.fm-history .history tr td:nth-child(3) { grid-column: 1 / 3; }
  #index .contents #aboutUs.fm-history .history tr td:nth-child(4) { grid-column: 3; grid-row: 1 / 3; align-self: center; width: 1.5rem; min-height: 1rem; }
  #index .contents #aboutUs.fm-history .history tr td .link { position: static; transform: none; }
}

/* Information：外部リンクの印・ページ送り */
.cm_newsList li .title .fm-extico { display: inline-block; width: .75em; height: .75em; margin-left: .375em; vertical-align: baseline; opacity: .6; }
.cm_newsList li .title > span { display: inline; }
#information .fm-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 2.5rem 0 0; }
#information .fm-pager a { min-width: 2.25rem; padding: .375rem .75rem; border-radius: 999px; border: 1px solid rgba(153,70,90,.4); color: #99465a; font-size: .8125rem; text-align: center; }
#information .fm-pager a[aria-current="page"] { background: #99465a; color: #fff; border-color: #99465a; }

/* TOPのProducts帯：商品紹介をやめ、ものづくりページとショップへの入口だけにする */
#index .contents #products .fm-prodlinks { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem; margin-top: 2.5rem; }
#index .contents #products .fm-prodlinks .cm_link2 { margin: 0; }
#index .contents #aboutUs .cm_flex .txtBox .fm-links { margin-top: 2rem; }
/* 1080〜1499px：メニューが6項目になったので、さらに少しだけ詰める */
@media only screen and (min-width: 1080px) and (max-width: 1499px) {
  .header nav { gap: 1.4vw; padding-left: 1.25rem; right: 1.5rem; }
  .header nav .nav { gap: 1.4vw; }
  .header nav .nav li a, .header nav .contact span { font-size: 1.15vw; }
  .header nav .contact { width: 9vw; }
  .header nav .contact + .contact { margin-left: calc(-1.4vw + .5rem); }
}
/* 1500〜1919px：メニューとロゴの間をあける */
@media only screen and (min-width: 1500px) and (max-width: 1919px) {
  .header nav { gap: 1.6vw; }
  .header nav .nav { gap: 1.6vw; }
  .header nav .nav li a, .header nav .contact span { font-size: 1.125rem; }
  .header nav .contact + .contact { margin-left: calc(-1.6vw + .75rem); }
}

/* Cookie の同意（画面下に小さく。デザインの色・丸みに合わせる） */
.fm-cookie { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 9999; width: min(56rem, calc(100% - 2rem)); display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem 1.5rem 1.25rem 2rem; background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 1.5rem; box-shadow: 0 .75rem 2.5rem rgba(153,70,90,.18); color: #333; font-size: .8125rem; line-height: 1.8; letter-spacing: .03em; }
.fm-cookie[hidden] { display: none; }
.fm-cookie p { margin: 0; flex: 1; }
.fm-cookie a { color: #99465a; text-decoration: underline; }
.fm-cookie-btns { display: flex; gap: .75rem; flex-shrink: 0; }
.fm-cookie button { font: inherit; font-size: .8125rem; padding: .625rem 1.25rem; border-radius: 999px; cursor: pointer; border: 1px solid #99465a; white-space: nowrap; }
.fm-cookie-ok, .fm-cookie-no { background: #fff; color: #99465a; min-width: 8.5rem; }
.fm-cookie-ok:hover, .fm-cookie-no:hover { background: #99465a; color: #fff; }
@media only screen and (max-width: 767px) { .fm-cookie { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.25rem; bottom: .75rem; } .fm-cookie-btns { justify-content: flex-end; } }

/* TOP：ミッション策定の背景は開いたまま全文表示（開閉の＋−は出さない） */
#index .contents #mission .w1120 .value.fm-static h3 { cursor: default; }
#index .contents #mission .w1120 .value.fm-static h3::before, #index .contents #mission .w1120 .value.fm-static h3::after { display: none; }
#index .contents #mission .w1120 .value.fm-static .detail { grid-template-rows: 1fr; border-top: 1px dashed #99465a; }
#index .contents #mission .w1120 .value.fm-static .detail .inner { padding-bottom: 5rem; opacity: 1; }
@media only screen and (max-width: 1079px) { #index .contents #mission .w1120 .value.fm-static .detail .inner { padding-bottom: 4rem; } }

/* お問い合わせ：見出しと2つのボタンを横に並べ、高さを抑える */
#index .contents #contact.fm-contact-row { padding: 4rem 0; margin-top: 8rem; }
#index .contents #contact .fm-contact-head p { margin-top: 1rem; font-size: .875rem; line-height: 1.8; }
#index .contents #contact .fm-contact { max-width: none; margin: 2rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; }
#index .contents #contact .fm-contact-item { flex: 1 1 18rem; max-width: 24rem; text-align: center; }
#index .contents #contact .fm-contact .fm-btn { min-width: 0; width: 100%; padding: 0 1.5rem; }
#index .contents #contact .fm-contact .fm-btn.fm-line { margin-top: 0; }
#index .contents #contact .fm-contact .fm-note { font-size: .8125rem; margin-top: .875rem; }
@media only screen and (min-width: 1080px) {
  #index .contents #contact .fm-contact-flex { display: flex; align-items: center; gap: 4rem; }
  #index .contents #contact .fm-contact-head { flex: 0 0 16rem; }
  #index .contents #contact .fm-contact { flex: 1; margin: 0; justify-content: flex-end; }
  #index .contents #contact .fm-contact-item { align-self: flex-start; }
}
@media only screen and (max-width: 1079px) { #index .contents #contact.fm-contact-row { margin-top: 6rem; padding: 3rem 0; } #index .contents #contact .fm-contact-head { text-align: center; } }

/* 言語の切り替え（日本語・EN・中文・한국어） */
.fm-langs { display: flex; gap: .125rem; font-family: "Jost", "Zen Maru Gothic", sans-serif; font-size: .75rem; letter-spacing: .04em; }
.fm-langs a { padding: .125rem .5rem; border-radius: 999px; color: #99465a; opacity: .75; transition: opacity .2s, background-color .2s; }
.fm-langs a:hover { opacity: 1; }
.fm-langs a[aria-current="true"] { background: #99465a; color: #fff; opacity: 1; }
.fm-langs-pc { position: absolute; top: .5rem; right: 3.5rem; z-index: 3; }
.fm-langs-sp { display: none; }
@media only screen and (max-width: 1079px) {
  .fm-langs-pc { display: none; }
  .header nav .fm-langs-sp { display: flex; justify-content: center; margin-top: 2rem; font-size: .875rem; }
}
/* 中国語・韓国語は文字のある書体を先に */
html[lang="zh-Hans"] body { font-family: "Noto Sans SC", "Zen Maru Gothic", sans-serif; }
html[lang="ko"] body { font-family: "Noto Sans KR", "Zen Maru Gothic", sans-serif; }
.fm-langnote { font-size: .8125rem; color: #777; margin: 0 0 1rem; }

/* i18n: hero catch for long latin/hangul text */
html[lang="en"] #index .contents #fv .catch .jp,html[lang="ko"] #index .contents #fv .catch .jp{font-size:1.9vw;letter-spacing:.08em}
@media only screen and (max-width:1079px){html[lang="en"] #index .contents #fv .catch .jp,html[lang="ko"] #index .contents #fv .catch .jp{font-size:1.75rem}}
html[lang="en"] body,html[lang="ko"] body,html[lang="en"] .post p,html[lang="ko"] .post p{text-align:start}
.fm-langs-sp a{color:#fff!important;opacity:.85}.fm-langs-sp a[aria-current]{background:#fff!important;color:#99465a!important;opacity:1}
html[lang="en"] nav a small.pcNone{display:none}

/* トップ「Scroll」の線を動かす（2026-12-02、iPhoneのSafariでも動くよう transform を使わず top・height で動かす） */
#index .contents #fv .scroll::before { content: ""; width: 1px; height: 6rem; background: #99465A; opacity: .2; position: absolute; left: 0; top: 0; }
#index .contents #fv .scroll::after { -webkit-animation: fmScrollLine 2.4s ease-in-out infinite; animation: fmScrollLine 2.4s ease-in-out infinite; }
@-webkit-keyframes fmScrollLine {
  0%   { top: 0; height: 0; }
  45%  { top: 0; height: 6rem; }
  55%  { top: 0; height: 6rem; }
  100% { top: 6rem; height: 0; }
}
@keyframes fmScrollLine {
  0%   { top: 0; height: 0; }
  45%  { top: 0; height: 6rem; }
  55%  { top: 0; height: 6rem; }
  100% { top: 6rem; height: 0; }
}
/* 「動きを減らす」設定の端末では、線を伸ばさず、ゆっくり濃淡を変える */
@-webkit-keyframes fmScrollFade { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes fmScrollFade { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@media (prefers-reduced-motion: reduce) {
  #index .contents #fv .scroll::after { -webkit-animation: fmScrollFade 2.4s ease-in-out infinite; animation: fmScrollFade 2.4s ease-in-out infinite; }
}
