/* =========================================================
   Picoh G.K. — SPA Mock Stylesheet
   Palette derived from logo: charcoal grey + apple-leaf green
   ========================================================= */

/* ---------- Self-hosted fonts (no external CDN) ----------
   英字表示は Poppins を自ホスト。日本語はOS標準フォントスタックを使用し、
   外部フォント依存とサードパーティ通信を排除しています。 */
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("assets/fonts/poppins-500.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("assets/fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("assets/fonts/poppins-700.woff2") format("woff2");
}

:root {
  --grey-900: #2c2d2e;
  --grey-700: #5b5b5b;   /* logo base grey */
  --grey-500: #7d7f80;
  --grey-300: #c9cbcc;
  --grey-100: #f2f3f3;
  --paper:    #fafafa;
  --white:    #ffffff;

  --green-600: #3f9e6b;  /* apple leaf */
  --green-500: #4bb37c;
  --green-100: #e6f4ec;
  --coral:     #f0806a;

  --ink:      #26282a;
  --muted:    #6b6e70;

  --radius:   18px;
  --radius-sm: 10px;
  --shadow:   0 12px 40px rgba(43, 45, 46, 0.10);
  --shadow-sm: 0 4px 18px rgba(43, 45, 46, 0.08);
  --ring:     0 0 0 3px rgba(75, 179, 124, 0.35);

  --max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-jp: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic",
             Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --font-en: "Poppins", var(--font-jp);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--grey-100);
  box-shadow: 0 4px 24px rgba(43,45,46,.05);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.brand-logo { height: 42px; width: auto; object-fit: contain; border-radius: 8px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-en); font-weight: 500; font-size: .93rem; color: var(--grey-700);
  padding: 9px 16px; border-radius: 999px; position: relative; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--grey-900); background: var(--grey-100); }
.nav a.active { color: var(--green-600); }
.nav a.active::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px; height: 2px;
  background: var(--green-500); border-radius: 2px;
}
.nav .nav-cta {
  background: var(--grey-900); color: var(--white); margin-left: 8px; padding-inline: 22px;
}
.nav .nav-cta:hover { background: var(--green-600); color: var(--white); }
.nav .nav-cta.active::after { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--grey-900); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Layout offset / scroll reveal ---------- */
main { padding-top: 74px; }
section[id] { scroll-margin-top: 74px; }
.section, .hero { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.section.in, .hero.in { opacity: 1; transform: none; }

/* ---------- Reusable ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  font-family: var(--font-en); font-weight: 600; font-size: .8rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--green-600); display: inline-block; margin-bottom: 12px;
}
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 900; color: var(--grey-900); line-height: 1.35; }
.section-lead { color: var(--muted); margin-top: 16px; max-width: 620px; margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 600;
  font-size: .95rem; padding: 15px 30px; border-radius: 999px; cursor: pointer; border: 0;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grey-900); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-600); }
.btn-ghost { background: var(--white); color: var(--grey-900); border: 1.5px solid var(--grey-300); }
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-600); }
.btn .arw { transition: transform .2s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 100px; background: var(--paper); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 85% 15%, rgba(75,179,124,.14), transparent 60%),
    radial-gradient(55% 55% at 10% 90%, rgba(91,91,91,.10), transparent 60%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero-copy h1 {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 900; line-height: 1.28; color: var(--grey-900);
  letter-spacing: .01em;
}
.hero-copy h1 .accent { color: var(--green-600); }
.hero-copy .sub { margin-top: 24px; font-size: 1.08rem; color: var(--muted); max-width: 30em; }
.hero-actions { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 48px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat b { font-family: var(--font-en); font-size: 1.9rem; font-weight: 700; color: var(--grey-900); }
.hero-stats .stat span { display: block; font-size: .82rem; color: var(--muted); letter-spacing: .05em; }

.hero-visual { display: grid; place-items: center; }
.hero-badge {
  width: min(360px, 80%); aspect-ratio: 5/6; border-radius: 32px; position: relative;
  background: linear-gradient(160deg, var(--grey-700), var(--grey-900));
  box-shadow: var(--shadow); display: grid; place-items: center;
  border: 8px solid rgba(255,255,255,.9);
}
.hero-badge img { width: 62%; filter: drop-shadow(0 8px 20px rgba(0,0,0,.35)); animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.hero-badge::after {
  content: "Picoh G.K."; position: absolute; bottom: 20px; font-family: var(--font-en); font-weight: 600;
  letter-spacing: .3em; font-size: .7rem; color: rgba(255,255,255,.55);
}

/* ---------- Feature / services grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card .ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem;
  background: var(--green-100); color: var(--green-600); margin-bottom: 20px;
}
.card h3 { font-size: 1.18rem; font-weight: 700; color: var(--grey-900); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.card .tags span { font-size: .72rem; color: var(--grey-700); background: var(--grey-100); padding: 5px 11px; border-radius: 999px; }

/* ---------- Banded sections ---------- */
.band { background: var(--paper); }
.band-dark { background: var(--grey-900); color: var(--white); }
.band-dark .section-title { color: var(--white); }
.band-dark .section-lead { color: rgba(255,255,255,.7); }
.band-dark .eyebrow { color: var(--green-500); }

/* ---------- Works (single in-progress project) ---------- */
.works-single { display: grid; place-items: center; }
.work-feature {
  width: min(920px, 100%); display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  border: 1px solid var(--grey-100); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.work-feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.work-feature .thumb {
  position: relative; min-height: 240px; display: grid; place-items: center;
  color: var(--white); font-family: var(--font-en); font-weight: 700;
}
.work-feature .thumb-key { font-size: 2rem; letter-spacing: .06em; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }
.badge-status {
  position: absolute; top: 16px; left: 16px; font-family: var(--font-jp); font-size: .74rem; font-weight: 700;
  background: rgba(255,255,255,.92); color: var(--green-600); padding: 6px 14px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px; letter-spacing: .02em;
}
.badge-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green-500); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(75,179,124,.6); } 70% { box-shadow: 0 0 0 8px rgba(75,179,124,0); } 100% { box-shadow: 0 0 0 0 rgba(75,179,124,0); } }
.work-feature .body { padding: 40px 40px; display: flex; flex-direction: column; justify-content: center; }
.work-feature .cat { font-family: var(--font-en); font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; color: var(--green-600); font-weight: 600; }
.work-feature h3 { font-size: 1.4rem; font-weight: 700; margin: 10px 0 12px; color: var(--grey-900); }
.work-feature p { color: var(--muted); font-size: .96rem; }

