/*
Theme Name: NetLine
Theme URI: https://netline.jp/
Author: Allied Tokyo Co., Ltd.
Author URI: https://alliedtokyo.jp/
Description: NetLine 公式サイト用 WordPress テーマ。
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: netline
Tags: business, corporate, blog
*/

/* ===== CSS Variables ===== */
:root {
  --navy:      #1e3550;
  --navy-deep: #152739;
  --ink:       #24313f;
  --muted:     #607080;
  --line:      #d9dee5;
  --white:     #ffffff;
  --accent:    #406b86;
  --accent-2:  #5d8368;
  --shadow:    0 18px 40px rgba(19,37,53,0.08);
  --radius:    22px;
}

/* ===== Reset & Base ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Noto Sans JP', system-ui, sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Layout ===== */
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.narrow    { width: min(920px,   calc(100% - 32px)); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(217,222,229,0.8);
}
.site-header.compact { position: relative; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 78px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 800; letter-spacing: 0.02em;
}
.logo-mark {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--navy), #2b5977);
  color: #fff; box-shadow: var(--shadow);
}
.logo-text { font-size: 1.15rem; color: var(--navy-deep); }

.nav {
  display: flex; gap: 22px; align-items: center;
  font-size: 0.95rem; color: var(--muted);
}
.nav a:hover { color: var(--navy); }

.menu-toggle { display: none; background: transparent; border: 0; font-size: 1.6rem; cursor: pointer; }

