@charset "UTF-8";

/* ============================================================
   カスタム共通スタイル
   ============================================================ */
:root {
  /* 1. ブランド＆メインカラー */
  --primary-color: #1e5c43;
  --primary-hover: #143e2d;
  --button-hover-bg: #1b5e20; /* ボタン・トップ戻るのホバー色 */
  --to-top-bg: #2e7d32;       /* トップ戻るボタンの背景色 */

  /* 2. 背景色 */
  --bg-white: #ffffff;
  --bg-light: #f4f7f5;
  --bg-accent: #edf3f0;
  --bg-hero-end: #f8faf9;     /* ヒーローグラデーションの終点 */
  --bg-placeholder: #cbdcd4;  /* 画像プレースホルダー */

  /* 3. テキスト色 */
    --text-dark: #333631;       /* 強調・見出し用 */
  --text-color: #111111;      /* 既存の見出しクラス用定義 */
    --text-emphasis: #302833;      /* 強調・リード文用 */
  --text-light: #999999;      /* コピーライト用 */

  /* 4. その他 */
  --border-color: #e2e8f0;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* ============================================================
   スムーススクロール
   ============================================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; 
}

/* ============================================================
   ボタン共通
   ============================================================ */
.button, button, input[type="button"], input[type="submit"] {
  display: inline-block;
  background-color: var(--primary-color); /* 緑のベタ塗り */
  color: var(--bg-white);
  padding: 0.8rem 2rem;       /* 上下と左右の十分な余白 */
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;         /* 角丸 */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 薄い影 */
  transition: all 0.3s ease;  /* 変化を滑らかにする */
}

.button:hover, button:hover {
  background-color: var(--button-hover-bg); /* 濃い緑に */
  transform: translateY(-1px); /* 上に浮き上がらせる */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* 枠線ボタン */
.button.button.btn-outline {
  background-color: transparent;
  color: var(--primary-color) !important;
  border: 1.5px solid var(--primary-color); 
  box-shadow: none;
}
.button.button.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--bg-white) !important;
}

/* ユニバーサルデザイン用基本余白・共通見出し */
section.container {
  padding-top: 3rem;
  padding-bottom: 3rem;
  margin-top: 0;
  margin-bottom: 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.section-lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* ============================================================
   ヘッダー（Header）
   ============================================================ */
.header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  position: sticky; /* 固定 */
  top: 0;
  background-color: var(--bg-white);
  box-shadow: 0px 10px 10px -6px rgba(213, 213, 213, 0.3);
  z-index: 10;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.header__logo-link {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
}
.header__logo-link:hover {
  text-decoration: none;
}

.header__toggle-input {
  display: none;
}

.nav-menu ul li .button.header__cta-btn {
  background-color: var(--primary-color);
  color: var(--bg-white);
  box-shadow: none;
}
/* スマホ表示のボタン調整 */
@media (max-width: 1024px) {
  .nav-menu ul li .button.header__cta-btn {
    display: block;
    width: calc(100% - 40px); /* 左右に20pxずつの隙間（余白）を作る */
    margin: 1rem auto 1rem;    /* 上との間隔を空けボタンを中央に寄せる */
    text-align: center;
    padding: 0.8rem 0;        /* 左右の余白をリセットして幅を安定させる */
  }
}

/* ============================================================
   1. ファーストビュー（Hero）
   ============================================================ */
.hero {
  background-color: var(--bg-light);
  padding: 6rem 0;
  background-image: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-hero-end) 100%);
  background: url("img/mainimg.jpg"); /* メインビジュアルの画像URL */
  background-size: cover;
  background-position: center center;
}

.hero__body {
  max-width: 800px;
  margin: 0 auto;
}

.hero__title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--text-emphasis);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero__actions .button {
  background-color: var(--primary-color);
  color: var(--bg-white);
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }
  .hero__title {
    font-size: 1.7rem;
  }
  .hero__lead {
    font-size: 1rem;
  }
}

/* サブページ用のヒーローエリア設定 */
.subpage-hero {
    /* ここに背景画像を設定してください */
    background-image: url('img/mainimg.jpg'); 
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    
    /* 上下の余白を小さくして、画像の表示エリアを縦に狭くします */
    padding: 40px 0; 
}

/* タイトルの文字サイズ調整 */
.subpage-hero__title {
    font-size: 1.8rem; /* 元のサイズより少し小さめに調整 */
    color: #000;       /* 背景色に合わせて変更してください */
    margin: 0;
    line-height: 1.4;
}

/* ============================================================
   2 & 3 & 4. コンポーネント: カード（Card）& 特徴ボックス
   ============================================================ */
