/*
 * final.css
 * 仕上げ用のデザイン調整
 * - 元デザインの配色・構成を反映
 * - 文字サイズと余白を調整
 * - モバイル表示は末尾のメディアクエリで上書き
 */

/* ==============================
   ベースカラー・全体
============================== */
:root {
  --f-green: #00ad3e;
  --f-deep: #063623;
  --f-navy: #09264a;
  --f-pale: #f6f9fb
}

body {
  color: var(--f-navy);
  background: #fff
}

.hero {
  border-radius: 0;
  margin: 0;
  background: #f7fbfc
}

.hero-image {
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  border-radius: 0;
  object-position: 62% center
}

.hero:after {
  background: linear-gradient(90deg, #fff 0 32%, rgba(255, 255, 255, .96) 42%, rgba(255, 255, 255, .32) 64%, transparent 78%)
}

.hero-inner {
  width: min(1160px, calc(100% - 72px))
}

.hero h1 {
  font-size: clamp(38px, 4.2vw, 60px);
  max-width: 62%;
  line-height: 1.35
}

.hero h1 em {
  color: var(--f-green)
}

.hero h1 span {
  font-size: 30px
}

.hero .button {
  background: linear-gradient(#10b741, #00a232);
  border-radius: 6px;
  box-shadow: 0 7px 0 #007c2b, 0 14px 24px rgba(0, 85, 40, .18)
}

.hero .button:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 #007c2b, 0 10px 18px rgba(0, 85, 40, .2)
}

.hero-inset {
  display: none
}

.section-title small {
  color: #078f3b;
  font-weight: 700
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: .015em
}

.section-title h2 span {
  color: var(--f-green)
}

.worry {
  background: radial-gradient(circle at 7% 18%, #e7f5f8 0 95px, transparent 96px), radial-gradient(circle at 92% 78%, #eff8e9 0 120px, transparent 121px), #f5fbfc
}

.worry .section-title {
  text-align: center
}

.worry .center {
  text-align: center
}

.worry .cards {
  gap: 12px
}

.cards article {
  background: #fff;
  border: 1px solid #e8edf0;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(13, 51, 73, .08)
}

.worry .cards article {
  border-bottom: 0;
  padding: 18px 12px 24px
}

.generated-graphic,
.generated-photo {
  display: block;
  width: 100%;
  height: 138px;
  margin: 10px auto 16px;
  object-fit: contain;
  border-radius: 9px;
  background: #eef9f1
}

.generated-photo {
  object-fit: cover;
  background: #eef4f0
}

.worry .generated-graphic {
  height: 120px;
  padding: 5px
}

.worry .generated-photo {
  height: 120px
}

.cards h3 {
  font-size: 16px;
  line-height: 1.55
}

.assurance {
  padding: 14px 20px;
  border: 1px solid #8bd5a1;
  border-radius: 7px;
  background: #fff
}

.button {
  background: var(--f-green);
  border-radius: 6px;
  box-shadow: 0 5px 0 #007c2b
}

.service {
  padding-top: 105px
}

.service-grid {
  align-items: stretch
}

.service-grid>div:first-child {
  display: flex;
  flex-direction: column
}

.service-photo {
  height: 235px;
  order: 6;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(13, 51, 73, .12)
}

.service-panel {
  background: #f5faf7;
  border: 1px solid #dfece4;
  transform: none
}

.diagram,
.comparison {
  transform: none
}

.service .cards article {
  border-right: 0;
  background: #fff;
  border-radius: 10px
}

.service .generated-graphic {
  height: 78px;
  margin: 0 auto 8px;
  padding: 5px
}

.partner {
  width: min(1160px, calc(100% - 48px));
  background: linear-gradient(145deg, #f5fcf7, #eef8f3);
  color: var(--f-navy);
  border: 1px solid #dfeee5;
  border-radius: 16px
}

.partner h2 span {
  color: var(--f-green)
}

.partner .center,
.partner .section-title small {
  color: #567067
}

.partner .cards article {
  background: #fff;
  border: 1px solid #e3ebe7;
  box-shadow: 0 8px 22px rgba(13, 51, 73, .07)
}

.partner .button {
  background: var(--f-green);
  color: #fff
}

.partner .generated-graphic,
.partner .generated-photo {
  height: 155px;
  margin-bottom: 0
}

.reason {
  width: min(1160px, calc(100% - 48px))
}

.reason-grid {
  gap: 16px
}

.reason-grid article {
  background: #fff;
  min-height: 260px;
  border: 1px solid #e4e9ec;
  border-radius: 12px;
  box-shadow: 0 9px 25px rgba(9, 38, 74, .08)
}

.reason-grid article:nth-child(n) {
  background: #fff
}

.reason-grid small {
  font-size: 34px;
  color: #078f3b;
  font-weight: 700
}

.reason-grid h3 {
  font-size: 24px
}

.reason-art {
  width: 55%
}

.reason-art:after {
  background: linear-gradient(90deg, #fff 0, rgba(255, 255, 255, .3) 62%, transparent)
}

.reason-art img {
  object-fit: cover
}

.reason-grid article:nth-child(2) .reason-art img,
.reason-grid article:nth-child(4) .reason-art img {
  object-fit: contain;
  background: #f4fbf5;
  padding: 16px
}

.flow {
  background: #f6f8fa
}

.flow .cards {
  gap: 14px
}

.flow .cards article {
  padding: 16px 12px 24px;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(9, 38, 74, .07)
}

.flow .generated-graphic,
.flow .generated-photo {
  height: 155px;
  margin: 12px 0 16px
}

.flow .generated-graphic {
  padding: 10px
}

.flow .cards article:not(:last-child):after {
  right: -20px;
  top: 45%;
  width: 30px;
  height: 30px;
  line-height: 28px
}

.faq details {
  border-radius: 5px;
  border-color: #dfe4e8;
  box-shadow: none
}

.contact {
  margin: 0;
  border-radius: 0;
  background: #061d45
}

.contact:before {
  border-radius: 0
}

.contact .button {
  background: linear-gradient(#11bd42, #009c2f);
  color: #fff;
  border-radius: 7px;
  box-shadow: 0 7px 0 #007525
}

@media(max-width:700px) {
  .hero {
    height: 735px;
    margin: 0
  }

  .hero-image {
    width: 100%;
    height: 315px;
    top: auto;
    bottom: 0
  }

  .hero:after {
    background: linear-gradient(180deg, #fff 0 46%, rgba(255, 255, 255, .93) 54%, transparent 75%)
  }

  .hero-inner {
    width: calc(100% - 34px);
    padding-top: 28px
  }

  .hero h1 {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.42
  }

  .hero h1 span {
    font-size: 20px
  }

  .worry .cards {
    grid-template-columns: 1fr 1fr
  }

  .worry .cards article:last-child {
    grid-column: 1/-1
  }

  .generated-graphic,
  .generated-photo {
    height: 105px
  }

  .service-photo {
    height: 190px
  }

  .partner {
    width: calc(100% - 24px)
  }

  .partner .generated-graphic,
  .partner .generated-photo {
    height: 120px
  }

  .reason {
    width: calc(100% - 38px)
  }

  .reason-grid article {
    min-height: 235px
  }

  .reason-art {
    width: 58%
  }

  .flow .cards {
    gap: 18px
  }

  .flow .cards article {
    display: grid;
    grid-template-columns: 42px 105px 1fr;
    min-height: 135px
  }

  .flow .generated-graphic,
  .flow .generated-photo {
    width: 100%;
    height: 95px;
    margin: 0;
    grid-row: span 2
  }

  .flow .cards article:not(:last-child):after {
    top: auto;
    bottom: -25px;
    right: calc(50% - 15px);
    transform: rotate(90deg)
  }
}

/* Larger typography and supplied HERO layout */
body {
  font-size: 17px;
  line-height: 1.9
}

.cards h3,
.service .cards h3 {
  font-size: 19px
}

.cards p,
.service p,
.center,
.contact p {
  font-size: 16px !important
}

.section-title small {
  font-size: 14px
}

.reason-grid p {
  font-size: 15px
}

.reason-grid h3 {
  font-size: 26px
}

.faq summary {
  font-size: 18px
}

.answer {
  font-size: 17px;
  max-width: none
}

.comparison>b,
.diagram b {
  font-size: 14px
}

.comparison>div {
  font-size: 12px
}

.assurance,
.bordered {
  font-size: 18px
}

.button {
  font-size: 19px
}

.micro {
  font-size: 14px
}

.flow .cards h3 {
  font-size: 19px
}

.cards article {
  overflow-wrap: anywhere
}

.hero {
  height: auto;
  min-height: 760px;
  aspect-ratio: 1672/941;
  max-height: 1000px
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center
}

.hero:after {
  inset: 0;
  background: linear-gradient(90deg, #fff 0%, #fffffff7 34%, #ffffffc9 46%, #ffffff40 62%, transparent 78%)
}

.hero-inner {
  width: 95%;
  padding-top: clamp(75px, 9vw, 158px);
  padding-bottom: 75px
}

.hero .eyebrow {
  max-width: none;
  border: 1px solid #183763;
  border-radius: 40px;
  font-size: clamp(15px, 1.35vw, 23px);
  padding: 3px 28px;
  color: #102951;
  background: #ffffffaa;
  letter-spacing: 0
}

.hero h1 {
  max-width: none;
  font-size: clamp(36px, 3.85vw, 65px);
  line-height: 1.45;
  letter-spacing: -.035em;
  margin: 14px 0 26px
}

.hero h1 em {
  font-size: 1.18em
}

.hero h1 span {
  display: inline;
  font-size: .77em;
  margin-left: 12px;
  font-weight: 800
}

.hero .intro {
  max-width: 70%;
  font-size: clamp(16px, 1.4vw, 24px);
  line-height: 1.95;
  color: #1c2329
}

/* HERO内の4つの特徴チップ */
.hero .chips {
  max-width: none;
  gap: 16px;
  margin: 30px 0 38px
}

.hero .chips span {
  border: 1px solid #e5e9ef;
  border-radius: 9px;
  padding: 15px 22px;
  font-size: clamp(14px, 1.15vw, 20px);
  color: #009c30;
  box-shadow: 0 2px 5px #0b284c0b
}

.hero .button {
  width: clamp(430px, 39vw, 650px);
  font-size: clamp(22px, 2vw, 33px);
  padding: 23px 28px;
  border-radius: 10px;
  box-shadow: 0 5px 9px #0a3b322c
}

.hero .micro {
  width: clamp(430px, 39vw, 650px);
  font-size: clamp(14px, 1.2vw, 20px);
  margin-top: 20px;
  color: #193e6c
}

@media(max-width:1000px) and (min-width:701px) {
  .hero {
    min-height: 650px
  }

  .hero-inner {
    padding-top: 60px
  }

  .hero h1 {
    font-size: 38px
  }

  .hero .intro {
    max-width: 77%
  }

  .hero .chips {
    gap: 8px
  }

  .hero .chips span {
    padding: 10px
  }

  .cards h3,
  .flow .cards h3 {
    font-size: 16px
  }

  .cards p {
    font-size: 14px !important
  }
}

@media(max-width:700px) {
  body {
    font-size: 16px
  }

  .cards h3,
  .service .cards h3 {
    font-size: 17px
  }

  .cards p,
  .service p,
  .center,
  .contact p {
    font-size: 15px !important
  }

  .faq summary {
    font-size: 16px
  }

  .answer {
    font-size: 16px
  }

  .reason-grid p {
    font-size: 14px
  }

  .assurance,
  .bordered {
    font-size: 16px
  }

  .flow .cards h3 {
    font-size: 17px
  }

  .hero {
    aspect-ratio: auto;
    max-height: none;
    min-height: 820px;
    height: auto
  }

  .hero-inner {
    padding-top: 32px;
    padding-bottom: 310px;
    width: calc(100% - 32px)
  }

  .hero-image {
    height: 370px;
    top: auto;
    bottom: 0;
    object-position: 65% center
  }

  .hero:after {
    background: linear-gradient(180deg, white 0%, white 48%, #ffffffeb 61%, transparent 82%)
  }

  .hero .eyebrow {
    font-size: 12px;
    padding: 5px 12px;
    max-width: 100%
  }

  .hero h1 {
    font-size: clamp(25px, 7.1vw, 42px);
    margin: 18px 0;
    line-height: 1.55
  }

  .hero h1 span {
    display: block;
    margin-left: 0;
    font-size: .77em
  }

  .hero .intro {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.9
  }

  .hero .intro br {
    display: none
  }

  .hero .chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 20px 0
  }

  /* モバイルでは2列にして、ボタンを読みやすく表示 */
  .hero .chips span {
    padding: 9px 6px;
    font-size: 14px;
    text-align: center
  }

  .button,
  .hero .button,
  .contact .button,
  .partner .button {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box;
    font-size: 18px;
    padding: 17px 14px;
    gap: 8px
  }

  .hero .micro {
    width: 100%;
    font-size: 13px;
    margin-top: 16px
  }

  .reason-grid article {
    min-height: 260px
  }

  .flow .cards article {
    grid-template-columns: 30px 72px minmax(0, 1fr);
    gap: 8px
  }

  .flow .generated-photo,
  .flow .generated-graphic {
    height: 90px
  }

  .flow .cards p {
    font-size: 14px !important
  }
}