/* 株式会社FOODCODE コーポレートサイト
 * 旧 STUDIO サイトの見た目を再現。破断点は STUDIO と同じ 1280 / 840 / 540 / 320px */

:root {
  --text: #212128;
  /* 旧サイトは #87849f。白背景で文字のコントラスト比 4.5 以上にするため少し濃くした */
  --text-sub: #706d88;
  --line: #f6f3ee;
  --bg-beige: #fcfaf7;
  --bg-page-head: #f7f6f3;
  --font-en: "Poppins", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
  --font-ja: "Roboto", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --header-height: 90px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--font-ja);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
dl,
dd,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

.icon-external {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  vertical-align: -1px;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px 0 16px;
  background: rgba(255, 255, 255, 0.98);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  margin: 0 40px;
}

.header__logo img {
  width: 120px;
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__nav a {
  padding: 10px;
  margin-right: 16px;
  color: #000000;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.2s;
}

.header__nav a:last-child {
  margin-right: 0;
  padding-right: 0;
}

.header__nav a:hover {
  color: var(--text-sub);
}

.header__menu-button {
  display: none;
  padding: 10px;
  border: 0;
  background: none;
  color: #000000;
  cursor: pointer;
}

.header__menu-button svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* スマホのメニュー（ハンバーガーで開閉） */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  /* 閉じる時はフェードが終わってから隠す */
  transition: opacity 0.3s, visibility 0s linear 0.3s;
}

/* 開く時はすぐ表示する（表示前だと閉じるボタンにフォーカスを移せないため） */
.drawer.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0s;
}

.drawer a {
  padding: 12px;
  color: #000000;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 700;
}

.drawer__close {
  position: absolute;
  top: 34px;
  right: 24px;
  padding: 10px;
  border: 0;
  background: none;
  color: #000000;
  cursor: pointer;
}

.drawer__close svg {
  display: block;
  width: 24px;
  height: 24px;
}

/* ---------- Common section ---------- */

.section {
  padding: 120px 20px;
}

.section__title {
  margin-bottom: 60px;
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -2px;
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--header-height) 100px 0;
}

