/* =====================================================
   atobira Inc. — corporate site
   泉のパレット + 明朝で静かに、和文サイトの余白で
   ===================================================== */

:root {
  --ink:      #28333A;   /* 墨 */
  --ink-mute: #6B7680;   /* 灰 */
  --line:    rgba(40, 51, 58, 0.10);
  --line-strong: rgba(40, 51, 58, 0.22);

  --izumi-deep:  #1F4A50;  /* 深い青緑 */
  --izumi-mid:   #3E7A7C;
  --izumi-pale:  #8FCBC2;
  --izumi-mist:  #C4E4DE;
  --paper:       #EDF6F4;  /* 紙白 */
  --paper-warm:  #F5F1EA;  /* Evate的な生成りの温度 */
  --bg:          #FAF8F3;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --roman: "Cormorant Garamond", "Noto Serif JP", serif;

  --max: 1080px;
  --gutter: clamp(20px, 4vw, 48px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "palt" 1;
}

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--izumi-deep); }

::selection { background: var(--izumi-pale); color: var(--ink); }

.skip {
  position: absolute; left: 8px; top: -100px;
  padding: 8px 12px; background: var(--ink); color: var(--paper);
  z-index: 100; border-radius: 4px;
}
.skip:focus { top: 8px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(250, 248, 243, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease, padding .3s ease;
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.site-header__mark {
  width: 26px;
  height: 26px;
}
.site-header__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1;
}
.site-header__kana {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.site-header__roman {
  font-family: var(--roman);
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
}

.site-header__nav {
  display: flex;
  gap: 28px;
  font-size: 13.5px;
  letter-spacing: 0.08em;
  color: var(--ink);
}
.site-header__nav a {
  position: relative;
  padding-bottom: 2px;
}
.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--izumi-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.site-header__nav a:hover::after { transform: scaleX(1); }

@media (max-width: 680px) {
  .site-header { padding: 14px 20px; }
  .site-header__nav { display: none; }
  .site-header__roman { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  padding: clamp(60px, 12vh, 140px) var(--gutter) clamp(80px, 12vh, 140px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  /* うっすらとした紙のテクスチャ */
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(143, 203, 194, 0.16), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(31, 74, 80, 0.05), transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.hero__mark-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}
.hero__mark { width: 100%; height: 100%; }

/* 扉が"ゆっくり開く"アニメーション */
.hero__mark-line1 {
  transform-origin: 168px 60px;
  animation: door-open 2.4s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: 0.5s;
}
.hero__mark-line2 {
  transform-origin: 168px 180px;
  opacity: 0;
  animation: door-slant 1.6s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: 1.4s;
}
.hero__dot { opacity: 0; }
.hero__dot--1 { animation: dot-in .6s ease-out both; animation-delay: 2.6s; }
.hero__dot--2 { animation: dot-in .6s ease-out both; animation-delay: 2.9s; }
.hero__dot--3 { animation: dot-in .6s ease-out both; animation-delay: 3.2s; }
.hero__dot--4 { animation: dot-in .6s ease-out both; animation-delay: 3.5s; }

@keyframes door-open {
  from { transform: rotate(-8deg); opacity: 0; }
  to   { transform: rotate(0deg);  opacity: 1; }
}
@keyframes door-slant {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes dot-in {
  from { opacity: 0; transform: translate(-8px, -4px); }
  to   { opacity: 1; transform: translate(0, 0); }
}

.hero__body { padding-block: 20px; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  font-family: var(--roman);
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--izumi-deep);
}
.hero__eyebrow-line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--izumi-mid);
}

.hero__title {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: line-in 1s cubic-bezier(.22,.61,.36,1) both;
}
.hero__title-line:nth-child(1) { animation-delay: 0.3s; }
.hero__title-line:nth-child(2) { animation-delay: 0.65s; }

@keyframes line-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 17px;
  line-height: 2.1;
  color: var(--ink);
  letter-spacing: 0.05em;
  opacity: 0;
  animation: line-in 1s cubic-bezier(.22,.61,.36,1) 1s both;
}

.hero__meta {
  font-family: var(--roman);
  font-size: 12.5px;
  letter-spacing: 0.28em;
  color: var(--ink-mute);
  opacity: 0;
  animation: line-in 1s cubic-bezier(.22,.61,.36,1) 1.3s both;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--roman);
  font-size: 11px;
  letter-spacing: 0.35em;
  color: var(--ink-mute);
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--ink-mute) 0%, var(--ink-mute) 40%, transparent 100%);
  animation: scroll-line 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scroll-line {
  0% { transform: scaleY(0); }
  40% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 780px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark-wrap { max-width: 260px; order: -1; margin-bottom: 8px; }
  .hero__scroll { display: none; }
}

/* ---------- Section common ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
  position: relative;
}

.section__label {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.section__num {
  font-family: var(--roman);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--izumi-deep);
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.18em;
  color: var(--ink);
}

/* ---------- About ---------- */

