@charset "UTF-8";

/* ===============================
   RESET / BASE
   =============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-navy: #14192C;
  --color-navy-deep: #0e1224;
  --color-beige: #EDE5CA;
  --color-text: #1a2849;
  --color-text-body: #4a4a4a;
  --color-white: #ffffff;
  --color-required: #b81e1e;
  --color-line: #cccccc;
  --color-input-bg: #ffffff;

  /* Fonts */
  --font-display: 'Cinzel', 'Noto Serif JP', serif;
  --font-serif-jp: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
  --font-sans-jp: "Noto Sans JP","游ゴシック",YuGothic,"メイリオ",Meiryo,"ＭＳ Ｐゴシック","MS PGothic",Helvetica,Arial,Verdana,sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif-jp);
  color: var(--color-text);
  line-height: 1.8;
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

button {
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

button:hover {
  opacity: 0.8;
}


/* ===============================
   LAYOUT HELPERS
   =============================== */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 860px;
}


/* ===============================
   SECTION HEADINGS (eyebrow + title)
   =============================== */
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 1.7em;
  /*letter-spacing: 0.1em;*/
  text-align: center;
  color: var(--color-text);
  margin-bottom: 0;
  /*font-weight: 500;*/
}

.section-title {
  font-family: var(--font-display);
  font-size: 7.0em;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--color-text);
  margin-bottom: 60px;
  line-height: 1;
}


/* ===============================
   HERO
   =============================== */
.hero {
  width: 100%;
  background: var(--color-navy);
}

.hero__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero__inner {
  width: 100%;
  max-width:1460px;
  position:relative;
  margin: auto;
}
.hero__logo {
    position: absolute;
    top: 35px;
    left: 35px;
    width: 10%;
    max-width: 125px;
}
.hero__logo img {
	width:100%;
}


/* ===============================
   INTRO (dark navy)
   =============================== */
.intro {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 75px 24px 95px;
  text-align: center;
}

.intro__title {
  font-family: var(--font-serif-jp);
  font-size: 3em;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 45px;
  letter-spacing: 0.04em;
}

.intro__text {
  font-size: 1.15em;
  line-height: 2.1;
  letter-spacing: 0.02em;
}

.intro__text p {
  margin-bottom: 5px;
}

.intro__link {
  text-decoration: underline;
  color: var(--color-white);
}


/* ===============================
   WHY
   =============================== */
.why {
  padding: 115px 0 60px;
  background: var(--color-white);
}

.why__item {
  display: flex;
  gap: 60px;
  margin-bottom: 75px;
  align-items: flex-start;
}

.why__heading {
  font-family: var(--font-serif-jp);
  font-size: 2.8em;
  font-weight: 500;
  flex: 0 0 350px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.why__body {
  flex: 1;
  font-size: 1.1em;
  line-height: 2;
  color: var(--color-text);
}

.why__body p {
  margin-bottom: 15px;
}

.why__body p:last-child {
  margin-bottom: 0;
}


/* ===============================
   PLAN DESCRIPTION (after WHY)
   =============================== */
.plan-desc {
  padding: 55px 0 110px;
  text-align: center;
}

.plan-desc__title {
  font-family: var(--font-serif-jp);
  font-size: 58px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 50px;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.plan-desc__body {
  font-size: 1.3em;
  line-height: 2;
  color: var(--color-text);
}

.plan-desc__list {
  list-style: none;
  margin: 22px 0;
  text-align: left;
  display: inline-block;
  font-weight: bold;
}

.plan-desc__list li {
  margin-bottom: 5px;
}

.plan-desc__last {
  margin-top: 14px;
  font-weight: bold;
}


/* ===============================
   DOCTOR (beige)
   =============================== */
.doctor {
  background: var(--color-beige);
  padding: 95px 0 105px;
}

.doctor__content {
  display: flex;
  gap: 55px;
  max-width: 800px;
  margin: 0 auto;
  align-items: flex-start;
  justify-content: center;
}

.doctor__photo {
  flex: 0 0 300px;
}

.doctor__photo img {
  width: 100%;
  height: auto;
}

.doctor__info {
  flex: 1;
  padding-top: 12px;
  max-width: 380px;
  font-family:auto;
}

.doctor__name {
  font-family: var(--font-serif-jp);
  font-size: 2.5em;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text);
  letter-spacing: 0.08em;
  line-height: 1.0;
}

.doctor__name-en {
  font-size: 1.0em;
  letter-spacing: 0.18em;
  margin-bottom: 24px;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
}

.doctor__role {
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
}

.doctor__qualifications {
  list-style: none;
  font-size: 0.9em;
  line-height: 1.95;
  color: var(--color-text);
  font-family: var(--font-sans-jp);
  font-weight: 500;
}

.doctor__qualifications li {
  position: relative;
  padding-left: 16px;
}

.doctor__qualifications li::before {
  content: '・';
  position: absolute;
  left: 0;
}


/* ===============================
   PLAN
   =============================== */
.plan {
  padding: 95px 0 75px;
  text-align: center;
  background: var(--color-white);
}

.plan__desc {
  font-size: 1.1em;
  line-height: 2;
  color: var(--color-text);
}


/* ===============================
   FORM
   =============================== */
.form-section {
  padding: 35px 0 110px;
  background: var(--color-white);
}

.form-section__title {
  font-family: var(--font-serif-jp);
  font-size: 3.5em;
  font-weight: 500;
  text-align: center;
  margin-bottom: 65px;
  letter-spacing: 0.08em;
  color: var(--color-text);
}

.form {
  max-width: 760px;
  margin: 0 auto;
}

.form__row {
  display: flex;
  gap: 26px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.form__label {
  flex: 0 0 240px;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 5px;
  color: var(--color-text);
  font-weight: 500;
  flex-wrap: wrap;
}

.form__label--multi {
  align-items: flex-start;
  flex: 0 0 100%;
  padding: 0px 0 0 260px;
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--color-text-body);
  font-weight: 400;
}

.form__label small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.05em;
}

