/*
Theme Name: まほろ工房
Theme URI: https://www.mahoro-koubou.net/
Author: mahoro
Description: まほろ工房（電気とコンピュータとデザインの会社）の会社紹介テーマ。パステルブルー基調。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: mahoro-koubou
*/

:root {
  --bg: #f5faff;
  --bg-soft: #e8f3fd;
  --sky: #cfe7fb;
  --blue: #9ccdf3;
  --blue-deep: #5fa8de;
  --ink: #26435e;
  --ink-soft: #4f6b85;
  --line: #d3e6f6;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(95, 168, 222, .18);
  --font: "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: #2f78b3; }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.4; margin: 0 0 .6em; }
p { margin: 0 0 1em; }

.container { width: min(1080px, 100% - 32px); margin-inline: auto; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .en {
  display: block; font-size: .8rem; letter-spacing: .28em; color: var(--blue-deep);
  font-weight: 700; text-transform: uppercase;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: .2em; }

/* Buttons */
.btn {
  display: inline-block; padding: .85em 2em; border-radius: 999px;
  background: var(--blue); color: var(--ink); font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow); transition: transform .15s, background .15s;
}
.btn:hover { background: var(--sky); color: var(--ink); transform: translateY(-2px); }
.btn--ghost { background: var(--white); border: 2px solid var(--blue); box-shadow: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 250, 255, .92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-logo { display: flex; align-items: center; gap: .5em; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.site-logo__mark { width: 30px; height: 30px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--ink); position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: .5em 1em; border-radius: 999px; color: var(--ink);
  text-decoration: none; font-size: .95rem; font-weight: 600;
}
.site-nav a:hover { background: var(--sky); }
.site-nav .is-cta a { background: var(--blue); }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 110px 0 130px; text-align: center;
  background: linear-gradient(180deg, #dff0fd 0%, var(--bg) 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--sky); opacity: .55; z-index: 0;
}
.hero::before { width: 380px; height: 380px; left: -120px; top: -100px; }
.hero::after { width: 300px; height: 300px; right: -80px; bottom: -90px; background: var(--blue); opacity: .35; }
.hero .container { position: relative; z-index: 1; }
.hero__label { display: inline-block; background: var(--white); padding: .3em 1.1em; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--blue-deep); margin-bottom: 1.4em; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); letter-spacing: .04em; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--blue) 62%); }
.hero p { max-width: 36em; margin-inline: auto; color: var(--ink-soft); }
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 2em; }

/* Services */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
}
.card__icon {
  width: 52px; height: 52px; border-radius: 16px; background: var(--sky);
  display: grid; place-items: center; margin-bottom: 1em;
}
.card__icon svg { width: 28px; height: 28px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.1rem; }
.card p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.card--feature { border: 2px solid var(--blue); background: linear-gradient(180deg, #fff, #eef7ff); }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--blue); padding: .1em .8em; border-radius: 999px; margin-left: .5em; vertical-align: middle; }

/* Banners */
.banner {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 32px;
  border-radius: 26px; padding: 44px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow); transition: transform .2s; position: relative; overflow: hidden;
}
.banner:hover { transform: translateY(-3px); color: var(--ink); }
.banner--app { background: linear-gradient(120deg, #bfe0f9 0%, #e3f2fd 100%); }
.banner--tv { background: linear-gradient(120deg, #dbeefc 0%, #f3f9ff 100%); border: 1px solid var(--line); padding: 32px 40px; }
.banner__eyebrow { font-size: .8rem; letter-spacing: .2em; font-weight: 700; color: #2f78b3; }
.banner h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: .2em 0 .5em; }
.banner p { color: var(--ink-soft); font-size: .95rem; }
.banner__go { display: inline-block; margin-top: .6em; padding: .6em 1.6em; background: var(--white); border-radius: 999px; font-weight: 700; }
.banner__art { text-align: center; }
.banner__art svg { width: min(220px, 70%); }

.apps { margin-top: 36px; }
.apps .card { padding: 22px 22px; box-shadow: none; }
.apps h3 { font-size: 1rem; margin-bottom: .3em; }

/* Works */
.works { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.works a {
  display: flex; justify-content: space-between; align-items: center; gap: 1em;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 22px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.works a:hover { background: var(--sky); }
.works small { display: block; color: var(--ink-soft); font-weight: 400; font-size: .8rem; }
.works a::after { content: "↗"; color: var(--blue-deep); font-weight: 700; }

/* Company */
.company { width: 100%; max-width: 760px; margin-inline: auto; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.company th, .company td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company th { width: 9em; background: var(--bg-soft); font-weight: 700; }
.company tr:last-child th, .company tr:last-child td { border-bottom: 0; }

/* Contact */
.contact { text-align: center; background: linear-gradient(180deg, var(--bg-soft), var(--sky)); }

/* Footer */
.site-footer { background: #dcecf9; padding: 32px 0; text-align: center; font-size: .85rem; color: var(--ink-soft); }
.site-footer a { color: var(--ink); }

/* Generic pages */
.page-body { max-width: 760px; padding: 64px 0; }
.page-body h1 { font-size: 1.8rem; }

@media (max-width: 860px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .banner { grid-template-columns: 1fr; padding: 32px 26px; }
  .works { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .grid--3 { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .company th, .company td { display: block; width: 100%; }
  .company th { border-bottom: 0; padding-bottom: 6px; }
  .hero { padding: 72px 0 90px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
