:root {
  color-scheme: light;
  --ink: #171b31;
  --subtle: #555c72;
  --accent: #4d43b6;
  --accent-dark: #3d3498;
  --navy: #101427;
  --line: #dce0ec;
  --container: 75rem;
  --gutter: clamp(1.375rem, 5.5vw, 5rem);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", "Noto Sans CJK JP", sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #7369e2; outline-offset: 5px; }
p, h1, h2, h3, ul, dl, dd { margin: 0; }
.container { width: min(var(--container), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .75rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { background: #fff; }
.header-inner { position: relative; display: flex; min-height: 5.25rem; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; width: max-content; gap: .58rem; align-items: center; font: 750 1.54rem/1 system-ui, sans-serif; letter-spacing: -.065em; text-decoration: none; white-space: nowrap; }
.brand-mark {
  width: 1.8rem;
  height: 1.72rem;
  flex: none;
  background: linear-gradient(140deg, #766be1, #433aaf 72%);
  clip-path: polygon(41% 3%, 64% 3%, 100% 97%, 75% 97%, 55% 42%, 31% 97%, 0 97%);
}
.brand-period { color: #6156cc; }
.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 3.3vw, 3.25rem); }
.site-nav a { font-weight: 650; font-size: .91rem; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .back-top:hover { color: var(--accent); }
.site-nav .nav-contact { color: #fff; background: var(--accent); border-radius: .28rem; padding: .86rem 1.2rem; }
.site-nav .nav-contact:hover { color: #fff; background: var(--accent-dark); }
.menu-toggle { display: none; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(32rem, 46vw, 42rem); overflow: hidden; color: #fff; background: #181d39; }
.hero-visual, .hero::after { position: absolute; inset: 0; z-index: -1; }
.hero-visual img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% 49%; }
.hero::after { content: ""; background: linear-gradient(90deg, rgb(15 18 40 / 97%) 0%, rgb(16 19 42 / 86%) 24%, rgb(16 19 42 / 40%) 57%, rgb(16 19 42 / 8%) 100%), linear-gradient(0deg, rgb(13 17 39 / 27%), transparent 62%); }
.hero-inner { padding-block: clamp(4rem, 7vw, 6rem); }
.hero-company { display: flex; align-items: center; gap: .7rem; font-size: .93rem; font-weight: 650; letter-spacing: .12em; color: #e1e0f2; }
.hero-company::before { content: ""; width: 1.65rem; height: 2px; background: #b9acf8; }
.hero h1 { max-inline-size: 10.75em; word-break: keep-all; margin-top: 1.35rem; font-size: clamp(2.85rem, 5.55vw, 5.15rem); line-height: 1.19; font-weight: 800; letter-spacing: .008em; }
.hero-summary { margin-top: 1.55rem; color: #eeeef9; font-size: clamp(1rem, 1.34vw, 1.13rem); line-height: 1.95; font-weight: 500; }
.hero-link { display: inline-flex; align-items: center; justify-content: center; min-height: 3.18rem; margin-top: 1.8rem; padding: .62rem 1.28rem; border: 1px solid #d8d8f0; color: #fff; border-radius: .27rem; font-size: .92rem; font-weight: 650; text-decoration: none; transition: background .16s, color .16s; }
.hero-link:hover { color: var(--ink); background: #fff; }
.hero-link:focus-visible { outline-color: #fff; }

.services { padding-block: clamp(4rem, 7.4vw, 7rem); }
.section-intro { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); column-gap: 2rem; row-gap: 1rem; align-items: end; margin-bottom: 2.15rem; }
.section-label { margin-bottom: .36rem; color: var(--accent); font: 750 .82rem/1.5 system-ui, sans-serif; letter-spacing: .17em; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.3vw, 3.15rem); line-height: 1.25; font-weight: 800; letter-spacing: .035em; }
.section-intro > p, .service-card > p { color: var(--subtle); font-size: 1rem; line-height: 1.9; }
.section-intro > p { padding-bottom: .12rem; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2vw, 1.65rem); }
.service-card { padding: clamp(1.35rem, 2.5vw, 2.25rem); border: 1px solid #e4e3f2; border-radius: .62rem; background: #f8f7fd; }
.service-commerce { border-color: #dfe6f0; background: #f4f7fc; }
.service-advertising { border-color: #e9e3ed; background: #faf7fb; }
.service-card h3 { margin: 1.2rem 0 .66rem; font-size: clamp(1.19rem, 1.69vw, 1.49rem); font-weight: 800; line-height: 1.4; letter-spacing: .008em; }
.service-icon { position: relative; display: grid; width: 3.15rem; height: 3.15rem; place-items: center; border-radius: .65rem; background: #eae6fc; color: #4f43b1; }
.service-icon i, .service-icon::before, .service-icon::after { position: absolute; display: block; }
.icon-social i { width: 1rem; height: 1.6rem; border: 2px solid currentColor; border-radius: .23rem; }
.icon-social::before { content: ""; z-index: 1; bottom: 1rem; width: .28rem; height: 2px; border-radius: 2px; background: currentColor; }
.icon-social::after { content: ""; top: .48rem; right: .62rem; width: .4rem; height: .4rem; background: currentColor; border: 2px solid #eae6fc; box-sizing: content-box; border-radius: 50%; }
.icon-commerce { color: #3e5798; background: #e4ecfb; }
.icon-commerce i { top: 1.13rem; width: 1.35rem; height: 1.22rem; border: 2px solid currentColor; border-radius: .13rem .13rem .22rem .22rem; }
.icon-commerce::before { content: ""; top: .75rem; width: .59rem; height: .63rem; border: 2px solid currentColor; border-radius: .4rem .4rem 0 0; border-bottom: 0; }
.icon-ad { color: #704888; background: #eee4f1; }
.icon-ad i { width: 1.51rem; height: 1.45rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; border-bottom-left-radius: .13rem; }
.icon-ad::before { content: ""; width: .2rem; height: .45rem; left: 1.13rem; bottom: 1.11rem; border-radius: 1px; background: currentColor; box-shadow: .38rem -.19rem currentColor, .76rem -.42rem currentColor; }

.company { background: #f3f4fa; }
.company-inner, .contact-inner { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); gap: 2rem; padding-block: clamp(3.4rem, 6.7vw, 6.2rem); }
.company-details { border-top: 1px solid #cfd4e4; }
.company-details > div { display: grid; grid-template-columns: minmax(5.5rem, 30%) 1fr; gap: .5rem; padding: 1.05rem 0; border-bottom: 1px solid #cfd4e4; font-size: 1rem; line-height: 1.8; }
.company-details dt { font-weight: 700; }
.company-details dd { color: #353c55; }
.company-details ul { list-style: none; padding: 0; }

.contact { background: var(--navy); color: #fff; }
.contact-inner { align-items: center; }
.contact .section-label { color: #c7befa; }
.site-footer { background: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 6.6rem; }
.footer-inner .brand { font-size: 1.34rem; }
.footer-inner .brand-mark { width: 1.53rem; height: 1.43rem; }
.footer-inner small { color: var(--subtle); font-size: .81rem; }
.back-top { color: var(--subtle); font-size: .88rem; text-underline-offset: .24em; }

@media (min-width: 74rem) {
  .container { width: min(var(--container), calc(100% - 10.5rem)); }
}

@media (max-width: 58rem) {
  .desktop-break { display: none; }
  .service-card h3 { font-size: 1.2rem; }
}

@media (max-width: 46rem) {
  .header-inner { min-height: 4.3rem; flex-wrap: wrap; gap: .25rem 1rem; }
  .brand { font-size: 1.37rem; }
  .brand-mark { width: 1.55rem; height: 1.5rem; }
  .site-nav { width: 100%; flex-wrap: wrap; padding-bottom: .9rem; }
  .menu-toggle:not([hidden]) { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem .42rem; min-height: 2.75rem; border: 0; color: var(--ink); background: transparent; font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; }
  .menu-icon { display: block; width: 1rem; height: .64rem; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
  .menu-toggle[aria-expanded="false"]:not([hidden]) + .site-nav { display: none; }
  .menu-toggle:not([hidden]) + .site-nav { padding-block: .4rem 1.1rem; }
  .site-nav .nav-contact { padding: .68rem .9rem; }
  .hero { min-height: 31.5rem; }
  .hero-visual img { object-position: 62% 55%; }
  .hero::after { background: linear-gradient(90deg, rgb(15 18 40 / 95%), rgb(15 18 40 / 51%)), linear-gradient(0deg, rgb(14 17 37 / 32%), transparent 70%); }
  .hero h1 { font-size: clamp(1.55rem, 8.1vw, 3.7rem); }
  .hero-summary { font-size: .98rem; }
  .section-intro, .company-inner, .contact-inner { grid-template-columns: 1fr; gap: 1.1rem; }
  .section-intro { margin-bottom: 1.5rem; }
  .service-grid { grid-template-columns: 1fr; gap: .75rem; }
  .service-card { padding: 1.4rem; }
  .service-card h3 { margin-top: .9rem; }
  .footer-inner { flex-wrap: wrap; justify-content: space-between; padding-block: 1.35rem; gap: .87rem 1rem; min-height: 0; }
  .footer-inner small { order: 2; width: 100%; }
}

@media (max-width: 22rem) {
  .header-inner { column-gap: .5rem; }
  .header-inner .brand { font-size: 1.19rem; }
  .menu-toggle:not([hidden]) { gap: .35rem; padding-inline: .18rem; font-size: .81rem; }
  .hero-summary br { display: none; }
}

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

.service-scope { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin-top: 1.2rem; }
.service-scope li { padding: .24rem .54rem; border: 1px solid var(--line); border-radius: .26rem; background: #fff; color: var(--subtle); font-size: .875rem; line-height: 1.5; }

.approach { border-top: 1px solid var(--line); }
.approach-inner { padding-block: clamp(3rem, 5.5vw, 5rem); }
.approach h2 { font-size: clamp(1.65rem, 2.65vw, 2.4rem); }
.approach-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 1.9rem 0 0; padding: 0; list-style: none; counter-reset: steps; }
.approach-steps li { counter-increment: steps; border-top: 1px solid var(--line); padding-top: 1.05rem; }
.approach-steps h3 { font-size: 1.125rem; line-height: 1.65; }
.approach-steps h3::before { content: counter(steps) "."; margin-right: .55rem; color: var(--accent-dark); font-family: system-ui, sans-serif; }
.approach-steps p, .section-description { margin-top: .4rem; color: var(--subtle); font-size: 1rem; line-height: 1.85; }
.section-description { margin-top: .9rem; max-width: 23rem; }

.contact-inner { grid-template-columns: minmax(0, .63fr) minmax(0, 1fr); align-items: start; }
.contact .section-description { color: #d8daea; }
.contact-form { min-width: 0; display: grid; gap: 1.2rem; padding: clamp(1.25rem, 3vw, 2.3rem); border-radius: .625rem; background: #fff; color: var(--ink); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-field { min-width: 0; display: grid; align-content: start; gap: .38rem; }
.form-field label { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; font-weight: 700; font-size: .95rem; }
.field-tag { padding: .1rem .35rem; border-radius: .2rem; background: #ede9fa; color: #3d3498; font-size: .8rem; font-weight: 700; }
.field-note, .form-privacy { color: var(--subtle); font-size: .875rem; line-height: 1.7; font-weight: 500; }
.form-privacy a { margin-left: .55rem; }
.form-privacy a, .reading-page a:not(.solid-link), .footer-links a { color: var(--accent-dark); text-underline-offset: .2em; }
.form-field :is(input, select, textarea) { width: 100%; min-height: 2.9rem; padding: .65rem .75rem; border: 1px solid #aeb4ca; border-radius: .35rem; background: #fbfbfe; color: var(--ink); font: inherit; }
.form-field select { appearance: none; padding-right: 2.4rem; background-image: linear-gradient(45deg, transparent 49%, #525c77 51%), linear-gradient(135deg, #525c77 49%, transparent 51%); background-size: .32rem .32rem; background-position: calc(100% - 1.05rem) 53%, calc(100% - .74rem) 53%; background-repeat: no-repeat; }
.form-field textarea { resize: vertical; min-height: 8rem; }
.form-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-trap { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.form-alert { padding: .75rem .9rem; border: 1px solid #e9acb0; border-radius: .3rem; background: #fff3f3; color: #94222b; line-height: 1.65; }
.form-submit, .solid-link { display: inline-flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .7rem 1.05rem; border: 1px solid transparent; border-radius: .3rem; background: var(--accent); color: #fff; font: inherit; font-weight: 700; line-height: 1.5; cursor: pointer; text-decoration: none; }
.form-submit { justify-self: start; }
.form-submit:hover, .solid-link:hover { background: var(--accent-dark); }
.footer-links { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; font-size: .88rem; }

.reading-page { width: min(50rem, calc(100% - 2 * var(--gutter))); padding-block: clamp(2.8rem, 7vw, 6rem); }
.reading-page h1 { margin-bottom: 1rem; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.35; }
.reading-page h2 { margin-top: 1.75rem; margin-bottom: .35rem; font-size: 1.25rem; }
.reading-page > p { margin-bottom: .9rem; color: var(--subtle); font-size: 1rem; line-height: 1.85; }
.reading-page .solid-link { margin-top: .5rem; }
.inbox-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.inbox-item { padding: 1.15rem; border: 1px solid var(--line); border-radius: .45rem; overflow-wrap: anywhere; }
.inbox-item h2 { margin: .3rem 0 .6rem; }
.inbox-item p { line-height: 1.7; }
.inbox-date { font-size: .875rem; color: var(--subtle); }
.inbox-message { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); white-space: pre-wrap; }
.inbox-nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }

@media (max-width: 46rem) {
  .contact-inner, .approach-steps { grid-template-columns: 1fr; }
  .approach-steps { gap: 1rem; margin-top: 1.25rem; }
}

@media (max-width: 34rem) {
  .field-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .form-submit { width: 100%; }
}
