/* ============================================================
   CSS Variables
============================================================ */
:root {
  --color-primary:   #E8720C;
  --color-secondary: #F5A623;
  --color-bg:        #FAF7F2;
  --color-bg-sub:    #F0EBE3;
  --color-text:      #333333;
  --color-text-sub:  #777777;
  --color-border:    #E0D8CF;
  --color-footer-bg: #3A2E25;
  --color-white:     #FFFFFF;

  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  96px;

  --font-mincho: 'Zen Old Mincho', serif;
  --font-sans:   'Noto Sans JP', sans-serif;
  --font-latin:  'Lato', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.08);

  --header-height: 80px;
  --container-max: 1200px;
}

/* ============================================================
   Reset & Base
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

/* ============================================================
   Utility
============================================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(232,114,12,0.35);
}

.btn--primary:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,114,12,0.4);
}

.btn--large { padding: 16px 48px; font-size: 1.05rem; }

.section-head {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-head__en {
  font-family: var(--font-latin);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-xs);
}

.section-head__ja {
  font-family: var(--font-mincho);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.section-head__desc {
  margin-top: var(--space-md);
  font-size: 0.95rem;
  color: var(--color-text-sub);
}

.section-head__ja::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ============================================================
   Header
============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}

.header.is-scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.header__brand:hover { opacity: 0.8; }

.header__logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.header__brand-name {
  font-family: var(--font-mincho);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.header__brand-name strong {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 700;
  display: block;
}

.header__nav { margin-left: auto; }

.header__nav-list {
  display: flex;
  gap: var(--space-md);
}

.header__nav-list a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  position: relative;
  padding-bottom: 4px;
}

.header__nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s;
}

.header__nav-list a:hover::after { width: 100%; }

.header__tel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  white-space: nowrap;
}

.header__tel i { font-size: 0.85rem; }

.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}

.header__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__hamburger.is-active span:nth-child(2) { opacity: 0; }
.header__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 被写体（右側の手元）がスマホの縦トリミングでも残るよう右寄せ */
  object-position: 78% center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,20,10,0.55) 0%,
    rgba(30,20,10,0.4) 60%,
    rgba(30,20,10,0.65) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: 0 var(--space-md);
  margin-top: var(--header-height);
}

.hero__sub {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  letter-spacing: 0.12em;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
}

.hero__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(45deg);
  animation: scrollArrow 1.6s ease infinite;
  opacity: 0.8;
}

@keyframes scrollArrow {
  0%   { transform: rotate(45deg) translate(0, 0); opacity: 0; }
  50%  { opacity: 0.8; }
  100% { transform: rotate(45deg) translate(8px, 8px); opacity: 0; }
}

