@charset "utf-8";
/* ==========================================================================
   RAYFORD CO.,LTD. コーポレートサイト  共通スタイル
   制作: XG（ベンジー）/ 2026-08-12 ドラフト
   構成: 1.変数 2.リセット 3.共通部品 4.ヘッダー 5.フッター
         6.トップページ 7.下層ページ 8.フォーム 9.レスポンシブ
   ========================================================================== */

/* --- 1. 変数 ------------------------------------------------------------ */
:root {
  --c-ink:      #16110f;   /* 基本文字色・濃い背景 */
  --c-ink-2:    #241a17;
  --c-wine:     #6b1d2b;   /* アクセント（ボルドー） */
  --c-wine-dk:  #4d1420;
  --c-gold:     #c2a15a;   /* 英字見出し・罫線 */
  --c-paper:    #faf7f2;   /* 基本背景 */
  --c-paper-2:  #f1ece3;
  --c-line:     #ded5c8;
  --c-text:     #2c2622;
  --c-text-sub: #6d635c;
  --c-white:    #ffffff;
  --c-err:      #b4232b;

  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-sans:  "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;

  --w-max: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* --- 2. リセット --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-text);
  background: var(--c-paper);
  letter-spacing: .02em;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-wine); text-decoration: none; transition: opacity .2s var(--ease); }
