/* ==================================================
   四季荘 特典紹介サイト
   style.css
================================================== */


/* ==================================================
   1. 基本設定
================================================== */

:root {
  --color-main: #d96818;
  --color-main-dark: #a94410;
  --color-orange: #ef8a17;
  --color-red: #df4a3a;
  --color-green: #18a84a;
  --color-blue: #196bc5;
  --color-pink: #db6681;
  --color-purple: #8352b8;

  --color-text: #332720;
  --color-muted: #70625a;
  --color-white: #ffffff;
  --color-bg: #fffdf8;
  --color-bg-soft: #fff7e8;
  --color-border: #eadac2;

  --shadow-small: 0 6px 18px rgba(70, 45, 25, 0.08);
  --shadow-card: 0 12px 30px rgba(70, 45, 25, 0.12);

  --radius-small: 12px;
  --radius-medium: 20px;
  --radius-large: 30px;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  line-height: 1.8;
}


img {
  display: block;
  max-width: 100%;
}


a {
  color: inherit;
  text-decoration: none;
}


button,
input {
  font: inherit;
}


button {
  color: inherit;
}


.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}


.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;

  padding: 10px 16px;

  color: #ffffff;
  background: #222222;
  border-radius: 8px;
}


.skip-link:focus {
  top: 16px;
}


/* ==================================================
   2. 共通セクション
================================================== */

.section {
  padding: 80px 0;
}


.section__heading {
  max-width: 780px;
  margin: 0 auto 42px;
  text-align: center;
}


.section__label {
  margin: 0 0 8px;

  color: var(--color-main);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
}


.section__title {
  margin: 0;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.4;
}


.section__description {
  max-width: 720px;
  margin: 18px auto 0;

  color: var(--color-muted);
  font-size: 16px;
}


/* ==================================================
   3. ボタン
================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 52px;
  padding: 12px 24px;

  border: 1px solid transparent;
  border-radius: 999px;

  font-weight: 800;
  line-height: 1.4;
  text-align: center;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}


.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(50, 30, 15, 0.15);
}


.button--primary {
  color: #ffffff;
  background:
    linear-gradient(
      135deg,
      #f39a1d,
      #db5b11
    );
}


.button--secondary {
  color: var(--color-main-dark);
  background: #ffffff;
  border-color: var(--color-border);
}


.button--line {
  color: #ffffff;
  background: #14ad43;
}


.button--campaign {
  width: 100%;
  margin-top: auto;

  color: #ffffff;
  background: var(--card-accent, var(--color-main));
}


/* ==================================================
   4. ヘッダー
================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(130, 90, 50, 0.12);

  backdrop-filter: blur(10px);
}


.site-header__inner {
  min-height: 80px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 22px;
}


.site-logo {
  flex-shrink: 0;
}


.site-logo__image {
  width: 180px;
  height: 62px;

  object-fit: contain;
  object-position: left center;
}


.global-nav {
  display: flex;
  align-items: center;
  gap: 24px;

  margin-left: auto;
}


.global-nav a {
  position: relative;

  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}


.global-nav a::after {
  content: "";

  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;

  height: 2px;

  background: var(--color-main);

  transform: scaleX(0);
  transform-origin: center;

  transition: transform 0.2s ease;
}


.global-nav a:hover::after {
  transform: scaleX(1);
}


.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}


.site-header__actions .button {
  min-height: 44px;
  padding: 9px 18px;
  font-size: 14px;
}


.menu-button {
  display: none;

  width: 46px;
  height: 46px;
  padding: 0;

  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 14px;

  cursor: pointer;
}


.menu-button span {
  display: block;

  width: 22px;
  height: 2px;

  margin: 5px auto;

  background: var(--color-text);
}


.mobile-nav {
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}


.mobile-nav__inner {
  display: grid;
  gap: 8px;

  padding: 16px 0 24px;
}


.mobile-nav a:not(.button) {
  padding: 10px 4px;

  border-bottom: 1px solid #eee2d2;

  font-weight: 700;
}


/* ==================================================
   5. トップ画像
================================================== */

.hero {
  width: 100%;
  margin: 0;
  padding: 0;

  overflow: hidden;
  background: #ffffff;
}


.hero__image {
  display: block;

  width: 100%;
  height: auto;

  margin: 0;
}


/* ==================================================
   6. 特典一覧の導入
================================================== */

.section--intro {
  padding-top: 70px;
  padding-bottom: 32px;

  background: #ffffff;
}


/* ==================================================
   7. 特典一覧
================================================== */

.section--benefits {
  padding-top: 28px;

  background:
    radial-gradient(
      circle at top left,
      rgba(255, 233, 190, 0.55),
      transparent 30%
    ),
    var(--color-bg);
}


.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}


.benefit-card {
  --card-accent: var(--color-main);

  position: relative;

  min-width: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: #ffffff;
  border: 2px solid var(--card-accent);
  border-radius: 22px;

  box-shadow: var(--shadow-card);
}


.benefit-card--orange {
  --card-accent: var(--color-orange);
}


.benefit-card--red {
  --card-accent: var(--color-red);
}


