/*
Theme Name: TANAMAI DESIGN
Theme URI: https://example.com/
Author: TANAMAI DESIGN
Description: 想いを、デザインで咲かせる。ひまわりモチーフのナチュラルなオリジナルテーマ。
Version: 1.0
Text Domain: tanamai
*/

/* ===============================
   色・フォントの設定（ここを変えると全体が変わります）
   =============================== */
:root {
  --bg: #faf7ef;          /* ベースの生成り色 */
  --bg-sage: #eef0e3;     /* サービス欄のうすい緑 */
  --text: #3b3a33;        /* 文字色 */
  --muted: #6f6b5e;       /* うすい文字色 */
  --line: #d9d4c4;        /* 線の色 */
  --yellow: #e8b84a;      /* ひまわりの黄色 */
  --olive: #7c8466;       /* オリーブ色（相談ボタン） */
  --white: #fffdf8;

  --font-serif: "Shippori Mincho", "Yu Mincho", serif;
  --font-sans: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
  --font-en: "Cormorant Garamond", serif;
  --font-script: "Allura", cursive;

  --container: 1120px;
}

/* ===============================
   基本
   =============================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  position: relative; /* ログイン中の管理バーにヘッダーが隠れないようにする */
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .06em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: opacity .25s, background .25s, color .25s; }
a:hover { opacity: .75; }
h1, h2, h3, p { margin: 0; }
.container { width: min(var(--container), 100% - 64px); margin-inline: auto; }

/* ===============================
   ボタン
   =============================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 50px; padding: 0 36px;
  border-radius: 999px;
  font-size: 14px; letter-spacing: .12em;
  border: 1px solid transparent;
}
.btn .arrow { font-size: 16px; }
.btn--yellow { background: var(--yellow); color: #3b2f12; }
.btn--outline { border-color: #8f8a7a; color: var(--text); }
.btn--olive { background: var(--olive); color: #fff; height: 42px; padding: 0 24px; font-size: 13px; }
.btn--white { background: var(--white); color: var(--text); height: 60px; padding: 0 52px; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.btn:hover { opacity: 1; filter: brightness(1.05); transform: translateY(-1px); }
.icon-mail { width: 18px; height: 14px; }

/* ===============================
   ヘッダー
   =============================== */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  padding: 14px 0;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: calc(100% - 64px); margin-inline: auto;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { width: 48px; }
.logo__name { font-family: var(--font-serif); font-size: 20px; letter-spacing: .14em; line-height: 1.2; display: block; }
.logo__tagline { font-size: 10px; letter-spacing: .14em; color: var(--muted); display: block; }

.global-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.global-nav a { font-size: 12px; letter-spacing: .1em; padding-bottom: 8px; position: relative; }
.global-nav .current-menu-item a,
.global-nav a.is-current { color: #b0862b; }
.global-nav .current-menu-item a::after,
.global-nav a.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--yellow);
}

/* スマホ用メニューボタン */
.menu-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; }
.menu-toggle span { display: block; height: 1px; background: var(--text); margin: 6px 8px; }

/* ===============================
   メインビジュアル（ヒーロー）
   =============================== */
