:root {
  --ivory: #ffffff;
  --ivory-soft: #ffffff;
  --brown: #2f2921;
  --brown-soft: #665b4e;
  --olive: #4f6738;
  --olive-deep: #40572f;
  --line: rgba(73, 61, 48, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ivory);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--brown);
  background: #ffffff;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-weight: 300;
  letter-spacing: 0.09em;
}

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

.page {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: absolute;
  pointer-events: none;
  opacity: 0.48;
  filter: blur(26px);
}

.ambient-top {
  top: -9rem;
  left: -4rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 255, 255, 0.78);
}

.ambient-bottom {
  right: -7rem;
  bottom: 2rem;
  width: 18rem;
  height: 18rem;
  background: rgba(232, 224, 209, 0.62);
}

.desktop-header {
  display: none;
}

.hero {
  position: relative;
  width: min(100%, 1120px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 31px 25px 34px;
  text-align: center;
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 42px;
}

.brand-logo {
  display: block;
  width: min(45vw, 160px);
  height: auto;
  mix-blend-mode: multiply;
}

.hero-copy {
  margin: 0 auto;
}

.lead {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--brown);
  letter-spacing: 0.14em;
}

h1 {
  margin: 0;
  font-size: clamp(31px, 9vw, 40px);
  font-weight: 300;
  line-height: 1.48;
  letter-spacing: 0.1em;
}

.description {
  margin: 26px 0 0;
  color: var(--brown-soft);
  font-size: 14px;
  line-height: 2.18;
  letter-spacing: 0.12em;
}

.actions {
  display: grid;
  gap: 13px;
  width: min(100%, 325px);
  margin: 33px auto 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  letter-spacing: 0.06em;
}

.line-button,
.instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 300;
}

.line-button {
  position: relative;
  gap: 13px;
  overflow: hidden;
  padding: 0 30px;
  color: #fffdf7;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    linear-gradient(90deg, var(--olive) 0%, var(--olive-deep) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 34px rgba(55, 73, 41, 0.16);
}

.line-button::before,
.header-line::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  pointer-events: none;
}

.line-mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 41px;
  height: 30px;
  border-radius: 18px;
  color: var(--olive);
  background: #fffdf6;
  font-size: 9px;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

.line-button .line-mark {
  margin-left: -4px;
}

.button-arrow {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 1px;
  background: rgba(255, 253, 247, 0.82);
}

.button-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 8px;
  height: 8px;
  border-top: 1px solid rgba(255, 253, 247, 0.82);
  border-right: 1px solid rgba(255, 253, 247, 0.82);
  transform: rotate(45deg);
}

.instagram-link {
  gap: 15px;
  color: var(--brown);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid var(--line);
}

.instagram-placeholder {
  cursor: default;
}

.instagram-mark {
  position: relative;
  width: 28px;
  height: 28px;
  border: 1.6px solid var(--brown);
  border-radius: 9px;
  opacity: 0.92;
}

.instagram-mark::before,
.instagram-mark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.instagram-mark::before {
  inset: 7px;
  border: 1.6px solid var(--brown);
}

.instagram-mark::after {
  top: 5.5px;
  right: 5.5px;
  width: 3.5px;
  height: 3.5px;
  background: var(--brown);
}

.proposal {
  width: min(105%, 390px);
  margin: 34px auto 0;
}

.proposal img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.proposal figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  margin-top: 13px;
  color: var(--brown-soft);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.proposal figcaption::before,
.proposal figcaption::after {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(102, 91, 78, 0.24);
}

.proposal-section {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 42px 25px 64px;
  text-align: center;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 31px;
}

.section-title span {
  display: block;
  width: 45px;
  height: 1px;
  background: rgba(102, 91, 78, 0.22);
}

.section-title h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.18em;
}

.before-after {
  display: grid;
  gap: 20px;
  justify-items: center;
}

.case-image {
  position: relative;
  width: min(100%, 330px);
  margin: 0;
}

.case-image img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  filter: saturate(0.9);
}

.image-label {
  position: absolute;
  top: 1px;
  left: 1px;
  z-index: 1;
  padding: 4px 10px 3px;
  border-radius: 4px;
  color: #645b50;
  background: rgba(215, 207, 194, 0.82);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.case-arrow {
  width: 19px;
  height: 19px;
  border-top: 1px solid var(--brown);
  border-right: 1px solid var(--brown);
  transform: rotate(135deg);
  opacity: 0.86;
}

.proposal-text {
  margin: 35px auto 0;
}

.proposal-text h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.88;
  letter-spacing: 0.14em;
}