.card,
.feature-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2rem 1.5rem;
  height: 100%;
  box-shadow: var(--card-shadow);
}

.card__icon-wrapper {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card__title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.card__text {
  font-size: 1rem;
  color: var(--text-muted);
}

/* 実績用プレースホルダー画像 */
.card__image-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: -2rem;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  margin-bottom: 1.5rem;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  letter-spacing: 0.05em;
  overflow: hidden;
}

.card__image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   2. 特徴・強み（Features）
   ============================================================ */
.features {
  padding: 4rem 2rem;
}

.feature-box__icon {
  font-size: 2rem;
  margin: 0.75rem;
}

.feature-box__icon img {
  max-width: 100%;
  height: auto;
}

.feature-box__title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.feature-box__text {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ============================================================
   5. 代表者名・事業者名（Profile）
   ============================================================ */
.profile__inner {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 3rem 2rem;
  box-shadow: var(--card-shadow);
}

.profile__avatar-placeholder {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.profile__avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile__name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.profile__text {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ============================================================
   6. 料金プラン（Pricing）
   ============================================================ */
.price-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2.5rem 1.5rem;
  position: relative;
  height: 100%;
  box-shadow: var(--card-shadow);
}

/* おすすめデザイン */
.price-card--featured {
  border: 1px solid var(--bg-placeholder); /* 目立たせる場合は色を変える */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); /* 影を少し深くして立体感で引き立てる */
}

@media (max-width: 768px) {
  .price-card--featured {
    margin: 1.5rem 0;
  }
}

/* おすすめバッジの設定 */
.price-card__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--bg-white);
  padding: 3px 14px;
  font-size: 0.8rem; /* 文字を小さくして上品に */
  font-weight: bold;
  letter-spacing: 0.05em; /* 文字の間隔を少し広げる */
  border-radius: 4px; /* 角丸 */
}

.price-card__plan {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.price-card__amount {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.price-card__detail {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.price-card__actions .button {
  width: 100%;
  background-color: var(--primary-color);
  color: var(--bg-white);
}

.pricing__note {
  font-size: 1rem;
  color: var(--text-muted);
  padding: 1rem;
}

/* ============================================================
   7. よくある質問（FAQ）
   ============================================================ */
.faq-list {
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-light);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-item__question {
  padding: 1.25rem 1.5rem;
  padding-right: 3rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  list-style: none; 
}

.faq-item__question::-webkit-details-marker {
  display: none; 
}

.faq-item__question::after {
  content: "＋";
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-color);
}

.faq-item[open] .faq-item__question::after {
  content: "ー";
}

.faq-item__answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 1rem;
  border-top: 1px solid rgba(0,0,0,0.03);
}

/* ============================================================
   8. お問い合わせ（Contact：電話・メールカード）
   ============================================================ */
.contact__inner {
  background-color: var(--bg-accent);
  border-radius: 8px;
  padding: 4rem 2rem;
}

.contact__methods {
  max-width: 900px;
  margin: 0 auto;
}

.contact-method-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  height: 100%;
  box-shadow: var(--card-shadow);
  text-align: center;
}