#row-datetime .form__label {
	line-height:1;
}

.required {
  background: var(--color-required);
  color: #fff;
  font-size: 0.8em;
  padding: 3px 9px;
  border-radius: 2px;
  line-height: 1;
  letter-spacing: 0.05em;
  display: inline-block !important;
}

.form__input-group {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form__input-group--split {
  flex-direction: row;
  gap: 22px;
  flex-wrap: wrap;       /* .form__error (flex-basis:100%) を下に折り返す */
}
/* 姓・名は常に横並びを維持 */
.form__input-group--split .form__split-item {
  flex: 1 1 0;
  min-width: 0;
}

.form__input-group--inline {
  flex-direction: row;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;    /* エラー行を折り返して下に表示させる */
}
.form__input-group--radio {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px 0;
}
.form__split-item {
  flex: 1 1 0;   /* 均等幅・折り返さない */
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.form__sublabel {
  font-size: 1.0em;
  color: var(--color-text);
  flex-shrink: 0;
}

.form__note {
  font-size: 0.9em;
  color: var(--color-text-body);
  line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
  /*width: 100%;*/
  padding: 11px 13px;
  border: 1px solid var(--color-line);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1.1em;
  background: var(--color-input-bg);
  color: var(--color-text);
  transition: border-color 0.2s ease;
  width:auto;
  max-width:100%;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-navy);
}

textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.7;
}

.form__input--short {
  max-width: 200px;
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 15px;
  padding-right: 38px;
}

/* Radio & checkbox */
.radio,
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.0em;
  cursor: pointer;
  margin-right: 26px;
  padding: 7px 0;
  transition: opacity 0.2s ease;
}

.radio:hover,
.checkbox:hover {
  opacity: 0.75;
}

.radio input,
.checkbox input {
  margin: 0;
  cursor: pointer;
  width: 16px;
  height: 16px;
}

