@charset "UTF-8";
/*
Theme Name: My portfolio
Template: PORTFOLIO-THEMA
Version: 1.0
*/
/* =========================================================
   Tokens / Reset / Utilities
   ========================================================= */
:root {
  --container: min(1200px, 92vw);
  --header-h: 72px;
  --brand: #245e62;
  --ink: #243a3a;
  --bg: #f9f7f1;
  --accent: #f0c75e;
  --line: rgba(0,0,0,.08);
}

/* Reset（最小限＆安全） */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  color: var(--brand);
  background: var(--bg);
  font-family: "Noto Serif JP", system-ui, serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

input, button, textarea, select {
  font: inherit;
  border: none;
  background: none;
}

/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 20px;
}

.scroll-lock {
  overflow: hidden;
  height: 100vh;
}

/* =========================================================
   Animation baseline（JSと同期）
   - JSなしでも“見える”
   - .js-ready の時だけ非表示スタート → .inviewで出す
   ========================================================= */
[data-anim] {
  opacity: 1;
  -webkit-transform: none;
          transform: none;
  -webkit-transition: opacity 0.6s ease, -webkit-transform 0.6s ease;
  transition: opacity 0.6s ease, -webkit-transform 0.6s ease;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition: opacity 0.6s ease, transform 0.6s ease, -webkit-transform 0.6s ease;
}

.js-ready [data-anim] {
  opacity: 0;
  -webkit-transform: translateY(12px);
          transform: translateY(12px);
}

.js-ready [data-anim].inview {
  opacity: 1;
  -webkit-transform: none;
          transform: none;
}

/* =========================================================
   Header / Nav（ハンバーガー完全同期）
   依存クラス：.site-header / .hamburger / #site-menu / body.scroll-lock
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--bg);
  /* PCナビ */
  /* SPナビ（ドロップダウン） */
}
.site-header .header-inner {
  min-height: var(--header-h);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 0; /* PCは0、SPは後で20px復活 */
}
@media (max-width: 1024px) {
  .site-header .header-inner {
    padding-inline: 16px;
  }
}
.site-header .logo {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--brand);
  font-weight: 800;
  margin: 0;
}
.site-header .hamburger {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
  cursor: pointer;
  background: none;
  z-index: 1300;
}
.site-header .hamburger span {
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--brand);
  border-radius: 1px;
  -webkit-transition: opacity 0.2s, -webkit-transform 0.3s cubic-bezier(0.4, 2, 0.6, 1);
  transition: opacity 0.2s, -webkit-transform 0.3s cubic-bezier(0.4, 2, 0.6, 1);
  transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1), opacity 0.2s;
  transition: transform 0.3s cubic-bezier(0.4, 2, 0.6, 1), opacity 0.2s, -webkit-transform 0.3s cubic-bezier(0.4, 2, 0.6, 1);
}
.site-header .hamburger span:nth-child(1) {
  top: 8px;
}
.site-header .hamburger span:nth-child(2) {
  top: 15px;
}
.site-header .hamburger span:nth-child(3) {
  top: 22px;
}
.site-header .hamburger.is-open span:nth-child(1) {
  -webkit-transform: translateY(7px) rotate(45deg);
          transform: translateY(7px) rotate(45deg);
}
.site-header .hamburger.is-open span:nth-child(2) {
  opacity: 0;
  -webkit-transform: scaleX(0.5);
          transform: scaleX(0.5);
}
.site-header .hamburger.is-open span:nth-child(3) {
  -webkit-transform: translateY(-7px) rotate(-45deg);
          transform: translateY(-7px) rotate(-45deg);
}
.site-header .site-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.site-header .site-nav ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2rem;
}
.site-header .site-nav a {
  font-weight: 700;
  color: var(--brand);
}
@media (max-width: 900px) {
  .site-header .hamburger {
    display: inline-grid;
  }
  .site-header .site-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 12px);
    right: 16px;
    background: var(--bg);
    -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 1.2rem 1.4rem;
    border-radius: 10px;
    z-index: 1100;
  }
  .site-header .site-nav ul {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 1rem;
  }
  .site-header .site-nav.is-open {
    display: block;
  }
}