.hero__title {
  font-family: var(--font-en);
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* ---------- News（トップ） ---------- */

.top-news {
  padding-left: 80px;
  padding-right: 80px;
  border-top: 1px solid var(--line);
}

.top-news__list li + li {
  margin-top: 40px;
}

.top-news__list a {
  display: block;
  transition: opacity 0.2s;
}

.top-news__list a:hover {
  opacity: 0.6;
}

.top-news__list time {
  color: #666666;
  font-size: 14px;
  line-height: 1.4;
}

.top-news__title {
  margin-top: 4px;
  color: #333333;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.top-news__excerpt {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: #666666;
  font-size: 15px;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

/* ---------- Mission ---------- */

/* 旧サイトは中央より右寄りの配置（1440px 幅で見出し x=350 / 本文 x=770）なので左に余白を足して合わせる */
.mission__body {
  display: flex;
  justify-content: center;
  gap: 100px;
  padding-left: 240px;
}

.mission__catch {
  flex: none;
  width: 320px;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
}

.mission__text {
  width: 560px;
  font-size: 18px;
  font-weight: 300;
  line-height: 2;
}

/* ---------- Service ---------- */

.service {
  padding-left: 0;
  padding-right: 0;
}

.service__visual {
  height: 550px;
  background: url("../images/service-tokyomixcurry.webp") center / cover no-repeat;
}

.service__card {
  position: relative;
  width: 744px;
  max-width: calc(100% - 100px);
  margin: -110px 0 0 100px;
  padding: 60px;
  background: #ffffff;
}

.service__name {
  margin-bottom: 20px;
  color: rgba(33, 33, 40, 0.8);
  font-family: var(--font-en);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.05em;
}

.service__text {
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
}

.service__text + .service__text {
  margin-top: 32px;
}

.service__link {
  display: inline-block;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 700;
  line-height: 2;
  transition: color 0.2s;
}

.service__link:hover {
  color: var(--text-sub);
}

/* ---------- Team ---------- */

.team__list {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.team__member {
  width: 220px;
}

.team__photo {
  width: 220px;
  height: 220px;
  margin-bottom: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.team__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.team__role {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.team__bio {
  margin-top: 15px;
  font-size: 14px;
  line-height: 2;
}

/* ---------- Company ---------- */

.company {
  background: var(--bg-beige);
}

.company__list {
  width: 500px;
  max-width: 100%;
  margin: 0 auto;
}

.company__list dt {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.company__list dd {
  margin: 15px 0 0;
  font-size: 18px;
  line-height: 1.6;
}

.company__list dd + dt {
  margin-top: 36px;
}

/* ---------- Recruit ---------- */

.recruit__lead {
  margin-bottom: 55px;
  font-size: 18px;
  line-height: 2;
  text-align: center;
}

.recruit__links {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.recruit__links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 380px;
  height: 66px;
  padding: 0 20px;
  border: 1px solid #e8e6ef;
  border-radius: 999px;
  background: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  transition: background 0.2s;
}

.recruit__links a:hover {
  background: var(--bg-beige);
}

/* ---------- Footer ---------- */

.footer {
  padding: 120px 130px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
}

.footer__brand {
  width: 384px;
  flex: none;
}

.footer__brand img {
  width: 150px;
}

.footer__copyright {
  margin-top: 14px;
  color: var(--text-sub);
  font-size: 12px;
  line-height: 1.4;
}

.footer__links li + li {
  margin-top: 10px;
}

.footer__links a {
  font-size: 14px;
  line-height: 2;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--text-sub);
}

/* ---------- 下層ページ ---------- */

.page-head {
  padding: calc(var(--header-height) + 80px) 20px 100px;
  background: var(--bg-page-head);
}

.page-head__title {
  font-family: var(--font-en);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  text-align: center;
}

.page-body {
  width: 730px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  padding: 80px 0 120px;
}

.page-body__title {
  margin-bottom: 30px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
}

.page-body__text {
  font-size: 16px;
  line-height: 1.7;
}

.recruit-form {
  margin-top: 40px;
}

.recruit-form iframe {
  display: block;
  width: 100%;
  height: 1600px;
  border: 0;
}

.recruit-form__fallback {
  margin-top: 20px;
  font-size: 14px;
  line-height: 2;
}

.recruit-form__fallback a {
  font-weight: 700;
  text-decoration: underline;
}

/* お知らせ一覧はカードを左から並べる */
.news-page {
  padding: 55px 30px 15px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 440px));
  gap: 30px;
}

.news-list a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 50px 40px 40px;
  border: 1px solid #f0eeea;
  border-radius: 24px;
  background: #ffffff;
  transition: border-color 0.2s;
}

.news-list a:hover {
  border-color: #d9d6e3;
}

.news-list__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.news-list__excerpt {
  display: -webkit-box;
  margin-top: 30px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.news-list__more {
  margin-top: auto;
  padding-top: 30px;
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 700;
}

.news-empty {
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.article__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
}

.article__date {
  display: block;
  margin-top: 24px;
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 700;
}

.article__body {
  margin-top: 30px;
  font-size: 16px;
  line-height: 2;
}

.article__body h3 {
  margin-top: 56px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.6;
}

.article__body ul {
  margin: 14px 0;
  padding-left: 40px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.4;
  list-style: disc;
}

.article__body li + li {
  margin-top: 10px;
}

.article__body p + p {
  margin-top: 1em;
}

.article__body a {
  /* 旧サイトは #007cff。白背景でコントラスト比 4.5 以上にするため少し濃くした */
  color: #0070e6;
  text-decoration: underline;
  word-break: break-all;
}

.back-link {
  display: inline-block;
  margin-top: 60px;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- 画面に入った時のアニメーション ----------
 * 旧サイト（STUDIO）の設定を再現。.appear を付けた要素は画面に入ると一度だけ表示される。
 * 遅延と時間は要素ごとに style="--appear-delay: 400ms; --appear-duration: 1600ms;" で指定する。
 * JS が動かない環境で隠れたままにならないよう、html.js（head で付ける）のときだけ隠す */

html.js .appear {
  opacity: 0;
  transition:
    opacity var(--appear-duration, 1200ms) ease var(--appear-delay, 0ms),
    translate var(--appear-duration, 1200ms) ease var(--appear-delay, 0ms),
    scale var(--appear-duration, 1200ms) ease var(--appear-delay, 0ms);
}

/* 左からスライド（ヒーローの見出し） */
html.js .appear--slide-left {
  translate: -40px 0;
}

/* 下から上がる（下層ページの本文） */
html.js .appear--rise {
  translate: 0 20px;
}

/* 小さい状態から拡大（Recruit のボタン） */
html.js .appear--zoom {
  scale: 0.8;
}

/* Recruit のボタンはホバー時の背景色の変化も残す */
html.js .recruit__links a.appear {
  transition:
    opacity var(--appear-duration, 1200ms) ease var(--appear-delay, 0ms),
    scale var(--appear-duration, 1200ms) ease var(--appear-delay, 0ms),
    background 0.2s;
}

html.js .appear.is-visible {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

@media (prefers-reduced-motion: reduce) {
  html.js .appear {
    opacity: 1;
    translate: none;
    scale: none;
    transition: none;
  }
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 1280px) {
  .mission__body {
    padding-left: 0;
  }

  .footer {
    padding-left: 60px;
    padding-right: 60px;
  }
}

@media screen and (max-width: 840px) {
  .header__nav {
    display: none;
  }

  .header__menu-button {
    display: block;
  }

  .section {
    padding: 80px 32px;
  }

  .section__title {
    margin-bottom: 50px;
  }

  .hero {
    padding: var(--header-height) 40px 0;
  }

  .hero__title {
    font-size: 48px;
  }

  .mission__body {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .mission__catch {
    width: auto;
    font-size: 24px;
    text-align: center;
  }

  .mission__text {
    width: 100%;
    font-size: 14px;
  }

  .service {
    padding-left: 0;
    padding-right: 0;
  }

  .service__visual {
    height: 300px;
  }

  .service__card {
    width: auto;
    max-width: none;
    margin: -50px 40px 0 0;
    padding: 40px 32px 0;
  }

  .service__name {
    font-size: 22px;
  }

  .service__text {
    font-size: 14px;
  }

  .service__link {
    margin-top: 20px;
  }

  .team__list {
    flex-direction: column;
    align-items: center;
    gap: 70px;
  }

  .team__member {
    width: 100%;
  }

  .team__photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .team__name,
  .team__role {
    font-size: 20px;
  }

  .company__list dt {
    font-size: 14px;
  }

  .company__list dd {
    margin-top: 15px;
    font-size: 14px;
  }

  .company__list dd + dt {
    margin-top: 20px;
  }

  .recruit__lead {
    margin-bottom: 40px;
    font-size: 14px;
    text-align: left;
  }

  .recruit__links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .recruit__links a {
    width: 100%;
    font-size: 14px;
  }

  .footer {
    padding: 80px 40px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer__brand {
    width: auto;
  }

  .footer__brand img {
    width: 100px;
  }

  .page-head {
    padding: calc(var(--header-height) + 50px) 20px 60px;
  }

  .page-head__title {
    font-size: 32px;
  }

  .page-body {
    padding: 50px 0 80px;
  }

  .page-body__title {
    font-size: 22px;
  }

  .page-body__text {
    font-size: 14px;
  }

  .top-news {
    padding-left: 60px;
    padding-right: 60px;
  }

  .top-news__list time {
    font-size: 12px;
  }

  .top-news__title {
    font-size: 20px;
  }

  .news-page {
    padding: 40px 20px;
  }

  .news-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .news-list a {
    padding: 40px 30px 30px;
  }

  .article__title {
    font-size: 24px;
  }

  .article__body {
    font-size: 14px;
  }

  .article__body h3 {
    margin-top: 40px;
    font-size: 20px;
  }

  .article__body ul {
    padding-left: 24px;
    font-size: 14px;
  }
}

@media screen and (max-width: 540px) {
  .header__inner {
    margin: 0 24px;
  }

  .header__logo img {
    width: 110px;
  }

  .hero {
    padding: var(--header-height) 25px 0;
  }
}

@media screen and (max-width: 320px) {
  .header__logo img {
    width: 100px;
  }

  .section {
    padding: 40px 20px;
  }

  .hero__title {
    font-size: 40px;
  }
}
