/*
Theme Name: Strongwood Theme
Theme URI: https://strongwoodcoach.site/
Author: Strongwood Coach
Description: Brain風のシンプルで情報提供に特化した会員制WordPressテーマ。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: strongwood
Tags: custom-theme, brain-like, responsive, membership
*/

/* ベースカラー */
:root {
  --main-color: #f27024; /* オレンジ系 */
  --accent-color: #ff9340;
  --text-color: #333;
  --bg-color: #fff;
  --header-height: 60px;
}

body {
  font-family: "Helvetica Neue", sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  margin: 0;
  padding: 0;
}

/* ヘッダー */
.header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background-color: var(--main-color);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.header-buttons a,
.header-buttons button {
  background: transparent;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
}

/* タブナビゲーション */
.tab-nav {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.tab-nav button {
  background: var(--accent-color);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.tab-nav button.active {
  background: var(--main-color);
}

/* カードレイアウト */
.card {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14px;
  color: #666;
}

/* フッター */
.footer {
  background: #f7f7f7;
  padding: 20px;
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-top: 40px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}


/* レスポンシブ */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

  .tab-nav {
    flex-direction: column;
  }
}

/* アイコン共通スタイル */
.icon-button {
  width: 44px;
  height: 44px;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.05);
}

/* ホバー時に明るいオレンジ色に */
.icon-button:hover {
  background-color: #ffd6b3;
}

.user-dropdown li {
  list-style: none;
  padding: 6px 20px;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.user-dropdown li a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
  display: block;
  width: 100%;
}

.user-dropdown li:first-child {
  border-bottom: 1px solid #ddd;
  margin-bottom: 6px;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;  /* ← ボタンの直下に表示 */
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px 0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-width: 180px;
  z-index: 1000;
  margin-top: 8px; /* 少しだけ下げて浮かせる */
}

.user-dropdown.active {
  display: block;
}

.search-button {
  background-image: url('https://strongwoodcoach.site/wp-content/uploads/2025/06/serch_icon.png') !important;
  background-size: 24px 24px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-color: #f5f5f5;
}

.user-icon {
  background-image: url('https://strongwoodcoach.site/wp-content/uploads/2025/06/user_icon.png') !important;
  background-size: 20px 20px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f5f5f5;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

#search-form {
  display: none;
  position: absolute;
  top: 50%;
  right: 100%;  /* 検索ボタンの左に表示 */
  transform: translateY(-50%);
  background: white;
  border: 1px solid #ccc;
  border-radius: 20px;
  z-index: 1000;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  padding: 2px;
  width: auto;
  white-space: nowrap;   /* ✅ 折返し防止で余計な高さ防止 */
}

#search-form.active {
  display: block;
}

#search-form input[type="search"] {
  border: none;
  outline: none;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 14px;
  background: #f8f8f8;
  color: #333;
  width: 180px;
  height: 36px;
  box-sizing: border-box;
}

#search-form.active + .search-button {
  display: none;
}

#search-form form {
  display: inline-block;
  margin: 0;
  padding: 0;
}

.user-dropdown li:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}

/* 会員登録フォーム全体 */
.swpm-registration-form {
  max-width: 400px;
  margin: 2em auto;
  padding: 2em;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  font-family: "Helvetica Neue", sans-serif;
}

/* 入力欄 */
.swpm-registration-form input[type="text"],
.swpm-registration-form input[type="email"],
.swpm-registration-form input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 15px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
}

