/*
Theme Name: TONCO FACTORY
Theme URI: https://toncofactory.co.jp/
Author: TONCO FACTORY LLC
Description: TONCO FACTORY LLC custom one-page corporate website theme.
Version: 1.0.0
Text Domain: toncofactory
*/

:root {
  --ink: #382318;
  --ink-soft: #6a5548;
  --cream: #fbfaf5;
  --paper: #fffef9;
  --orange: #f5a400;
  --green: #67a83c;
  --line: #e8e1d8;
  --shadow: 0 24px 60px rgba(91, 70, 50, 0.12);
  --radius-lg: 36px;
  --radius-md: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 245, 0.86);
  border-bottom: 1px solid rgba(232, 225, 216, 0.75);
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: var(--max);
  min-height: 78px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.08;
}
.brand-ja { font-weight: 900; letter-spacing: 0.02em; font-size: 1.12rem; }
.brand-en { margin-top: 7px; font-size: .66rem; letter-spacing: .30em; font-weight: 700; }
.global-nav { display: flex; align-items: center; gap: 32px; }
.global-nav a { text-decoration: none; font-size: .79rem; font-weight: 800; letter-spacing: .16em; }
.global-nav a::after { content: ""; display: block; width: 0; height: 2px; background: var(--orange); transition: .22s ease; }
.global-nav a:hover::after { width: 100%; }
.menu-button { display: none; border: 0; background: transparent; padding: 8px; }
.menu-button span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; }

.hero {
  max-width: 1320px;
  min-height: 730px;
  margin: 0 auto;
  padding: 82px 70px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: 56px;
  position: relative;
  overflow: hidden;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .55; pointer-events: none; }