/* ============================================================
   Service
============================================================ */
.service {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.service__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.service__images {
  position: relative;
}

.service__img-main {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 4/3;
}

.service__img-sub {
  width: 48%;
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 1/1;
  position: absolute;
  bottom: -24px;
  right: -24px;
  border: 4px solid var(--color-white);
  box-shadow: var(--shadow-sm);
}

.service__lead {
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
  line-height: 1.9;
}

.service__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.service__list-item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-left: 3px solid var(--color-primary);
  background: var(--color-bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.service__list-item i {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.service__list-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.service__list-item p {
  font-size: 0.875rem;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.service__note {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  margin-bottom: var(--space-md);
}

/* ============================================================
   Features
============================================================ */
.features {
  padding: var(--space-xl) 0;
  background: var(--color-bg-sub);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-card__img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.feature-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.feature-card:hover .feature-card__img img { transform: scale(1.04); }

.feature-card__body {
  padding: var(--space-md);
}

.feature-card__num {
  font-family: var(--font-latin);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  font-weight: 700;
  display: block;
  margin-bottom: var(--space-xs);
}

.feature-card__title {
  font-family: var(--font-mincho);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.feature-card__title i { color: var(--color-primary); }

.feature-card__text {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* ============================================================
   Flow
============================================================ */
.flow {
  padding: var(--space-xl) 0;
  background: var(--color-white);
}

.flow__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  counter-reset: flow;
}

.flow__item {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  position: relative;
}

.flow__item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: calc(-1 * var(--space-md) / 2 - 8px);
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent var(--color-border);
}

.flow__num {
  font-family: var(--font-latin);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.25;
}

.flow__title {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow__title i { color: var(--color-primary); }

.flow__text {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* ============================================================
   FAQ — おしえておかもとさん
============================================================ */
.faq {
  padding: var(--space-xl) 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
}

/* ヘッダー：おかもとさん写真＋タイトル */
.faq__header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.faq__chara {
  position: relative;
  flex-shrink: 0;
}

.faq__chara-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  border: 4px solid var(--color-primary);
  box-shadow: 0 6px 24px rgba(232,114,12,0.25);
  display: block;
  position: relative;
}

/* 丸枠の装飾：外側に二重リング */
.faq__chara::before {
  content: '';
  position: absolute;
  inset: -12px;
  border: 2px dashed var(--color-secondary);
  border-radius: 50%;
  pointer-events: none;
}

.faq__chara-bubble {
  position: absolute;
  top: -14px;
  right: -16px;
  z-index: 1;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

.faq__chara-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 20px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 6px 0 6px;
  border-color: var(--color-primary) transparent transparent transparent;
}

.faq__title-block { flex: 1; }

.faq__title {
  font-family: var(--font-mincho);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-top: 6px;
  margin-bottom: var(--space-sm);
  position: relative;
  display: inline-block;
  padding-bottom: var(--space-sm);
}

.faq__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.faq__title-sub {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  margin-top: var(--space-sm);
}

/* アコーディオンリスト */
.faq__list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.faq__item:has(.faq__question[aria-expanded="true"]) {
  box-shadow: 0 4px 20px rgba(232,114,12,0.12);
  border-color: var(--color-primary);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
}

.faq__question:hover { background: #FFF5EC; }

.faq__question[aria-expanded="true"] {
  background: #FFF5EC;
}

.faq__q-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-latin);
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq__q-text {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.6;
}

.faq__toggle-icon {
  color: var(--color-primary);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq__question[aria-expanded="true"] .faq__toggle-icon {
  transform: rotate(180deg);
}

.faq__answer {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md) var(--space-md);
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  animation: faqOpen 0.3s ease;
}

/* hidden属性をdisplay:flexより優先させる（アコーディオン開閉用） */
.faq__answer[hidden] { display: none; }

@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq__a-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-sub);
  color: var(--color-primary);
  font-family: var(--font-latin);
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--color-primary);
  margin-top: 2px;
}

.faq__answer p {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.85;
  flex: 1;
}

/* SP用改行クラス */
.sp-only { display: none; }

/* ============================================================
   Contact
============================================================ */
.contact {
  padding: var(--space-xl) 0;
  background: var(--color-bg-sub);
}

.contact__body {
  max-width: 680px;
  margin: 0 auto;
}

.contact__tel-block {
  text-align: center;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.contact__tel-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.contact__tel-label {
  font-size: 0.9rem;
  color: var(--color-text-sub);
  margin-bottom: var(--space-xs);
}

.contact__tel-num {
  display: block;
  font-family: var(--font-latin);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-xs);
}

.contact__tel-num:hover { color: var(--color-secondary); }

.contact__tel-note {
  font-size: 0.85rem;
  color: var(--color-text-sub);
}

.contact__divider {
  text-align: center;
  position: relative;
  margin: var(--space-md) 0;
  color: var(--color-text-sub);
  font-size: 0.9rem;
}

.contact__divider::before,
.contact__divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--color-border);
}

.contact__divider::before { left: 0; }
.contact__divider::after  { right: 0; }

.contact__form {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.form__group {
  margin-bottom: var(--space-md);
}

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.form__required {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(232,114,12,0.12);
  background: var(--color-white);
}

.form__input.is-error,
.form__textarea.is-error {
  border-color: #e53e3e;
}

.form__textarea { resize: vertical; min-height: 140px; }

.form__error {
  display: block;
  font-size: 0.8rem;
  color: #e53e3e;
  margin-top: 4px;
  min-height: 1.2em;
}

.form__submit { text-align: center; }

.form__success {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: #f0fdf4;
  color: #166534;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.form__success i { margin-right: 6px; }

/* ============================================================
   Footer
============================================================ */
.footer {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.8);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: var(--space-lg);
  align-items: start;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: var(--space-md);
}

.footer__logo {
  height: 108px;
  width: auto;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-sm);
}

.footer__name {
  font-family: var(--font-mincho);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.06em;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
}

.footer__info i {
  color: var(--color-primary);
  margin-right: 8px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--color-secondary); }

