@charset "UTF-8";
/* ============================================================
 * PC 基本スタイル (全ページ共通・タグ基本 / 汎用プリミティブ)
 * ソース: resources/scss/ (SCSS)。ビルド: npm run css:build
 * ============================================================ */
/* CYCLE i / PROJECT by i — 暮らしに寄り添う深緑とアイボリー */
:root {
  --primary: #254e41;
  --primary-dark: #183c34;
  --primary-light: #e5ebe2;
  --sale: #a84429;
  /* 価格は本文と同色だと埋もれるため、ブランドのアクセント色で区別する (中村FB C-6) */
  --price: #a84429;
  --text: #183c34;
  --text-sub: #626b65;
  --muted: #626b65;
  --border: #d9ddd5;
  --border-light: #e6e8e1;
  --bg: #fff;
  --bg-sub: #f5f3ed;
  --bg-gray: #f5f3ed;
  --header-catch: #626b65;
}

/* ============================================================
 * タグ基本・汎用プリミティブ (PC/SP 共通)
 * 見出し・テーブルはタグ直指定を避けクラスで指定する
 * (.page-ttl / .section-ttl / .tbl)
 * ============================================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 14px;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ページ見出し (現行: 緑のアクセント)。旧 main h1 / main h2 のタグ指定をクラス化 */
.page-ttl {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}

.section-ttl {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 44px 0 22px;
}

/* 汎用テーブル (旧 table タグ直指定をクラス化) */
.tbl {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0;
}

.tbl th, .tbl td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
  font-size: 13px;
}

.tbl thead th {
  background: var(--primary-light);
}

/* フォーム部品 */
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=search], input[type=number], select, textarea {
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
}

fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

legend {
  font-weight: bold;
  padding: 0 8px;
  color: var(--primary-dark);
}

/* 縦積みフォームレイアウト */
.auth-form, .checkout-form {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label, .checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.auth-form label.radio, .checkout-form label.radio {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* 会員登録・お問い合わせ・注文照会・マイページ (会員情報変更/退会) の入力欄。
   項目名と「必須」は同じ行に並べ、入力欄だけ次の行へ送る。縦積みのままだと
   「必須」が項目名の下の行に分かれ、同意欄は文言が1語ずつ縦に割れていた (上田#8)。
   マイページの2画面はフォームの指定自体が無く、項目名と入力欄が横に流れていた */
.profile-form, .withdraw-form {
  max-width: 580px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.profile-form > .btn {
  align-self: flex-start;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

:is(.auth-form, .profile-form, .withdraw-form) label {
  display: flex;
  font-size: 13px;
}

:is(.auth-form, .profile-form, .withdraw-form) label:not(.radio):not(.checkbox) {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 4px;
}

:is(.auth-form, .profile-form, .withdraw-form) label:not(.radio):not(.checkbox) > :is(input, select, textarea) {
  flex: 0 0 100%;
  width: 100%;
}

:is(.auth-form, .profile-form, .withdraw-form) label .required {
  align-self: center;
}

:is(.auth-form, .profile-form, .withdraw-form) label.checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.6;
}

:is(.auth-form, .profile-form, .withdraw-form) label.checkbox > input {
  flex: none;
  margin-top: 4px;
}

:is(.auth-form, .profile-form, .withdraw-form) label.checkbox a {
  text-decoration: underline;
}

/* 汎用ユーティリティ */
.link-button {
  background: none;
  border: 0;
  color: var(--primary-dark);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
}

.inline {
  display: inline;
}

.required {
  display: inline-block;
  align-self: flex-start;
  background: var(--sale);
  color: #fff;
  font-size: 0.62rem;
  font-weight: bold;
  padding: 1px 6px;
  border-radius: 2px;
  margin-left: 6px;
  vertical-align: middle;
}

.is-hidden {
  display: none !important;
}

/* スクリーンリーダー向け: 視覚的に隠すが読み上げ・SEOには残す */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

button, input, select, textarea {
  font-family: inherit;
}

button, a, input, select {
  touch-action: manipulation;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #a86a32;
  outline-offset: 4px;
}

select {
  max-width: 100%;
  background-color: var(--bg);
  color: var(--text);
}

.cycle-eyebrow {
  display: block;
  font: 600 11px/1.5 Arial, sans-serif;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
  color: var(--text-sub);
}

.cycle-logo {
  display: inline-block;
  font: 800 35px/1 Arial, sans-serif;
  letter-spacing: -2px;
  color: var(--primary-dark);
  white-space: nowrap;
}

.cycle-logo:hover {
  text-decoration: none;
}

.cycle-logo_mark {
  font: italic 48px/1 Georgia, serif;
}

.cycle-logo_sub {
  display: block;
  font: 600 9px/1.5 Arial, sans-serif;
  letter-spacing: 2.5px;
  margin-top: 4px;
}

.cycle-search {
  display: flex;
  background: var(--bg-sub);
  border-bottom: 1px solid var(--border);
}

.cycle-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 16px;
}

.cycle-search button {
  border: 0;
  padding: 0 16px;
  background: transparent;
  color: var(--primary-dark);
  cursor: pointer;
}

.cycle-skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 2000;
  background: #fff;
  padding: 12px;
}

.cycle-skip:focus {
  top: 8px;
}