.contact-method-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-method-card__title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-method-card__text {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.contact-method-card__link {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.contact-method-card__link:hover {
  text-decoration: underline;
}

.contact-method-card__btn {
  background-color: var(--primary-color);
  color: var(--bg-white);
  width: 100%;
  max-width: 260px;
}

.contact-method-card__note,
.contact-method-card__address {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   10. 注記（Note）
   ============================================================ */
.note__inner {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 2.5rem 2rem 1.5rem 2rem; /* ← 一番最初の「上」だけを2.5remに広げました */
  box-shadow: var(--card-shadow);
}

.note__avatar-placeholder {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.note__avatar-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note__name {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.note__text {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ============================================================
   フッター（Footer）
   ============================================================ */
.footer {
  padding-bottom: 2.5rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer__logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-decoration: none;
}

.footer__nav a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer__copyright {
  font-size: 1rem;
  color: var(--text-light);
}

.footer hr {
  border-top: 1px solid var(--text-light);
}

/* トップへ戻るボタンの基本スタイル */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  background-color: var(--to-top-bg);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  
  display: flex;
  align-items: center;
  justify-content: center;
  
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

/* CSSで作る綺麗な山型の矢印 */
.to-top::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 3px solid var(--bg-white);  /* 矢印の太さ */
  border-left: 3px solid var(--bg-white); /* 矢印の太さ */
  transform: rotate(45deg); /* 斜めに回転させて山型にする */
  margin-top: 4px; /* 視覚的な中央揃えの微調整 */
}

/* 表示用クラス */
.to-top.is-show {
  opacity: 1;
  visibility: visible;
}

/* ホバー時の動き */
.to-top:hover {
  background-color: var(--button-hover-bg);
  transform: translateY(-2px);
}



/* カードに浮き上がる動きの準備をする */
.card:has(.curtain-card-link) {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* マウスが乗ったら上に4ピクセル浮き上がり、影を少し強くする（パソコン用） */
@media (hover: hover) {
  .card:has(.curtain-card-link):hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  }
}




/* ========================================
   カーテン仕上りサイズ自動計算
   ======================================== */

.ms-curtain-calculator {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
  color: #333;
  font-family: inherit;
}

.ms-curtain-calculator *,
.ms-curtain-calculator *::before,
.ms-curtain-calculator *::after {
  box-sizing: border-box;
}


/* メインタイトル */
.ms-calculator-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #333;
}

.ms-calculator-lead {
  margin: 0 0 35px;
  text-align: center;
  color: #777;
  font-size: 14px;
  line-height: 1.8;
}


/* 窓タイプのカード */
.ms-window-card {
  margin-bottom: 30px;
  padding: 35px 40px 40px;
  background: #fff;
  border: 1px solid #e5e2de;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}


/* セクションタイトル */
.ms-window-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e8e5e1;
  font-size: 21px;
  font-weight: 600;
  color: #333;
}

.ms-window-title::before {
  content: "";
  display: block;
  width: 4px;
  height: 24px;
  background: #777;
  border-radius: 2px;
}


/* 入力項目 */
.ms-form-group {
  margin-bottom: 25px;
}

.ms-form-label {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: #444;
}

.ms-form-number {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ms-form-number input {
  width: 180px;
  height: 48px;
  padding: 8px 12px;
  border: 1px solid #d8d5d1;
  border-radius: 4px;
  background: #fff;
  font-size: 17px;
  text-align: right;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ms-form-number input:focus {
  border-color: #888;
  box-shadow: 0 0 0 3px rgba(100, 100, 100, 0.08);
}

.ms-unit {
  font-size: 14px;
  color: #555;
}


/* ドレープ・レース選択 */
.ms-type-select {
  width: 100%;
  max-width: 400px;
  height: 48px;
  padding: 0 40px 0 14px;
  border: 1px solid #d8d5d1;
  border-radius: 4px;
  background: #fff;
  font-size: 15px;
  color: #444;
  cursor: pointer;
}


/* 計算ボタン */
.ms-calc-button {
  display: inline-block;
  min-width: 250px;
  height: 52px;
  margin-top: 5px;
  padding: 0 30px;
  border: none;
  border-radius: 4px;
  background: #444;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ms-calc-button:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}


/* 計算結果 */
.ms-result-box {
  margin-top: 30px;
  padding: 22px 25px;
  border-radius: 5px;
  background: #f7f6f4;
  text-align: center;
}

.ms-result-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #777;
  letter-spacing: 0.05em;
}

.ms-result {
  min-height: 32px;
  font-size: 23px;
  line-height: 1.5;
  color: #333;
}

.ms-result strong {
  font-size: 26px;
  font-weight: 600;
}


/* 注意書き */
.ms-note {
  margin: 20px 0 0;
  padding: 13px 15px;
  background: #faf9f7;
  border-left: 3px solid #aaa;
  color: #666;
  font-size: 12px;
  line-height: 1.8;
}


/* 備考 */
.ms-info {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #e8e5e1;
}

.ms-info-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #444;
}

.ms-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-info-list li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 1em;
  font-size: 12px;
  line-height: 1.7;
  color: #777;
}

.ms-info-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}


/* スマホ */
@media screen and (max-width: 767px) {

  .ms-curtain-calculator {
    margin: 25px auto;
    padding: 0 12px;
  }

  .ms-calculator-title {
    font-size: 22px;
  }

  .ms-calculator-lead {
    margin-bottom: 25px;
    font-size: 13px;
  }

  .ms-window-card {
    padding: 25px 18px 30px;
    margin-bottom: 20px;
  }

  .ms-window-title {
    margin-bottom: 25px;
    font-size: 18px;
  }

  .ms-window-title::before {
    height: 20px;
  }

  .ms-form-label {
    font-size: 14px;
  }

  .ms-form-number input {
    width: 150px;
    height: 46px;
  }

  .ms-type-select {
    max-width: 100%;
    height: 46px;
  }

  .ms-calc-button {
    width: 100%;
    min-width: 0;
  }

  .ms-result-box {
    padding: 20px 12px;
  }

  .ms-result {
    font-size: 19px;
  }

  .ms-result strong {
    font-size: 22px;
  }
}