.footer__copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   Page Top Button
============================================================ */
.pagetop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(232,114,12,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
}

.pagetop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pagetop:hover { background: var(--color-secondary); }

/* ============================================================
   70% Interactions
============================================================ */

/* Header shrink on scroll */
.header { transition: height 0.3s, box-shadow 0.3s; }

.header.is-shrunk {
  height: 56px;
}

.header.is-shrunk .header__logo-img { height: 40px; }
.header.is-shrunk .header__brand-name { font-size: 0.85rem; }
.header.is-shrunk .header__brand-name strong { font-size: 1.05rem; }

/* Active nav link */
.header__nav-list a.is-active { color: var(--color-primary); }
.header__nav-list a.is-active::after { width: 100%; }

/* Body scroll lock when menu open (SP) */
body.is-nav-open { overflow: hidden; }

/* Flow items: JS-driven stagger */
.flow__item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s;
}

.flow__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.flow__item.is-visible:hover {
  box-shadow: 0 6px 24px rgba(232,114,12,0.12);
  transform: translateY(-3px);
  transition: opacity 0.5s ease, transform 0.25s ease, box-shadow 0.25s;
}

/* Tel tap ripple */
.contact__tel-num {
  position: relative;
  overflow: hidden;
}

.contact__tel-num.is-tapped::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(232,114,12,0.12);
  border-radius: var(--radius-sm);
  animation: ripple 0.4s ease-out;
}

@keyframes ripple {
  from { opacity: 1; transform: scale(0.8); }
  to   { opacity: 0; transform: scale(1.1); }
}

/* Form input focus animation */
.form__input,
.form__textarea {
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

/* Btn loading state */
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================================
   60% Visual Enhancements
============================================================ */

/* --- Section texture overlay --- */
.service,
.flow { position: relative; }

.service::before,
.flow::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(232,114,12,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* --- Hero enhancements --- */
.hero__bg img {
  animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.06); }
}

.hero__content { max-width: 760px; }

/* オレンジのライン装飾 */
.hero__title::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  background: var(--color-primary);
  margin: var(--space-sm) auto 0;
  border-radius: 2px;
}

/* --- Service visual polish --- */
.service__images::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  width: 80px;
  height: 80px;
  border-top: 4px solid var(--color-primary);
  border-left: 4px solid var(--color-primary);
  border-radius: 2px 0 0 0;
  z-index: 1;
}

.service__img-main {
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s ease;
}

.service__img-main:hover { transform: scale(1.01); }

.service__list-item {
  transition: background 0.2s, transform 0.2s;
}

.service__list-item:hover {
  background: #FFF5EC;
  transform: translateX(4px);
}

/* --- Features visual polish --- */
.features {
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,114,12,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.features::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(245,166,35,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.feature-card {
  border: 1px solid var(--color-border);
}

.feature-card__body {
  border-top: 3px solid var(--color-primary);
}

/* --- Flow visual polish --- */
.flow { overflow: hidden; }

.flow__list { position: relative; }

/* 横つなぎライン（PC） */
.flow__list::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(50% - (var(--container-max) / 2 * 0.8));
  right: calc(50% - (var(--container-max) / 2 * 0.8));
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  opacity: 0.25;
}

.flow__num {
  font-size: 2.4rem;
  opacity: 1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.flow__item {
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s, transform 0.25s;
  background: var(--color-white);
}

.flow__item:hover {
  box-shadow: 0 6px 24px rgba(232,114,12,0.12);
  transform: translateY(-3px);
}

/* --- Contact visual polish --- */
.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary), var(--color-primary));
}