a:hover { opacity: .7; }
h1, h2, h3, h4 { font-family: var(--f-serif); font-weight: 600; line-height: 1.5; margin: 0; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.skip-link {
  position: absolute; left: 0; top: -60px; z-index: 200;
  background: var(--c-wine); color: #fff; padding: 10px 16px;
}
.skip-link:focus { top: 0; }

/* --- 3. 共通部品 --------------------------------------------------------- */
.wrap { width: min(100% - 40px, var(--w-max)); margin-inline: auto; }
.section { padding: 96px 0; }
.section--paper2 { background: var(--c-paper-2); }
.section--ink { background: var(--c-ink); color: #e8e1d8; }
.section--ink h2, .section--ink h3 { color: #fff; }

/* 見出し（日本語 + 英字） */
.head { text-align: center; margin-bottom: 56px; }
.head__ja { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: .08em; }
.head__en {
  display: block; margin-top: 10px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 500;
  letter-spacing: .3em; color: var(--c-gold); text-transform: uppercase;
}
.head--left { text-align: left; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 0 34px;
  font-family: var(--f-sans); font-size: 15px; font-weight: 500; letter-spacing: .08em;
  border: 1px solid var(--c-wine); border-radius: 2px;
  background: var(--c-wine); color: #fff; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), opacity .25s var(--ease);
}
.btn:hover { background: var(--c-wine-dk); border-color: var(--c-wine-dk); opacity: 1; color: #fff; }
.btn--ghost { background: transparent; color: var(--c-wine); }
.btn--ghost:hover { background: var(--c-wine); color: #fff; }
.btn--light { background: transparent; border-color: rgba(255,255,255,.65); color: #fff; }
.btn--light:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--block { width: 100%; }
.btn__arrow { font-size: 12px; }

/* --- 4. ヘッダー --------------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(22,17,15,.86);
  backdrop-filter: blur(10px);
  transition: background .3s var(--ease);
}
.header__inner {
  width: min(100% - 32px, 1280px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__logo img { height: 42px; width: auto; }
.gnav { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.gnav a {
  color: #efe9e1; font-size: 14px; letter-spacing: .1em; position: relative; padding: 6px 0;
}
.gnav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--c-gold); transition: width .3s var(--ease);
}
.gnav a:hover { opacity: 1; }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { width: 100%; }
.header__cta {
  min-height: 42px; padding: 0 20px; font-size: 13px;
  border: 1px solid var(--c-gold); color: var(--c-gold); background: transparent;
  border-radius: 2px; display: inline-flex; align-items: center; letter-spacing: .08em;
}
.header__cta:hover { background: var(--c-gold); color: var(--c-ink); opacity: 1; }
/* PCではヘッダー右のCTAボタンを使うため、ナビ内のログインは隠す */
.gnav__mobile-only { display: none; }
.burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 24px; height: 1px; margin: 6px auto; background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 5. フッター --------------------------------------------------------- */
.footer { background: var(--c-ink); color: #cbc2b8; padding: 64px 0 28px; }
.footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.footer__logo img { height: 54px; width: auto; margin-bottom: 14px; }
.footer__addr { font-size: 13px; line-height: 2; color: #a99f95; margin: 0; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.footer__nav a { color: #cbc2b8; font-size: 13px; letter-spacing: .06em; }
.footer__sns { display: flex; gap: 14px; margin-top: 18px; }
.footer__sns a {
  width: 38px; height: 38px; border: 1px solid #4a423c; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #cbc2b8;
}
.footer__sns a:hover { background: var(--c-gold); border-color: var(--c-gold); color: var(--c-ink); opacity: 1; }
.footer__sns svg { width: 17px; height: 17px; fill: currentColor; }
.footer__copy {
  margin-top: 44px; padding-top: 20px; border-top: 1px solid #332b26;
  font-size: 12px; color: #8b8078; text-align: center; letter-spacing: .06em;
}

/* 共通CTA（お問い合わせ帯） */
.cta-band { background: var(--c-ink-2); color: #eae3da; text-align: center; padding: 80px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cdc4ba; }

/* --- 6. トップページ ----------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; }
.hero__bg { position: absolute; inset: 0; overflow: hidden; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,8,7,.86) 0%, rgba(12,8,7,.62) 45%, rgba(12,8,7,.35) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: calc(var(--header-h) + 40px) 0 60px; }
.hero__brand { font-family: var(--f-serif); font-size: 13px; letter-spacing: .5em; color: var(--c-gold); margin-bottom: 22px; }
.hero__title { font-size: clamp(26px, 4.4vw, 48px); line-height: 1.55; letter-spacing: .04em; }
.hero__lead { margin-top: 24px; font-size: clamp(14px, 1.5vw, 17px); line-height: 2.1; color: #e4ded6; }
.hero__actions { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.intro__body p:last-child { margin-bottom: 0; }
.intro__img img { border-radius: 2px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.service { background: #fff; border: 1px solid var(--c-line); border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.service__img { aspect-ratio: 4 / 3; overflow: hidden; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.service:hover .service__img img { transform: scale(1.05); }
.service__body { padding: 26px 24px 30px; }
.service__title { font-size: 19px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line); }
.service__text { font-size: 14px; line-height: 2; color: var(--c-text-sub); margin: 0; }

.wines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.wine { text-align: center; }
.wine__img { background: #fff; border: 1px solid #2e2723; aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 22px; }
.section--ink .wine__img { background: #fff; }
.wine__img img { max-height: 100%; width: auto; object-fit: contain; }
.wine__en { margin-top: 20px; font-family: var(--f-serif); font-size: 13px; letter-spacing: .18em; color: var(--c-gold); }
.wine__ja { font-family: var(--f-serif); font-size: 19px; margin-top: 6px; }
.wine__text { margin-top: 12px; font-size: 13.5px; line-height: 2; color: #b7ada3; text-align: left; }

.newslist { border-top: 1px solid var(--c-line); }
.newslist li { border-bottom: 1px solid var(--c-line); }
.newslist a { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; padding: 24px 4px; color: var(--c-text); }
.newslist a:hover { opacity: 1; color: var(--c-wine); background: rgba(107,29,43,.03); }
.newslist time { font-size: 13px; letter-spacing: .08em; color: var(--c-text-sub); min-width: 8em; }
.newslist__title { font-size: 15.5px; }
.newslist__more { text-align: center; margin-top: 44px; }

.recommend { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* --- 7. 下層ページ ------------------------------------------------------- */
.pagehead {
  position: relative; padding: calc(var(--header-h) + 78px) 0 78px;
  background: var(--c-ink); color: #fff; text-align: center; overflow: hidden;
}
.pagehead::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 0%, rgba(107,29,43,.55) 0%, rgba(22,17,15,0) 70%);
}
.pagehead > * { position: relative; }
.pagehead__ja { font-size: clamp(24px, 3.6vw, 36px); letter-spacing: .1em; }
.pagehead__en { display: block; margin-top: 10px; font-family: var(--f-sans); font-size: 12px; letter-spacing: .3em; color: var(--c-gold); }
.breadcrumb { font-size: 12px; color: var(--c-text-sub); padding: 18px 0 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "／"; margin-right: 8px; color: var(--c-line); }

.narrow { width: min(100% - 40px, 820px); margin-inline: auto; }

/* 会社概要テーブル */
.table-profile { width: 100%; border-collapse: collapse; }
.table-profile th, .table-profile td {
  text-align: left; padding: 22px 8px; border-bottom: 1px solid var(--c-line); vertical-align: top;
  font-size: 15px; font-weight: 400;
}
.table-profile th { width: 200px; font-family: var(--f-serif); letter-spacing: .08em; color: var(--c-ink); }

/* 規約・ポリシー本文 */
.doc h2 { font-size: 19px; margin: 44px 0 14px; padding-left: 14px; border-left: 3px solid var(--c-wine); }
.doc h2:first-child { margin-top: 0; }
.doc ol, .doc ul { margin: 0 0 1em; padding-left: 1.4em; }
.doc ol { list-style: decimal; }
.doc ul { list-style: disc; }
.doc li { margin-bottom: .4em; }
.doc__date { margin-top: 48px; font-size: 14px; color: var(--c-text-sub); }

/* 記事本文 */
.article__meta { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--c-text-sub); margin-bottom: 14px; }
.article__cat { background: var(--c-wine); color: #fff; padding: 3px 12px; font-size: 12px; letter-spacing: .06em; }
.article__title { font-size: clamp(21px, 3vw, 30px); padding-bottom: 22px; border-bottom: 1px solid var(--c-line); margin-bottom: 34px; }
.article__body h2 { font-size: 20px; margin: 40px 0 14px; }
.article__nav { margin-top: 56px; text-align: center; }

/* 注記（要確認プレースホルダ） */
.note-check {
  background: #fff8e6; border: 1px dashed #d8ab3a; color: #7a5a12;
  padding: 14px 18px; font-size: 13.5px; line-height: 1.9; margin: 0 0 24px;
}

/* --- 8. フォーム --------------------------------------------------------- */
.form { margin-top: 8px; }
.form__row { margin-bottom: 28px; }
.form__label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; margin-bottom: 10px; }
.badge { font-size: 11px; letter-spacing: .06em; padding: 3px 9px; border-radius: 2px; }
.badge--req { background: var(--c-wine); color: #fff; }
.badge--opt { background: #e6e0d6; color: var(--c-text-sub); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"],
.form input[type="password"], .form input[type="file"], .form select, .form textarea {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 15px; color: var(--c-text);
  background: #fff; border: 1px solid var(--c-line); border-radius: 2px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form textarea { min-height: 190px; resize: vertical; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--c-text-sub) 50%), linear-gradient(135deg, var(--c-text-sub) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.form :is(input, select, textarea):focus {
  outline: none; border-color: var(--c-wine); box-shadow: 0 0 0 3px rgba(107,29,43,.12);
}
.form__note { font-size: 12.5px; color: var(--c-text-sub); margin: 8px 0 0; }
.form__error { display: none; color: var(--c-err); font-size: 12.5px; margin-top: 6px; }
.form__row.is-error .form__error { display: block; }
.form__row.is-error :is(input, select, textarea) { border-color: var(--c-err); }
.form__check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.form__check input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--c-wine); }
.form__submit { margin-top: 40px; text-align: center; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__links { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; text-align: center; }

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: 2px;
  padding: 44px 40px;
}
.terms-box {
  max-height: 260px; overflow-y: auto; border: 1px solid var(--c-line);
  background: #fff; padding: 20px 22px; font-size: 13.5px; line-height: 1.95;
}
.terms-box h3 { font-size: 15px; margin: 16px 0 6px; }
.terms-box h3:first-child { margin-top: 0; }

/* ダウンロード一覧 */
.dl-table { width: 100%; border-collapse: collapse; background: #fff; }
.dl-table th, .dl-table td { padding: 16px 14px; border: 1px solid var(--c-line); font-size: 14.5px; text-align: left; }
.dl-table th { background: var(--c-paper-2); font-family: var(--f-serif); font-weight: 600; }
.dl-table .is-num { text-align: right; white-space: nowrap; }

/* --- 9. レスポンシブ ----------------------------------------------------- */
@media (max-width: 1024px) {
  .intro { grid-template-columns: 1fr; gap: 40px; }
  .services { grid-template-columns: 1fr; gap: 28px; }
  .service { flex-direction: row; }
  .service__img { width: 40%; aspect-ratio: auto; flex-shrink: 0; }
  .wines { grid-template-columns: 1fr; gap: 44px; max-width: 460px; margin-inline: auto; }
  .recommend { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .section { padding: 68px 0; }
  .burger { display: block; }
  .header__cta { display: none; }
  .gnav__mobile-only { display: block; }
  .gnav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(22,17,15,.98); padding: 12px 0 26px;
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .gnav.is-open { transform: none; opacity: 1; visibility: visible; }
  .gnav a { padding: 16px 24px; border-bottom: 1px solid #2e2622; font-size: 15px; }
  .gnav a::after { display: none; }
  .gnav .gnav__cta { color: var(--c-gold); }
  .service { flex-direction: column; }
  .service__img { width: 100%; aspect-ratio: 16 / 9; }
  .table-profile th, .table-profile td { display: block; width: 100%; padding: 0; border: 0; }
  .table-profile th { padding-top: 20px; font-size: 13px; color: var(--c-text-sub); }
  .table-profile td { padding: 4px 0 18px; border-bottom: 1px solid var(--c-line); }
  .card { padding: 30px 22px; }
  .newslist time { min-width: auto; width: 100%; }
  .hero { min-height: 88svh; }
  .footer__top { flex-direction: column; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* スクロールインの簡易演出
   ※ JSが無効／読み込み失敗の場合にコンテンツが消えないよう、
     html.js が付いているときだけ非表示から始める（head内インラインJSで付与）。 */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
