/* ==========================================================
   K. Design Works — サイト共通のCSS（静的サイト版）
   現在のWordPress版の見た目（文字・色・余白）を、測って、再現している。
   ========================================================== */
:root {
  --hh: 64px;                       /* ヘッダーの高さ */
  --text: #333;
  --ink: #1c2122;
  --gray: #7a7a7a;
  --nav: #54595f;
  --dark: #2b2a2b;
  --f-sans: 'Noto Sans JP', sans-serif;
  --f-serif: 'Noto Serif JP', serif;
  --f-disp: 'Bellefair', serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding-top: var(--hh);
  background: #fff; color: var(--text);
  font: 16px/1.5 -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.page-top { padding-top: 0; }       /* トップページは、FVが、画面の上から始まる */
img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; }
.wrap { max-width: 1170px; margin: 0 auto; padding: 0 15px; }

/* ---------- ヘッダー（画面の上に固定） ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9990;
  height: var(--hh); background: #fff;
}
.site-header__in {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.site-logo { display: block; line-height: 0; }
.site-logo img { width: 36px; height: 36px; }
.site-nav { display: flex; align-items: center; gap: 72px; }
.site-nav a {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  font: 500 14px/14px var(--f-sans); color: var(--nav); text-decoration: none;
  transition: opacity .3s;
}
.site-nav a:hover { opacity: .6; }

/* ハンバーガーボタン（スマホだけで使う） */
.nav-toggle { display: none; }

/* ---------- ヒーロー ---------- */
.hero {
  display: flex; align-items: center; justify-content: center;
  min-height: clamp(480px, calc(100vh - var(--hero-offset, 98px)), 900px);
  padding: 75px 15px 80px;
  background: center / cover no-repeat;
}
.hero__title {
  width: 100%; max-width: 894px; margin: 0; padding: 10px 0;
  background: rgba(255, 255, 255, .565);
  font: 400 clamp(36px, 6.25vw, 64px)/1.056 var(--f-disp); color: var(--ink); text-align: center;
}

/* ---------- 戻るリンク・ページ見出し ---------- */
.back { padding: 71px 0 20px; }
.back a {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 10px 12px 10px;
  font: 500 15px/15px var(--f-sans); color: var(--gray); text-decoration: none;
}
.back svg { width: 8px; height: 12px; }
.page-title {
  margin: 0; padding: 40px 15px 10px; text-align: center;
  font: 400 25.6px/1.23 var(--f-serif); letter-spacing: -0.03em; color: var(--ink);
}

/* ---------- 実績 ----------
   画面幅ごとの並び（今のWordPress版に合わせた）
     1025px以上：左（画像）7 : 右（文章）3
     768〜1024px：左 6 : 右 4
     767px以下：縦に並ぶ（画像は画面の端から端まで） */
