:root {
  --accent: #f6b21b;
  --dark: #17130b;
  --bg: #faf9f6;
  --card: #ffffff;
  --text: #222222;
  --muted: rgba(32, 28, 24, .68);
  --line: rgba(32, 28, 24, .14);
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: 'Yu Gothic', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  line-height: 1.78;
  letter-spacing: 0;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 44px);
  background: color-mix(in srgb, var(--bg) 92%, white);
  border-bottom: 0;
  backdrop-filter: blur(12px);
}
.site-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  text-decoration: none;
  color: var(--dark);
  white-space: nowrap;
}
.site-brand img {
  width: 68px;
  height: 68px;
  border-radius: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 2vw, 22px);
  font-size: 14px;
  flex-wrap: wrap;
}
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 700; }
.site-nav a:hover { color: var(--dark); }
.site-nav a.line-nav-link { color: #067d39; }
.site-nav a.line-nav-link:hover { color: #045f2c; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--dark);
  cursor: pointer;
}
.nav-toggle-icon {
  display: grid;
  gap: 5px;
  width: 24px;
}
.nav-toggle-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(28px, 6vw, 72px) 0;
}
.wp-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 48px);
  box-shadow: 0 18px 50px rgba(20, 16, 12, .06);
}
.page-title {
  margin: 0 0 clamp(24px, 5vw, 52px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  color: var(--dark);
  line-height: 1.35;
  letter-spacing: 0;
}
h1 { margin: 0; font-size: clamp(30px, 5vw, 54px); }
h2 { margin-top: 2.4em; padding-bottom: .35em; border-bottom: 1px solid var(--line); font-size: clamp(23px, 3vw, 34px); }
h3 { margin-top: 2em; font-size: clamp(19px, 2vw, 25px); }
p { margin: 1em 0; }
ul, ol { padding-left: 1.35em; }
.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(16px, 3vw, 28px);
  align-items: start;
}
.wp-block-column { min-width: 0; }
.wp-block-image, figure { margin: 1.5em 0; }
.wp-block-button__link, .iijii-btn, .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 900;
  text-decoration: none;
  border: 0;
}
.site-footer {
  padding: 30px clamp(16px, 4vw, 44px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.small { font-size: 13px; }
.home-page .page-shell {
  width: 100%;
  margin: 0;
  padding: 0;
}
.home-page .wp-content {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.home-page .page-title { display: none; }
input, select, textarea, button {
  font: inherit;
}
@media (max-width: 720px) {
  .site-header {
    position: static;
    top: auto;
    min-height: 80px;
    padding: 12px 16px;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    backdrop-filter: none;
  }
  .site-brand img { width: 54px; height: 54px; }
  .is-js .nav-toggle {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
  }
  .site-nav {
    width: 100%;
    padding: 8px 0 4px;
    justify-content: flex-start;
    flex-direction: column;
    align-items: flex-start;
  }
  .is-js .site-nav { display: none; }
  .is-js .site-nav.is-open { display: flex; }
  .wp-content { padding: 18px; }
  .home-page .wp-content { padding: 0; }
}

/* Official LINE contact */
.line-contact-intro {
  max-width: 760px;
  font-size: 17px;
}
.line-contact-panel {
  margin-top: 30px;
  padding: clamp(22px, 4vw, 36px);
  border-left: 5px solid #06c755;
  background: #f3fbf6;
}
.line-contact-panel h2,
.line-contact-template h2 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: clamp(22px, 3vw, 30px);
}
.line-contact-actions {
  display: flex;
  margin-top: 22px;
}
.line-contact-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 8px;
  background: #06c755;
  box-shadow: 0 12px 28px rgba(6, 199, 85, .2);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}
.line-contact-button:hover {
  background: #05a948;
  transform: translateY(-1px);
}
.line-contact-button:focus-visible {
  outline: 3px solid #10243f;
  outline-offset: 3px;
}
.line-contact-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}
.line-contact-steps ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.line-contact-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.line-contact-step-number {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-weight: 900;
}
.line-contact-steps strong {
  display: block;
  color: var(--dark);
}
.line-contact-steps p {
  margin: 4px 0 0;
  color: var(--muted);
}
.line-contact-template {
  margin-top: 42px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.line-contact-template ul {
  margin-bottom: 0;
}
@media (max-width: 540px) {
  .line-contact-actions,
  .line-contact-button {
    width: 100%;
  }
}

.page-toc {
  margin: 32px 0 42px;
  padding: 22px clamp(18px, 3vw, 28px);
  background: #fff;
  color: var(--text);
}
.page-toc--double {
  border: 3px double color-mix(in srgb, var(--accent) 62%, var(--dark));
}
.page-toc__title {
  margin: 0 0 14px;
  color: var(--dark);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}
.page-toc__list,
.page-toc__sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-toc__list {
  counter-reset: page-toc;
}
.page-toc__list > li {
  counter-increment: page-toc;
}
.page-toc__list > li + li {
  margin-top: 10px;
}
.page-toc__list > li > a::before {
  content: counter(page-toc) ".";
  margin-right: 8px;
  color: #8a5b00;
  font-weight: 900;
}
.page-toc__sublist {
  margin: 7px 0 0 26px;
}
.page-toc__sublist li + li {
  margin-top: 5px;
}
.page-toc__sublist a::before {
  content: "—";
  margin-right: 8px;
  color: var(--muted);
}
.page-toc a {
  color: inherit;
  line-height: 1.55;
  text-decoration: none;
}
.page-toc a:hover,
.page-toc a:focus-visible {
  color: #8a5b00;
  text-decoration: underline;
}
[data-page-toc] h2,
[data-page-toc] h3 {
  scroll-margin-top: 140px;
}

/* Portfolio case study */
.case-site-preview {
  margin: 34px 0 18px;
}
.case-site-preview a,
.case-site-preview picture {
  display: block;
}
.case-site-preview img {
  width: 100%;
  border: 1px solid var(--line);
}
.case-site-preview figcaption,
.wp-element-caption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}
.case-live-link {
  margin: 18px 0 32px;
}
.case-project-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-project-summary div {
  min-width: 0;
  padding: 18px clamp(10px, 2vw, 20px);
}
.case-project-summary div + div {
  border-left: 1px solid var(--line);
}
.case-project-summary dt {
  margin-bottom: 6px;
  color: #8a5b00;
  font-size: 12px;
  font-weight: 900;
}
.case-project-summary dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
}
@media (max-width: 719px) {
  .page-toc {
    margin: 26px 0 34px;
    padding: 18px 16px;
  }
  .page-toc__sublist {
    margin-left: 18px;
  }
  .case-site-preview {
    margin-top: 26px;
  }
  .case-project-summary {
    grid-template-columns: 1fr;
  }
  .case-project-summary div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

/* Mobile LINE CTA */
.mobile-line-cta {
  display: none;
}
@media (max-width: 959px) {
  body.has-mobile-line-cta {
    padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-line-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    display: flex;
    width: 100%;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    background: #06c755;
    box-shadow: none;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    will-change: opacity;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-line-cta.is-show {
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-line-cta:focus-visible {
    outline: 3px solid #10243f;
    outline-offset: -4px;
  }
}
