/* =========================================================
   ワイスリー海産工房（Y3 Marine Foods）
   ポートフォリオサイト 共通スタイル
   ---------------------------------------------------------
   トーン：紺×金（高級感ある贈答ブランド系）
========================================================= */

/* =========================================================
   1. テーマ変数
========================================================= */

/* 🅰 テーマA：贈答・高級老舗（初期値）
      生成り背景 × 紺紺 × 金 */
:root[data-theme="A"] {
  --color-bg:        #FAF6EC;  /* 生成り */
  --color-bg-soft:   #F0E9D2;
  --color-bg-dark:   #102540;  /* 深紺 */
  --color-text:      #1A1F2C;
  --color-text-inv:  #FAF6EC;
  --color-accent:    #B8943C;  /* 金 */
  --color-sub:       #5C5A52;
  --color-border:    rgba(26,31,44,0.16);
  --color-card:      #FFFFFF;
  --shadow-soft:     0 6px 22px rgba(16,37,64,0.10);
}

/* 🅱 テーマB：白×紺×銀（モダンで清廉な贈答） */
:root[data-theme="B"] {
  --color-bg:        #FFFFFF;
  --color-bg-soft:   #F2F4F7;
  --color-bg-dark:   #1B2A4D;
  --color-text:      #1A1F2C;
  --color-text-inv:  #FFFFFF;
  --color-accent:    #5170A8;  /* 落ち着いた青 */
  --color-sub:       #6A7286;
  --color-border:    rgba(26,31,44,0.14);
  --color-card:      #FAFBFD;
  --shadow-soft:     0 6px 22px rgba(27,42,77,0.10);
}

/* 🅲 テーマC：墨×朱×金（伝統・職人ブランド） */
:root[data-theme="C"] {
  --color-bg:        #F5F0E5;
  --color-bg-soft:   #E9E1CC;
  --color-bg-dark:   #1F1A16;
  --color-text:      #1F1A16;
  --color-text-inv:  #F5F0E5;
  --color-accent:    #B33B2A;  /* 朱 */
  --color-sub:       #6F6450;
  --color-border:    rgba(31,26,22,0.16);
  --color-card:      #FFFCF5;
  --shadow-soft:     0 6px 22px rgba(31,26,22,0.10);
}

/* =========================================================
   2. ベース・タイポ
========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
  padding-bottom: 80px;
}

h1, h2, h3, h4 {
  font-family: "Shippori Mincho", "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.04em;
}

.en-heading {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  letter-spacing: 0.16em;
  color: var(--color-accent);
  font-size: 0.95rem;
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { opacity: 0.8; }

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

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto; margin-right: auto;
  padding-left: 20px; padding-right: 20px;
}

.section { padding: 64px 0; }
.section--soft { background-color: var(--color-bg-soft); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: 1.9rem; }

/* =========================================================
   3. ヘッダー
========================================================= */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  max-width: 1200px; margin: 0 auto;
  gap: 12px;
}

.site-logo {
  font-family: "Shippori Mincho", "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.site-logo small {
  display: block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--color-sub);
  margin-top: 2px;
}

.nav-desktop { display: none; gap: 24px; align-items: center; }
.nav-desktop a {
  font-size: 0.9rem;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
}
.nav-desktop a.is-current::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background-color: var(--color-accent);
}

.hamburger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 36px; height: 36px; background: transparent; border: none;
  cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background-color: var(--color-text);
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 20px 24px;
  flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-soft);
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-size: 1rem; padding: 8px 0;
  border-bottom: 1px solid var(--color-border);
}

/* テーマ切替UI */
.theme-switcher { position: relative; }
.theme-switcher-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background-color: transparent;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  font-family: inherit; font-size: 0.8rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.theme-switcher-btn:hover { border-color: var(--color-accent); }
.theme-switcher-btn .theme-icon {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-bg-dark) 100%);
  border: 1px solid var(--color-border);
}

.theme-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 240px;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  padding: 8px;
  display: none; z-index: 60;
}
.theme-menu.is-open { display: block; }
.theme-menu button {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  background: transparent; border: none; border-radius: 6px;
  font-family: inherit; font-size: 0.85rem;
  color: var(--color-text); text-align: left; cursor: pointer;
  transition: background-color .15s ease;
}
.theme-menu button:hover { background-color: var(--color-bg-soft); }
.theme-menu button.is-active { background-color: var(--color-bg-soft); font-weight: 600; }