/* ===== Buttons ===== */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 700;
  border: 1px solid transparent; transition: .2s ease; cursor: pointer;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  background: var(--navy); color: #fff; box-shadow: var(--shadow);
}
.button-primary:hover { background: #294866; }
.button-secondary { background: #fff; color: var(--navy); border-color: var(--line); }
.button.full { width: 100%; }

/* ===== Section Labels ===== */
.eyebrow, .section-label {
  color: var(--accent); font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; font-size: 0.78rem;
}

/* ===== Typography ===== */
h1, h2, h3 { line-height: 1.35; margin: 0 0 16px; color: var(--navy-deep); }
h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); }
h3 { font-size: 1.1rem; }
.lead { font-size: 1.08rem; color: #435262; }

/* ===== Hero ===== */
.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(circle at top right, rgba(220,233,239,0.8), transparent 32%),
    linear-gradient(180deg, #fbfcfd 0%, #f7f8f9 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); }
.hero-points li::before, .check-list li::before {
  content: '●'; color: var(--accent-2); margin-right: 10px;
}

/* ===== Living Card (Illustrated Hero Visual) ===== */
.living-card {
  min-height: 520px; border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,255,255,0.95)),
              linear-gradient(140deg, #eef3f6, #e5ddd2);
  border: 1px solid rgba(217,222,229,0.9);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.window-light {
  position: absolute; top: 36px; right: 36px; width: 190px; height: 140px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(212,227,237,0.85), rgba(255,255,255,0.4));
  border: 10px solid rgba(255,255,255,0.9);
}
.sofa {
  position: absolute; left: 54px; bottom: 110px; width: 250px; height: 120px;
  border-radius: 30px 30px 16px 16px;
  background: linear-gradient(180deg, #d8cec1, #c7baaa);
}
.sofa::before, .sofa::after {
  content: ''; position: absolute; bottom: -20px; width: 20px; height: 44px;
  background: #6e5d4e; border-radius: 10px;
}
.sofa::before { left: 20px; }
.sofa::after  { right: 20px; }
.table {
  position: absolute; left: 176px; bottom: 76px; width: 170px; height: 22px;
  border-radius: 12px; background: #8f6f56;
}
.table::before, .table::after {
  content: ''; position: absolute; width: 10px; height: 68px;
  background: #6f5645; bottom: -58px; border-radius: 10px;
}
.table::before { left: 26px; }
.table::after  { right: 26px; }
.tv {
  position: absolute; right: 60px; bottom: 110px; width: 220px; height: 134px;
  background: linear-gradient(180deg, #293746, #111922);
  border: 10px solid #263848; border-radius: 18px;
}
.tv::before {
  content: ''; position: absolute; inset: 12px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 45%),
              linear-gradient(180deg, #4b7090, #293a4d);
}
.tv::after {
  content: ''; position: absolute; width: 70px; height: 12px;
  left: 50%; transform: translateX(-50%); bottom: -22px;
  background: #2a3d4e; border-radius: 6px;
}
.device {
  position: absolute; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(20,39,57,0.08);
}
.device.one { left: 210px; bottom: 136px; width: 70px;  height: 14px; border-radius: 8px; }
.device.two { left: 154px; bottom: 132px; width: 42px;  height: 24px; border-radius: 7px; }
.router-card {
  position: absolute; left: 36px; top: 36px;
  background: rgba(255,255,255,0.92); border: 1px solid rgba(217,222,229,0.8);
  border-radius: 20px; padding: 18px 20px; width: 220px; box-shadow: var(--shadow);
}
.router-led {
  display: inline-block; width: 10px; height: 10px;
  background: #7fc08f; border-radius: 50%; margin-right: 10px;
  box-shadow: 0 0 0 6px rgba(127,192,143,0.16);
}

/* ===== Sections ===== */
.section  { padding: 96px 0; }
.muted    { background: #fafafa; }
.soft-background { background: linear-gradient(180deg, #f8f6f1 0%, #fbfbfb 100%); }

/* ===== Cards ===== */
.soft-card, .feature-card, .scene-item, .step-card,
.content-card, .trust-panel, .cta-box, .contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.soft-card, .feature-card, .scene-item, .step-card,
.content-card, .contact-form { padding: 28px; }

.pain-grid, .feature-grid, .scene-grid, .steps-grid {
  display: grid; gap: 22px;
}
.pain-grid,   .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scene-grid   { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.steps-grid   { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px; }

.split-section, .trust-grid, .form-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.text-stack p + p { margin-top: 14px; }

.feature-card { position: relative; padding-top: 56px; }
.feature-no {
  position: absolute; top: 22px; left: 24px;
  color: rgba(64,107,134,0.22); font-size: 1.8rem; font-weight: 800;
}
.scene-item strong {
  display: block; font-size: 1.05rem; margin-bottom: 8px; color: var(--navy-deep);
}
.accent-card { background: linear-gradient(135deg, #edf4f7, #f3eee6); }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; margin-top: 24px; }
table {
  width: 100%; border-collapse: collapse; background: #fff;
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
th, td { padding: 18px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #eef3f6; color: var(--navy-deep); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }

/* ===== Trust Panel ===== */
.trust-panel {
  padding: 12px; display: grid; gap: 12px;
  background: linear-gradient(180deg, #f9fbfc, #ffffff);
}
.trust-item { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.trust-item strong { display: block; color: var(--navy-deep); margin-bottom: 6px; }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 16px; margin-top: 28px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: 20px;
  padding: 0 22px; background: #fff; box-shadow: var(--shadow);
}
.faq-list summary {
  list-style: none; cursor: pointer; padding: 20px 0;
  font-weight: 700; color: var(--navy-deep);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p { padding-bottom: 20px; margin: 0; color: #475767; }

/* ===== CTA ===== */
.cta-section { padding-top: 24px; }
.cta-box {
  padding: 40px;
  display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #edf4f7, #f3ede4);
}
.cta-actions { display: grid; gap: 14px; }

/* ===== Subpage ===== */
.subpage-main { min-height: 70vh; background: #fafafa; }
.sub-hero {
  padding: 72px 0 28px;
  background: linear-gradient(180deg, #f5f7fa, #fafafa);
}
.sub-hero.warm { background: linear-gradient(180deg, #f7f3ec, #fafafa); }
.content-sections { display: grid; gap: 22px; }

/* ===== Forms ===== */
.contact-form { display: grid; gap: 18px; }
.field-group  { display: grid; gap: 8px; }
label { font-weight: 700; color: var(--navy-deep); }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line); font: inherit;
  color: var(--ink); background: #fff;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(64,107,134,0.16); border-color: var(--accent);
}
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.checkbox-grid label { display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.form-note { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.86);
  padding: 56px 0 24px; margin-top: 48px;
}
.site-footer.simple { margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.5fr 1fr;
  gap: 36px; align-items: start;
}
.footer-grid h3 { color: #fff; font-size: 1rem; margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: rgba(255,255,255,0.8); }
.footer-grid a:hover { color: #fff; }
.footer-copy { color: rgba(255,255,255,0.72); max-width: 320px; }
.footer-bottom {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
}

/* ===== Footer Widgets ===== */
.footer-widget { margin-top: 18px; }
.footer-widget .widget { margin-bottom: 14px; }
.footer-widget .widget:last-child { margin-bottom: 0; }
.footer-widget .widget-title {
  color: #fff; font-size: 0.95rem; margin: 0 0 10px; font-weight: 700; letter-spacing: 0.02em;
}
.footer-widget ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-widget a { color: rgba(255,255,255,0.8); }
.footer-widget a:hover { color: #fff; }
.footer-widget input[type=text],
.footer-widget input[type=search],
.footer-widget input[type=email] {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; border-radius: 12px; padding: 10px 14px; width: 100%;
}
.footer-widget input::placeholder { color: rgba(255,255,255,0.55); }
.footer-widget .wp-block-search__button,
.footer-widget button {
  background: rgba(255,255,255,0.16); color: #fff; border: 0;
  border-radius: 999px; padding: 10px 16px; cursor: pointer;
}
.footer-widget .wp-block-search__inside-wrapper { gap: 8px; display: flex; }
.footer-extras {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: center;
  color: rgba(255,255,255,0.72);
}
.footer-extras .widget { margin: 0; }
.footer-extras .widget-title { color: rgba(255,255,255,0.9); font-size: 0.86rem; }

/* ===== Blog Sidebar ===== */
.container.with-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start;
  width: min(1160px, calc(100% - 32px));
}
.blog-main   { display: grid; gap: 22px; }
.blog-sidebar { position: sticky; top: 100px; }
.blog-sidebar .widget { margin-bottom: 22px; }
.blog-sidebar .widget:last-child { margin-bottom: 0; }
.blog-sidebar .widget-title {
  color: var(--navy-deep); font-size: 1rem; margin-bottom: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.blog-sidebar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.blog-sidebar a { color: var(--navy-deep); }
.blog-sidebar a:hover { color: var(--accent); }

/* ===== WordPress: Blog Content ===== */
.blog-article .blog-thumb { margin: -8px 0 24px; border-radius: 18px; overflow: hidden; }
.blog-article .blog-thumb img { width: 100%; height: auto; display: block; }
.content-card .wp-block-image, .content-card figure { margin: 24px 0; }
.content-card .wp-block-image img, .content-card figure img {
  border-radius: 14px; max-width: 100%; height: auto; display: block;
}
.content-card h2 { margin-top: 32px; }
.content-card h3 { margin-top: 24px; }
.content-card p  { margin: 0 0 16px; }
.content-card ul, .content-card ol { margin: 0 0 16px 1.4em; }
.content-card ul li, .content-card ol li { margin-bottom: 6px; }
.content-card blockquote {
  border-left: 4px solid var(--accent); padding: 6px 0 6px 18px;
  color: #475767; background: #f7f9fb; border-radius: 8px; margin: 20px 0;
}
.content-card pre, .content-card code { background: #f3f5f8; border-radius: 8px; padding: 2px 6px; font-size: 0.92em; }
.content-card pre { padding: 16px; overflow-x: auto; }
.content-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.content-card a:hover { color: var(--navy); }
.content-card hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* ===== WordPress: Navigation ===== */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { color: var(--navy-deep); font-weight: 700; }
.post-pages { color: var(--muted); margin-top: 16px; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  -webkit-clip-path: inset(50%); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.pagination, .nav-links { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 999px; background: #fff;
  border: 1px solid var(--line); color: var(--navy-deep); font-weight: 700;
}
.page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-numbers:hover { background: #eef3f6; }

/* ===== WordPress: Alignment ===== */
.alignleft  { float: left;  margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.alignwide, .alignfull { margin-left: 0; margin-right: 0; }

/* ===== WordPress: Admin Bar ===== */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ===== Responsive: Tablet (1040px) ===== */
@media (max-width: 1040px) {
  .hero-grid, .split-section, .trust-grid, .form-layout, .cta-box,
  .pain-grid, .feature-grid, .scene-grid, .steps-grid
    { grid-template-columns: 1fr 1fr; }
  .nav { gap: 14px; font-size: 0.9rem; }
}

/* ===== Responsive: Mobile (780px) ===== */
@media (max-width: 780px) {
  .menu-toggle { display: inline-block; }
  .small-hide  { display: none; }

  .nav {
    display: none; position: absolute; top: 78px; left: 16px; right: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 20px;
    padding: 18px; box-shadow: var(--shadow); flex-direction: column; align-items: flex-start;
  }
  .nav.open, .open-desktop { display: flex; }

  .hero-grid, .split-section, .trust-grid, .form-layout, .cta-box,
  .pain-grid, .feature-grid, .scene-grid, .steps-grid, .footer-grid
    { grid-template-columns: 1fr; }

  .section { padding: 72px 0; }
  .hero    { padding-top: 40px; }

  .living-card { min-height: 420px; }
  .window-light { width: 132px; height: 100px; right: 20px; top: 20px; }
  .sofa  { left: 20px; width: 200px; height: 94px; bottom: 94px; }
  .table { left: 120px; bottom: 68px; width: 140px; }
  .tv    { right: 24px; width: 156px; height: 100px; bottom: 102px; }
  .router-card { width: 180px; }
}

/* ===== Responsive: Blog Sidebar (900px) ===== */
@media (max-width: 900px) {
  .container.with-sidebar { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}
