/*
Theme Name: Aiken Shokutaku
Theme URI: https://aikengourmet.jp/
Author: MARBLE&CO.
Description: 愛犬の食卓のためのオリジナルテーマ。大型の英字タイポグラフィと余白を活かしたミニマルなデザイン。全セクションのテキスト・画像はカスタマイザーから変更でき、各セクションの表示/非表示も切り替えられます。
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aiken-shokutaku
*/

/* ==========================================================
   Design tokens
   ========================================================== */
:root {
  --ink: #16140f;
  --base: #ffffff;
  --paper: #f4f2ec;
  --line: #e3e0d8;
  --muted: #6f6a5e;
  --accent: #2e5e43; /* カスタマイザーで上書きされます */
  --font-en: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --max: 1200px;
  --pad: clamp(20px, 4vw, 48px);
}

/* ==========================================================
   Reset / base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
[id] { scroll-margin-top: 84px; }

.en {
  font-family: var(--font-en);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  font-weight: 700;
}
.eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--accent);
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.brand .custom-logo-link { display: block; line-height: 0; }
.brand img.custom-logo {
  /* どのサイズのロゴでも自動で収まる */
  max-height: 44px; max-width: 220px;
  width: auto; height: auto; object-fit: contain;
}
@media (max-width: 640px) {
  .brand img.custom-logo { max-height: 36px; max-width: 160px; }
}
.brand .site-name { font-size: 17px; letter-spacing: 0.04em; }
.brand .site-tag { font-family: var(--font-en); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); display: block; line-height: 1.4; }

.global-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.global-nav a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  padding: 8px 0; position: relative;
}
.global-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 2px;
  width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s ease;
}
.global-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-cta {
  font-family: var(--font-en); font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  transition: background .25s ease;
}
.header-cta:hover { background: var(--accent); }

.nav-toggle { display: none; }

/* ==========================================================
   Hero
   ========================================================== */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero-inner {
  position: relative; z-index: 2;
  min-height: min(88vh, 820px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 120px; padding-bottom: clamp(48px, 8vh, 90px);
}
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: #fff; }
.hero-title {
  margin: 18px 0 0;
  font-size: clamp(44px, 8.6vw, 118px);
  letter-spacing: -0.01em;
}
.hero-lead { max-width: 34em; margin-top: 22px; font-size: 15px; color: rgba(255,255,255,.88); }
.hero-scroll {
  position: absolute; right: var(--pad); bottom: 28px; z-index: 3;
  font-family: var(--font-en); font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: rgba(255,255,255,.8);
  writing-mode: vertical-rl;
}


/* Hero: 16:9(1920×1080)固定モード */
.hero.is-ratio { display: grid; }
.hero.is-ratio .hero-media {
  position: relative; grid-area: 1 / 1;
  aspect-ratio: 16 / 9; overflow: hidden;
}
.hero.is-ratio .hero-media img { opacity: 1; }
.hero.is-ratio .hero-media::after {
  /* 文字の可読性のため写真下部にだけ暗いグラデーションを敷く */
  content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: 2;
  background: linear-gradient(to top, rgba(22,20,15,.78), rgba(22,20,15,0));
}
.hero.is-ratio .hero-inner {
  grid-area: 1 / 1; z-index: 3;
  min-height: 0; padding-top: clamp(90px, 10vw, 140px);
}


/* ==========================================================
   Hero スライドショー(複数写真のクロスフェード+ズーム)
   ========================================================== */
.hero-media .sizer { display: none; }
.hero-media .slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-media .slide.is-active { opacity: 1; }
.hero-media .slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero.is-ratio .hero-media .slide img { object-fit: cover; }
.hero-media .slide.is-active img { animation: hero-zoom 7s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .hero-media .slide { transition: none; }
  .hero-media .slide.is-active img { animation: none; }
}

/* ==========================================================
   Marquee
   ========================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap;
  padding: 14px 0; background: var(--base);
}
.marquee .track { display: inline-block; animation: marquee 28s linear infinite; }
.marquee span {
  font-family: var(--font-en); font-weight: 700; font-size: 18px;
  text-transform: uppercase; letter-spacing: .08em; margin-right: 56px;
}
.marquee span::after { content: "●"; font-size: 8px; vertical-align: middle; margin-left: 56px; color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================
   Sections (共通)
   ========================================================== */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { margin-bottom: clamp(36px, 6vw, 64px); }
.section-title-en {
  font-size: clamp(40px, 6.4vw, 88px);
  margin: 10px 0 0;
}
.section-title-jp { font-size: 15px; font-weight: 500; color: var(--muted); margin-top: 14px; }
.section-lead { max-width: 40em; font-size: 15px; }
.alt { background: var(--paper); }

/* ==========================================================
   Concept(3つの柱)
   ========================================================== */
.concept-list { display: flex; flex-direction: column; gap: clamp(44px, 7vw, 88px); }
.concept-item {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 60px); align-items: center;
}
.concept-item figure {
  /* 16:9固定・背景なし。16:9の写真なら上下に余白は出ません */
  margin: 0; aspect-ratio: 16 / 9; overflow: hidden;
}
.concept-item figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.concept-item:hover figure img { transform: scale(1.03); }
.concept-body .idx {
  font-family: var(--font-en); font-weight: 700; font-size: 13px;
  letter-spacing: .18em; color: var(--accent);
}
.concept-body h3 { font-size: clamp(20px, 2.4vw, 26px); margin: 10px 0 14px; letter-spacing: .04em; }
.concept-body p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ==========================================================
   Logos(メディア・パートナー)
   ========================================================== */
