/* petashe コーポレートサイト
   色・書体は docs/brand-guidelines.md（ベージュ #F3EFE7、Noto Sans JP + Jost、文字 #1E1D1B）に合わせる */

:root {
  --beige: #F3EFE7;
  --beige-deep: #E9E2D5;
  --paper: #FBF9F5;
  --ink: #1E1D1B;
  --ink-soft: #5A554D;
  --line: #DCD4C6;
  --accent: #9A6B43;
  --accent-dark: #7E5533;
  --radius: 14px;
  --max: 1160px;
  --font-ja: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --font-en: "Jost", "Noto Sans JP", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ja);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: .02em;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.4; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ヘッダー */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
  font-family: var(--font-en); font-weight: 600; font-size: 28px; letter-spacing: .01em;
  text-decoration: none; color: var(--ink);
}
.nav ul { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--accent); }
.nav__cta {
  border: 1px solid var(--accent); color: var(--accent) !important;
  padding: 7px 18px; border-radius: 999px;
}
.nav__cta:hover { background: var(--accent); color: #fff !important; }
.nav-toggle { display: none; }

/* 共通 */
.eyebrow { font-family: var(--font-en); font-size: 13px; letter-spacing: .2em; color: var(--accent); font-weight: 500; margin-bottom: 10px; }
.eyebrow--light { color: #D9BFA4; }
.section { padding: 96px 0; }
.section--tint { background: var(--beige); }
.section--dark { background: var(--ink); color: var(--beige); }
.section__head { margin-bottom: 48px; }
.section__title { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: .04em; }
.section__lead { margin-top: 14px; color: var(--ink-soft); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--ink); color: var(--beige); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--beige); }
.btn--light { background: var(--beige); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--block { width: 100%; }

/* ヒーロー */
.hero { background: var(--beige); padding: 72px 0 96px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: .06em; line-height: 1.35; }
.hero__lead { margin-top: 24px; color: var(--ink-soft); max-width: 30em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__visual { position: relative; padding-bottom: 48px; }
.hero__img { border-radius: var(--radius); object-fit: cover; }
.hero__img--main { width: 100%; aspect-ratio: 4 / 3; }
.hero__img--sub {
  position: absolute; left: -40px; bottom: 0; width: 38%; aspect-ratio: 1;
  border: 6px solid var(--beige); box-shadow: 0 12px 30px rgba(30, 29, 27, .12);
}

/* ABOUT */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; }
.about .section__head { margin-bottom: 0; }
.about__body p + p { margin-top: 1.2em; }
.about__body { color: var(--ink-soft); }

/* 事業内容 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--paper); border-radius: var(--radius); padding: 36px 30px;
  display: flex; flex-direction: column; gap: 14px;
}
.card__num { font-family: var(--font-en); font-size: 40px; font-weight: 500; color: var(--accent); line-height: 1; }
.card__title { font-size: 20px; }
.card__en { font-family: var(--font-en); font-size: 12px; letter-spacing: .2em; color: var(--ink-soft); margin-top: -10px; }
.card p:not(.card__num):not(.card__en) { font-size: 15px; color: var(--ink-soft); }
.card__link { margin-top: auto; font-weight: 700; font-size: 15px; color: var(--accent-dark); text-underline-offset: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tags li { font-size: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; background: #fff; }

/* 取扱商品 */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
.product h3 { font-size: 17px; }
.product__en { font-family: var(--font-en); font-size: 11px; letter-spacing: .2em; color: var(--accent); }
.product p:last-child { margin-top: 8px; font-size: 14px; color: var(--ink-soft); line-height: 1.8; }

/* 卸売り */
.wholesale { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.wholesale__text > p { margin-top: 20px; color: #CFC7BA; }
.checks { margin-top: 28px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 9px;
  border-left: 2px solid #D9BFA4; border-bottom: 2px solid #D9BFA4; transform: rotate(-45deg);
}
.wholesale__img img { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; }

/* 取引の流れ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.flow li { border-top: 2px solid var(--ink); padding-top: 20px; }
.flow__step { font-family: var(--font-en); font-size: 13px; letter-spacing: .15em; color: var(--accent); font-weight: 600; }
.flow h3 { font-size: 17px; margin: 6px 0 8px; }
.flow p { font-size: 14px; color: var(--ink-soft); }

/* 発注システム */
.order__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.features { display: grid; gap: 16px; }
.features li { background: var(--paper); border-radius: var(--radius); padding: 22px 26px; }
.features h3 { font-size: 17px; margin-bottom: 4px; }
.features p { font-size: 14px; color: var(--ink-soft); }
.login-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; display: grid; gap: 16px;
}
.login-box__title { font-weight: 700; font-size: 18px; }
.login-box__note { font-size: 13px; color: var(--ink-soft); }
.login-box__note a { color: var(--accent-dark); }

/* 会社概要 */
.company { display: grid; grid-template-columns: 1fr 2.4fr; gap: 56px; }
.company__table { margin: 0; border-top: 1px solid var(--line); }
.company__table div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.company__table dt { font-weight: 700; }
.company__table dd { margin: 0; color: var(--ink-soft); }
.company__table a { color: var(--accent-dark); }

/* お問い合わせ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact__box { background: var(--paper); border-radius: var(--radius); padding: 36px 32px; display: grid; gap: 12px; align-content: start; }
.contact__label { font-weight: 700; }
.contact__tel { font-family: var(--font-en); font-size: 34px; font-weight: 600; text-decoration: none; letter-spacing: .04em; }
.contact__note { font-size: 13px; color: var(--ink-soft); }

/* フッター */
.footer { background: var(--ink); color: #CFC7BA; padding: 56px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.logo--footer { color: var(--beige); }
.footer__company { font-size: 13px; margin-top: 10px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__copy { text-align: center; font-family: var(--font-en); font-size: 12px; margin-top: 40px; letter-spacing: .1em; }

/* タブレット */
@media (max-width: 960px) {
  .nav-toggle {
    display: block; width: 44px; height: 44px; border: 0; background: transparent; position: relative; cursor: pointer;
  }
  .nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); content: ""; transition: transform .2s, top .2s;
  }
  .nav-toggle__bar { top: 21px; }
  .nav-toggle__bar::before { left: 0; top: -7px; }
  .nav-toggle__bar::after { left: 0; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .nav a { display: block; padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: 12px; text-align: center; border-bottom: 1px solid var(--accent) !important; }

  .hero__inner, .about, .wholesale, .order__grid, .company { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .hero__img--sub { left: auto; right: 16px; }
}

/* スマートフォン */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section__head { margin-bottom: 32px; }
  .hero { padding: 40px 0 64px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .products { gap: 16px; }
  .product p:last-child { font-size: 13px; }
  .flow { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .company__table div { grid-template-columns: 1fr; gap: 4px; }
  .card { padding: 28px 22px; }
}
