/* ===================================
川村数学教室 - 共通スタイル
=================================== */

:root {
--primary: #7ec8e3;
--primary-dark: #5bb7da;


--accent: #8bdc65;
--accent-dark: #74c84c;

--background: #f9fcfd;
--surface: #ffffff;

--text: #222222;
--text-light: #666666;

--border: #dbe7ec;

--shadow:
    0 4px 12px rgba(0, 0, 0, 0.08);

--header-height: 72px;


}

/* ===================================
Reset
=================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  }

html {
font-size: 16px;
scroll-behavior: smooth;
}

body {
background: var(--background);
color: var(--text);
font-family:
"M PLUS Rounded 1c",
"Noto Sans JP",
sans-serif;
line-height: 1.8;
}

img {
max-width: 100%;
}

a {
text-decoration: none;
color: inherit;
}

ul {
list-style: none;
}

/* ===================================
Layout
=================================== */

.container {
width: min(1100px, 92%);
margin: 0 auto;
}

.section {
padding: 80px 0;
}

.section-title {
text-align: center;
font-size: 2rem;
color: var(--accent-dark);
margin-bottom: 50px;
font-weight: 700;
}

/* ===================================
Header
=================================== */

.header {
position: sticky;
top: 0;
z-index: 1000;


background: rgba(255,255,255,0.95);
backdrop-filter: blur(10px);

border-bottom: 1px solid var(--border);


}

.header-inner {
height: var(--header-height);


display: flex;
align-items: center;
justify-content: space-between;


}

.logo {
font-size: 1.4rem;
font-weight: 700;
color: var(--primary-dark);
}

.nav-list {
display: flex;
gap: 32px;
}

.nav-list a {
font-weight: 500;
transition: .2s;
}

.nav-list a:hover {
color: var(--primary-dark);
}

/* ===================================
Mobile Menu Button
=================================== */

.menu-button {
display: none;


width: 44px;
height: 44px;

border: none;
background: transparent;

cursor: pointer;


}

.menu-button span {
display: block;
height: 3px;
margin: 7px 0;


background: var(--text);

border-radius: 999px;


}

/* ===================================
Drawer
=================================== */

.drawer {
position: fixed;
top: 0;
right: -300px;


width: 280px;
height: 100vh;

background: white;

transition: .3s;
z-index: 2000;

box-shadow:
    -4px 0 12px rgba(0,0,0,.15);


}

.drawer.open {
right: 0;
}

.drawer-nav {
padding: 100px 24px 24px;
}

.drawer-nav ul {
display: flex;
flex-direction: column;
gap: 24px;
}

.drawer-nav a {
font-size: 1.1rem;
font-weight: 500;
}

.drawer-overlay {
position: fixed;
inset: 0;


background: rgba(0,0,0,.4);

opacity: 0;
visibility: hidden;

transition: .3s;

z-index: 1500;


}

.drawer-overlay.open {
opacity: 1;
visibility: visible;
}

/* ===================================
Hero
=================================== */

.hero {
background:
linear-gradient(
135deg,
#dff6ff,
#f5fdff
);


padding: 100px 0;
text-align: center;


}

.hero-title {
font-size: clamp(2rem, 5vw, 3.5rem);
line-height: 1.4;
margin-bottom: 20px;
}

.hero-text {
font-size: 1.1rem;
color: var(--text-light);
margin-bottom: 40px;
}

/* ===================================
Button
=================================== */

.btn-group {
display: flex;
justify-content: center;
gap: 16px;
flex-wrap: wrap;
}

.btn {
display: inline-block;


padding: 14px 28px;

border-radius: 999px;

font-weight: 700;

transition: .2s;


}

.btn-primary {
background: var(--primary);
color: white;
}

.btn-primary:hover {
background: var(--primary-dark);
}

.btn-accent {
background: var(--accent);
color: white;
}

.btn-accent:hover {
background: var(--accent-dark);
}

/* ===================================
Cards
=================================== */

.card-grid {
display: grid;
gap: 24px;


grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));


}

.card {
background: white;


border-radius: 16px;

padding: 28px;

box-shadow: var(--shadow);

text-align: center;


}

.card h3 {
color: var(--primary-dark);
margin-bottom: 12px;
}

/* ===================================
Trouble List
=================================== */

.trouble-list {
display: grid;
gap: 20px;
max-width: 700px;
margin: 0 auto;
}

.trouble-item {
background: white;


padding: 20px 24px;

border-radius: 12px;

box-shadow: var(--shadow);


}

/* ===================================
Form
=================================== */

.form-container {
max-width: 800px;
margin: 0 auto;
}

.form-group {
margin-bottom: 32px;
}

.form-group label {
display: block;
margin-bottom: 12px;
font-weight: 700;
}

input[type="text"],
textarea {
width: 100%;


padding: 12px;

border: 1px solid var(--border);
border-radius: 10px;

font-size: 1rem;


}

textarea {
resize: vertical;
min-height: 180px;
}

.checkbox-grid {
display: grid;
gap: 10px;


grid-template-columns:
    repeat(auto-fit, minmax(120px, 1fr));


}

.radio-inline {
display: flex;
gap: 24px;
flex-wrap: wrap;
}

.char-count {
margin-top: 8px;
color: var(--text-light);
text-align: right;
}

.submit-area {
text-align: center;
margin-top: 40px;
}

/* ===================================
Footer
=================================== */

.footer {
background: white;
border-top: 1px solid var(--border);


padding: 32px 0;

text-align: center;
color: var(--text-light);


}

/* ===================================
Responsive
=================================== */

@media (max-width: 768px) {


.nav {
    display: none;
}

.menu-button {
    display: block;
}

.section {
    padding: 60px 0;
}

.hero {
    padding: 80px 0;
}

.hero-title {
    font-size: 2rem;
}


}