.work { padding-top: 64px; }
.work:last-of-type { padding-bottom: 40px; }
.work__grid { display: grid; grid-template-columns: 70% 30%; max-width: 1170px; margin: 0 auto; padding: 0; }
.work__img img { display: block; width: 100%; border-radius: 8px; }
.work__body { padding-left: 20px; }
.work__title { margin: 0; font: 500 17.6px/28.16px var(--f-serif); color: var(--ink); }
.work__date { margin: 0; font: 400 16px/36.8px 'Fanwood Text', serif; letter-spacing: .14px; color: #7d8485; }
.work__body p.work__line { margin: 0 0 14.4px; font: 400 15px/22.5px var(--f-serif); color: var(--gray); overflow-wrap: anywhere; }
.work__body p.work__line:first-of-type { margin-top: 0; }

/* 補足画像（重なって並ぶ） */
.work__stack { display: grid; margin-top: 9px; }
.work__stack img { grid-area: 1 / 1; display: block; height: auto; max-width: none; }

/* 補足画像（スライド式のギャラリー） */
.work__carousel { margin-top: 37px; }
.carousel__viewport { overflow: hidden; touch-action: pan-y; }
.carousel__track { display: flex; transition: transform .5s ease; }
.carousel__track img { flex: 0 0 100%; width: 100%; height: auto; display: block; }
.carousel__dots { display: flex; justify-content: center; padding: 14px 0 10px; }
.carousel__dots button {
  width: 6px; height: 6px; margin: 0 6px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .2); cursor: pointer; transition: background .3s;
}
.carousel__dots button[aria-current="true"] { background: #000; }
.carousel__dots button:focus-visible { outline: 2px solid #54595f; outline-offset: 3px; }

/* ---------- More Works ---------- */
.more { margin-top: 8px; padding: 73px 0 26px; background: var(--dark); color: #fff; }
.more__title { margin: 0; font: 400 50px/60px var(--f-disp); color: #fff; }
.more__list { margin: 0; padding: 0; list-style: none; }
.more__list li {
  display: flex; align-items: center; padding: 12px 0 10px; border-bottom: 2px solid #414041;
}
.more__list li:first-child { margin-top: 20px; padding: 23px 0 17px; border-bottom-width: 1px; }
.more__date { flex: 0 0 124px; font: 400 11.2px/30px 'Fira Mono', monospace; letter-spacing: 1px; color: #fff; }
.more__name { font: 400 20.8px/25px var(--f-serif); color: #fff; }
.more__top { display: flex; justify-content: flex-end; margin-top: 51px; }
.totop { display: block; width: 50px; height: 50px; color: var(--gray); transition: opacity .3s; }
.totop:hover { opacity: .7; }
.totop svg { width: 100%; height: 100%; display: block; }

/* More Works：明るい版（pamphlet など） */
.more--light { background: #f4f4f4; color: var(--ink); }
.more--light .more__title, .more--light .more__date, .more--light .more__name { color: var(--ink); }
.more--light .more__list li { border-bottom: 1px solid #7a7a7a; }
.more--light .more__list li:first-child { border-bottom-width: 1px; }

/* More Works が無いページの、矢印だけの白い帯 */
.toparrow { display: flex; justify-content: center; padding: 18px 0; }

/* ---------- フッター ---------- */
.footer { height: 270px; padding: 115px 10px 0; background: center / cover no-repeat; }
.footer p { margin: 0; text-align: right; font: 400 16px/24px Roboto, sans-serif; color: var(--gray); }

/* ---------- タブレット（768〜1024px） ---------- */
@media (max-width: 1024px) {
  .site-nav { gap: 40px; }
  .work { padding-top: 56px; }
  .work__grid { grid-template-columns: 60% 40%; padding: 0 15px; }
  .work__img { padding-right: var(--gap, 3%); }
  .work__body { padding-left: 0; }
}

/* ---------- スマホ（767px以下） ---------- */
@media (max-width: 767px) {
  :root { --hh: 66px; }
  /* ヘッダー：ロゴと、ハンバーガーメニュー */
  .site-header__in { padding: 0 24px; }
  .site-logo img { width: 36px; height: 36px; }
  .nav-toggle {
    display: block; position: absolute; top: 11px; right: 40px; z-index: 2;
    width: 56px; height: 60px; padding: 0; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
    position: absolute; left: 10px; width: 35px; height: 2px; background: #444; transition: transform .3s, background .3s;
  }
  .nav-toggle__icon { top: 29px; }
  .nav-toggle__icon::before, .nav-toggle__icon::after { content: ''; left: 0; }
  .nav-toggle__icon::before { top: -12px; }
  .nav-toggle__icon::after { top: 12px; }
  .site-header.is-open .nav-toggle__icon { background: transparent; }
  .site-header.is-open .nav-toggle__icon::before { top: 0; transform: rotate(-45deg); }
  .site-header.is-open .nav-toggle__icon::after { top: 0; transform: rotate(45deg); }
  .site-nav {
    display: none; position: absolute; top: 18px; right: 30px; width: 221px; padding: 0 0 0 20px;
    flex-direction: column; align-items: stretch; gap: 0; background: #f4f4f4;
  }
  .site-header.is-open .site-nav { display: flex; }
  .site-nav a { align-items: flex-start; padding: 10px 0; font: 400 18px/27px var(--f-sans); color: var(--ink); }
  html:not(.js) .site-nav { position: static; display: flex; width: auto; flex-direction: row; background: none; padding: 0; gap: 14px; }
  html:not(.js) .nav-toggle { display: none; }

  /* ヒーロー・見出し */
  .hero { min-height: clamp(360px, calc(100vh - 230px), 700px); padding: 40px 15px; }
  .hero__title { font-size: clamp(36px, 12.4vw, 64px); line-height: 1.056; }
  .back { padding: 20px 0 0; }
  .page-title { padding-top: 21px; font-size: 25.6px; }

  /* 実績：縦に並べる */
  .work { padding-top: 28px; }
  .work__grid { grid-template-columns: 1fr; padding: 0; }
  .work__img { padding: 0; }
  .work__img img { border-radius: 0; }
  .work__body { padding: 5px 20px 10px; }
  .work__title { font-size: 19.2px; line-height: 30.72px; }
  .work__stack { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 10px; }
  .work__stack img { width: 76vw !important; margin: 0 !important; }
  .work__carousel { margin: 10px -20px 0; }

  /* More Works */
  .more { padding: 45px 0 26px; }
  .more__title { font-size: 40px; line-height: 48px; }
  .more__list li, .more__list li:first-child { display: block; padding: 12px 0 14px; }
  .more__list li:first-child { margin-top: 16px; padding-top: 20px; }
  .more__date { display: block; }
  .more__name { display: block; font-size: 20.8px; line-height: 27px; }
  .footer { height: 200px; padding-top: 80px; }
  .footer p { font-size: 12px; }
}

/* ==========================================================
   Contact ページ
   ========================================================== */
.contact { padding: 40px 0 80px; }
.contact__head { max-width: 534px; margin: 0 auto; padding: 0 15px; text-align: center; }
.contact__title { margin: 0; font: 400 52px/82px var(--f-disp); color: #252930; }
.contact__lead { margin: 22px 0 0; font: 400 15px/26px 'Hind', 'Noto Sans JP', sans-serif; color: #727982; }
.contact__rule { display: block; width: 70px; height: 0; margin: 43px auto 0; border: 0; border-top: 1px solid rgba(99, 115, 129, .34); }
.contact__cols { display: grid; grid-template-columns: 40% 60%; max-width: 1170px; margin: 37px auto 0; }

/* 左：ABOUT ME */
.about { padding: 0 0 0 26px; }
.about__title {
  position: relative; margin: 0 0 30px 18px; padding-left: 0;
  font: 400 24px/24px var(--f-disp); letter-spacing: 1.4px; text-transform: uppercase; color: #001c31;
}
.about__title::before { content: ''; position: absolute; left: -21px; top: 3px; width: 3px; height: 20px; background: #ffc1c0; }
.about__item { display: flex; gap: 15px; margin-bottom: 20px; }
.about__icon {
  flex: 0 0 47px; width: 47px; height: 47px; display: flex; align-items: center; justify-content: center;
  background: #ffc1c0; color: #fff;
}
.about__icon svg { width: 15px; height: 15px; }
.about__text { width: 262px; max-width: calc(100% - 62px); font: 400 12.8px/1.2 var(--f-sans); color: #1c2122; }
.about__text p { margin: 0; }
.about__text .en { margin-top: 4px; font-weight: 300; letter-spacing: .8px; line-height: 19.2px; }
.about__text .mail { font: 400 16px/19.2px var(--f-disp); overflow-wrap: anywhere; }
.about__text .bio { line-height: 24px; }
.about__text .bio + .bio { margin-top: 12px; }

/* 右：フォーム */
.cform { padding: 0 30px 0 14px; max-width: 551px; }
.cform__field { padding: 15px 0; }
.cform__label { display: block; margin: 0 0 15px; font: 700 16px/19px -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif; color: rgba(0, 0, 0, .85); }
.cform__req { color: #d63637; }
.cform input[type=text], .cform input[type=email], .cform textarea {
  display: block; width: 100%; padding: 14px; font: 400 16px/16px -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: rgba(0, 0, 0, .7); background: #fff; border: 1px solid rgba(0, 0, 0, .25); border-radius: 3px; box-sizing: border-box;
}
.cform input[type=text], .cform input[type=email] { width: 60%; height: 43px; }
.cform textarea { height: 120px; line-height: 1.4; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: 0; border-color: #066aab; box-shadow: 0 0 0 1px #066aab; }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* 人には見えない罠の欄（ロボット対策） */
.cform__note { margin: 4px 0 0; font: 400 12px/1.6 var(--f-sans); color: #727982; }
.cform__submit { padding-top: 22px; }
.cform button {
  height: 41px; padding: 0 15px; border: 0; border-radius: 3px; background: #066aab; color: #fff; cursor: pointer;
  font: 500 17px/17px -apple-system, "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  transition: opacity .2s;
}
.cform button:hover { opacity: .85; }
.cform button[disabled] { opacity: .5; cursor: default; }
.cform__status { margin: 16px 0 0; font: 400 14px/1.7 var(--f-sans); }
.cform__status:empty { display: none; }
.cform__status.is-ok { padding: 12px 14px; border: 1px solid #b7dfb9; background: #f0faf0; color: #27632a; }
.cform__status.is-ng { padding: 12px 14px; border: 1px solid #e8b4b4; background: #fdf3f3; color: #a02929; }

@media (max-width: 767px) {
  .contact__title { font-size: 40px; line-height: 60px; }
  .contact__cols { grid-template-columns: 1fr; margin-top: 30px; }
  .about { padding: 0 15px 24px 30px; }
  .cform { padding: 0 15px; max-width: none; }
  .cform input[type=text], .cform input[type=email] { width: 100%; }
}

/* 送信完了ページ */
.thanks { padding-bottom: 120px; }
.thanks .contact__head { max-width: 640px; }
.thanks__body { margin-top: 36px; font: 400 15px/2 var(--f-sans); color: #444; }
.thanks__body p { margin: 0; }
.thanks__notice { margin-top: 16px !important; font-size: 13px; line-height: 1.8; color: #727982; }
.thanks__btn { margin: 48px 0 0; }
.thanks__btn a {
  display: inline-block; padding: 12px 28px; border-radius: 3px; background: #066aab; color: #fff; text-decoration: none;
  font: 500 16px/1.4 var(--f-sans); transition: opacity .2s;
}
.thanks__btn a:hover { opacity: .85; }

/* ==========================================================
   トップページ（FVより下）
   Works → About me → Mini Blog / Contact → SNS
   ========================================================== */
.top-after { background: #fff; }
.tsec__title { margin: 0; text-align: center; font: 400 50px/60px var(--f-serif); color: var(--ink); }

/* ---------- Works ---------- */
.tworks { padding-top: 70px; }
.wcards { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1170px; margin: 0 auto; padding: 55px 0 20px; }
.wcard { padding: 0 20px 40px; }
.wcard__img { display: block; width: 270px; margin: 0 auto 43px; }
.wcard__img img { display: block; width: 100%; height: auto; aspect-ratio: 270 / 350; object-fit: cover; border-radius: 8px; transition: opacity .3s; }
.wcard__img:hover img { opacity: .8; }
.wcard__title { margin: 0; font: 400 24px/29.544px var(--f-serif); color: var(--ink); }
.wcard__title a { color: inherit; text-decoration: none; }
.wcard__title a:hover { opacity: .7; }
.wcard__sub { margin: 3px 0 0; font: 400 16px/36.8px 'Fanwood Text', serif; letter-spacing: .14px; color: #7d8485; }

/* ---------- About me ---------- */
.tabout { padding: 80px 15px; background: #f2f2f1 var(--about-bg) 0 0 / cover no-repeat fixed; }
.tabout__card { max-width: 1170px; margin: 0 auto; padding: 105px 180px 135px; background: #fff; border-radius: 11px; }
.tabout__title { margin: 0; text-align: center; font: 400 50px/50px var(--f-disp); color: #dbc1a1; }
.tabout__body { margin-top: 30px; font: 300 17.6px/30.4px var(--f-serif); color: var(--ink); text-align: justify; }
.tabout__body p { margin: 0 0 15px; }
.tabout__block { margin-bottom: 22px; }
.tabout__body .lead { font-size: 1.1em; letter-spacing: 0; }
.tabout__body .em { font-size: 19.8px; }
.tabout__body .small { font-size: 16px; line-height: 27.6px; }

/* ---------- Mini Blog ／ Contact ---------- */
.tcontact { display: grid; grid-template-columns: 1fr 1fr; }
.tblog { position: relative; background: #393e44 var(--blog-bg) center / cover no-repeat; }
.tblog::before { content: ''; position: absolute; inset: 0; background: #0f1010; opacity: .5; }
.tblog__in { position: relative; padding: 129px 60px 109px; }
.tblog__title { margin: 0; text-align: center; font: 400 37px/32px var(--f-disp); color: #fff; }
.toggles { margin: 33px 10px 0; }
.toggle summary {
  display: block; padding: 15px; list-style: none; cursor: pointer;
  font: 600 16px/16.5px Roboto, 'Noto Sans JP', sans-serif; color: #ffc1c0;
}
.toggle summary::-webkit-details-marker { display: none; }
.toggle summary:hover { opacity: .8; }
.toggle summary:focus-visible { outline: 2px solid #ffc1c0; outline-offset: -2px; }
.toggle__body { padding: 0 15px 15px; font: 400 16px/24px Roboto, 'Noto Sans JP', sans-serif; color: #fff; }
.toggle__body p { margin: 0; }
.tblog__note { margin: 30px 0 0 25px; font: 400 14px/14px var(--f-sans); color: #fff; }

.tmail { display: flex; align-items: center; justify-content: center; padding: 129px 60px 109px; background: #2b2a2b; color: #fff; text-align: center; }
.tmail__img { display: block; width: 100px; height: 100px; margin: 0 auto; border-radius: 10px; object-fit: cover; }
.tmail__name { margin: 14px 0 0; font: italic 400 22.4px/51.52px 'Fanwood Text', serif; letter-spacing: .14px; }
.tmail__title { margin: 6px 0 0; font: 400 37px/32px var(--f-disp); color: #fff; }
.tmail__sub { margin: 10px 0 0; font: 400 16px/16px var(--f-sans); }
.tmail__btn {
  display: inline-block; margin-top: 40px; padding: 10px 20px; border-radius: 8px; background: #84ceba; color: #fff;
  font: 400 11.2px/22.4px 'Fira Sans', 'Noto Sans JP', sans-serif; letter-spacing: 1.5px; text-decoration: none; transition: opacity .2s;
}
.tmail__btn:hover { opacity: .85; }

/* ---------- SNS ／ 先頭へ戻る ---------- */
.tfoot { padding: 70px 0; background: #fff; }
.tfoot__in { display: grid; grid-template-columns: 585px 1fr auto; align-items: center; max-width: 1170px; margin: 0 auto; }
.tfoot__title { margin: 0; font: 400 50px/60px var(--f-disp); color: var(--ink); }
.tfoot__sns { display: flex; gap: 48px; padding-left: 97px; }
.sns {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 8px; color: #fff; text-decoration: none; text-transform: uppercase;
  font: 400 12.8px/25.6px 'Fira Mono', monospace; letter-spacing: 1.8px; transition: opacity .2s;
}
.sns:hover { opacity: .85; }
.sns svg { width: 16px; height: 16px; flex: none; }
.sns--fb { background: #2b2a2b; }
.sns--ig { background: #ffc1c0; letter-spacing: 1.5px; }
.tfoot .totop { margin-right: 0; }

/* ---------- タブレット ---------- */
@media (max-width: 1024px) {
  .tsec__title { font-size: 48px; line-height: 58px; }
  .tworks { padding-top: 70px; }
  .wcards { padding-top: 55px; }
  .wcard { padding: 0 25px 40px; }
  .wcard__img { width: auto; }
  .tabout__card { margin: 0 15px; padding: 44px 40px 60px; }
  .tabout { background-attachment: scroll; padding: 80px 15px; }
  .tabout__title { font-size: 50px; }
  .tabout__body { font-size: 19.2px; line-height: 24.96px; }
  .tabout__body .em { font-size: 19.2px; }
  .tabout__body .small { font-size: 19.2px; line-height: 24.96px; }
  .tblog__in, .tmail { padding: 50px; }
  .tblog__title, .tmail__title { font-size: 32px; line-height: 38.4px; }
  .toggles { margin: 30px 0 0; }
  .tblog__note { margin-left: 15px; }
  .tfoot__in { display: block; padding: 0 15px; }
  .tfoot__sns { justify-content: center; padding-left: 0; margin-top: 24px; }
  .tfoot .totop { margin: 24px 0 0 auto; }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  .tsec__title { font-size: 44.8px; line-height: 54px; }
  .tworks { padding-top: 46px; }
  .wcards { grid-template-columns: 1fr; padding: 25px 0 0; }
  .wcard { padding: 0 25px 25px; }
  .wcard__img { width: 270px; margin: 0 auto 15px; }
  .tabout { padding: 50px 0; }
  .tabout__card { margin: 0 21px; padding: 40px 30px 40px; }
  .tabout__title { font-size: 44.8px; line-height: 45px; }
  .tabout__body { font-size: 17.6px; line-height: 26.4px; margin-top: 22px; }
  .tabout__body .em, .tabout__body .small { font-size: 17.6px; line-height: 26.4px; }
  .tcontact { grid-template-columns: 1fr; }
  .tblog__in { padding: 35px 10px 30px; }
  .tblog__title, .tmail__title { font-size: 43.2px; line-height: 51.84px; }
  .toggles { margin: 20px 0 0; }
  .tblog__note { margin-left: 25px; }
  .tmail { padding: 50px; }
  .tmail__name { font-size: 32px; line-height: 73.6px; }
  .tmail__sub { font-size: 19px; line-height: 19px; }
  .tfoot { padding: 30px 0 0; }
  .tfoot__title { font-size: 44.8px; line-height: 54px; }
  .tfoot__sns { flex-direction: column; align-items: stretch; gap: 16px; margin: 30px 25px 0; }
  .sns { justify-content: center; }
  .tfoot .totop { margin: 24px 40px 30px auto; }
}

/* ==========================================================
   スクロールすると、ふわっと浮き上がって表示される
   （JSが動くときだけ、最初に隠す。JSが動かなくても、内容は見える）
   ========================================================== */
html.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.22, .7, .3, 1);
  transition-delay: var(--rd, 0s);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Worksの画像：中心から、全体に向かって、ふわっと大きくなりながら現れる */
html.js [data-reveal="zoom"] { transform: scale(.45); transform-origin: 50% 50%; transition-duration: .9s, 1s; }
html.js [data-reveal="zoom"].is-in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