/* ---------- About / process ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.value-list { display: grid; gap: 18px; margin-top: 8px; }
.value-list li { list-style: none; display: flex; gap: 16px; align-items: flex-start; }
.value-list .n { font-family: var(--font-en); font-weight: 700; color: var(--green-600); font-size: 1.05rem; min-width: 34px; }
.value-list h4 { font-size: 1.05rem; color: var(--grey-900); margin-bottom: 3px; }
.value-list p { color: var(--muted); font-size: .92rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 28px 22px; position: relative; }
.step::before {
  counter-increment: step; content: "0" counter(step); font-family: var(--font-en); font-weight: 700;
  color: var(--green-100); font-size: 2.6rem; position: absolute; top: 12px; right: 16px; line-height: 1;
}
.step h4 { font-size: 1.05rem; color: var(--grey-900); margin-bottom: 8px; position: relative; }
.step p { font-size: .88rem; color: var(--muted); position: relative; }

/* ---------- Company table ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 20px 8px; border-bottom: 1px solid var(--grey-100); vertical-align: top; }
.info-table th { width: 200px; color: var(--grey-900); font-weight: 700; font-size: .95rem; }
.info-table td { color: var(--muted); }

/* ---------- News (empty state) ---------- */
.news-empty {
  text-align: center; color: var(--muted); font-size: .98rem;
  background: var(--white); border: 1px dashed var(--grey-300); border-radius: var(--radius);
  padding: 44px 20px;
}

/* ---------- Contact ---------- */
.contact-wrap-narrow { max-width: 640px; margin-inline: auto; }