.logo-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  align-items: center; gap: 32px; padding: 34px 0;
}
.logo-grid img {
  max-height: 52px; width: auto; margin: 0 auto;
  filter: grayscale(1); opacity: .75; transition: .3s ease;
}
.logo-grid img:hover { filter: none; opacity: 1; }
.logo-note { font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 26px; }

/* ==========================================================
   Flow(導入の流れ)
   ========================================================== */
.flow-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.flow-step { border-top: 2px solid var(--ink); padding-top: 22px; position: relative; }
.flow-step figure { margin: 0 0 20px; aspect-ratio: 16 / 9; overflow: hidden; }
.flow-step figure img { width: 100%; height: 100%; object-fit: cover; }
.flow-step .num {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--accent);
}
.flow-step h3 { font-size: 18px; margin: 14px 0 10px; }
.flow-step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ==========================================================
   Works(設置事例)
   ========================================================== */
.works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 36px); }
.work-card figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper); }
.work-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work-card:hover figure img { transform: scale(1.05); }
.work-card .cat { margin-top: 14px; }
.work-card h3 { font-size: 16px; margin: 8px 0 6px; }
.work-card p { margin: 0; font-size: 13px; color: var(--muted); }
.more-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 6px;
}
.more-link::after { content: "→"; transition: transform .3s ease; }
.more-link:hover::after { transform: translateX(6px); }
.empty-note { padding: 40px; border: 1px dashed var(--line); text-align: center; color: var(--muted); font-size: 14px; }

/* ==========================================================
   Map(設置場所)
   ========================================================== */
.map-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.map-split figure { margin: 0; }
.map-split .section-head { margin-bottom: 24px; }

/* ==========================================================
   News
   ========================================================== */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a {
  display: grid; grid-template-columns: 110px 1fr auto;
  gap: 24px; align-items: baseline; padding: 22px 4px;
  transition: background .25s ease;
}
.news-list a:hover { background: var(--paper); }
.news-list time { font-family: var(--font-en); font-size: 13px; color: var(--muted); }
.news-list .title { font-size: 15px; font-weight: 500; }
.news-list .arrow { font-family: var(--font-en); }

/* ==========================================================
   Instagram
   ========================================================== */
.insta-feed { margin-top: 8px; }
.insta-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-family: var(--font-en); font-size: 13px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid var(--ink); border-radius: 999px; padding: 14px 30px;
  transition: background .25s ease, color .25s ease;
}
.insta-link:hover { background: var(--ink); color: #fff; }
.footer-sns a { font-family: var(--font-en); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-sns a:hover { color: var(--ink); }

/* ==========================================================
   CTA
   ========================================================== */
.cta { background: var(--ink); color: #fff; text-align: center; }
.cta .section-title-en { font-size: clamp(48px, 9vw, 120px); }
.cta p { max-width: 36em; margin: 22px auto 0; font-size: 15px; color: rgba(255,255,255,.82); }
.cta-button {
  display: inline-block; margin-top: 40px;
  font-family: var(--font-en); font-size: 14px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  background: #fff; color: var(--ink);
  padding: 20px 56px; border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.cta-button:hover { background: var(--accent); color: #fff; }

/* ==========================================================
   Footer
   ========================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; }
.site-footer .inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer small { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.footer-nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.footer-nav a { font-size: 12px; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }

/* ==========================================================
   記事・固定ページ
   ========================================================== */
.page-hero { padding: clamp(80px, 12vw, 140px) 0 clamp(36px, 6vw, 60px); border-bottom: 1px solid var(--line); }
.entry-content { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 80px) var(--pad); }
.entry-content h2 { font-size: 24px; margin-top: 2.4em; }
.entry-content h3 { font-size: 19px; margin-top: 2em; }
.entry-content img { margin: 2em 0; }
.post-meta { font-family: var(--font-en); font-size: 13px; color: var(--muted); margin-top: 12px; }
.archive-grid { padding: clamp(48px, 8vw, 80px) 0; }

/* ==========================================================
   Reveal(スクロール表示)
   ========================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px) {
  .flow-list, .works-grid { grid-template-columns: 1fr 1fr; }
  .map-split { grid-template-columns: 1fr; }
}
/* スマホのみ: 写真の下にテキストを配置 */
@media (max-width: 767px) {
  .concept-item { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 640px) {
  .flow-list, .works-grid { grid-template-columns: 1fr; }
  .news-list a { grid-template-columns: 1fr auto; }
  .news-list time { grid-column: 1 / -1; }
  .global-nav {
    position: fixed; inset: 68px 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 20px var(--pad); display: none;
  }
  .global-nav.open { display: block; }
  .global-nav ul { flex-direction: column; gap: 14px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: none; border: 0; padding: 10px; cursor: pointer;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; }
  .header-cta { display: none; }
  .hero-scroll { display: none; }
}