.contact__tel-num {
  transition: color 0.2s, letter-spacing 0.2s;
}

.contact__tel-num:hover { letter-spacing: 0.1em; }

.contact__tel-block {
  border-top: 3px solid var(--color-primary);
}

/* --- Footer visual polish --- */
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
}

/* --- Section alternating accent line --- */
.service   { border-top: 1px solid var(--color-border); }
.features  { border-top: 1px solid var(--color-border); }
.flow      { border-top: 1px solid var(--color-border); }
.contact   { border-top: 1px solid var(--color-border); }

/* ============================================================
   Responsive — Tablet
============================================================ */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .flow__list { grid-template-columns: repeat(2, 1fr); }

  .flow__item:nth-child(2)::after,
  .flow__item:nth-child(4)::after { display: none; }

  /* 装飾ライン：2列以下では位置が合わないため非表示 */
  .flow__list::before { display: none; }

  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  /* --- Header: タブレット以下はハンバーガーメニューに切替 --- */
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: var(--space-md);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s, opacity 0.35s;
    z-index: 999;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
  }

  .header__nav-list {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .header__nav-list a { font-size: 1rem; }

  /* ナビが画面外に出るため、電話→ハンバーガーを右端に寄せる */
  .header__tel { margin-left: auto; }
  .header__hamburger { display: flex; margin-left: 0; }

  /* メニュー位置とずれるため、縮小時もヘッダー高さを固定する */
  .header.is-shrunk { height: var(--header-height); }
  .header.is-shrunk .header__logo-img { height: 56px; }
  .header.is-shrunk .header__brand-name { font-size: 1rem; }
  .header.is-shrunk .header__brand-name strong { font-size: 1.25rem; }
}

/* ============================================================
   Responsive — Mobile
============================================================ */
@media (max-width: 767px) {
  :root { --space-lg: 48px; --space-xl: 72px; }

  /* Header（スマホ固有のサイズ調整のみ。開閉の仕組みはタブレット用に定義済み） */
  .header__logo-img { height: 44px; }
  .header__brand-name { font-size: 0.8rem; }
  .header__brand-name strong { font-size: 1rem; }

  .header.is-shrunk .header__logo-img { height: 44px; }
  .header.is-shrunk .header__brand-name { font-size: 0.8rem; }
  .header.is-shrunk .header__brand-name strong { font-size: 1rem; }

  .header__tel span { display: none; }
  .header__tel i { font-size: 1.2rem; }

  .header__inner { gap: var(--space-xs); }

  /* Hero */
  .hero__title br { display: none; }

  /* Service：リード文の改行はPC専用 */
  .service__lead br { display: none; }

  /* Service */
  .service__body { grid-template-columns: 1fr; }

  .service__images { padding-bottom: 80px; }

  .service__img-sub {
    width: 44%;
    bottom: 0;
    right: 0;
  }

  /* Features */
  .features__grid { grid-template-columns: 1fr; }

  /* Flow */
  .flow__list { grid-template-columns: 1fr; }

  .flow__item::after { display: none !important; }

  /* FAQ */
  .sp-only { display: block; }

  .faq__header {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .faq__chara-img {
    width: 160px;
    height: 160px;
  }

  .faq__chara-bubble {
    right: -8px;
    top: -12px;
  }

  .faq__title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .faq__question { padding: var(--space-sm); }
  .faq__answer   { padding: var(--space-sm); }

  /* Contact form */
  .contact__form { padding: var(--space-md); }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
  }

  /* ロゴ画像はdisplay:blockのためtext-alignが効かず、margin autoで中央寄せ */
  .footer__logo { margin-left: auto; margin-right: auto; }

  .footer__nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }

  /* Pagetop */
  .pagetop { bottom: 20px; right: 20px; }
}
