/* 有限会社魚藤水産 ホームページ（2026-11）
   色：工場の青いかごと大洗の海（浅葱・藍）、縞ほっけの縞（芥子）、塩の白
   文字：見出し Zen Antique（昔の活字の明朝）／本文 Zen Kaku Gothic New */

:root {
  --shio: #f6f8f8;        /* 塩：地の色 */
  --sumi: #1b2a38;        /* 藍墨：本文 */
  --ai: #173a52;          /* 藍：濃い面 */
  --ai-fukai: #0f2a3d;    /* 深い藍：いちばん下 */
  --asagi: #3f97ad;       /* 浅葱：線と小さな飾り */
  --asagi-usu: #e3eff2;   /* 浅葱の薄色：面 */
  --karashi: #c99f35;     /* 芥子：主なボタン */
  --karashi-koi: #b58c26;
  --nibi: #586775;        /* 鈍色：補足の文字 */
  --line: #cfdde2;

  --display: "Zen Antique", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--shio);
  color: var(--sumi);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.95;
  letter-spacing: .02em;
  font-feature-settings: "palt" 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ai); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--sumi); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--karashi); outline-offset: 3px; }
p { margin: 0 0 1.1em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--sumi); color: #fff; padding: 8px 14px; border-radius: 4px;
}
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 頭 ---------- */
.site-head { background: var(--shio); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.mark { text-decoration: none; color: var(--sumi); display: flex; align-items: baseline; gap: .5em; line-height: 1; }
.mark small { font-size: 12px; color: var(--nibi); letter-spacing: .1em; }
.mark span { font-family: var(--display); font-size: 25px; letter-spacing: .12em; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--sumi); }
.nav a:hover { text-decoration: underline; }
.nav .to-contact { border: 1.5px solid var(--ai); color: var(--ai); padding: 6px 14px; border-radius: 3px; }
.nav .to-contact:hover { background: var(--ai); color: #fff; text-decoration: none; }

/* ---------- 最初の画面 ---------- */
.hero { display: grid; grid-template-columns: minmax(340px, 36%) 1fr; min-height: min(86vh, 780px); background: var(--shio); }
.hero-text {
  display: grid; grid-template-rows: 1fr auto; gap: 28px;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 3.2vw, 48px) clamp(28px, 3.6vw, 48px);
}
.hero-title {
  justify-self: center; align-self: start;
  margin: 0;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 8.6vh, 84px);
  line-height: 1.45;
  letter-spacing: .14em;
  color: var(--sumi);
}
.hero-title .line { display: block; }
.hero-lead { margin: 0 0 18px; font-size: 16px; line-height: 1.9; max-width: 22em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-photo { position: relative; overflow: hidden; background: var(--ai); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }

/* 読み込みのときだけ、縦書きの見出しが上から書かれていく（一度だけの動き） */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line { animation: kaku 1.1s cubic-bezier(.4, 0, .2, 1) both; }
  .hero-title .line + .line { animation-delay: .75s; }
  @keyframes kaku { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.4;
  padding: 13px 22px; border-radius: 3px; border: 1.5px solid transparent;
}
.btn-main { background: var(--karashi); color: var(--sumi); }
.btn-main:hover { background: var(--karashi-koi); color: var(--sumi); text-decoration: none; }
.btn-sub { border-color: var(--sumi); color: var(--sumi); background: transparent; }
.btn-sub:hover { background: var(--sumi); color: #fff; text-decoration: none; }

/* ---------- お知らせ ---------- */
.news { background: var(--asagi-usu); }
.news .wrap { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding-top: 16px; padding-bottom: 16px; font-size: 15px; }
.news h2 { margin: 0; font-size: 14px; font-weight: 700; color: var(--ai); }
.news time { color: var(--nibi); }

/* ---------- 各段 ---------- */
.block { padding: clamp(72px, 10vw, 128px) 0; }
.block h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(24px, 3.4vw, 38px); line-height: 1.5; letter-spacing: .06em;
  margin: 0 0 32px; color: var(--sumi);
  word-break: auto-phrase; text-wrap: balance;
}
.prose { max-width: 36em; }
.nb { display: inline-block; }   /* 見出しの中で、この区切りの途中では折り返さない */

/* 私たちについて */
.photos { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(48px, 7vw, 88px); align-items: start; }
.photos figure { margin: 0; }
.photos figure:last-child { margin-top: clamp(40px, 8vw, 120px); }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.photos figcaption { font-size: 13px; color: var(--nibi); margin-top: 8px; }


/* 事業承継 */
.shokei { background: var(--ai); color: #eef4f6; }
.shokei h2 { color: #fff; }
.shokei-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.shokei-grid figure { margin: 8px 0 0; }
.shokei-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.shokei-grid figcaption { font-size: 13px; color: #b7cbd4; margin-top: 8px; }
.shokei-grid .portrait img { aspect-ratio: 4 / 5; object-position: 50% 30%; max-width: 420px; margin-left: auto; }
.shokei .prose { font-size: 17px; }
.shokei .sign-name { margin-top: 32px; font-size: 15px; color: #cfe1e8; }
.shokei .sign-name b { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .1em; color: #fff; margin-left: .4em; }
.shokei a { color: #fff; }
.shokei .links { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }

/* お取り寄せ・お問い合わせ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); }
.two-col h2 { font-size: clamp(24px, 2.8vw, 30px); }
.contact-list { margin: 24px 0 0; }
.contact-list div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list dt { color: var(--nibi); }
.contact-list dd { margin: 0; }
.note { font-size: 14px; color: var(--nibi); }

/* 会社概要 */
.company { border-top: 1px solid var(--line); }
.company-table { margin: 0; border-top: 2px solid var(--sumi); max-width: 820px; }
.company-table div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company-table dt { font-weight: 700; color: var(--ai); font-size: 15px; }
.company-table dd { margin: 0; font-size: 15px; line-height: 1.85; }

/* ---------- いちばん下 ---------- */
.site-foot { background: var(--ai-fukai); color: #c9d7de; font-size: 14px; padding: 48px 0 40px; }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.site-foot .mark span { color: #fff; }
.site-foot .mark small { color: #9fb5c0; }
.site-foot address { font-style: normal; margin-top: 12px; line-height: 1.8; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; }
.site-foot a { color: #fff; }
.copy { grid-column: 1 / -1; font-size: 12px; color: #8ea6b2; margin: 8px 0 0; }

/* ---------- 下層ページ（お問い合わせ・プライバシーポリシー・404） ---------- */
.page { padding: clamp(48px, 8vw, 96px) 0 clamp(72px, 10vw, 120px); }
.page h1 {
  font-family: var(--display); font-weight: 400; letter-spacing: .08em;
  font-size: clamp(30px, 4vw, 42px); line-height: 1.4; margin: 0 0 24px;
  word-break: auto-phrase; text-wrap: balance;
}
.page h2 { font-size: 19px; margin: 44px 0 12px; color: var(--ai); }
.page .prose p, .page .prose li { font-size: 16px; }
.page ol, .page ul { padding-left: 1.4em; }

/* フォーム */
.form { max-width: 720px; margin-top: 36px; }
.form-row { margin: 0 0 26px; border: 0; padding: 0; }
.form-row > label, .form-row legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.need, .opt { font-size: 12px; font-weight: 500; margin-left: 8px; padding: 1px 7px; border-radius: 2px; vertical-align: 1px; }
.need { background: var(--ai); color: #fff; }
.opt { background: var(--asagi-usu); color: var(--nibi); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
  width: 100%; font: inherit; font-size: 16px; line-height: 1.6; color: var(--sumi);
  background: #fff; border: 1.5px solid #b9cbd2; border-radius: 3px; padding: 12px 14px;
}
.form textarea { min-height: 200px; resize: vertical; }
.form input:focus, .form textarea:focus { border-color: var(--ai); outline: 3px solid rgba(201, 159, 53, .55); outline-offset: 0; }
.choices { display: grid; gap: 8px; }
.choices label, .agree label { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 15px; cursor: pointer; }
.choices input, .agree input { margin-top: .45em; width: 18px; height: 18px; accent-color: var(--ai); flex: none; }
.hint { font-size: 13px; color: var(--nibi); margin: 6px 0 0; }
.err { color: #a3261b; font-size: 14px; font-weight: 700; margin: 8px 0 0; }
.has-err input[type="text"], .has-err input[type="email"], .has-err input[type="tel"], .has-err textarea { border-color: #a3261b; }
.alert { border-left: 4px solid #a3261b; background: #fbefed; padding: 14px 18px; margin: 24px 0 0; font-size: 15px; }
.done { border-left: 4px solid var(--asagi); background: var(--asagi-usu); padding: 18px 20px; margin: 28px 0 0; }
.done p:last-child, .alert p:last-child { margin-bottom: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .btn-main { font-size: 16px; padding: 15px 34px; border: 0; cursor: pointer; font-family: inherit; }

/* ---------- 幅が狭いとき ---------- */
@media (max-width: 900px) {
  .nav a:not(.to-contact) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 4 / 3; height: auto; }
  .hero-text { grid-template-columns: 1fr; grid-template-rows: auto; gap: 24px; padding: 32px var(--gutter) 40px; }
  .hero-title { justify-self: center; font-size: clamp(42px, 12vw, 58px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { padding: 12px 14px; font-size: 14px; white-space: nowrap; text-align: center; }
  .shokei-grid { grid-template-columns: 1fr; }
  .shokei-grid .portrait img { margin: 0 auto; max-width: 320px; }
  .two-col { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr; }
  .photos figure:last-child { margin-top: 0; width: 82%; margin-left: auto; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .site-foot nav { justify-content: flex-start; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .company-table div, .contact-list div { grid-template-columns: 1fr; gap: 2px; }
  .mark span { font-size: 22px; }
}