.hero-glow-one { width: 380px; height: 380px; background: #f5eac1; left: -150px; top: 60px; }
.hero-glow-two { width: 500px; height: 500px; background: #e4f0da; right: -180px; bottom: -130px; }
.hero-copy, .hero-visual { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 22px; font-size: clamp(1.15rem, 2vw, 1.55rem); letter-spacing: .07em; transform: rotate(-2deg); display: inline-flex; flex-direction: column; }
.eyebrow strong { font-weight: 600; }
.eyebrow::after { content: ""; width: 120%; height: 3px; background: linear-gradient(90deg, var(--green), #b7cf37); border-radius: 999px; margin-top: 7px; }
.hero h1 { margin: 0; font-size: clamp(3.4rem, 7.4vw, 6.7rem); line-height: .98; letter-spacing: -.05em; font-weight: 900; }
.accent-orange { color: var(--orange); }
.accent-green { color: var(--green); }
.hero-lead { max-width: 630px; margin: 30px 0 0; color: var(--ink-soft); font-size: clamp(1rem, 1.8vw, 1.22rem); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.button { min-height: 52px; padding: 0 24px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ink); color: #fff; box-shadow: 0 12px 28px rgba(56,35,24,.16); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(56,35,24,.22); }
.button-secondary { background: #fff; border: 1px solid var(--line); }
.hero-note { margin-top: 32px; font-family: Georgia, serif; font-style: italic; font-size: .96rem; color: #7a685c; transform: rotate(-2deg); }

.hero-visual { min-height: 510px; display: grid; place-items: center; }
.photo-card {
  width: min(100%, 520px);
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 32px;
  background: #efe0bf;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  position: relative;
}
.photo-card::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 12px rgba(255,255,255,.24); border-radius: inherit; pointer-events: none; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none; }
.spark { position: absolute; width: 10px; height: 62px; border-radius: 999px; background: var(--orange); right: 7%; top: 16%; transform: rotate(12deg); }
.spark-two { right: 0; top: 25%; height: 42px; transform: rotate(42deg); }
.leaf { width: 58px; height: 30px; background: var(--green); border-radius: 100% 0 100% 0; position: absolute; left: 2%; bottom: 12%; transform: rotate(-18deg); opacity: .85; }

.section { max-width: var(--max); margin: 0 auto; padding: 100px 28px; }
.section-heading { max-width: 720px; margin-bottom: 44px; }
.section-heading.compact { margin-bottom: 30px; }
.section-kicker { margin: 0 0 10px; color: var(--green); font-size: .76rem; letter-spacing: .25em; font-weight: 900; }
.section h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.15; letter-spacing: -.035em; }
.section-heading > p:last-child { margin: 18px 0 0; color: var(--ink-soft); }

.services { padding-top: 72px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { min-height: 315px; background: var(--paper); border: 1px solid rgba(232,225,216,.95); border-radius: var(--radius-md); padding: 30px 24px 25px; box-shadow: 0 14px 34px rgba(77,60,45,.06); display: flex; flex-direction: column; align-items: flex-start; transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(77,60,45,.10); }
.icon-wrap { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 28px; }
.icon-wrap svg { width: 42px; height: 42px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-wrap svg .fill-dot { fill: var(--ink); stroke: none; }
.horse svg { fill: var(--ink); stroke: none; }
.tone-yellow .icon-wrap { background: #fff3c8; }
.tone-green .icon-wrap { background: #e5f2d7; }
.tone-peach .icon-wrap { background: #f5e1d8; }
.tone-mint .icon-wrap { background: #e0f0df; }
.service-card h3 { margin: 0; font-size: 1.22rem; }
.service-card p { margin: 8px 0 20px; color: var(--ink-soft); }
.service-card small { margin-top: auto; font-size: .68rem; letter-spacing: .16em; font-weight: 800; }

.philosophy { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.philosophy-copy p:last-child { max-width: 560px; color: var(--ink-soft); margin-top: 24px; }
.philosophy-panel { min-height: 330px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #edf5e8 0%, #fef8dc 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(103,168,60,.10); }
.philosophy-panel::before, .philosophy-panel::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); }
.philosophy-panel::before { width: 180px; height: 180px; top: -60px; right: -30px; }
.philosophy-panel::after { width: 140px; height: 140px; bottom: -65px; left: -35px; }
.big-word { font-weight: 900; letter-spacing: .18em; font-size: clamp(1.5rem, 3vw, 2.45rem); position: relative; z-index: 2; }
.plus { color: var(--orange); font-weight: 900; position: relative; z-index: 2; }

.process { padding-top: 70px; }
.process-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.process-list li { border-top: 3px solid var(--line); padding: 23px 10px 0 0; }
.process-list li > span { color: var(--orange); font-size: .8rem; letter-spacing: .12em; font-weight: 900; }
.process-list h3 { margin: 8px 0 6px; font-size: 1.05rem; }
.process-list p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

.contact { margin-top: 40px; margin-bottom: 80px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 58px 58px 52px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.contact h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact p { margin: 14px 0 0; color: var(--ink-soft); }
.contact-button { grid-column: 2; grid-row: 1 / span 2; min-width: 220px; }
.contact-note { grid-column: 1 / -1; font-size: .78rem; margin-top: 0 !important; }

.site-footer { max-width: var(--max); margin: 0 auto; padding: 34px 28px 48px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 24px; color: var(--ink-soft); }
.site-footer > div { display: flex; flex-direction: column; }
.site-footer strong { color: var(--ink); }
.site-footer span { font-size: .68rem; letter-spacing: .22em; margin-top: 4px; }
.site-footer p { margin: 0; font-size: .75rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 70px 28px 54px; min-height: auto; }
  .hero-copy { max-width: 740px; }
  .hero h1 { font-size: clamp(3.5rem, 12vw, 6rem); }
  .hero-visual { min-height: auto; }
  .photo-card { max-width: 620px; aspect-ratio: 4/3; border-radius: 32px; }
  .photo-card img { object-position: center; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .header-inner { min-height: 66px; padding: 0 20px; }
  .brand-ja { font-size: .98rem; }
  .brand-en { font-size: .55rem; }
  .menu-button { display: block; cursor: pointer; }
  .global-nav { position: absolute; left: 0; right: 0; top: 66px; background: rgba(251,250,245,.98); border-bottom: 1px solid var(--line); padding: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; }
  .global-nav.is-open { display: flex; }
  .global-nav a { padding: 13px 6px; }
  .hero { padding: 54px 20px 46px; gap: 38px; }
  .eyebrow { font-size: 1.08rem; }
  .hero h1 { font-size: clamp(3.25rem, 17vw, 5.2rem); }
  .hero-lead { font-size: 1rem; }
  .photo-card { aspect-ratio: 4/3; border-radius: 28px; }
  .section { padding: 74px 20px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 240px; }
  .process-list { grid-template-columns: 1fr; }
  .contact { margin: 18px 20px 60px; padding: 38px 26px; grid-template-columns: 1fr; }
  .contact-button { grid-column: 1; grid-row: auto; width: 100%; }
  .site-footer { margin: 0 20px; padding-left: 0; padding-right: 0; flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ホームページ制作ページの字体 */
.web-hero,
.web-hero *,
.web-photo-copy,
.web-photo-copy *,
.web-price,
.web-price *,
.page .services,
.page .services *,
.page .process,
.page .process *,
.page .contact,
.page .contact * {
  font-family: -apple-system, BlinkMacSystemFont,
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    "YuGothic",
    "Noto Sans JP",
    sans-serif;
}
/* =========================
   WEBSITE PAGE
========================= */
.web-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 28px 80px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.web-hero-copy h1 {
  margin: 18px 0 26px;
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.web-hero-copy > p:last-child {
  max-width: 520px;
  line-height: 2;
}

.web-hero-photo {
  overflow: hidden;
  border-radius: 38px;
  aspect-ratio: 3 / 2;
}

.web-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.web-photo-copy {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.web-photo-copy-image {
  overflow: hidden;
  border-radius: 36px;
  aspect-ratio: 4 / 3;
}

.web-photo-copy-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.web-photo-copy-text h2 {
  margin: 15px 0 25px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.25;
}

.web-photo-copy-text > p:last-child {
  line-height: 2;
  max-width: 500px;
}

.web-photo-vertical {
  aspect-ratio: 3 / 4;
  max-height: 650px;
}

.web-price {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (max-width: 800px) {
  .web-hero,
  .web-photo-copy {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .web-hero {
    padding-top: 55px;
  }

  .web-photo-copy-reverse .web-photo-copy-text {
    order: 2;
  }

  .web-photo-copy-reverse .web-photo-copy-image {
    order: 1;
  }

  .web-photo-vertical {
    aspect-ratio: 4 / 3;
  }
}
.web-design-section {
  max-width: 1180px;
  margin: 0 auto;
}

.web-design-text {
  max-width: 650px;
  margin-bottom: 42px;
}

.web-design-text h2 {
  margin: 15px 0 25px;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1.25;
}

.web-design-text p {
  line-height: 2;
}

.web-design-wide-photo {
  width: 100%;
  height: 360px;
  overflow: hidden;
  border-radius: 30px;
}

.web-design-wide-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 800px) {
  .web-design-wide-photo {
    height: 230px;
    border-radius: 22px;
  }
}