.benefit-card--green {
  --card-accent: var(--color-green);
}


.benefit-card--pink {
  --card-accent: var(--color-pink);
}


.benefit-card--blue {
  --card-accent: var(--color-blue);
}


.benefit-card--purple {
  --card-accent: var(--color-purple);
}


.benefit-card__number {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;

  min-width: 58px;
  padding: 8px 15px 10px;

  color: #ffffff;
  background: var(--card-accent);

  border-radius: 0 0 20px 0;

  font-size: 18px;
  font-weight: 900;
}


/*
  生成した画像は文字入りなので、
  切り取らず全体を表示します。
*/

.benefit-card__image {
  width: 100%;

  aspect-ratio: 3 / 2;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background: #f7f2ea;
}


.benefit-card__image img {
  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;

  background: #ffffff;

  transition: transform 0.3s ease;
}


.benefit-card:hover .benefit-card__image img {
  transform: scale(1.015);
}


.benefit-card__body {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 24px;
}


.benefit-card__category {
  margin: 0 0 8px;

  color: var(--card-accent);

  font-size: 14px;
  font-weight: 900;
}


.benefit-card__title {
  margin: 0;

  font-size: 22px;
  line-height: 1.55;
}


.benefit-card__text {
  margin: 15px 0 20px;

  color: var(--color-muted);
  font-size: 15px;
}


.benefit-card__price {
  display: flex;
  align-items: flex-end;
  gap: 12px;

  margin: 17px 0 2px;
}


.benefit-card__price span {
  color: var(--color-muted);
  text-decoration: line-through;
}


.benefit-card__price strong {
  color: var(--card-accent);

  font-size: 34px;
  line-height: 1;
}


/* ==================================================
   8. 参加方法
================================================== */

.section--howto {
  background:
    linear-gradient(
      180deg,
      #fff8eb,
      #fffdf8
    );
}


.step-list {
  margin: 0;
  padding: 0;

  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;

  list-style: none;
}


.step-card {
  position: relative;

  padding: 65px 22px 28px;

  text-align: center;

  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);

  box-shadow: var(--shadow-small);
}


.step-card__number {
  position: absolute;
  top: 17px;
  left: 50%;

  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  color: #ffffff;
  background: var(--color-main);

  border-radius: 50%;

  font-weight: 900;

  transform: translateX(-50%);
}


.step-card h3 {
  margin: 0;

  font-size: 19px;
}


.step-card p {
  margin: 12px 0 0;

  color: var(--color-muted);
  font-size: 14px;
}


/* ==================================================
   9. コンプリートチャレンジ
================================================== */

.section--challenge {
  background: #ffffff;
}


.challenge {
  padding: 44px;

  background:
    linear-gradient(
      135deg,
      #fff8e8,
      #fffdf8
    );

  border: 1px solid #efdfc1;
  border-radius: var(--radius-large);

  box-shadow: var(--shadow-small);
}


.challenge__intro {
  text-align: center;
}


.challenge__content {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 36px;
  align-items: center;

  margin-top: 38px;
}


.challenge-list {
  display: grid;
  gap: 12px;
}


.challenge-item {
  display: flex;
  align-items: center;
  gap: 13px;

  padding: 15px 17px;

  background: #ffffff;
  border: 1px solid #eeddbc;
  border-radius: 14px;

  cursor: pointer;
}


.challenge-item:hover {
  border-color: var(--color-main);
}


.challenge-item input {
  flex-shrink: 0;

  width: 21px;
  height: 21px;

  accent-color: var(--color-main);
}


.challenge-progress {
  text-align: center;
}


.progress-circle {
  --progress: 0deg;

  width: 190px;
  height: 190px;

  margin: 0 auto 20px;

  display: grid;
  place-items: center;

  background:
    radial-gradient(
      circle,
      #ffffff 63%,
      transparent 64%
    ),
    conic-gradient(
      var(--color-orange) var(--progress),
      #f1e8db var(--progress)
    );

  border-radius: 50%;
}


.progress-circle span {
  display: flex;
  align-items: flex-end;
  gap: 5px;
}


.progress-circle strong {
  font-size: 58px;
  line-height: 1;
}


.progress-circle small {
  padding-bottom: 8px;

  font-size: 20px;
}


.challenge-progress p {
  color: var(--color-muted);
  font-weight: 700;
}


/* ==================================================
   10. よくある質問
================================================== */

.section--faq {
  background: #fff9ef;
}


.faq-list {
  max-width: 900px;
  margin: 0 auto;

  display: grid;
  gap: 12px;
}


.faq-item {
  position: relative;

  width: 100%;
  padding: 20px 62px 20px 22px;

  text-align: left;

  background: #ffffff;
  border: 1px solid #ead7b8;
  border-radius: 15px;

  cursor: pointer;

  box-shadow: 0 5px 16px rgba(70, 42, 20, 0.06);
}


.faq-item__question {
  display: block;

  font-weight: 800;
}


.faq-item__icon {
  position: absolute;
  top: 17px;
  right: 22px;

  font-size: 28px;
  line-height: 1;

  transition: transform 0.2s ease;
}