/* =========================================================
   Buttons
   ========================================================= */
.btn, .works .works__footer .works__view-more {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  border-radius: 9999px;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn--outline, .works .works__footer .works__view-more {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn--outline:hover, .works .works__footer .works__view-more:hover {
  background: var(--accent);
  color: #fff;
}

.btn--solid {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn--solid:hover {
  background: #e0b24e;
  border-color: #e0b24e;
}

.btn--lg {
  padding: 0.8rem 1.6rem;
  font-size: 1.05rem;
}

/* =========================================================
   Hero（擬似要素版 or 画像版どちらでも動く）
   ========================================================= */
/* ===== hero ===== */
.hero {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.hero-inner {
  width: 100%;
  background-image: url("../imgs/bg-line.png");
}

.hero-copy {
  max-width: 900px;
}

.hero-tagline {
  width: 100%;
  font-size: 1.8rem;
  line-height: 1.4;
  color: #245e62;
  max-width: 1400px;
  margin: 0 auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  position: relative;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 18px 0;
}

.hero-visual img {
  width: min(30vw, 260px); /* 木のサイズはここ */
  height: auto;
  display: block;
}

/* 3) タイトルとコピーの“でかくなり過ぎ”を抑える */
.logo {
  font-size: clamp(28px, 3.2vw, 40px);
}

/* ==== Hero 余白を詰める・モバイル優先 ==== */
@media (max-width: 600px) {
  .hero {
    /* ... */
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .hero-inner {
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
  .hero > *:first-child,
  .hero-inner > *:first-child {
    margin-top: 0;
  }
  /* 見出し直指定の保険 */
  .hero h1, .hero h2, .hero p {
    margin-top: 0;
  }
}
/* タブレットでも少し詰めたいなら */
@media (max-width: 1024px) {
  .hero {
    min-height: auto;
    padding-block: 16px;
    margin-bottom: 430px;
  }
  .hero-inner {
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
  }
}
.hero {
  min-height: clamp(520px, 70svh, 880px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  overflow: visible;
  background: #f9f7f1;
}

@media (max-width: 600px) {
  .hero {
    padding-block: 16px;
  } /* ここはお好みで微調整 */
}
/* ===== Hero: 最小パッチ（他に影響しない） ===== */
/* モバイル：木をテキストの“下”に回して余白を少しだけ確保 */
@media (max-width: 600px) {
  .hero {
    padding-block: 16px; /* 40px → 16px（上の空きが広すぎる対策） */
  }
  .hero-tagline {
    padding-right: 0; /* 右の余白を解除（画像を下へ回すので不要） */
    position: relative; /* 念のため（既に付いてるならOK） */
  }
}
/* 念のため：ヘッダーが常に前面（重なって見える時の保険） */
.site-header {
  position: relative;
  z-index: 10;
}

/* ========= ヒーロー：擬似要素版に統一 ========= */
/* 実画像が残っていても出ないよう封印（保険） */
.hero-visual {
  display: none;
}

/* ベース（共通） */
.hero-tagline {
  position: relative;
}

/* ===== スマホ（～600px）：テキストの“下・中央”に置く ===== */
@media (max-width: 768px) {
  .hero-tagline::after {
    width: 100%;
    min-width: 350px;
  }
}
@media (max-width: 600px) {
  .hero {
    min-height: 100svh; /* ファーストビュー占有＝Aboutを隠す */
    overflow: visible;
    padding-block: 16px;
    padding-bottom: clamp(140px, 28vw, 260px); /* 木のぶん下に余白を確保 */
  }
  .hero-tagline {
    width: 100%;
    text-align: center;
    padding-right: 0;
  }
  .hero-tagline::after {
    top: calc(100% + 12px); /* テキスト直下に12pxあける */
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
  }
}
/* ===== 中間（601–1200px）：縦並び・中央下配置 ===== */
@media (min-width: 601px) and (max-width: 1200px) {
  .hero {
    min-height: 80svh; /* 75–85svhで好みに */
    overflow: visible;
    padding-block: 16px;
  }
  .hero-tagline {
    width: 100%;
    text-align: center;
    padding-right: 0;
  }
}
/* ===== PC（1201px～）：テキスト右側・縦中央 ===== */
@media (min-width: 1400px) {
  .hero {
    min-height: calc(100vh - var(--header-h, 72px)); /* ★高さつまみ：About見えない */
    overflow: visible;
    padding-block: 32px; /* 24–40pxで微調整 */
  }
  .hero-tagline {
    text-align: left;
    padding-right: clamp(260px, 28vw, 370px); /* 右に木のスペースを確保 */
  }
}
/* PCだけ擬似要素に統一（1201px〜） */
@media (min-width: 1400px) {
  /* 実画像は消す */
  .hero-visual {
    display: none;
  }
  /* 擬似要素の土台 */
  .hero-tagline {
    position: relative;
    padding-right: clamp(300px, 32vw, 420px);
  }
  /* はみ出し見せたくないなら hidden、見せたいなら visible */
  .hero {
    overflow: visible;
    min-height: calc(100vh - var(--header-h, 72px));
  }
}
/* ===== PC（1201px〜）だけ：擬似要素で木を表示＆少し右へ ===== */
@media (min-width: 1400px) {
  .hero-visual {
    display: none;
  }
  .hero {
    min-height: calc(100vh - var(--header-h, 72px));
    overflow: visible;
    padding-block: 32px;
  }
}
/* PC（1201px〜）：赤箱→本物の木に置き換え＆右寄せ調整 */
@media (min-width: 1400px) {
  .hero-visual {
    display: none;
  }
  .hero {
    min-height: calc(100vh - var(--header-h, 72px));
    overflow: visible;
    padding-block: 32px;
  }
}
@media (max-width: 768px) {
  .hero {
    margin-bottom: 100px;
  }
}
/* === DESKTOP HARD OVERRIDE (最後尾) === */
@media (min-width: 1201px) {
  /* コンテナ基準を広げる */
  .hero-inner {
    position: relative;
  }
  /* テキスト側の“中央寄せ/狭さ”を殺す */
  .hero-tagline {
    display: block;
    max-width: none;
    margin: 0;
    text-align: left;
    padding-right: clamp(320px, 34vw, 480px); /* 木の居場所を広く取る */
    position: relative;
  }
  /* 枠の高さ・はみ出し */
  .hero {
    min-height: calc(100vh - var(--header-h, 72px));
    overflow: visible; /* 切れるなら visible に変更OK */
    padding-block: 32px;
  }
  /* 実画像は封印のまま */
  .hero-visual {
    display: none;
  }
}
/* === RESPONSIVE CENTER FIX (〜1200px) === */
@media (max-width: 1400px) {
  .hero {
    overflow: visible; /* 切れ防止 */
    padding-bottom: clamp(140px, 28vw, 260px);
  }
  .hero-tagline {
    padding-right: 0; /* PCの右スペースを解除 */
    text-align: center;
    position: relative;
    width: 100%;
  }
}
/* ===== HERO タイトル帯：最終フル幅パッチ ===== */
.hero {
  position: relative;
  overflow: visible;
}

.hero-tagline {
  position: relative;
  z-index: 1;
  text-align: left;
  color: #245e62;
  line-height: 1.6;
  padding: 1.2em 0;
  max-width: 1200px;
  margin: 0 auto;
  display: block;
}

.hero-inner {
  background: url("../imgs/bg-line.png") center/cover repeat;
}

/* ===== Hero（スマホ）— 木のサイズ＆位置、Aboutを隠す ===== */
@media (max-width: 600px) {
  .hero {
    min-height: 100svh; /* 画面いっぱい確保＝Aboutを押し下げ */
    padding-block: 16px; /* 上下の余白はお好みで 12–24px */
    overflow: visible; /* 木が切れないように */
  }
  .hero-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column; /* 縦並び */
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: center;
    gap: 16px;
  }
}
/* ===== PC幅だけ調整（1025px〜） ===== */
@media (min-width: 1025px) {
  /* 1) ヒーローの高さ（Aboutを隠す用） */
  .hero {
    min-height: calc(100vh - var(--header-h, 72px)); /* ←高さつまみ */
    padding-block: 32px; /* 上下の余白。24〜40で好み調整 */
    overflow: visible; /* 木が切れるなら visible のまま */
  }
  /* 2) 横並び&中央寄せ（安定） */
  .hero-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: left;
        -ms-flex-align: left;
            align-items: left;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 32px;
  }
  /* 3) ★木（画像）のサイズ＆位置つまみ */
  .hero-visual img {
    width: clamp(480px, 36vw, 620px); /* ←大きさつまみ（小→32vw / 大→40vw） */
    height: auto;
    display: block;
    translate: 0 8px; /* ←上下位置つまみ。下げる: 12px / 上げる: -4px */
    /* 横位置をもっと右に寄せたいなら👇を追加
       margin-left: auto;
    */
  }
}
/* ==========================
   HERO (isolated)
========================== */
:root {
  --container: min(1200px, 92vw);
  --gap-lg: 32px;
  --gap-sm: 24px;
  --brand: #245e62;
}

.hero {
  min-height: clamp(520px, 70svh, 880px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  overflow: visible;
  background: #f9f7f1;
  /* ヒーロー：上の余白と木の被り回避（mid幅） */
  min-height: 72svh; /* 100vhやautoを避けて安定化 */
  padding-block: 16px;
}

.hero-inner {
  width: 100%;
  padding-inline: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: var(--gap-lg);
}

.hero-copy {
  max-width: 680px;
}

.hero-tagline {
  position: relative;
  color: var(--brand);
  line-height: 1.6;
  font-size: clamp(20px, 2.4vw, 28px);
  padding: 18px;
  /* 右擬似要素ぶんの余白（PC時） */
  padding-right: clamp(260px, 28vw, 370px);
}
.hero-tagline::after {
  content: "";
  position: absolute;
  right: 30px;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: clamp(220px, 28vw, 370px);
  aspect-ratio: 370/440;
  background: url("../imgs/hero-img.png") center/contain no-repeat;
  pointer-events: none;
}

/* 他の画像要素 .hero-visual があるならPCでは使わない */
.hero-visual {
  display: none;
}

/* 📱 タブレット以下で縦並び（カラム） */
@media (max-width: 1024px) {
  .hero-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column; /* ←縦並び */
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: left;
    gap: 24px;
  }
  .hero-copy {
    max-width: 90%;
  }
  .hero-visual img {
    width: min(72vw, 400px); /* 画像も少し大きめに */
    margin-top: 12px;
  }
  .hero-tagline {
    font-size: 1.8rem;
  }
}
/* 📱 スマホでフォントも縮小 */
@media (max-width: 768px) {
  .hero {
    margin-top: 200px;
  }
}
@media (max-width: 500px) {
  .hero {
    margin-top: 150px;
  }
}
@media (max-width: 600px) {
  .hero .hero-tagline {
    font-size: clamp(16px, 4.8vw, 22px);
    line-height: 1.6;
  }
}
/* ====== タブレット以下：縦並び＋::after を下に回す ====== */
@media (max-width: 1024px) {
  .hero .hero-inner {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column; /* ←縦カラム */
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: left;
    gap: 24px;
  }
  /* PCで付けた右余白を消す（画像は下へ回すので不要） */
  .hero-tagline {
    text-align: center;
  }
  .hero-tagline::after {
    right: 0;
    left: 0;
    top: 100%;
    -webkit-transform: none;
            transform: none;
    display: block;
    margin: 24px auto 0; /* テキストの下に画像 */
    width: clamp(220px, 56vw, 420px);
    aspect-ratio: 370/440;
  }
}
/* ====== スマホ：フォント縮小を確実に通す ====== */
@media (max-width: 600px) {
  .hero {
    min-height: 60svh;
    padding-block: 40px;
  }
  .hero .hero-tagline {
    font-size: clamp(16px, 4.8vw, 22px);
    line-height: 1.7;
  }
}
/* PC幅では横のガター（左右の20px）を殺す */
@media (min-width: 1025px) {
  .container,
  .header-inner,
  .hero-inner,
  .service,
  .contact {
    padding-left: 0;
    padding-right: 0;
  }
}
/* スマホ/タブレットではガター復活（読みにくくならないように） */
@media (max-width: 1024px) {
  .container,
  .header-inner,
  .hero-inner,
  .service,
  .contact {
    padding-inline: 20px;
  }
}
/* PC幅は横ガターをゼロに（Worksだけは例外） */
@media (min-width: 1025px) {
  .container,
  .header-inner,
  .hero-inner {
    padding-left: 0;
    padding-right: 0;
  }
  /* ←ここがポイント：複数形 .services をゼロに */
  .services,
  .contact {
    padding-left: 0;
    padding-right: 0;
  }
  /* Works は今のまま中央に 20px 欲しいなら維持 */
  .works {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 1024px) {
  .hero-inner,
  .about__content,
  .works__header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 24px;
    text-align: left;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
/* === HERO 最終上書き（後勝ち＆最低限だけ） === */
@media (max-width: 600px) {
  .hero {
    min-height: 72svh; /* 60svh → 72svhに。もっと欲しければ80svh */
    padding-block: 16px; /* 40px を上書きして詰める */
  }
  .hero-tagline {
    padding-right: 0; /* 右余白を無効化（画像を下に逃がす前提なら） */
  }
}
.hero-inner {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column; /* 1000px付近で縦並びに切替 */
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: left;
  gap: 16px;
}

/* ==== 1000px前後で木が切れる対策（最小） ==== */
@media (max-width: 1400px) and (min-width: 720px) {
  .hero {
    overflow: visible; /* 木のはみ出しを切らない */
    min-height: 80svh; /* 枠を少し高く確保（75〜85で好み調整） */
    padding-block: 16px;
  }
  .hero-inner {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column; /* この帯域は縦並びにして安全に */
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    text-align: left;
    gap: 16px;
  }
}
/* PC幅で横並びに戻す時は overflow を元に */
@media (min-width: 1401px) {
  .hero {
    overflow: visible;
  }
}
/* 720〜1200px帯：木の分だけ下にスペースを確保 */
@media (max-width: 1400px) and (min-width: 720px) {
  .hero {
    overflow: visible;
  }
  .hero-tagline {
    padding-right: 0;
  }
}
/* 1000px前後〜スマホ：テキスト幅に影響されない安定中央 */
@media (max-width: 1024px) {
  .hero-tagline {
    width: 100%; /* ← 基準を固定 */
    text-align: left;
    padding-right: 0; /* 右余白はいらない */
    position: relative;
  }
}
/* 木が右に飛ぶ問題の強制修正（～1024px帯） */
@media (max-width: 1024px) {
  .hero-tagline {
    width: 100%;
    position: relative;
    padding-right: 0;
    text-align: center;
  }
}
/* ==== HERO: Desktop locks (最後に置く) ==== */
@media (min-width: 1025px) {
  .hero .hero-inner {
    text-align: left;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start; /* 念のためレイアウトも左寄せに */
  }
}
/* hero全体の箱 */
.hero {
  position: relative;
  overflow: visible; /* はみ出しで崩れるのを防ぐ */
  min-height: min(76svh, 600px); /* お好みで */
}

/* テキストは常に前面 */
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 60ch;
}

/* 植物の絵：左下に固定・サイズ制御 */
.hero-visual {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(900px, 95vw); /* デカくなりすぎ防止 */
  max-width: 100%;
  z-index: 1; /* テキストより下 */
  pointer-events: none; /* クリック干渉を防ぐ */
}

/* 小さめ画面でさらに縮める */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    -webkit-box-align: baseline;
        -ms-flex-align: baseline;
            align-items: baseline;
  }
  .hero-visual {
    width: min(640px, 92vw);
    opacity: 0.95; /* 視認性UP（任意） */
  }
}
/* =========================================================
   About
   ========================================================= */
.about__header {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  padding: 0 5rem;
  margin: 0 0 24px;
}
@media (max-width: 640px) {
  .about__header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    text-align: center;
    padding: 0.5rem;
  }
}

.about__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 0 11rem;
}
@media (max-width: 640px) {
  .about__title {
    font-size: 32px;
    text-align: center;
  }
}

.about__profile {
  max-width: 960px;
  margin: 4rem auto;
  display: grid;
  gap: 4rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  grid-template-columns: 32% 40%;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
}
@media (max-width: 640px) {
  .about__profile {
    grid-template-columns: 100%;
    gap: 1rem;
    margin-inline: 8px;
  }
}

.profile__img {
  aspect-ratio: 1/1;
}
.profile__img img {
  width: 70%;
  margin: 0 auto;
  aspect-ratio: 1/1;
  border-radius: 50%;
  -o-object-fit: contain;
     object-fit: contain;
  height: 100%;
}

.profile__name {
  font-size: 24px;
  margin: 0 0 0.4rem;
  color: var(--brand);
}
@media (max-width: 640px) {
  .profile__name {
    font-size: 32px;
    text-align: center;
    margin-bottom: 0.6rem;
  }
}

.profile__desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--brand);
  -ms-hyphens: auto;
      hyphens: auto;
  overflow-wrap: anywhere;
  text-wrap: pretty;
  letter-spacing: 0.02rem;
}
@media (max-width: 640px) {
  .profile__desc {
    line-height: 1.6;
    padding: 0 1rem;
  }
}