.form { background: var(--white); border: 1px solid var(--grey-100); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--grey-900); margin-bottom: 8px; }
.field label .req { color: var(--coral); font-size: .78rem; margin-left: 4px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: .95rem; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--grey-300); background: var(--white); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--green-500); box-shadow: var(--ring); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
/* ハニーポット: 画面外に隠す（display:none にしないことでボットには存在して見える） */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-success { background: var(--green-100); color: var(--green-600); border-radius: var(--radius-sm); padding: 16px; font-weight: 600; text-align: center; margin-bottom: 20px; }
.form-error { background: #fdecea; color: #d85f47; border-radius: var(--radius-sm); padding: 16px; font-weight: 600; text-align: center; margin-bottom: 20px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .section-title { margin-bottom: 12px; }
.cta-band .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grey-900); color: rgba(255,255,255,.8); padding: 64px 0 32px; margin-top: 40px; }
.footer-inner { display: grid; gap: 30px; }
.footer-brand { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-logo { height: 44px; width: auto; border-radius: 8px; }
.footer-tagline { font-weight: 500; color: var(--white); }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; font-family: var(--font-en); font-size: .92rem; }
.footer-nav a { color: rgba(255,255,255,.75); transition: color .2s; }
.footer-nav a:hover { color: var(--green-500); }
.copyright { font-size: .82rem; color: rgba(255,255,255,.5); font-family: var(--font-en); border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { background: var(--paper); padding: 130px 0 60px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(75,179,124,.10), transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 900; color: var(--grey-900); }
.page-hero .crumbs { font-family: var(--font-en); font-size: .82rem; color: var(--muted); margin-top: 14px; letter-spacing: .05em; }
.page-hero .crumbs a { color: var(--green-600); }

/* ---------- Utility classes (inline style を排除しCSPを厳格化) ---------- */
.container-narrow { max-width: 820px; }
.container-tight { max-width: 760px; text-align: center; }
.text-left { text-align: left; }
.lead-wide { max-width: none; margin-top: 24px; }
.btn-block { width: 100%; justify-content: center; }
.badge-green { background: linear-gradient(160deg, var(--green-500), var(--green-600)); width: min(340px, 90%); }
.thumb-green { background: linear-gradient(135deg, var(--green-500), var(--green-600)); }

/* ---------- お問い合わせ：同意文・Turnstile ---------- */
.turnstile-holder { margin-bottom: 20px; display: flex; justify-content: center; }
.consent-note { font-size: .84rem; color: var(--muted); margin-bottom: 16px; }
.link-inline { background: none; border: 0; padding: 0; font: inherit; color: var(--green-600); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.link-inline:hover { color: var(--green-500); }

/* ---------- プライバシーポリシー モーダル ---------- */
.footer-nav .link-btn { background: none; border: 0; cursor: pointer; color: rgba(255,255,255,.75); font: inherit; font-family: var(--font-en); font-size: .92rem; padding: 0; transition: color .2s; }
.footer-nav .link-btn:hover { color: var(--green-500); }
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal[open], .modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30,32,34,.55); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; z-index: 1; background: var(--white); max-width: 720px; width: calc(100% - 40px);
  max-height: 85vh; overflow-y: auto; margin: 6vh auto 0; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 40px 32px; animation: fadeUp .35s var(--ease) both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.modal-panel h2 { font-size: 1.5rem; color: var(--grey-900); margin-bottom: 6px; }
.modal-panel .modal-sub { color: var(--muted); font-size: .86rem; margin-bottom: 22px; }
.modal-panel h3 { font-size: 1.02rem; color: var(--grey-900); margin: 22px 0 8px; }
.modal-panel p, .modal-panel li { color: var(--muted); font-size: .92rem; line-height: 1.85; }
.modal-panel ul { margin: 4px 0 4px 1.2em; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px; border: 0;
  background: var(--grey-100); color: var(--grey-900); font-size: 1.2rem; cursor: pointer; line-height: 1; transition: background .2s;
}
.modal-close:hover { background: var(--grey-300); }
.modal-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--grey-100); font-size: .8rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .work-feature { grid-template-columns: 1fr; }
  .work-feature .thumb { min-height: 200px; }
}
@media (max-width: 680px) {
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); padding: 16px 24px 24px; border-bottom: 1px solid var(--grey-100);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .35s var(--ease); z-index: 90;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px 16px; border-radius: var(--radius-sm); }
  .nav .nav-cta { margin-left: 0; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .info-table th { width: 130px; }
  .section { padding: 68px 0; }
}
