:root {
  color-scheme: light;
  --paper: #faf8f2;
  --ink: #24372e;
  --muted: #4c6055;
  --green: #315c48;
  --line: #d8e0d6;
  --sage: #e8eee4;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 132px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 3px solid #a55c31; outline-offset: 5px; }
.skip { position: absolute; left: 1rem; top: -5rem; background: white; padding: .5rem; }
.skip:focus { top: .5rem; z-index: 20; }
.wrap { width: min(1140px, calc(100% - 72px)); margin-inline: auto; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 22px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; font: 700 25px/1.15 Georgia, serif; }
.brand small { font: inherit; font-style: italic; color: var(--green); }
nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
nav a { font-size: .875rem; text-decoration: none; font-weight: 650; }
nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-contact { border: 1px solid #a5b4a8; border-radius: 30px; padding: 7px 14px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 750; color: var(--green); letter-spacing: .04em; }
.eyebrow span { width: 9px; height: 9px; background: #799481; border-radius: 100%; }
h1, h2 { font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", serif; line-height: 1.4; letter-spacing: .025em; margin: 0; }
h1 { font-size: clamp(2rem, 4.45vw, 3.65rem); margin-block: 15px 20px; }
h1 em { font-style: normal; color: var(--green); }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
h3 { margin: 0 0 6px; font-size: 1.13rem; }
p { margin: 0; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .88rem; font-weight: 700; padding: 11px 17px; text-decoration: none; border: 1px solid var(--green); border-radius: 999px; }
.primary { color: white; background: var(--green); }
.primary:hover { background: #244635; }
.secondary { color: var(--green); }
.secondary:hover { background: var(--sage); }
.hero-visual { overflow: hidden; border-radius: 28px 28px 88px 28px; background: var(--sage); }
.section { padding-block: 55px 72px; }
.services { border-top: 1px solid var(--line); }
.section-heading p { margin-top: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.cards article, .member { border: 1px solid var(--line); background: #fffdf8; border-radius: 19px; padding: 23px; }
.icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: var(--green); background: var(--sage); font: 700 29px/1 system-ui; margin-bottom: 14px; }
.price { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; padding: 18px 23px; border-radius: 19px; background: var(--sage); }
.price strong { font: 700 36px/1.2 Georgia, serif; }
.price small { font: 700 15px/1 system-ui; }
.price > div:last-child { text-align: right; }
.plan-section { background: #e3ece1; }
.plan-inner, .faq, .contact-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 35px; align-items: start; }
.plan-inner, .contact-inner { padding-block: 58px; }
.plan-inner h2, .contact h2 { margin-block: 6px 10px; }
.member .button { margin-top: 12px; }
details { border-bottom: 1px solid var(--line); padding: 12px 0; }
details:first-child { border-top: 1px solid var(--line); }
details p { padding: 6px 0 0 19px; }
summary { cursor: pointer; font-weight: 650; }
.contact { background: var(--sage); }
.contact-inner { align-items: center; }
.footer > small { color: var(--muted); }
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .header { align-items: flex-start; flex-direction: column; gap: 15px; }
  nav { gap: 8px 13px; }
  nav a { font-size: .8rem; }
  .nav-contact { padding: 3px 8px; }
  .plan-inner, .faq, .contact-inner { grid-template-columns: 1fr; gap: 18px; }
  .section, .plan-inner, .contact-inner { padding-block: 38px; }
  .price { align-items: flex-start; flex-direction: column; }
  .price > div:last-child { text-align: left; }
  .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
.about { border-top: 1px solid var(--line); padding-block: 35px 55px; }
.about p { max-width: 46em; margin-top: 12px; }
.plan-inner { padding-bottom: 23px; }
.plan-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: 52px; }
@media (max-width: 620px) {
  .plan-options { grid-template-columns: 1fr; padding-bottom: 38px; }
}

.icon { position: relative; }
.icon span, .icon::before, .icon::after { position: absolute; }
.icon-laptop span {
  width: 21px;
  height: 15px;
  top: 12px;
  border: 2px solid currentColor;
  border-radius: 3px 3px 0 0;
}
.icon-laptop::after {
  content: "";
  width: 27px;
  height: 2px;
  top: 27px;
  background: currentColor;
  border-radius: 2px;
}
.icon-phone span {
  width: 15px;
  height: 24px;
  border: 2px solid currentColor;
  border-radius: 4px;
}
.icon-phone::after {
  content: "";
  width: 5px;
  height: 2px;
  top: 27px;
  background: currentColor;
  border-radius: 2px;
}
.icon-wifi::before, .icon-wifi span {
  content: "";
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
}
.icon-wifi::before { width: 28px; height: 21px; top: 13px; }
.icon-wifi span { width: 17px; height: 13px; top: 19px; }
.icon-wifi::after {
  content: "";
  width: 4px;
  height: 4px;
  top: 26px;
  background: currentColor;
  border-radius: 50%;
}

/* スクロールしても表示するヘッダー */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #dbeeea;
  border-bottom: 1px solid #b7d3cd;
}
.site-header .header { padding-block: 10px; }
.wordmark { display: block; width: clamp(170px, 23vw, 255px); height: auto; }
.footer .wordmark { width: 170px; }

/* トップのメモと写真 */
.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(12, minmax(0, 1fr));
  min-height: clamp(470px, 57vw, 665px);
  padding: 26px 3% 43px;
  color: #163f3e;
}
.hero-note, .hero-house, .hero-photo, .hero-services {
  box-shadow: 0 6px 16px rgb(22 63 62 / 13%);
}
.hero-note {
  display: grid;
  align-content: center;
  grid-area: 3 / 1 / 10 / 9;
  padding: clamp(24px, 5vw, 62px) 8%;
  background: #d2efe5;
  transform: rotate(-5deg);
}
.hero-note h1 {
  font-family: inherit;
  font-weight: 850;
  font-size: clamp(2rem, 4.25vw, 3.8rem);
  line-height: 1.25;
  margin: 0;
}
.hero-note p {
  justify-self: start;
  border-top: 4px solid #77bea7;
  padding-top: 10px;
  margin-top: 15px;
  color: inherit;
  font-size: clamp(.95rem, 1.6vw, 1.35rem);
  font-weight: 700;
}
.hero-house {
  grid-area: 1 / 9 / 6 / 12;
  display: grid;
  place-items: center;
  padding: 12%;
  z-index: 2;
  background: #d9f4f3;
  transform: rotate(9deg);
}
.hero-house img { width: 100%; max-height: 160px; object-fit: contain; }
.hero-photo {
  grid-area: 6 / 7 / 13 / 13;
  z-index: 1;
  border: 8px solid #fff;
  background: #fff;
  transform: rotate(-4deg);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-services {
  grid-area: 10 / 4 / 13 / 9;
  align-self: center;
  justify-self: center;
  z-index: 3;
  padding: .5em 1em;
  background: #ffd7ad;
  color: inherit;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 750;
  line-height: 1.45;
  transform: rotate(-6deg);
}
@media (max-width: 700px) {
  .hero-collage {
    grid-template-rows: repeat(12, 28px);
    min-height: auto;
    padding: 30px 2% 40px;
  }
  .hero-note { grid-area: 2 / 1 / 8 / 11; padding: 16px 9%; }
  .hero-note h1 { font-size: clamp(1.28rem, 4.9vw, 2rem); }
  .hero-note p { font-size: .81rem; padding-top: 5px; margin-top: 9px; }
  .hero-house { grid-area: 1 / 9 / 4 / 13; }
  .hero-photo { grid-area: 7 / 5 / 13 / 13; border-width: 5px; }
  .hero-services { grid-area: 10 / 1 / 13 / 8; font-size: .87rem; justify-self: start; }
}