/* 登録ボタン */
form.swpm-registration-form input[type="submit"] {
  width: 100%;
  padding: 14px;
  background-color: #ff6600;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.swpm-registration-form input[type="submit"],
.swpm-registration-form button[type="submit"] {
  width: 100%;
  background-color: #f96204;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.swpm-registration-form input[type="submit"]:hover,
.swpm-registration-form button[type="submit"]:hover {
  background-color: #e85500;
}

/* チェックボックスと利用規約 */
form.swpm-registration-form label[for="swpm-terms"] {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.swpm-registration-form input[type="checkbox"] {
  margin-right: 6px;
  transform: scale(1.1);
  vertical-align: middle;
}

.swpm-registration-form input::placeholder {
  color: #999;
}

.swpm-registration-form .terms-agreement {
  font-size: 14px;
  margin: 15px 0;
  display: flex;
  align-items: center;
}

.swpm-registration-form .terms-agreement a {
  color: #0073aa;
  text-decoration: underline;
}

.swpm-registration-form .email-note {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.swpm-registration-form .login-separator {
  border-top: 1px solid #ddd;
  margin: 30px 0 10px;
}

.swpm-registration-form .login-link {
  text-align: center;
  display: block;
  color: #333;
  font-size: 14px;
  text-decoration: underline;
}

/* ボタン全体強化 */
.swpm-registration-form input[type="submit"],
.swpm-registration-form button.swpm-submit {
  width: 100%;
  background-color: #f96204;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.swpm-registration-form button.swpm-submit:hover {
  background-color: #e85500;
}



.register-card input:focus {
  outline: none;
  border-color: #f96204;
  box-shadow: 0 0 0 2px rgba(249, 98, 4, 0.1);
}

.register-card input {
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}
.input-error {
  border: 1px solid red !important;
}
.field-error {
  color: red;
  font-size: 12px;
  margin-top: 2px;
}
.floating-label {
  position: relative;
  margin-bottom: 1.5em;
}

.floating-label input {
  width: 100%;
  padding: 12px 10px 12px 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
}

.floating-label label {
  position: absolute;
  top: -0.9em;
  left: 12px;
  background: white;
  padding: 0 4px;
  font-size: 13px;
  color: #333;
  z-index: 1;
  pointer-events: none;
}

.floating-label small {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
  display: block;
}

.main-content {
  max-width: 600px;
  margin: 3em auto;
  padding: 2em;
}

form {
  display: flex;
  flex-direction: column;
}

input, button {
  font-family: inherit;
}

/* 新規登録フォーム全体 */
.register-card {
  max-width: 600px;
  margin: 2em auto;
  padding: 2em;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  font-family: "Helvetica Neue", sans-serif;
}

.register-card h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 1.2em;
}

.register-card button[type="submit"] {
  width: 100%;
  background-color: #f96204;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
}

.register-card button[type="submit"]:hover {
  background-color: #e85500;
}

.main-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
}

.register-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #f9f9f9;
  padding: 40px 20px;
}

.register-box {
  width: 100%;
  max-width: 440px;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.register-title {
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: #555;
  font-weight: 500;
  position: static;
  transform: none;
  transition: none;
}

.form-input {
  width: 100%;
  padding: 12px 12px 8px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #f27024;
  outline: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-20px);
  font-size: 12px;
  color: #f27024;
}

.field-error {
  color: #d93025;
  font-size: 13px;
  margin-top: 6px;
}

.error-msg {
  color: #d93025;
  font-size: 14px;
  background: #ffe6e6;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
}

.success-msg {
  color: #0f9d58;
  font-size: 14px;
  background: #e6f4ea;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
}

.agreement-note {
  font-size: 12px;
  color: #666;
  margin-top: -10px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.agreement-note strong {
  color: red;
}

.terms-check {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-bottom: 20px;
}

.terms-check input[type="checkbox"] {
  margin-right: 8px;
}

.terms-check a {
  color: #5555ff;
  text-decoration: underline;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #ddd;
  padding-top: 20px;
  font-size: 14px;
}

.register-button {
  width: 100%;
  padding: 12px;
  background-color: #f27024;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.register-button:hover {
  background-color: #e05a0c;
}

.register-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .register-box {
    padding: 30px 20px;
  }
}


/* エラーメッセージ表示 */
.form-error {
  color: #e53935;
  font-size: 13px;
  margin-top: 4px;
}

.post-button {
  display: inline-block;
  padding: 10px 16px;
  background-color: #ff6600;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  margin-left: 10px;
}
.post-button:hover {
  background-color: #e65500;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.account-settings-note-style {
  max-width: 480px;
  margin: 48px auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-size: 14px;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.account-section-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 16px;
}

.setting-line {
  height: 2px;
  background: #eee;
  margin-bottom: 16px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 16px; /* ← 左右にもpaddingを追加 */
  cursor: pointer;
  transition: background 0.15s;
}

.setting-row:hover {
  background: #f5f5f5;
}

.setting-row.readonly { /* ← ホバー禁止用クラス */
  cursor: default;
}

.setting-row.readonly:hover {
  background: none; /* ← ホバー無効 */
}

.setting-col {
  flex-grow: 1;
}

.setting-label {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 4px;
}

.setting-value {
  font-size: 14px;
  color: #666;
  word-break: break-word;
}

.setting-action {
  font-size: 13px;
  font-weight: bold;
  color: #999;
  white-space: nowrap;
  padding-left: 12px;
  padding-top: 4px;
  align-self: center;
  transition: color 0.15s;
}

.setting-row:hover .setting-action {
  color: #000;
}

/* 記事タイトルの見た目を大きく・太く */
.single-post h1.entry-title {
    font-size: 2.4em;  /* ← お好みで2.0em〜2.8emに調整可 */
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 1.2em;
}

.tip-box {
  background: #f0f9ff;
  border-left: 4px solid #00aaff;
  padding: 1em;
  margin: 1.5em 0;
}
.check-box {
  background: #f0f9ff;
  border-left: 4px solid #00aaff;
  padding: 1em;
  margin: 1.5em 0;
}
.warn-box {
  background: #fff5f5;
  border-left: 4px solid #e53e3e;
  padding: 1em;
  margin: 1.5em 0;
}
.note-box {
  background: #f0f9ff;
  border-left: 4px solid #00aaff;
  padding: 1em;
  margin: 1.5em 0;
}
.graph-box {
  background: #f5faff;
  border-left: 4px solid #3182ce;
  padding: 1em;
  margin: 1.5em 0;
}
.idea-box {
  background: #f0f9ff;
  border-left: 4px solid #00aaff;
  padding: 1em;
  margin: 1.5em 0;
}
.goal-box {
  font-size: 1.1em;
  background: #f0fff4;
  border-left: 4px solid #38a169;
  padding: 1em;
  margin: 1.5em 0;
}

.entry-content h1 {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.4;
  margin-top: 1.5em;
  margin-bottom: 1em;
}

.entry-content h2 {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  margin-top: 1.2em;
  margin-bottom: 0.8em;
}

.entry-content h3 {
  font-size: 20px;
  font-weight: bold;
  margin-top: 1em;
  margin-bottom: 0.6em;
}

/* 投稿本文の行間を広げる */
.single-post .entry-content {
    line-height: 1.9; /* おすすめは 1.7〜2.0 あたり */
}

/* 見出しや本文全体にも適用したい場合 */
body {
    line-height: 1.8;
}