.theme-menu .swatch { display: inline-flex; gap: 2px; flex-shrink: 0; }
.theme-menu .swatch span {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
}
.swatch-A span:nth-child(1) { background: #102540; }
.swatch-A span:nth-child(2) { background: #FAF6EC; }
.swatch-A span:nth-child(3) { background: #B8943C; }
.swatch-B span:nth-child(1) { background: #1B2A4D; }
.swatch-B span:nth-child(2) { background: #FFFFFF; }
.swatch-B span:nth-child(3) { background: #5170A8; }
.swatch-C span:nth-child(1) { background: #1F1A16; }
.swatch-C span:nth-child(2) { background: #F5F0E5; }
.swatch-C span:nth-child(3) { background: #B33B2A; }

.theme-menu small {
  display: block; color: var(--color-sub);
  font-size: 0.7rem; line-height: 1.4;
}
.theme-menu strong {
  display: block; font-weight: 600;
  font-size: 0.85rem; margin-bottom: 2px;
}

/* =========================================================
   4. セクション部品
========================================================= */

.hero {
  position: relative; min-height: 75vh;
  display: flex; align-items: center; justify-content: flex-start;
  color: var(--color-text-inv);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    120deg,
    rgba(16,37,64,0.65) 0%,
    rgba(16,37,64,0.45) 60%,
    rgba(16,37,64,0.20) 100%
  );
  z-index: 1;
}
.hero-img { position: absolute; inset: 0; z-index: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner {
  position: relative; z-index: 2;
  padding: 40px 24px;
  max-width: 900px; margin: 0 auto; width: 100%;
}
.hero-inner h1 {
  font-size: 2rem; line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--color-text-inv);
}
.hero-inner p {
  font-size: 1rem; max-width: 560px; margin-bottom: 28px;
}
.hero--sub { min-height: 45vh; }
.hero--sub h1 { font-size: 1.7rem; }

/* カード */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(16,37,64,0.14);
}
.card-body { padding: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { font-size: 0.9rem; color: var(--color-sub); }

/* ダーク系 */
.section--dark { background-color: var(--color-bg-dark); color: var(--color-text-inv); }
.section--dark h2,
.section--dark h3 { color: var(--color-text-inv); }
.section--dark p { color: var(--color-text-inv); opacity: 0.88; }
.section--dark .en-heading { color: var(--color-accent); filter: brightness(1.3); }

/* 商品グリッド（EC風） */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.product-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(16,37,64,0.14);
}
.product-card .product-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.product-card .product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img img { transform: scale(1.04); }
.product-card .product-body {
  padding: 16px 18px 20px;
}
.product-card .product-tag {
  display: inline-block;
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.06em;
}
.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.product-card .product-desc {
  font-size: 0.82rem;
  color: var(--color-sub);
  line-height: 1.6;
  margin-bottom: 12px;
}
.product-card .product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}
.product-card .product-price .price {
  font-family: "Cormorant Garamond", "Shippori Mincho", serif;
  font-size: 1.3rem;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.product-card .product-price .tax {
  font-size: 0.7rem;
  color: var(--color-sub);
}

/* 工程 */
.process-step {
  position: relative;
  padding: 28px 24px;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}
.process-step .step-number {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 2.4rem;
  color: var(--color-accent);
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}
.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 0.85rem;
  color: var(--color-sub);
  line-height: 1.7;
}

/* お客様の声 */
.voice-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.voice-card blockquote {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 12px;
}
.voice-card cite {
  display: block;
  font-size: 0.8rem;
  color: var(--color-sub);
  font-style: normal;
}

/* テーブル（会社概要用） */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.9;
}
.info-table th {
  text-align: left;
  width: 130px;
  padding: 14px 0;
  color: var(--color-accent);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
.info-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

/* =========================================================
   5. ボタン・フォーム
========================================================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 32px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn--primary {
  background-color: var(--color-accent);
  color: #FFFFFF;
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background-color: transparent;
  color: var(--color-accent);
}
.btn--outline {
  background-color: transparent;
  color: var(--color-text-inv);
  border-color: var(--color-text-inv);
}
.btn--outline:hover {
  background-color: var(--color-text-inv);
  color: var(--color-bg-dark);
}
.btn--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inv);
  border-color: var(--color-bg-dark);
}

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group label .required {
  color: var(--color-accent);
  margin-left: 4px;
  font-size: 0.75rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background-color: var(--color-card);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* =========================================================
   6. サンプル明記
========================================================= */

.sample-banner {
  background-color: var(--color-accent);
  color: #FFFFFF;
  padding: 10px 20px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  gap: 12px; position: relative;
}
.sample-banner.is-hidden { display: none; }
.sample-banner-close {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: transparent; border: none; color: inherit;
  font-size: 1.2rem; cursor: pointer; padding: 4px 8px;
  line-height: 1; opacity: 0.85;
}
.sample-banner-close:hover { opacity: 1; }

.sample-note {
  display: block;
  background-color: var(--color-bg-soft);
  color: var(--color-sub);
  font-size: 0.75rem;
  padding: 10px 12px;
  border: 1px dashed var(--color-border);
  border-radius: 4px;
  margin: 12px 0;
  text-align: center;
}

/* =========================================================
   7. フッター
========================================================= */

.site-footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-inv);
  padding: 48px 0 24px;
  margin-top: 80px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--color-accent);
  filter: brightness(1.25);
}
.footer-col p,
.footer-col a,
.footer-col li {
  font-size: 0.85rem;
  color: var(--color-text-inv);
  opacity: 0.85;
  line-height: 1.85;
  list-style: none;
}
.footer-col a:hover { opacity: 1; }
.footer-disclaimer {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 0.78rem;
  color: var(--color-text-inv);
  opacity: 0.75;
  line-height: 1.7;
  text-align: center;
}
.footer-copyright {
  margin-top: 12px;
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: center;
}

/* =========================================================
   8. 下部固定CTA
========================================================= */

.fixed-cta {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 40;
  background-color: var(--color-bg-dark);
  color: var(--color-text-inv);
  padding: 12px 16px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
}
.fixed-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.fixed-cta p { font-size: 0.85rem; line-height: 1.3; }
.fixed-cta .btn {
  padding: 10px 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* =========================================================
   9. 2列レイアウト・ユーティリティ
========================================================= */

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }

/* =========================================================
   10. レスポンシブ
========================================================= */

@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .section-title h2 { font-size: 2.4rem; }
  .hero-inner h1 { font-size: 3rem; }
  .hero-inner p { font-size: 1.1rem; }
  .hero--sub h1 { font-size: 2.2rem; }

  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
  .fixed-cta p { font-size: 1rem; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 48px; }
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .hamburger { display: none; }
  .nav-mobile { display: none !important; }

  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-inner h1 { font-size: 3.5rem; }
}
</content>