/* Address search button */
.address-btn {
  background: #3a3a3a;
  color: #fff;
  border: none;
  padding: 11px 20px;
  font-size: 17px;
  border-radius: 2px;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.address-btn:hover {
  opacity: 0.8;
}

/* Privacy & agree */
.form__privacy-note {
  font-size: 16px;
  color: var(--color-text-body);
  text-align: center;
  margin-top: 45px;
  line-height: 1.8;
}

.form__agree {
  text-align: center;
  margin-top: 13px;
}

.form__agree .checkbox {
  margin-right: 0;
}

/* Submit */
.form__submit {
  text-align: center;
  margin-top: 40px;
}

.submit-btn {
  background: var(--color-navy);
  color: #fff;
  border: none;
  padding: 22px 95px;
  font-size: 1.4em;
  font-family: var(--font-self-jp);
  font-weight: 500;
  letter-spacing: 0.15em;
  border-radius: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  min-width: 350px;
  cursor:pointer;
}

/* 無効状態（デフォルト：チェックなし） */
.submit-btn:disabled {
  background: #c8cdd8;
  color: #f0f2f5;
  cursor: not-allowed;
  pointer-events: auto; /* cursor を表示するため auto に */
}

/* 有効状態（チェックあり） */
.submit-btn:not(:disabled):hover {
  opacity: 0.85;
}


/* ===============================
   FORM ERROR STATES
   =============================== */

/* テキスト入力・テキストエリア・セレクトのエラー枠 */
input.is-error,
textarea.is-error,
select.is-error {
  border-color: #c0392b !important;
  background-color: #fff6f6;
}

/* ラジオ・チェックボックスのラッパーエラー */
.form__row.is-error .radio span,
.form__agree.is-error .checkbox span {
  color: #c0392b;
}

/* エラーメッセージ
   ─ form__input-group (flex container) の中に置かれているため、
     flex-basis:100% + order:99 で常に入力欄の下・全幅に折り返す */

.form__error {
  display: none;
  color: #c0392b;
  font-size: 14px;
  margin-top: 6px;
  width: 100%;
  line-height: 1.5;
   /* split / inline / radio など横並びグループ内でも必ず折り返して下に出す */
  flex-basis: 100%;
  flex-shrink: 0;
  order: 99;
  width: 100%;
}


/* 同意チェックのエラー */
.form__agree .form__error {
  display: none;
  color: #c0392b;
  font-size: 14px;
  margin-top: 6px;
  text-align: center;
  flex-basis: auto;
  order: 0;
}


@media (max-width: 768px) {
  .form__error {
    font-size: 13px;
  }
}




/* ===============================
   FOOTER
   =============================== */
.footer {
  background: var(--color-white);
  color: var(--color-text-body);
  text-align: center;
  padding: 32px 24px;
  font-size: 14px;
  letter-spacing: 0.15em;
  border-top: 1px solid #eee;
}


/* ===============================
   RESPONSIVE (≤ 768px)  -- 1.1x of original mobile sizes
   =============================== */
@media (max-width: 768px) {

  /* Section headings */
  .section-eyebrow {
    font-size: 1.2em;
    /*letter-spacing: 0.25em;*/
  }

  .section-title {
    font-size: 4.5em;
    margin-bottom: 40px;
  }

  /* Intro */
  .intro {
    padding: 20px 0;
  }

  .intro__title {
    font-size: 2.4em;
    line-height: 1.6;
    margin-bottom: 30px;
  }

  .intro__text {
    font-size: 1.0em;
    line-height: 2;
    text-align: left;
  }

  /* WHY */
  .why {
    padding: 75px 0 40px;
  }

  .why__item {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 52px;
  }

  .why__heading {
    flex: 0 0 auto;
    font-size: 32px;
  }

  .why__body {
    font-size: 1.0em;
  }

  /* Plan description */
  .plan-desc {
    padding: 30px 0 75px;
  }

  .plan-desc__title {
    font-size: 40px;
    margin-bottom: 30px;
  }

  .plan-desc__body {
    text-align: left;
    font-size: 1.0em;
  }

  .plan-desc__body > p:first-child br {
    display: none;
  }

  .plan-desc__list {
    display: block;
  }

  /* Doctor */
  .doctor {
    padding: 65px 0 75px;
  }

  .doctor__content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .doctor__photo {
    flex: 0 0 auto;
    max-width: 250px;
    width: 80%;
  }

  .doctor__info {
    width: 100%;
    max-width: 340px;
    padding-top: 0;
    text-align: left;
  }

  .doctor__name {
    font-size: 2.3em;
    text-align: center;
  }

  .doctor__name-en {
    font-size: 0.9em;
    text-align: center;
  }

  .doctor__role {
    font-size: 1.0em;
    text-align: center;
  }

  .doctor__qualifications {
    font-size: 0.9em;
  }

  /* Plan */
  .plan {
    padding: 65px 0 50px;
  }

  .plan__desc {
    text-align: left;
    font-size: 1.0em;
  }

  .plan__desc br {
    display: none;
  }

  /* Form */
  .form-section {
    padding: 20px 0 75px;
  }

  .form-section__title {
    font-size: 2.4em;
    margin-bottom: 42px;
  }

  .form__row {
    flex-direction: column;
    gap: 9px;
    margin-bottom: 23px;
  }

  .form__label {
    flex: 0 0 auto;
    padding-top: 0;
    font-size: 14px;
  }

  .form__label--multi {
    font-size: 13px;
	padding:0;
  }

  .form__label small {
    font-size: 13px;
  }

  .required {
    font-size: 11px;
    padding: 3px 8px;
  }

  .form__sublabel {
    font-size: 13px;
  }

  .form__note {
    font-size: 12px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 15px;
  }

  .radio,
  .checkbox {
    margin-right: 17px;
    font-size: 14px;
  }

  .address-btn {
    font-size: 14px;
    padding: 10px 17px;
  }

  .form__privacy-note {
    font-size: 13px;
  }

  .form__input-group--split {
    flex-direction: column;
    gap: 11px;
  }

  .form__input-group--inline {
    flex-wrap: wrap;
  }

  .form__input--short {
    max-width: 170px;
  }

  .submit-btn {
    width: 100%;
    min-width: 0;
    padding: 18px;
    font-size: 17px;
  }

  /* Footer */
  .footer {
    font-size: 12px;
  }
}


/* ===============================
   EXTRA SMALL (≤ 480px)
   =============================== */
@media (max-width: 480px) {
  .pc_on {
	display:none;
  }
  .section-title {
    font-size: 4.0em;
  }
	.hero__logo {
		top: 25px;
		left: 25px;
		width: 20%;
	}
  .intro__title {
    font-size: 1.65em;
	letter-spacing: 0;
  }
  .plan-desc__title {
    font-size: 34px;
  }

  .doctor__name {
    font-size: 2.0em;
  }

  .form-section__title {
    font-size: 1.8em;
  }
}