.hero {
  position: relative;
  min-height: 600px;
  padding-top: 130px;
  overflow: hidden;
}
.hero__photo {
  position: absolute; top: 76px; right: 0;
  width: 46%; height: calc(100% - 76px);
  border-radius: 46% 0 0 38% / 22% 0 0 26%;   /* やわらかい曲線で切り抜き */
  overflow: hidden;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__script {
  position: absolute; left: 6%; bottom: 26%;
  font-family: var(--font-script); font-size: 46px; line-height: 1.05;
  color: rgba(255,255,255,.95); transform: rotate(-8deg);
  text-shadow: 0 1px 6px rgba(120,90,30,.25);
}
.hero__note {
  position: absolute; right: 24px; bottom: 30%;
  font-size: 11px; line-height: 2; color: #3b382f;
  background: rgba(255,253,248,.7); padding: 10px 14px; border-radius: 8px;
}
.hero__content { position: relative; z-index: 2; width: min(var(--container), 100% - 64px); margin-inline: auto; }
.hero__label { font-family: var(--font-en); font-size: 12px; letter-spacing: .3em; color: #b0862b; margin-bottom: 18px; }
.hero__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.5; letter-spacing: .08em;
}
.hero__lead { margin-top: 28px; font-size: 15px; line-height: 2; }
.hero__buttons { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

/* 左上・下の植物の線画 */
.deco-leaf { position: absolute; pointer-events: none; opacity: .55; }
.deco-leaf--hero { left: 0; top: 90px; width: 80px; }

/* ===============================
   セクション共通
   =============================== */
.section { position: relative; padding: 70px 0; }
.section-head {
  display: grid; grid-template-columns: auto 60px 1fr auto; align-items: center; gap: 32px;
  margin-bottom: 40px;
}
.section-head__en { font-family: var(--font-en); font-size: 12px; letter-spacing: .3em; color: #8a8471; display: block; }
.section-head__ja { font-family: var(--font-serif); font-weight: 500; font-size: 30px; letter-spacing: .14em; line-height: 1.4; }
.section-head__bar { height: 1px; background: #8f8a7a; }
.section-head__text { font-size: 14px; line-height: 1.9; }
.link-more { font-size: 12px; letter-spacing: .1em; border-bottom: 1px solid #8f8a7a; padding-bottom: 6px; white-space: nowrap; }
.link-more::after { content: "→"; margin-left: 14px; }

/* ===============================
   制作実績
   =============================== */
.works__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.work-card__img { aspect-ratio: 290 / 165; overflow: hidden; border-radius: 4px; }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work-card:hover .work-card__img img { transform: scale(1.04); }
.work-card__title { font-family: var(--font-serif); font-weight: 600; font-size: 15px; margin-top: 14px; }
.work-card__text { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ===============================
   サービス（うすい緑の波形背景）
   =============================== */
.service { background: var(--bg-sage); margin-top: 40px; }
.wave { display: block; width: 100%; height: 40px; }
.wave--top { position: absolute; top: -39px; left: 0; }
.wave--bottom { position: absolute; bottom: -1px; left: 0; }
.service__list { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.service-item { padding: 6px 32px 10px; }
.service-item + .service-item { border-left: 1px solid var(--line); }
.service-item__head { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.service-item__head svg { width: 36px; height: 36px; flex-shrink: 0; }
.service-item__title { font-family: var(--font-serif); font-weight: 600; font-size: 16px; letter-spacing: .1em; }
.service-item__text { font-size: 12.5px; line-height: 2; color: var(--muted); padding-left: 58px; }
.deco-leaf--service { right: 16px; top: -40px; width: 90px; }

/* ===============================
   わたしについて
   =============================== */
.about { padding: 70px 0 0; overflow: hidden; }
.about__inner { display: grid; grid-template-columns: 260px 1fr 380px; gap: 40px; align-items: start; }
.about__head .section-head__ja { font-size: 30px; }
.about__catch { font-family: var(--font-serif); font-size: 19px; line-height: 1.8; margin-bottom: 18px; }
.about__text { font-size: 13px; line-height: 2.1; margin-bottom: 28px; }
.about__photo { margin-right: -32px; border-radius: 40% 0 0 0 / 30% 0 0 0; overflow: hidden; align-self: end; }
.about__photo img { width: 100%; height: 280px; object-fit: cover; }
.deco-flower { width: 150px; margin-top: 40px; opacity: .7; }

/* ===============================
   お問い合わせ
   =============================== */
.contact {
  position: relative; color: #fff;
  padding: 50px 0 40px;
  background:
    linear-gradient(90deg, rgba(92,98,60,.95) 0%, rgba(110,116,70,.85) 40%, rgba(110,116,70,0) 75%),
    url("assets/images/contact.jpg") right center / auto 100% no-repeat,
    #6e7446;
}
.contact__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.contact .section-head__en { color: #f2ecd6; }
.contact__title { font-family: var(--font-serif); font-weight: 500; font-size: 24px; letter-spacing: .14em; margin: 4px 0 10px; }
.contact__text { font-size: 12.5px; line-height: 2; }
.contact__script { font-family: var(--font-script); font-size: 30px; transform: rotate(-12deg); opacity: .9; margin-right: 20px; }

/* ===============================
   フッター
   =============================== */
.site-footer { background: var(--white); border-top: 1px solid #ece6d6; padding: 28px 0 14px; }
.site-footer__inner { width: min(var(--container), 100% - 64px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo--small img { width: 36px; }
.logo--small .logo__name { font-size: 15px; }
.logo--small .logo__tagline { font-size: 9px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; font-size: 12px; }
.footer-sns { display: flex; gap: 16px; }
.footer-sns svg { width: 20px; height: 20px; color: var(--text); }
.site-footer__copy { text-align: center; font-size: 10px; color: var(--muted); margin-top: 18px; letter-spacing: .1em; }

/* ===============================
   制作実績：共通パーツ
   =============================== */
.chip { display: inline-block; font-size: 11px; line-height: 1; padding: 6px 12px; border-radius: 4px; letter-spacing: .08em; }
.chip--white { background: rgba(255,253,248,.95); border-radius: 999px; padding: 6px 14px; }
.chip--gray { background: #efece3; color: var(--muted); }
.chip--yellow { background: #f6e3b0; color: #6a5013; }
.container--narrow { width: min(920px, 100% - 64px); }

/* ===============================
   制作実績：一覧ページ
   =============================== */
.page-hero { position: relative; overflow: hidden; padding: 150px 0 60px; background: #f6f1e4; }
.page-hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}
.page-hero__inner { position: relative; }
.page-hero__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(44px, 6vw, 68px); letter-spacing: .1em; line-height: 1.1; }
.page-hero__sub { font-family: var(--font-serif); font-size: 15px; letter-spacing: .14em; margin-top: 6px; }
.page-hero__lead { font-size: 13.5px; margin-top: 26px; }
.page-hero__script { position: absolute; right: 22%; bottom: 70px; font-family: var(--font-script); font-size: 30px; line-height: 1.1; color: #a49270; transform: rotate(-10deg); }

.works-page { --works-cols: 3; } /* 2にすると一覧が2列になります */
.filter { display: flex; flex-wrap: wrap; gap: 12px; margin: 48px 0 40px; }
.filter__btn {
  min-width: 110px; text-align: center; padding: 9px 22px; border-radius: 6px;
  background: var(--white); border: 1px solid #e3ddcc; font-size: 13px; box-shadow: 0 2px 6px rgba(120,100,60,.06);
}
.filter__btn.is-active { background: var(--yellow); border-color: var(--yellow); color: #3b2f12; }
.filter__btn:hover { opacity: 1; border-color: var(--yellow); }

.wgrid { display: grid; grid-template-columns: repeat(var(--works-cols), 1fr); gap: 44px 28px; list-style: none; margin: 0; padding: 0; }
.wcard__link:hover { opacity: 1; }
.wcard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #eee8da; }
.wcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.wcard__link:hover .wcard__img img { transform: scale(1.04); }
.wcard__img .chip { position: absolute; left: 10px; bottom: 10px; }
.wcard__title { font-family: var(--font-serif); font-weight: 500; font-size: 17px; letter-spacing: .1em; margin: 14px 0 8px; }

.sample-note { background: #fff6d9; border-radius: 8px; padding: 12px 16px; font-size: 12.5px; margin-bottom: 28px; }
.empty-note { padding: 40px 0; color: var(--muted); }

.pager { margin: 50px 0 0; }
.pager .nav-links { display: flex; justify-content: center; gap: 8px; }
.pager .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 50%; border: 1px solid #e3ddcc; font-size: 13px; }
.pager .page-numbers.current { background: var(--yellow); border-color: var(--yellow); }
.pager .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.cta-band { display: grid; grid-template-columns: 38% 1fr; align-items: center; margin-top: 90px; background: #f6f1e4; min-height: 300px; }
.cta-band__photo { align-self: stretch; background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, #000 60%, transparent); mask-image: linear-gradient(90deg, #000 60%, transparent); }
.cta-band__body { padding: 50px 40px; }
.cta-band__title { font-family: var(--font-serif); font-weight: 500; font-size: 24px; letter-spacing: .12em; }
.cta-band__text { font-size: 13.5px; margin: 16px 0 28px; }
.cta-band .btn { min-width: 280px; height: 56px; }

/* ===============================
   制作実績：詳細ページ
   =============================== */
.work-single { padding: 120px 0 80px; }
.breadcrumb { font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.work-single__chips { display: flex; gap: 10px; margin-bottom: 14px; }
.work-single__title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: .12em; line-height: 1.5; }
.work-single__main { margin-top: 28px; }
.work-single__main img { width: 100%; border-radius: 4px; }

.work-info { position: relative; background: #f5f1e6; border-radius: 6px; padding: 26px 32px; margin: 28px 0 50px; }
.work-info__row { display: grid; grid-template-columns: 6.5em 1fr; font-size: 13px; line-height: 2.1; }
.work-info__row dt { font-weight: 500; }
.work-info__row dd { margin: 0; }
.work-info__row dd::before { content: ":"; color: var(--muted); margin-right: 1.4em; }
.work-info__leaf { position: absolute; right: 28px; top: 50%; transform: translateY(-50%) rotate(30deg); width: 50px; opacity: .7; }

.work-block { margin-bottom: 54px; }
.work-block__head { display: flex; align-items: center; gap: 16px; font-family: var(--font-serif); font-weight: 600; font-size: 16px; letter-spacing: .14em; }
.work-block__head::after { content: ""; width: 40px; height: 1px; background: var(--yellow); margin-left: 6px; }
.work-block__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f6e3b0; font-family: var(--font-en); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.work-block__catch { font-family: var(--font-serif); font-size: 18px; letter-spacing: .1em; margin: 18px 0 14px; padding-left: 56px; }
.work-block__text { font-size: 13px; line-height: 2.1; color: var(--muted); padding-left: 56px; }

/* 03 制作デザイン：本文エリアに入れた画像 */
.work-design { margin-top: 22px; }
.work-design img { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 24px rgba(90,70,30,.12); border: 1px solid #eee7d6; }
.work-design figure { margin: 0 0 24px; }
.work-design .wp-block-columns { display: flex; gap: 20px; align-items: flex-start; }
.work-design .wp-block-column { flex: 1 1 0; }
.work-design p { font-size: 13px; line-height: 2.1; }

.work-single__buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.work-single__buttons .btn { height: 56px; }

/* ===============================
   タブレット・スマホ対応
   =============================== */
@media (max-width: 960px) {
  .global-nav { display: none; position: absolute; top: 70px; right: 16px; background: var(--white); padding: 20px 28px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 14px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }

  .hero { padding-top: 100px; min-height: 0; }
  .link-more { justify-self: start; }
  .hero__photo { position: relative; top: 0; width: 100%; height: 340px; border-radius: 40% 0 0 0 / 20% 0 0 0; margin-top: 40px; }
  .hero__note { display: none; }

  .section-head { grid-template-columns: 1fr; gap: 12px; }
  .section-head__bar { display: none; }
  .works__list, .service__list { grid-template-columns: 1fr; gap: 28px; }
  .service-item { padding: 0; }
  .service-item + .service-item { border-left: 0; border-top: 1px solid var(--line); padding-top: 24px; }
  .about__inner { grid-template-columns: 1fr; gap: 20px; }
  .about__photo { margin: 0 -32px; border-radius: 0; }
  .deco-flower { display: none; }
  .works-page { --works-cols: 2; }
  .page-hero__photo { width: 60%; opacity: .6; }
  .page-hero__script { display: none; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band__photo { height: 200px; -webkit-mask-image: none; mask-image: none; }
  .work-design .wp-block-columns { flex-direction: column; }
  .site-footer__inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
  .contact { background: linear-gradient(rgba(92,98,60,.88), rgba(92,98,60,.88)), url("assets/images/contact.jpg") center / cover; }
}
@media (max-width: 560px) {
  .works-page { --works-cols: 1; }
  .container--narrow { width: calc(100% - 32px); }
  .wgrid { gap: 36px; }
  .filter__btn { min-width: 0; padding: 8px 16px; }
  .cta-band__body { padding: 36px 16px; }
  .cta-band .btn { min-width: 0; width: 100%; }
  .work-block__catch, .work-block__text { padding-left: 0; }
  .work-info { padding: 20px; }
  .work-info__leaf { display: none; }
  .container, .hero__content { width: calc(100% - 32px); }
  .site-header__inner { width: calc(100% - 32px); }
  .logo__name { font-size: 16px; }
  .hero__script { font-size: 34px; }
  .btn { padding: 0 26px; }
}