.faq-item__answer {
  display: block;

  max-height: 0;
  overflow: hidden;

  margin-top: 0;

  color: var(--color-muted);
  opacity: 0;

  transition:
    max-height 0.3s ease,
    margin-top 0.3s ease,
    opacity 0.3s ease;
}


.faq-item[aria-expanded="true"] .faq-item__answer {
  max-height: 240px;
  margin-top: 13px;
  opacity: 1;
}


.faq-item[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
}


/* ==================================================
   11. 最後の案内
================================================== */

.section--final-cta {
  background:
    radial-gradient(
      circle at 50% 0,
      #fff3ce,
      transparent 48%
    ),
    #ffffff;
}


.final-cta {
  padding: 50px 32px;

  text-align: center;

  background: #fffaf0;
  border: 1px solid #efdfbd;
  border-radius: var(--radius-large);
}


.final-cta__title {
  margin: 0;

  font-family:
    "Yu Mincho",
    "Hiragino Mincho ProN",
    serif;

  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.5;
}


.final-cta__text {
  margin: 16px 0 25px;

  color: var(--color-muted);
}


/* ==================================================
   12. アクセス
================================================== */

.section--access {
  background: #f7f3ec;
}


.access {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: stretch;
}


.access__info,
.access__map {
  padding: 28px;

  background: #ffffff;
  border: 1px solid #e8d9c1;
  border-radius: var(--radius-medium);

  box-shadow: var(--shadow-small);
}


.access__address {
  margin: 22px 0 12px;

  font-style: normal;
}


.access__phone {
  margin-bottom: 24px;

  font-size: 21px;
  font-weight: 800;
}


.access__phone a {
  color: var(--color-main-dark);
}


.access__map {
  padding: 10px;
  overflow: hidden;
}


.access__map iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;

  border-radius: 14px;
}


/* ==================================================
   13. フッター
================================================== */

.site-footer {
  color: #f7efe5;
  background: #35251d;
}


.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 50px;

  padding-top: 52px;
  padding-bottom: 52px;
}


.site-footer__logo {
  width: 260px;
  max-width: 100%;
  height: auto;

  margin-bottom: 18px;

  background: #ffffff;
  border-radius: 10px;
}


.site-footer__brand p {
  margin: 8px 0;
}


.site-footer__brand a:hover {
  color: #ffd79e;
}


.site-footer__nav {
  display: grid;
  align-content: start;
  gap: 12px;
}


.site-footer__nav a:hover {
  color: #ffd79e;
}


.site-footer__bottom {
  padding: 16px 0;

  text-align: center;

  border-top: 1px solid rgba(255, 255, 255, 0.13);
}


/* ==================================================
   14. タブレット
================================================== */

@media (max-width: 1020px) {

  .global-nav {
    display: none;
  }


  .menu-button {
    display: block;
  }


  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  .challenge__content {
    grid-template-columns: 1fr;
  }


  .access {
    grid-template-columns: 1fr;
  }


  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

}


/* ==================================================
   15. スマートフォン
================================================== */

@media (max-width: 680px) {

  .section {
    padding: 58px 0;
  }


  .container {
    width: min(94%, 1180px);
  }


  .site-header__inner {
    min-height: 68px;
  }


  .site-logo__image {
    width: 135px;
    height: 50px;
  }


  .site-header__actions > .button {
    display: none;
  }


  .hero__image {
    width: 100%;
    height: auto;

    object-fit: contain;
  }


  .section--intro {
    padding-top: 52px;
    padding-bottom: 20px;
  }


  .section__heading {
    margin-bottom: 32px;
  }


  .section__description {
    font-size: 15px;
  }


  .benefit-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }


  .benefit-card__image {
    aspect-ratio: 3 / 2;
  }


  .benefit-card__body {
    padding: 22px 19px;
  }


  .benefit-card__title {
    font-size: 21px;
  }


  .step-list {
    grid-template-columns: 1fr;
  }


  .challenge {
    padding: 30px 18px;
  }


  .challenge__content {
    gap: 30px;
  }


  .progress-circle {
    width: 160px;
    height: 160px;
  }


  .progress-circle strong {
    font-size: 48px;
  }


  .faq-item {
    padding:
      18px
      52px
      18px
      18px;
  }


  .final-cta {
    padding: 40px 18px;
  }


  .final-cta .button {
    width: 100%;
  }


  .access__info,
  .access__map {
    padding: 20px;
  }


  .access__map {
    padding: 8px;
  }


  .access__map iframe {
    min-height: 330px;
  }


  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }


  .site-footer__logo {
    width: 220px;
  }

}


/* ==================================================
   16. 小さいスマートフォン
================================================== */

@media (max-width: 390px) {

  .site-logo__image {
    width: 118px;
  }


  .section__title {
    font-size: 28px;
  }


  .benefit-card__body {
    padding: 21px 17px;
  }


  .benefit-card__title {
    font-size: 20px;
  }


  .challenge-item {
    align-items: flex-start;
    font-size: 14px;
  }

}