/* Public design refinement. Content and all colors remain editable separately. */
:root {
  --paper: #f8f6f0;
  --white: #fffdf8;
  --ink: #203e35;
  --text: #394b43;
  --muted: #626f65;
  --line: #dcded2;
  --accent: #906c3f;
  --card-shadow: 0 14px 40px #203e3509;
}
body { background: var(--paper); }
h1, h2 { text-wrap: balance; }
.container { max-width: 1200px; }
.section { padding-top: 112px; padding-bottom: 112px; }
.site-header { height: 88px; background: #f8f6f0ed; border-bottom-color: #203e3514; }
.monogram { letter-spacing: -4px; }
.wordmark-text { font-size: 14px; }
.wordmark-text small { font-size: 11px; }
.main-nav { font-size: 13px; gap: 23px; }
.main-nav a:not(.nav-contact)::after {
  content: ''; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 1px; background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover::after, .main-nav a[aria-current]::after { transform: scaleX(1); }
.main-nav .nav-contact { border: 1px solid var(--line); padding: 9px 14px; border-radius: 4px; }
.language-switch { border-left: 0; padding: 3px; border-radius: 5px; background: #eaece3; }
.language-switch a { min-width: 35px; border-radius: 3px; }
.hero {
  position: relative; isolation: isolate; grid-template-columns: 1.35fr 1fr;
  gap: 74px; min-height: 740px; padding-top: 80px; padding-bottom: 80px;
}
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0 0 0 38%; pointer-events: none;
  background: radial-gradient(ellipse at 68% 48%, #dbe1cf88, transparent 65%);
}
.hero .eyebrow { font-size: 10px; letter-spacing: .12em; color: #496149; }
.hero-greeting { font-size: 17px; margin-top: 28px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(48px, 4.8vw, 70px); line-height: 1.13; letter-spacing: -.045em; white-space: normal; }
.headline-line { display: block; }
.headline-line + .headline-line { color: #647955; font-style: italic; }
.hero-intro { font-size: 17px; max-width: 490px; line-height: 1.9; margin-top: 27px; }
.hero-actions { margin-top: 30px; gap: 26px; }
.button { border-radius: 4px; box-shadow: 0 4px 12px #203e3509; transition: background .2s, transform .2s, box-shadow .2s; }
.button:hover { box-shadow: 0 8px 20px #203e3518; }
.text-link, .text-link:hover { gap: 10px; transition: color .2s, border-color .2s; }
.text-link:hover { border-bottom-color: var(--accent); }
.hero-location { font-size: 12px; margin-top: 29px; }
.scroll-cue { font-size: 11px; margin-top: 24px; }
.hero-visual { max-width: 440px; justify-self: end; width: 100%; }
.portrait-mat { background: #ececdf; padding: 20px 20px 16px; box-shadow: 0 22px 55px #203e3515; border: 1px solid #d9ddce; border-radius: 3px; }
.portrait-frame { height: 365px; background: #d6dacb; }
.portrait-frame img { filter: grayscale(.75) sepia(.1) contrast(1.02); mix-blend-mode: normal; object-position: center 30%; }
.portrait-caption { font-size: 9px; letter-spacing: .2em; }
.portrait-bottom { font-size: 13px; }
.portrait-outline { border-color: #a9b394; }
.floating-skill { border-radius: 5px; background: #fffdf8f5; box-shadow: 0 12px 34px #203e3512; }
.skill-code { left: -25px; bottom: 44px; font-size: 14px; }
.skill-team { right: -10px; top: 49px; }
.expertise-strip { background: #f0f1e8; border-color: #dfe2d5; }
.expertise-strip .container { padding: 17px 0; gap: 18px 35px; }
.expertise-strip a { font-size: 19px; color: #4d6253; }
.expertise-strip a .icon { opacity: .65; }
.eyebrow { font-size: 11px; letter-spacing: .15em; color: #7b715c; }
.section-heading h2 { margin-top: 20px; font-size: clamp(38px, 3.6vw, 52px); }
.about-section { grid-template-columns: .9fr 1.2fr; gap: 100px; }
.large-copy { font-size: 20px; line-height: 1.9; }
.tags a { background: transparent; border-radius: 4px; padding: 7px 12px; }
.background-links { gap: 14px 24px; }
.background-links a { min-height: 44px; }
.experience-section { background: #eef0e7; border-block: 1px solid #dde2d3; }
.timeline-row { padding: 36px 0; }
.timeline-date { font-size: 13px; }
.timeline-dot { width: 9px; height: 9px; box-shadow: 0 0 0 5px #dfe5d7; }
.timeline-main h3 { font-size: 26px; }
.timeline-main p { max-width: 690px; }
.row-number { color: #86967b; font-size: 30px; }
.project-grid { gap: 27px; align-items: stretch; }
.project-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid #dce0d3; border-radius: 7px; overflow: hidden;
  box-shadow: var(--card-shadow); transition: border-color .25s, box-shadow .25s, transform .25s;
}
.project-card:hover { border-color: #b6c3a9; box-shadow: 0 20px 45px #203e3512; }
.project-visual-link { border-radius: 0; }
.project-visual-link:focus-visible { outline-offset: -5px; }
.project-illustration { height: 262px; }
.illustration-banking { background: #30454a; }
.illustration-automation { background: #dde3cd; }
.illustration-support { background: #e0cfb2; }
.system-diagram { height: 180px; gap: 12px; justify-content: end; }
.system-preview { width: 80%; max-width: 260px; height: 124px; position: relative; margin: auto; }
.commerce-window, .banking-panel, .sheet-panel, .support-board {
  height: 118px; border: 1px solid #a8b79c80; border-radius: 5px;
  background: #ffffff0c; box-shadow: 0 12px 24px #142b2615;
  transform: perspective(650px) rotateY(-8deg) rotateX(6deg);
  transition: transform .5s ease;
}
.project-card:hover .system-preview > :first-child { transform: perspective(650px) rotateY(0) rotateX(0) translateY(-3px); }
.preview-toolbar { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-bottom: 1px solid #a8b79c40; font-size: 9px; }
.preview-toolbar > .icon { width: 13px; height: 13px; }
.preview-line { display: block; height: 3px; width: 70%; background: currentColor; opacity: .22; border-radius: 2px; }
.preview-line.short { width: 42%; opacity: .4; }
.preview-dot { height: 4px; width: 4px; background: currentColor; border-radius: 50%; margin-left: auto; }
.commerce-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 10px; }
.mini-product { min-width: 0; background: #ffffff09; padding: 7px; border: 1px solid #a8b79c35; border-radius: 3px; }
.mini-product .preview-line { margin-top: 5px; }
.product-shape { width: 28px; height: 15px; display: block; margin: 2px auto 9px; position: relative; background: #c3d0ae; }
.shape-fish { border-radius: 65%; transform: rotate(-12deg); }
.shape-fish::before { content: ''; position: absolute; width: 0; height: 0; border-block: 7px solid transparent; border-left: 9px solid #c3d0ae; left: -5px; top: 0; }
.shape-fish::after { content: ''; position: absolute; width: 2px; height: 2px; background: #2d473c; border-radius: 50%; right: 5px; top: 5px; }
.shape-shell { height: 20px; border-radius: 50% 50% 20% 20%; background: repeating-linear-gradient(80deg,#d3c7a7 0 4px,#b7ae94 5px 6px); }
.preview-badge { position: absolute; bottom: -2px; right: -20px; display: flex; align-items: center; gap: 6px; background: #eff1e5; border: 1px solid #bdc7ae; color: #3f5744; border-radius: 4px; padding: 5px 8px; font-size: 9px; box-shadow: 0 5px 14px #152d2720; }
.preview-badge > .icon { width: 13px; height: 13px; }
.banking-account { display: flex; align-items: center; gap: 10px; padding: 10px 13px; }
.banking-account > .icon { width: 20px; height: 20px; }
.banking-account > div { flex: 1; }
.banking-account .preview-line + .preview-line { margin-top: 7px; }
.banking-account > .icon:last-child { width: 14px; }
.banking-connections { display: flex; align-items: center; padding: 0 20px; }
.banking-connections > span { display: grid; place-items: center; border: 1px solid #b5c3b855; border-radius: 4px; width: 28px; height: 25px; background: #ffffff08; }
.banking-connections .icon { width: 13px; height: 13px; }
.banking-connections > i { height: 1px; background: #b5c3b855; flex: 1; }
.sheet-panel { background: #f4f5e873; border-color: #8b9f7455; }
.sheet-grid { display: grid; grid-template-columns: repeat(5,1fr); }
.sheet-grid > span { height: 20px; padding: 8px; border-right: 1px solid #83966e26; border-bottom: 1px solid #83966e26; }
.sheet-grid .validated-cell { padding: 3px; background: #87a46b18; display: grid; place-items: center; }
.validated-cell > .icon { width: 11px; height: 11px; color: #49643c; }
.support-board { padding: 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; background: #fff7ea40; border-color: #9d866455; }
.support-column { min-width: 0; }
.board-heading { font-size: 7px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.board-heading > i { display: inline-block; width: 4px; height: 4px; background: #8d7855; border-radius: 50%; }
.mini-ticket { padding: 7px; background: #fff8ebaa; border: 1px solid #b4a17c55; border-radius: 3px; margin-top: 7px; position: relative; }
.mini-ticket > .preview-line + .preview-line { margin-top: 4px; }
.ticket-avatar { display: block; height: 7px; width: 7px; background: #859074; border-radius: 50%; margin-top: 6px; }
.system-nodes span { border-color: #a9b59b44; background: transparent; font-size: 9px; min-height: 24px; padding: 3px; }
.detail-art .system-preview { max-width: 330px; height: 158px; }
.detail-art .system-preview > :first-child { height: 150px; }
.detail-art .preview-toolbar { padding: 12px; }
.detail-art .commerce-products { padding: 12px; gap: 12px; }
.detail-art .mini-product { padding: 12px; }
.detail-art .sheet-grid > span { height: 27px; }
.detail-art .banking-account { padding-block: 17px; }
.detail-art .support-board { padding: 14px; }
.detail-art .mini-ticket { padding: 10px; }
.detail-art .board-heading { font-size: 9px; }
.detail-art .preview-badge { font-size: 11px; bottom: -2px; }
.editorial-heading { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.blog-header .page-intro { max-width: 600px; font-size: 18px; }
.blog-header h1 { margin-bottom: 22px; }
.blog-header .search-form { margin-top: 35px; padding-top: 28px; max-width: none; border-top: 1px solid var(--line); }
.blog-header .search-form > input { max-width: 470px; }
.journal-emblem { display: grid; place-items: center; width: 160px; height: 160px; flex-shrink: 0; border: 1px solid #cdd5bd; border-radius: 50%; background: #edf0e4; transform: rotate(-12deg); }
.journal-emblem .icon { width: 65px; height: 65px; stroke-width: 1; color: #6d825c; }
.project-body { padding: 26px; display: flex; flex-direction: column; flex: 1; align-items: start; }
.project-body .eyebrow { font-size: 10px; letter-spacing: .09em; }
.project-body h3 { font-size: 28px; margin: 12px 0 14px; }
.project-body p { font-size: 15px; line-height: 1.85; }
.project-tags { margin-top: 22px; margin-bottom: 8px; }
.project-tags a { font-size: 11px; background: #f2f3ec; border-color: #e0e5d7; }
.project-body > .text-link { margin-top: auto; padding-top: 20px; font-size: 14px; }
.section-end-link { margin-top: 40px; }
.credentials-section { background: #f2f1e8; }
.credential { padding: 27px 0; }
.credential h3 { margin: 12px 0 8px; }
.credential .icon-label { color: #7b715c; }
.credential-star { font-size: 105px; color: #a8b497; }
.journal-grid { gap: 28px; }
.journal-card { border-top: 2px solid #aebc9b; padding-top: 24px; }
.journal-card h3 { font-size: 30px; line-height: 1.3; }
.journal-meta { font-size: 11px; letter-spacing: .04em; }
.journal-meta > span { color: var(--accent); }
.blog-cover { border-radius: 5px; background: #e8ecdf; }
.empty-journal { background: #f0f2e9; border: 1px solid var(--line); border-radius: 6px; padding: 32px; }
.contact-section { background: #203e35; position: relative; overflow: hidden; }
.contact-grid { gap: 100px; align-items: center; }
.contact-copy h2 { font-size: clamp(42px, 4.2vw, 60px); max-width: 500px; }
.contact-copy p { max-width: 450px; line-height: 1.9; }
.contact-form-wrap { padding: 32px; border: 1px solid #526c5e; background: #ffffff04; border-radius: 6px; }
.contact-form input, .contact-form textarea { padding: 11px 0; }
.contact-form .button { margin-top: 28px; }
.site-footer { padding-top: 42px; }
.footer-top { padding-bottom: 32px; }
.social-links { gap: 16px; font-size: 13px; }
.floating-contact { padding: 12px 17px; box-shadow: 0 7px 25px #203e3520; }
.projects-header, .blog-header { padding-top: 65px; padding-bottom: 55px; }
.projects-header h1, .blog-header h1 { font-size: clamp(44px, 5vw, 68px); }
.page-intro { max-width: 720px; }
.filter-chip { border-radius: 30px; padding-inline: 18px; }
.project-search input, .search-form input { border-radius: 4px; background: var(--white); }
.project-facts { border: 1px solid #d9dfce; border-radius: 6px; }
.project-facts dt { color: #586a50; }
.detail-art { box-shadow: 14px 14px 0 #e6e9db; border-radius: 6px; overflow: hidden; }
.project-cta { background: #e9ede0; }
.article-heading h1 { line-height: 1.16; }
.article-heading > p { line-height: 1.85; }
.article-cover img { border-radius: 6px; }
.prose { line-height: 1.95; }
.prose pre { border: 1px solid #d8dece; border-radius: 5px; font-size: 14px; }
html[lang=ja] .headline-line + .headline-line { font-style: normal; }
html[lang=ja] .hero h1 { font-size: clamp(36px, 3.8vw, 54px); line-height: 1.5; }
html[lang=ja] .project-body h3 { font-size: 22px; }
@media (max-width: 1150px) {
  .main-nav { gap: 14px; }
  .main-nav .nav-contact { padding: 8px; }
  .hero { gap: 50px; }
  .hero h1 { font-size: 60px; }
  .project-body { padding: 22px; }
  .contact-grid { gap: 50px; }
}
@media (max-width: 850px) {
  .section { padding-top: 80px; padding-bottom: 80px; }
  .hero { gap: 35px; grid-template-columns: 1.2fr 1fr; min-height: 670px; padding-block: 60px; }
  .hero h1 { font-size: 50px; }
  .hero-intro { font-size: 16px; }
  .hero-visual { padding-left: 0; }
  .portrait-mat { padding: 14px; }
  .portrait-frame { height: 315px; }
  .floating-skill { padding: 10px; }
  .skill-code { font-size: 12px; left: -15px; }
  .skill-team { font-size: 10px; }
  .about-section, .credentials-grid { gap: 45px; }
  .large-copy { font-size: 18px; }
  .contact-grid { gap: 30px; }
  .contact-form-wrap { padding: 24px; }
}
@media (max-width: 650px) {
  .site-header { height: 78px; }
  .wordmark-text { font-size: 12px; }
  .main-nav .nav-contact { border: 0; padding: 13px 3px; }
  .main-nav a:not(.nav-contact)::after { display: none; }
  .section { padding-top: 65px; padding-bottom: 65px; }
  .hero { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 55px; gap: 48px; }
  .hero::before { inset: 40% 0 0; }
  .hero h1 { font-size: clamp(43px, 11.6vw, 64px); line-height: 1.16; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .07em; }
  .hero-greeting { font-size: 15px; margin-top: 25px; }
  .hero-intro { font-size: 17px; }
  .hero-actions { gap: 20px; }
  .hero-visual { justify-self: center; width: 82%; max-width: 355px; }
  .portrait-frame { height: 330px; }
  .portrait-caption { font-size: 8px; }
  .skill-code { left: -22px; }
  .skill-team { right: -16px; }
  .expertise-strip .container { gap: 8px 17px; }
  .expertise-strip a { font-size: 16px; }
  .about-section, .credentials-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-heading h2 { font-size: 38px; }
  .large-copy { font-size: 17px; }
  .background-links { gap: 10px 20px; }
  .timeline-row { padding-block: 28px; }
  .timeline-main h3 { font-size: 23px; }
  .project-grid { gap: 26px; }
  .project-body { padding: 24px; }
  .project-body h3 { font-size: 28px; }
  .project-body p { font-size: 16px; }
  .project-body > .text-link { margin-top: 5px; }
  .project-illustration { height: 280px; }
  .contact-grid { gap: 36px; }
  .contact-copy h2 { font-size: 42px; }
  .contact-form-wrap { padding: 23px; margin-top: 0; }
  .editorial-heading { gap: 0; }
  .journal-emblem { display: none; }
  .hero-location .line { display: block; width: 12px; }
  .system-diagram { height: 195px; }
  .system-nodes span { font-size: 10px; }
  .empty-journal { padding: 25px 20px; }
  .projects-header, .blog-header { padding-top: 42px; padding-bottom: 35px; }
  .projects-header h1, .blog-header h1 { font-size: 44px; }
  .filter-chip { padding-inline: 13px; }
  .footer-top p { font-size: 15px; }
  html[lang=ja] .hero h1 { font-size: clamp(32px, 8.8vw, 43px); }
  html[lang=ja] .section-heading h2 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav a::after, .project-card, .button { transition: none; }
}

/* Visible attribution below the form replaces the floating badge. */
body:has(.recaptcha-disclosure) .grecaptcha-badge { visibility: hidden; }
.recaptcha-disclosure { font-size: 12px; line-height: 1.7; color: var(--ink); }
.recaptcha-disclosure a { text-decoration: underline; text-underline-offset: 3px; }