.about__intro { margin-bottom: 56px; }
.about__lede {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.9;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.about__lede em {
  font-style: normal;
  color: var(--izumi-deep);
  padding: 0 0.15em;
  position: relative;
}
.about__lede em::before {
  content: "";
  position: absolute; inset: auto 0 -4px 0;
  height: 6px;
  background: var(--izumi-mist);
  z-index: -1;
  border-radius: 2px;
}

.about__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 3vw, 32px);
  margin-bottom: 48px;
}

.about__card {
  position: relative;
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper);
  border-radius: 2px;
  overflow: hidden;
}
.about__card--right { background: #F0EEE8; }

.about__kanji {
  position: absolute;
  right: -20px;
  bottom: -60px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 260px;
  line-height: 1;
  color: rgba(31, 74, 80, 0.06);
  pointer-events: none;
  user-select: none;
}
.about__card--right .about__kanji { color: rgba(31, 74, 80, 0.05); }

.about__card-title {
  position: relative;
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.7;
  letter-spacing: 0.06em;
  color: var(--izumi-deep);
}
.about__card p {
  position: relative;
  margin: 0;
  font-size: 15px;
  line-height: 2.1;
  color: var(--ink);
}

.about__foot {
  padding: 32px 0 0;
  border-top: 1px solid var(--line);
}
.about__foot p {
  margin: 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: var(--ink);
}

@media (max-width: 720px) {
  .about__pair { grid-template-columns: 1fr; }
  .about__kanji { font-size: 200px; }
}

/* ---------- Now ---------- */

.now {
  background: linear-gradient(to bottom, transparent, #F5F1EA 30%, #F5F1EA 70%, transparent);
  max-width: none;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.now .section__label,
.now__body {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}
.now__title {
  margin: 0 0 32px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.7;
  letter-spacing: 0.08em;
  color: var(--izumi-deep);
}
.now__text {
  margin: 0 0 20px;
  font-size: 15.5px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  color: var(--ink);
  max-width: 42em;
}
.now__text:last-child { margin-bottom: 0; }

/* ---------- Business ---------- */

.business__lede {
  margin: 0 0 48px;
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.biz-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(28px, 4vw, 48px);
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  align-items: start;
  transition: border-color .3s ease, transform .3s ease;
}
.biz-card:hover {
  border-color: var(--line-strong);
}

.biz-card__head { }
.biz-card__eyebrow {
  display: inline-block;
  font-family: var(--roman);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--izumi-mid);
  margin-bottom: 12px;
}
.biz-card__name {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.06em;
  color: var(--izumi-deep);
  line-height: 1.4;
}
.biz-card__tagline {
  margin: 0;
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
}

.biz-card__body { }
.biz-card__body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 2.05;
  color: var(--ink);
}
.biz-card__body p:last-child { margin-bottom: 0; }

.biz-card__foot {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.biz-card--coming {
  background: transparent;
  border-style: dashed;
}
.biz-card--coming .biz-card__name { color: var(--ink-mute); }

@media (max-width: 720px) {
  .biz-card { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  line-height: 1;
  border-radius: 2px;
  border: 1px solid var(--izumi-deep);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.btn--primary {
  background: var(--izumi-deep);
  color: var(--paper);
}
.btn--primary:hover {
  background: #163B41;
  color: var(--paper);
  transform: translateY(-1px);
}
.btn svg { transition: transform .25s ease; }
.btn:hover svg { transform: translate(2px, -2px); }

/* ---------- Contact / Form ---------- */

.contact__body {
  max-width: 720px;
  margin: 0 auto;
}
.contact__lede {
  margin: 0 0 40px;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.form { display: grid; gap: 20px; }
.form__row { display: block; }
.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.form__label em {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-style: normal;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  background: var(--izumi-mist);
  color: var(--izumi-deep);
  border-radius: 2px;
}
.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--izumi-mid);
  box-shadow: 0 0 0 3px rgba(143, 203, 194, 0.25);
}
.form textarea { resize: vertical; }

.form__check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink);
}
.form__check a {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--izumi-deep);
}

.form__submit {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form__note {
  margin: 0;
  font-size: 13px;
  color: var(--izumi-deep);
}

/* ---------- Profile ---------- */

.profile__list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.profile__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.profile__row dt {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--izumi-deep);
}
.profile__row dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink);
}
.profile__row dd a {
  color: var(--izumi-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .profile__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 4px;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 80px;
  background: var(--izumi-deep);
  color: var(--paper);
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter);
  display: grid;
  gap: 32px;
  text-align: center;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: center;
}
.site-footer__mark { width: 34px; height: 34px; }
.site-footer__wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  line-height: 1;
}
.site-footer__kana {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.16em;
  color: var(--paper);
}
.site-footer__roman {
  font-family: var(--roman);
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--izumi-pale);
}

.site-footer__tagline {
  margin: 0;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.14em;
  color: var(--izumi-pale);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--paper);
}
.site-footer__nav a { color: var(--paper); opacity: 0.85; }
.site-footer__nav a:hover { opacity: 1; color: var(--paper); }

.site-footer__copy {
  margin: 0;
  font-family: var(--roman);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--izumi-pale);
  opacity: 0.7;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s cubic-bezier(.22,.61,.36,1), transform 1s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

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