.about__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 2rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: 2rem;
  padding-inline: 20px;
}

.about__skills-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.about__skills-item {
  text-align: center;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  background: #e6f0e6;
  color: var(--brand);
  font-weight: 600;
}

.about__skills-item--highlight {
  outline: 2px solid #6aa38a;
}

.about__cta {
  display: grid; /* 子を中央に */
  place-items: center; /* 水平＆垂直の中央揃え */
  margin: 56px auto; /* 上下に余白＋左右中央 */
  text-align: center; /* 念のため中央寄せ */
}

.about__cta .btn, .about__cta .works .works__footer .works__view-more, .works .works__footer .about__cta .works__view-more {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex; /* ボタン内部のアイコンや文字を整列 */
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 0 auto; /* ブロック中央寄せ */
}

/* =========================================================
   Works（寿司ベルト含む）
   ========================================================= */
.works {
  position: relative;
  padding: 80px 20px;
  background: url("../imgs/bg-full.png") center/cover no-repeat;
  max-width: 100%;
  margin: 0 auto;
}
.works .works__inner {
  max-width: 1200px;
  margin: 0 auto;
}
.works .works__header {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 16px;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  margin-bottom: 8rem;
}
@media (max-width: 1024px) {
  .works .works__header {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 24px;
    text-align: left;
  }
}
.works .works__title {
  color: var(--brand);
  margin: 0;
}
.works .works__footer {
  display: grid;
  place-items: center;
  margin-top: clamp(16px, 4vw, 40px);
  padding: clamp(16px, 4vw, 32px) 0;
}
.works .works__footer .works__view-more {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

/* Swiper（連続ベルト）— JS設定に合せてCSSは軽く */
.swiper-wrapper {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-transition-timing-function: linear;
          transition-timing-function: linear;
  will-change: transform;
}

.swiper.belt {
  width: 100%;
  max-width: 100vw;
  padding: 16px 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.swiper-slide {
  width: auto; /* slidesPerView: 'auto' と整合 */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 8px 2px;
}
.swiper-slide img {
  width: 100%;
  max-width: clamp(180px, 36vw, 260px);
  height: auto;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .swiper-slide img {
    max-width: clamp(160px, 44vw, 240px);
  }
}
@media (max-width: 480px) {
  .swiper-slide img {
    max-width: clamp(150px, 56vw, 220px);
  }
}

/* オーバーレイキャプション */
.belt__item {
  position: relative;
  overflow: visible;
  border-radius: 12px;
  display: block;
  height: 100%;
  -webkit-transition: -webkit-box-shadow 0.25s ease;
  transition: -webkit-box-shadow 0.25s ease;
  transition: box-shadow 0.25s ease;
  transition: box-shadow 0.25s ease, -webkit-box-shadow 0.25s ease;
}
.belt__item img {
  position: relative;
  z-index: 1;
  -o-object-fit: cover;
     object-fit: cover;
}
.belt__item:hover {
  -webkit-box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
          box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.belt__item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.belt__caption {
  position: absolute;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0.5rem 1rem;
  text-align: center;
  color: #fff;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
  z-index: 2;
  border-radius: 12px;
  pointer-events: none;
}

.belt__item:hover .belt__caption,
.belt__item:focus-visible .belt__caption,
.belt__item:focus-within .belt__caption {
  opacity: 1;
}

@media (hover: none) {
  .belt__caption {
    opacity: 0.9;
  }
}
@media (prefers-reduced-motion: reduce) {
  .belt__item, .belt__caption {
    -webkit-transition: none;
    transition: none;
  }
}
/* =========================================================
   Services
   ========================================================= */
.services {
  --circle-size: clamp(240px, 26vw, 260px);
  padding: 80px 20px;
  max-width: var(--container);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  padding-top: clamp(56px, 10vw, 96px);
  padding-bottom: clamp(32px, 8vw, 72px);
  /* 雲 */
}
.services .section-title__inner {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 24px;
  /* サイズバリエーション（必要な場合のみ） */
}
.services .section-title__inner .section-title {
  color: var(--brand);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
}
.services .section-title__inner .section-title .section-icon {
  height: 1.1em;
  width: auto;
}
.services .section-title__inner .section-title--lg {
  font-size: calc(var(--section-title-size) * 1.5);
}
.services .section-title__inner .section-title--sm {
  font-size: calc(var(--section-title-size) * 0.875);
}
.services .services__description-block {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin: 6rem 0 2rem;
}
.services .services__description-block .section-description {
  text-align: left;
  line-height: 1.7;
  color: var(--brand);
  margin: 0;
}
.services .service-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  place-items: center;
  gap: clamp(24px, 5vw, 48px);
  max-width: 1100px;
  margin: 0 auto;
  z-index: 1;
}
@media (max-width: 900px) {
  .services .service-grid {
    grid-template-columns: 1fr;
  }
}
.services .card {
  width: var(--circle-size);
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #fff;
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: clamp(16px, 2.4vw, 22px);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  -webkit-transition: -webkit-transform 0.25s ease, -webkit-box-shadow 0.25s ease;
  transition: -webkit-transform 0.25s ease, -webkit-box-shadow 0.25s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  transition: transform 0.25s ease, box-shadow 0.25s ease, -webkit-transform 0.25s ease, -webkit-box-shadow 0.25s ease;
}
.services .card:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
  -webkit-box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
          box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.services .card .card-icon {
  width: clamp(40px, 7vw, 56px);
  height: auto;
  margin-bottom: 0.4rem;
}
.services .card .card-title {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 0.8rem;
  min-height: 1.5em;
}
.services .card .card-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--brand);
  max-width: 32ch;
}
.services .card .card-more {
  margin-top: auto;
  font-size: 0.92rem;
}
.services .service-grid .cloud {
  position: absolute;
  width: clamp(80px, 12vw, 160px);
  opacity: 0.85;
  -webkit-filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05));
          filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.05));
}
.services .service-grid .cloud--top {
  left: 0;
  top: -56px;
}
.services .service-grid .cloud--bottom {
  right: 0;
  bottom: -56px;
  -webkit-transform: scaleY(-1);
          transform: scaleY(-1);
}
@media (max-width: 900px) {
  .services .service-grid .cloud {
    width: clamp(90px, 30vw, 160px);
    opacity: 0.28;
  }
  .services .service-grid .cloud--top {
    left: 50%;
    top: -40px;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
  }
  .services .service-grid .cloud--bottom {
    left: 50%;
    bottom: -40px;
    -webkit-transform: translateX(-50%) scaleY(-1);
            transform: translateX(-50%) scaleY(-1);
  }
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  padding: 80px 20px;
  background: url("../imgs/bg-full.png") center/cover no-repeat;
  text-align: center;
}
.contact__inner {
  max-width: var(--container);
  margin: 0 auto;
}
.contact__title {
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 1rem;
}
.contact__lead {
  margin-bottom: 2rem;
  font-size: 0.95rem;
  opacity: 0.8;
}
.contact .wpcf7-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}
.contact .wpcf7-form label {
  text-align: left;
  font-weight: 600;
  display: block;
  margin-top: 16px;
}
.contact .wpcf7-form input, .contact .wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}
.contact .wpcf7-form input:focus, .contact .wpcf7-form textarea:focus {
  outline: 2px solid #6aa89b;
  background: #fff;
}
.contact .wpcf7-form .wpcf7-submit {
  padding: 12px 20px;
  border-radius: 999px;
  background: #ffeaa7;
  color: var(--brand);
  font-weight: 800;
  cursor: pointer;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.contact .wpcf7-form .wpcf7-submit:hover {
  opacity: 0.9;
}

/* =========================================================
   Layout paddings（PC=0, SP=20px）
   ========================================================= */
@media (min-width: 1024px) {
  .container, .header-inner, .hero-inner, .services, .contact {
    padding-left: 0;
    padding-right: 0;
  }
  .works {
    padding-inline: 20px;
  } /* Worksだけ中央に余白欲しいとき */
}
@media (max-width: 1024px) {
  .container, .header-inner, .hero-inner, .services, .contact {
    padding-inline: 20px;
  }
}
/* =========================================================
   Safety valve（最終保険：必要な時だけコメント解除）
   ========================================================= */
/* === Aboutボタンがテキスト化する対策 === */
.about__cta .btn, .about__cta .works .works__footer .works__view-more, .works .works__footer .about__cta .works__view-more,
.about__cta .btn:link,
.about__cta .btn:visited {
  display: -webkit-inline-box !important;
  display: -ms-inline-flexbox !important;
  display: inline-flex !important;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 0.6rem 1.4rem;
  font-weight: 700;
  border-radius: 9999px;
  text-decoration: none;
}

.about__cta .btn--contact {
  background: #f0c75e !important;
  color: #fff !important;
  border: 1px solid #f0c75e !important;
}

.about__cta .btn--contact:hover {
  background: #e0b24e !important;
  border-color: #e0b24e !important;
}

/* === Swiper：寿司ベルト強制（1枚ずつになるのを防ぐ） === */
.works .swiper.belt .swiper-slide {
  width: auto !important;
}

.swiper.belt .swiper-wrapper {
  -webkit-transition-timing-function: linear !important;
          transition-timing-function: linear !important;
}

/* ふわっと：デフォは見える */
[data-anim] {
  opacity: 1;
  -webkit-transform: none;
          transform: none;
  -webkit-transition: opacity 0.6s ease, -webkit-transform 0.6s ease;
  transition: opacity 0.6s ease, -webkit-transform 0.6s ease;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition: opacity 0.6s ease, transform 0.6s ease, -webkit-transform 0.6s ease;
}

/* JSが準備できた時だけ、開始時は隠す */
.anim-init [data-anim] {
  opacity: 0;
  -webkit-transform: translateY(12px);
          transform: translateY(12px);
}

/* 交差したら表示 */
.anim-init [data-anim].inview {
  opacity: 1;
  -webkit-transform: none;
          transform: none;
}/*# sourceMappingURL=style.css.map */