/*
Theme Name: Three Zero Zero
Theme URI: https://www.three-zero-zero.com/
Author: スリーハンドレッド
Description: スリーハンドレッド コーポレートサイト用オリジナルテーマ（Claude Designで確定したデザインをもとに作成）。
Version: 1.2
Text Domain: three-zero-zero
*/

/* ===== スリーハンドレッド コーポレートサイト 共通スタイル ===== */
:root{
  --navy:#16233F; --navy-2:#1F3159; --ice:#EEF3FB; --white:#FFFFFF;
  --text:#2B303B; --muted:#6B7280; --line:#E4E8F0; --light-blue:#C6D2E8;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{ margin:0; color:var(--text); background:var(--white);
  font-family:"Hiragino Kaku Gothic ProN","Yu Gothic Medium","Yu Gothic",Meiryo,Arial,sans-serif; }
h1,h2,h3,.brand{ font-family:"Hiragino Mincho ProN","Yu Mincho",serif; color:var(--navy); margin:0 0 14px; font-weight:600; }
h1{ font-size:40px; line-height:1.5; }
h2{ font-size:26px; }
h3{ font-size:17px; margin-bottom:8px; }
p{ font-size:14.5px; line-height:1.9; color:var(--muted); margin:0 0 10px; }
a{ color:var(--navy); text-decoration:none; }
img{ max-width:100%; }
.eyebrow{ font-size:11px; letter-spacing:.14em; color:#8CA0C6; font-weight:700; margin-bottom:10px; }
.wrap{ padding:0 72px; }
.sec{ padding:72px 72px; }
.sec.tight{ padding:56px 72px; }
.sec.ice{ background:var(--ice); }
.sec.navy{ background:var(--navy); }
.sec.navy h2,.sec.navy h1,.sec.navy .eyebrow{ color:var(--white); }
.sec.navy p{ color:var(--light-blue); }

/* Header */
header{ display:flex; align-items:center; justify-content:space-between; padding:20px 72px; border-bottom:1px solid var(--line); position:sticky; top:0; background:#fff; z-index:100; }
header img.logo{ height:42px; display:block; }
nav.main-nav{ display:flex; align-items:center; }
nav.main-nav a{ margin-right:28px; font-size:13.5px; color:var(--text); font-weight:500; }
nav.main-nav a.current{ color:var(--navy); font-weight:700; border-bottom:2px solid var(--navy); padding-bottom:4px; }
nav.main-nav a.btn, .mobile-nav a.btn{ color:var(--white); margin-right:0; }
nav.main-nav a.btn.btn-outline, .mobile-nav a.btn.btn-outline{ color:var(--navy); }
.menu-toggle{ display:none; width:36px; height:36px; border-radius:6px; background:var(--ice); align-items:center; justify-content:center; border:none; font-size:18px; cursor:pointer; }
.mobile-nav{ display:none; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:13px 26px; border-radius:3px; font-weight:700; font-size:13.5px; white-space:nowrap; cursor:pointer; border:none; font-family:inherit; }
.btn-navy{ background:var(--navy); color:var(--white); }
.btn-outline{ background:transparent; color:var(--navy); border:1.5px solid var(--navy); }
.btn-white{ background:var(--white); color:var(--navy); }
.btn-block{ width:100%; }
.badge{ display:inline-flex; align-items:center; gap:6px; background:var(--ice); color:var(--navy); font-size:12px; font-weight:700; padding:6px 14px; border-radius:20px; margin-bottom:18px; }

/* Layout helpers */
.row{ display:flex; gap:40px; align-items:center; }
.row.top{ align-items:flex-start; }
.col{ flex:1; min-width:0; }
.grid2{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.grid3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.grid4{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; }
.card{ background:var(--white); border:1px solid var(--line); border-radius:6px; padding:28px; }
.icon-badge{ width:48px; height:48px; border-radius:8px; background:var(--ice); display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.ph{ background:linear-gradient(135deg,#EEF3FB,#DCE6F5); border-radius:6px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; color:#8CA0C6; font-size:12px; text-align:center; padding:20px; }
.stat{ font-family:"Hiragino Mincho ProN","Yu Mincho",serif; font-size:34px; color:var(--navy); font-weight:600; }
.statlabel{ font-size:12px; color:var(--muted); }
.img-cover{ border-radius:6px; overflow:hidden; }
.img-cover img{ width:100%; height:100%; object-fit:cover; display:block; }

/* Steps / FAQ */
.step{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; }
.stepnum{ width:36px; height:36px; border-radius:50%; background:var(--navy); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; font-family:"Hiragino Mincho ProN","Yu Mincho",serif; }
.faq{ border-bottom:1px solid var(--line); padding:20px 0; cursor:pointer; }
.faq .q{ font-weight:700; color:var(--navy); font-size:14.5px; margin-bottom:0; display:flex; gap:10px; justify-content:space-between; align-items:center; }
.faq .a{ margin-top:10px; display:none; }
.faq.open .a{ display:block; }
.faq .q .arrow{ transition:transform .2s; font-size:12px; }
.faq.open .q .arrow{ transform:rotate(180deg); }

/* Profile table (会社概要) */
table.profile{ width:100%; border-collapse:collapse; }
table.profile th, table.profile td{ text-align:left; padding:16px 0; border-bottom:1px solid var(--line); font-size:14px; vertical-align:top; }
table.profile th{ width:180px; color:var(--navy); font-weight:700; }
table.profile td{ color:var(--text); }

/* Blog */
.tabs{ display:flex; gap:10px; margin-top:8px; flex-wrap:wrap; }
.tab{ padding:8px 16px; border-radius:20px; font-size:12.5px; font-weight:700; cursor:pointer; }
.tab.active{ background:var(--navy); color:#fff; }
.tab:not(.active){ background:var(--ice); color:var(--navy); }
.thumb{ aspect-ratio:1200/630; height:auto; border-radius:6px; background:linear-gradient(135deg,#EEF3FB,#DCE6F5); }
.cat{ display:inline-block; font-size:11px; font-weight:700; color:var(--navy); background:var(--ice); padding:3px 10px; border-radius:10px; margin-bottom:8px; }

/* 実績フィルター */
.filter-bar{ display:flex; gap:10px; flex-wrap:wrap; margin-top:20px; }
.filter-btn{ padding:8px 18px; border-radius:20px; font-size:12.5px; font-weight:700; cursor:pointer; border:1.5px solid var(--navy); background:transparent; color:var(--navy); font-family:inherit; }
.filter-btn.active{ background:var(--navy); color:#fff; }
.result-card[hidden]{ display:none; }

/* Contact form */
.reassure{ display:flex; justify-content:center; gap:32px; background:var(--ice); padding:18px; border-radius:8px; font-size:13px; color:var(--navy); font-weight:700; flex-wrap:wrap; }
.form{ max-width:600px; margin:0 auto; display:flex; flex-direction:column; gap:18px; }
.field-group{ display:flex; flex-direction:column; }
.label{ font-size:13px; font-weight:700; color:var(--text); margin-bottom:6px; display:block; }
.req{ color:#C0392B; font-size:11px; margin-left:4px; }
input.field, textarea.field{ width:100%; border:1px solid var(--line); border-radius:4px; padding:12px 14px; font-size:13.5px; color:var(--text); background:#fbfcfe; font-family:inherit; }
textarea.field{ resize:vertical; min-height:90px; }
.radio-row{ display:flex; gap:20px; font-size:13.5px; flex-wrap:wrap; }
.radio-row label{ display:flex; align-items:center; gap:6px; }
.field-error{ color:#C0392B; font-size:12px; margin-top:4px; display:none; }
.field-error.show{ display:block; }
.form-success{ display:none; background:var(--ice); color:var(--navy); padding:20px; border-radius:8px; text-align:center; font-weight:700; }
.form-success.show{ display:block; }

/* Footer */
footer{ background:var(--navy); color:#AAB8D4; padding:48px 72px 28px; font-size:12.5px; }
footer a{ color:#D7E0F2; }
footer .fgrid{ display:flex; justify-content:space-between; border-bottom:1px solid #2A3A61; padding-bottom:28px; margin-bottom:20px; flex-wrap:wrap; gap:24px; }
footer img.logo{ height:36px; display:block; }
.timeline{ display:flex; flex-direction:column; }
.trow{ display:flex; gap:24px; padding:14px 0; border-bottom:1px solid var(--line); }
.tdate{ width:140px; flex-shrink:0; font-weight:700; color:var(--navy); font-size:13.5px; }
.ttext{ font-size:13.5px; color:var(--text); line-height:1.8; }

/* ===== Responsive: mobile (≤768px) ===== */
@media (max-width:768px){
  h1{ font-size:24px; line-height:1.5; }
  h2{ font-size:19px; }
  h3{ font-size:15px; }
  p{ font-size:13px; line-height:1.8; }
  .sec, .sec.tight{ padding:32px 20px; }
  .wrap{ padding:0 20px; }
  header{ padding:14px 20px; }
  nav.main-nav{ display:none; }
  .menu-toggle{ display:flex; }
  .mobile-nav{ display:none; flex-direction:column; gap:0; background:#fff; border-bottom:1px solid var(--line); position:sticky; top:66px; z-index:99; }
  .mobile-nav.open{ display:flex; }
  .mobile-nav a{ padding:14px 20px; border-bottom:1px solid var(--line); font-size:14px; color:var(--text); }
  .mobile-nav .btn{ margin:14px 20px; }
  .row{ flex-direction:column; gap:20px; }
  .row.top{ flex-direction:row; } /* keep profile photo+text side-by-side unless narrow */
  .grid2, .grid3, .grid4{ grid-template-columns:1fr; gap:14px; }
  .card{ padding:20px; }
  .btn{ width:100%; }
  .btn.inline{ width:auto; }
  footer{ padding:24px 20px; }
  footer .fgrid{ flex-direction:column; }
  table.profile th{ width:110px; font-size:12.5px; }
  table.profile td{ font-size:12.5px; }
  .reassure{ flex-direction:column; gap:10px; text-align:left; }
  .filter-bar{ gap:8px; }
}
@media (max-width:480px){
  .row.top{ flex-direction:column; align-items:center; text-align:center; }
}

/* ===== Contact Form 7 スタイル調整 ===== */
.wpcf7-form{ max-width:600px; margin:0 auto; }
.wpcf7-form p{ margin:0 0 20px; }
.wpcf7-form label{ display:block; font-size:13px; font-weight:700; color:var(--text); margin-bottom:8px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:4px;
  padding:13px 14px;
  font-size:14.5px;
  color:var(--text);
  background:#fbfcfe;
  font-family:inherit;
  transition:border-color .15s;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus{
  outline:none;
  border-color:var(--navy);
}
.wpcf7-form textarea{ min-height:140px; resize:vertical; }
.wpcf7-form .wpcf7-radio,
.wpcf7-form .wpcf7-checkbox{ display:flex; gap:20px; flex-wrap:wrap; }
.wpcf7-form .wpcf7-list-item{ margin:0; font-size:13.5px; }
.wpcf7-form .wpcf7-list-item-label{ margin-left:6px; }
.wpcf7-form .wpcf7-spinner{ margin-left:12px; }
.wpcf7-form input[type="submit"]{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  background:var(--navy);
  color:var(--white);
  border:none;
  border-radius:3px;
  padding:16px 26px;
  font-weight:700;
  font-size:15px;
  font-family:inherit;
  cursor:pointer;
  transition:opacity .15s;
}
.wpcf7-form input[type="submit"]:hover{ opacity:.88; }
.wpcf7-form .wpcf7-not-valid-tip{ color:#C0392B; font-size:12px; margin-top:6px; }
.wpcf7-form .wpcf7-response-output{
  border-radius:8px;
  padding:16px 18px;
  font-size:13.5px;
  margin:20px 0 0;
}
.wpcf7-form.sent .wpcf7-response-output{ background:var(--ice); color:var(--navy); border:none; }
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output{ background:#FDEDEC; color:#C0392B; border:none; }
.wpcf7-form.invalid .wpcf7-response-output{ background:#FDEDEC; color:#C0392B; border:none; }

/* ===== Blog改善（他社HP調査に基づく） =====
   追加要素：目次／30秒サマリー／著者ブロック／関連記事／Blogカテゴリタブ
   Design canvas: https://claude.ai/code/artifact/94eaca04-8f99-4726-94a0-91f146839217 */

.article-summary{ border-left:3px solid var(--navy); background:var(--ice); padding:18px 22px; margin:20px 0 28px; }
.article-summary h3{ margin-bottom:6px; }

.article-toc{ border:1px solid var(--line); border-radius:6px; padding:20px 24px; background:var(--ice); margin:0 0 28px; max-width:760px; }
.article-toc-title{ font-size:12px; font-weight:700; letter-spacing:.08em; color:var(--navy); margin-bottom:12px; }
.article-toc ol{ margin:0; padding-left:20px; }
.article-toc li{ font-size:13.5px; line-height:2; }
.article-toc a{ color:var(--text); }

.author-box{ display:flex; gap:20px; align-items:flex-start; border:1px solid var(--line); border-radius:6px; padding:24px; margin:44px 0 0; max-width:760px; }
.author-role{ font-size:12px; color:var(--muted); margin-bottom:8px; font-style:italic; }

/* Blogカテゴリタブ（index.php で使用） */
.tabs{ margin-top:20px; }

/* 関連記事セクションの背景フルブリード（.secの左右paddingと必ず一致させる） */
.related-bleed{ margin:44px -72px 0; }

@media (max-width:768px){
  .author-box{ flex-direction:column; align-items:center; text-align:center; }
  .article-toc, .article-summary{ max-width:none; }
  .related-bleed{ margin:32px -20px 0; }
}
