/* 
-------------------------------------------
✅ HTMLアウトラインと推奨見出し文字数
-------------------------------------------

*/

/* 0. Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap");

/* 1. Color Variables */
:root {
  --color-primary: #00559b;
  --color-secondary: #249ebe;
  --color-success: #91b2d1;
  --color-danger: #8d153a;
  --color-warning: #ed9248;
  --color-info: #fff8eb;
  --color-heading: #6e6e73;
  --body-color: #1d1d1f;
  --body-bg: #ffffff;
  --link-color: var(--color-heading);
  --caption-color: var(--color-heading);

  /* iOS style */
  --ios-blue: #007aff;
  --radio-border: #ccc;
  --radio-dot-size: 8px;

  /* Typography */
  --font-family-base: "Inter", "Noto Sans JP", sans-serif;
  --font-weight-base: 400;
  --line-height-base: 1.6;

  --font-size-base: 1rem;
  --font-size-sm: 0.875rem; /* 1rem * 0.875 */
  --font-size-lead: 1.3rem;

  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.75rem;
  --font-size-h4: 1.5rem;
  --font-size-h5: 1.25rem;
  --font-size-h6: 1rem;

  /* Responsive clamp sizes */
  --font-size-base-clamp: clamp(1.05rem, 1.5vw, 1.125rem);
  --font-size-lead-clamp: clamp(1.25rem, 2.5vw, 1.5rem);
  --font-size-p-clamp: clamp(1.05rem, 1.5vw, 1.125rem);
  --font-size-h1-clamp: clamp(2.25rem, 5vw, 3rem);
  --font-size-h2-clamp: clamp(1.75rem, 4vw, 2.25rem);
  --font-size-h3-clamp: clamp(1.5rem, 3.5vw, 1.75rem);
  --font-size-h4-clamp: clamp(1.25rem, 3vw, 1.5rem);
  --font-size-h5-clamp: clamp(1.125rem, 2.5vw, 1.25rem);
  --font-size-h6-clamp: clamp(1rem, 2vw, 1.125rem);

  /* Border radius */
  --border-radius: 0.75rem;
  --border-radius-sm: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-pill: 50rem;

  /* Box shadows */
  --box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  --box-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --box-shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
  --box-shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* 4. Utilities */
.text-green { color: #34c759 !important; }
.text-deep-green { color: #008009 !important; }
.text-blue { color: var(--ios-blue) !important; }
.text-purple { color: #af52de !important; }
.text-navy { color: #3f6eb8 !important; }
.text-gray { color: #8e8e93 !important; }

.bg-green { background-color: #008009 !important; }
.bg-blue { background-color: var(--ios-blue) !important; }
.bg-purple { background-color: #af52de !important; }
.bg-navy { background-color: #3f6eb8 !important; }
.bg-gray { background-color: #8e8e93 !important; }
.bg-gray-300 { background-color: #d1d1d6 !important; }
.bg-gray-200 { background-color: #f2f2f7 !important; }
.bg-gray-100 { background-color: #f7f7f7 !important; }

.text-gradation {
  background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradation-ui {
  background: linear-gradient(90deg, var(--ios-blue) 0%, #af52de 50%, #ff375f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 5. Card Styles */
.card-hover {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card-hover:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

/* 6. Buttons */
.py-btn {
  padding-top: 0.9rem !important;
  padding-bottom: 0.9rem !important;
}

.btn-blue {
  color: #fff !important;
  background-color: var(--ios-blue) !important;
  border: 1px solid var(--ios-blue) !important;
  border-radius: 0.25rem !important;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.btn-blue:hover {
  background-color: #006ae6 !important;
  border-color: #006ae6 !important;
}
.btn-blue:active,
.btn-blue:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.3);
}
.btn-blue:disabled {
  background-color: #b3d7ff !important;
  border-color: #b3d7ff !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-outline-blue {
  color: var(--ios-blue) !important;
  background-color: transparent !important;
  border: 1px solid var(--ios-blue) !important;
  border-radius: 0.25rem !important;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.btn-outline-blue:hover {
  background-color: rgba(0, 122, 255, 0.05) !important;
}
.btn-outline-blue:active,
.btn-outline-blue:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 122, 255, 0.3);
}
.btn-outline-blue:disabled {
  color: #b3d7ff !important;
  border-color: #b3d7ff !important;
  cursor: not-allowed;
  opacity: 0.7;
}

/* 7. iOS Style Toggles & Radios */
.form-switch-ios {
  position: relative;
  display: flex; /* 横並び */
  align-items: center;
  width: 100%;
  height: 26px;
  vertical-align: middle;
  margin-bottom: 0.5rem;
}
.form-switch-ios input[type="checkbox"] {
  opacity: 0;
  width: 0;
  height: 0;
}
.form-switch-ios input[type="checkbox"]:checked + .slider {
  background-color: var(--ios-blue);
}
.form-switch-ios input[type="checkbox"]:checked + .slider::before {
  transform: translateX(20px);
}
.form-switch-ios .slider {
  position: relative; /* absoluteをやめる */
  cursor: pointer;
  height: 26px;
  width: 46px;
  background-color: #ccc;
  border-radius: 34px;
  transition: background-color 0.4s;
}
.form-switch-ios .slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.4s;
}

.radio-ios {
  position: relative;
  padding-left: 28px;
  margin-right: 20px;
  cursor: pointer;
  user-select: none;
  font-size: 1rem;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
}
.radio-ios input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}
.radio-ios input[type="radio"]:checked ~ .checkmark {
  border-color: var(--ios-blue);
}
.radio-ios input[type="radio"]:checked ~ .checkmark::after {
  display: block;
}
.radio-ios .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: #fff;
  border: 2px solid var(--radio-border);
  border-radius: 50%;
  transition: all 0.3s ease;
}
.radio-ios .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  top: 4px;
  left: 4px;
  width: var(--radio-dot-size);
  height: var(--radio-dot-size);
  border-radius: 50%;
  background: var(--ios-blue);
}

/* 8. Base Elements */
body {
  font-family: var(--font-family-base);
  font-weight: var(--font-weight-base);
  line-height: var(--line-height-base);
  color: var(--body-color);
  font-size: var(--font-size-base-clamp);
  font-feature-settings: "palt";
  background-color: var(--body-bg);
}

p {
  font-size: var(--font-size-p-clamp);
  line-height: 1.6;
  color: var(--body-color);
}

.lead {
  font-size: var(--font-size-lead-clamp);
  font-weight: 400;
  line-height: 1.5;
}

small, .caption, .form-text {
  font-size: 0.875rem;
  color: var(--caption-color);
}

h1, .h1 {
  font-size: var(--font-size-h1-clamp);
  line-height: 1.2;
  font-weight: 700;
}
h2, .h2 {
  font-size: var(--font-size-h2-clamp);
  line-height: 1.3;
  font-weight: 600;
}
h3, .h3 {
  font-size: var(--font-size-h3-clamp);
  line-height: 1.4;
  font-weight: 600;
}
h4, .h4 {
  font-size: var(--font-size-h4-clamp);
  font-weight: 500;
}
h5, .h5 {
  font-size: var(--font-size-h5-clamp);
  font-weight: 500;
}
h6, .h6 {
  font-size: var(--font-size-h6-clamp);
  font-weight: 500;
}

a:not(.btn) {
  color: var(--body-color);
  text-decoration: none;
  transition: color 0.3s, text-decoration 0.3s;
}
a:not(.btn):hover,
a:not(.btn):focus {
  color: var(--color-heading);
  text-decoration: none;
  outline: none;
}

a.link-under:hover,
a.link-under:focus {
  text-decoration: underline !important;
}

/* 9. Search Input Icon */
.search-input-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.search-input-wrapper .icon {
  position: absolute;
  left: 1.5rem;
  color: #888;
  pointer-events: none;
  font-size: 1rem;
  top: 50%;
  transform: translateY(-50%);
}
.search-input-wrapper input.form-control {
  padding-left: 2.5rem;
}

/* 10. Bootstrap Import (optional) */
/* 
@import "bootstrap/scss/bootstrap";
@import "@fortawesome/fontawesome-free/css/all.css";
*/