.proposal-text p {
  margin: 24px 0 0;
  color: var(--brown-soft);
  font-size: 12px;
  line-height: 2.15;
  letter-spacing: 0.08em;
}

.proposal-text .note {
  margin-top: 21px;
  font-size: 10px;
  line-height: 2;
}

.service-section {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 20px 25px 70px;
  text-align: center;
}

.service-heading {
  margin-bottom: 24px;
}

.service-list {
  display: grid;
  gap: 31px;
}

.service-item {
  margin: 0 auto;
  width: min(100%, 295px);
}

.service-item img {
  display: block;
  width: 150px;
  height: auto;
  margin: 0 auto 15px;
  mix-blend-mode: multiply;
}

.service-item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.1em;
}

.service-item p {
  margin: 10px 0 0;
  color: var(--brown-soft);
  font-size: 11px;
  line-height: 2;
  letter-spacing: 0.07em;
}

.flow-section {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 7px 25px 72px;
  text-align: center;
}

.flow-list {
  display: grid;
  gap: 29px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  margin: 0 auto;
  width: min(100%, 285px);
}

.flow-number {
  display: block;
  margin-bottom: 8px;
  color: var(--brown);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.flow-icon {
  display: block;
  width: 68px;
  height: 68px;
  margin: 0 auto 13px;
  mix-blend-mode: multiply;
}

.flow-list h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.flow-list p {
  margin: 8px 0 0;
  color: var(--brown-soft);
  font-size: 11px;
  line-height: 2;
  letter-spacing: 0.07em;
}

.flow-note {
  margin: 28px 0 0;
  color: var(--brown-soft);
  font-size: 10px;
  line-height: 1.9;
}

.instagram-section {
  padding: 38px 25px 48px;
  background: #ffffff;
}

.instagram-copy {
  width: min(100%, 330px);
  margin: 0 auto;
  text-align: left;
}

.script {
  margin: 0 0 10px;
  color: rgba(80, 70, 58, 0.68);
  font-family: "Times New Roman", serif;
  font-size: 26px;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.08em;
}

.instagram-copy h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.09em;
}

.instagram-copy p:not(.script) {
  margin: 13px 0 0;
  color: var(--brown-soft);
  font-size: 11px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.instagram-cta {
  margin-top: 18px;
  min-height: 50px;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 330px);
  margin: 24px auto 0;
}

.instagram-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 5px;
}

.final-cta {
  padding: 42px 25px 34px;
  text-align: center;
}

.final-cta p {
  margin: 0;
  font-size: 18px;
  line-height: 2;
  letter-spacing: 0.11em;
}

.final-actions {
  margin-top: 25px;
}

.site-footer {
  padding: 22px 25px 28px;
  border-top: 1px solid rgba(102, 91, 78, 0.14);
  text-align: center;
}

.site-footer img {
  display: block;
  width: 118px;
  height: auto;
  margin: 0 auto 18px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px 18px;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--brown-soft);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.site-footer nav span {
  color: inherit;
}

.legal-page {
  min-height: 100svh;
}

.legal-shell {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 30px 24px 40px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 48px;
}

.legal-header img {
  display: block;
  width: 118px;
  height: auto;
  mix-blend-mode: multiply;
}

.legal-back {
  color: var(--brown-soft);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.legal-document {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.legal-document h1,
.legal-document h2,
.legal-document h3 {
  color: var(--brown);
  font-weight: 300;
}

.legal-document h1 {
  margin: 0 0 30px;
  font-size: 28px;
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.legal-document h2 {
  margin: 54px 0 18px;
  padding-top: 22px;
  border-top: 1px solid rgba(102, 91, 78, 0.16);
  font-size: 19px;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.legal-document h3 {
  margin: 30px 0 12px;
  color: var(--olive-deep);
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0.05em;
}

.legal-document p,
.legal-document li,
.legal-document td,
.legal-document th {
  color: var(--brown-soft);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: 0.03em;
}

.legal-document p {
  margin: 0 0 18px;
}

.legal-document strong {
  color: var(--brown);
  font-weight: 400;
}

.legal-document blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--olive);
  background: rgba(255, 255, 255, 0.36);
}

.legal-document blockquote p:last-child {
  margin-bottom: 0;
}

.legal-document ul,
.legal-document ol {
  margin: 12px 0 24px;
  padding-left: 1.5em;
}

.legal-document table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: 20px 0 30px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.34);
}

.legal-document th,
.legal-document td {
  padding: 12px 13px;
  border: 1px solid rgba(102, 91, 78, 0.18);
  vertical-align: top;
}

.legal-document th {
  color: var(--brown);
  background: rgba(79, 103, 56, 0.08);
  font-weight: 400;
}

.legal-document hr {
  margin: 38px 0;
  border: 0;
  border-top: 1px solid rgba(102, 91, 78, 0.18);
}

.legal-footer {
  max-width: 720px;
  margin: 54px auto 0;
  padding-top: 24px;
}

@media (min-width: 780px) {
  .desktop-header {
    position: absolute;
    top: 30px;
    right: 54px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 34px;
    font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  .desktop-header nav {
    display: flex;
    align-items: center;
    gap: 42px;
  }

  .desktop-header nav a {
    color: var(--brown);
  }

  .header-line {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    min-height: 42px;
    padding: 0 43px 0 12px;
    border-radius: 6px;
    color: #fffdf7;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
      var(--olive);
    border: 1px solid rgba(255, 255, 255, 0.24);
  }

  .header-line .line-mark {
    width: 30px;
    height: 23px;
    font-size: 7px;
  }

  .header-line .button-arrow {
    width: 18px;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(420px, 1.12fr);
    grid-template-areas:
      "brand image"
      "copy image"
      "actions image";
    column-gap: 42px;
    align-content: center;
    padding: 44px 54px 52px;
    text-align: left;
  }

  .brand {
    grid-area: brand;
    justify-content: flex-start;
    margin-bottom: 54px;
  }

  .hero-copy {
    grid-area: copy;
    margin: 0;
  }

  .actions {
    grid-area: actions;
    margin-left: 0;
  }

  .proposal {
    grid-area: image;
    align-self: center;
    width: min(100%, 630px);
    margin: 18px auto 0;
  }

  .proposal-section {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(250px, 0.72fr);
    grid-template-areas:
      "proposal-title proposal-title"
      "proposal-cases proposal-text";
    column-gap: 42px;
    align-items: center;
    padding: 28px 54px 80px;
  }

  .proposal-section > .section-title {
    grid-area: proposal-title;
  }

  .before-after {
    grid-area: proposal-cases;
    grid-template-columns: 1fr 34px 1fr;
    align-items: center;
    gap: 28px;
  }

  .case-image {
    width: 100%;
  }

  .case-arrow {
    transform: rotate(45deg);
  }

  .proposal-text {
    grid-area: proposal-text;
    margin: 0;
    text-align: left;
  }

  .service-section {
    padding: 18px 54px 82px;
  }

  .service-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .service-item {
    width: 100%;
    min-width: 0;
    padding: 0 18px;
    border-left: 1px solid rgba(102, 91, 78, 0.16);
  }

  .service-item h3 {
    font-size: 13px;
    line-height: 1.75;
  }

  .service-item:first-child {
    border-left: 0;
  }

  .flow-section {
    padding: 2px 54px 82px;
  }

  .flow-list {
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
  }

  .flow-list li {
    width: 100%;
  }

  .instagram-section {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) 1.15fr;
    align-items: center;
    gap: 34px;
    padding: 42px 54px;
  }

  .instagram-copy {
    width: 100%;
  }

  .instagram-grid {
    width: 100%;
    margin: 0;
  }

  .final-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 34px;
    padding: 35px 54px;
    text-align: left;
  }

  .final-cta p {
    max-width: 560px;
    line-height: 1.9;
  }

  .final-actions {
    width: min(100%, 360px);
    margin-top: 0;
    justify-self: end;
  }

  .site-footer {
    display: grid;
    grid-template-columns: 170px 1fr;
    align-items: center;
    gap: 30px;
    padding: 16px 54px 18px;
    text-align: left;
  }

  .site-footer img {
    margin: 0;
  }

  .site-footer nav {
    justify-content: flex-end;
  }
}

@media (min-width: 780px) and (max-width: 1080px) {
  .service-section {
    max-width: 820px;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 0;
  }

  .service-item:nth-child(odd) {
    border-left: 0;
  }

  .final-cta {
    display: block;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .final-cta p {
    max-width: none;
  }

  .final-actions {
    justify-self: auto;
    margin: 26px auto 0;
  }
}

@media (max-width: 520px) {
  .legal-shell {
    padding: 24px 20px 34px;
  }

  .legal-header {
    margin-bottom: 36px;
  }

  .legal-header img {
    width: 104px;
  }

  .legal-back {
    font-size: 11px;
  }

  .legal-document h1 {
    font-size: 22px;
    line-height: 1.65;
  }

  .legal-document h2 {
    margin-top: 44px;
    font-size: 17px;
  }

  .legal-document p,
  .legal-document li,
  .legal-document td,
  .legal-document th {
    font-size: 13px;
    line-height: 1.9;
  }

  .legal-document th,
  .legal-document td {
    min-width: 150px;
    padding: 10px 11px;
  }
}
