/*
Theme Name: PinkRose
Theme URI: https://pink-rose.info/
Author: PinkRose
Author URI: https://pink-rose.info/
Description: PinkRoseコーポレートサイト用カスタムテーマ。当事者が、当事者のために、生きやすくなる道具と情報を届ける。WCAG 2.2 AA準拠。
Version: 3.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pinkrose
*/

/* ==========================================================================
   0. Table of Contents
   ==========================================================================
   1. Design Tokens (Variables)
   2. Reset & Base Styles
   3. Layout Utilities (Container, Grid)
   4. Component Styles (Buttons, Cards, Labels)
   5. Site Header & Navigation
   6. Hero Section
   7. Page Headers & Section Bases
   8. Front Page Sections (About, Services List)
   9. Service Page Sections (Detail List)
   10. About Page Sections (Origin, Founder)
   11. Forms (Contact)
   12. Site Footer
   13. Utilities
   ========================================================================== */

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */
:root {
  /* --- Colors: Adult Pastoral / Antique Rose --- */
  --color-primary: #C59090;
  /* Antique Rose */
  --color-primary-light: #E8D3D3;
  /* Pale Rose */
  --color-primary-deep: #9E6C6C;
  /* Deep Dried Rose */
  --color-text-main: #5D5555;
  /* Warm Taupe */
  --color-text-body: #736B6B;
  /* Medium Gray */
  --color-text-muted: #9E9696;
  --color-white: #FFFFFF;
  --color-bg-body: #FDFBFB;
  /* Warm Snow */
  --color-bg-nav: rgba(253, 251, 251, 0.95);

  /* --- Gradients --- */
  --gradient-bg: linear-gradient(180deg, #FDFBFB 0%, #FFF0F0 100%);
  --gradient-primary: linear-gradient(135deg, #C59090 0%, #E8D3D3 100%);
  --gradient-warm: linear-gradient(135deg, #F9F2F2 0%, #FFFFFF 100%);

  /* --- Typography --- */
  --font-base: "Noto Sans JP", sans-serif;
  --font-heading: "Shippori Mincho", "Yu Mincho", serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  /* 16px */
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  --line-height-body: 1.8;
  --line-height-heading: 1.5;

  /* --- Spacing --- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  /* Standard Large Gap */
  --space-10: 5rem;
  --space-12: 6rem;
  /* Section Padding */

  /* --- Layout Dimensions --- */
  --container-width: 1200px;
  /* STRICT LIMIT */
  --header-height: 80px;

  /* --- Borders & Radius --- */
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 50px;

  /* --- Effects --- */
  --shadow-sm: 0 2px 8px rgba(93, 85, 85, 0.03);
  --shadow-md: 0 8px 24px rgba(93, 85, 85, 0.06);
  --glass-surface: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.8);
  --transition-smooth: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-base);
  color: var(--color-text-body);
  background: var(--gradient-bg);
  background-attachment: fixed;
  line-height: var(--line-height-body);
  letter-spacing: 0.05em;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Floral Watermark Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(197, 144, 144, 0.03) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(197, 144, 144, 0.05) 0%, transparent 25%);
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  line-height: var(--line-height-heading);
  letter-spacing: 0.08em;
  font-feature-settings: "palt";
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease, color 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-radius: var(--radius-md);
}

ul,
ol {
  list-style: none;
}

main {
  flex: 1;
  display: block;
  width: 100%;
}

/* ==========================================================================
   3. Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  /* Mobile Gutter */
  padding-right: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-6);
    /* PC Gutter */
    padding-right: var(--space-6);
  }
}

/* ==========================================================================
   4. Component Styles
   ========================================================================== */
/* -- Buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8em 2.5em;
  border-radius: var(--radius-pill);
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--color-primary-deep);
  border-color: var(--color-primary-deep);
  color: var(--color-white);
  opacity: 1;
}

/* -- Cards -- */
.glass-card {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

/* -- Labels -- */
.section__label {
  display: inline-block;
  color: var(--color-primary-deep);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  position: relative;
  padding-left: 3rem;
}

.section__label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.5rem;
  height: 1px;
  background-color: currentColor;
}

.section__title {
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-6);
  color: var(--color-text-main);
}

/* ==========================================================================
   5. Site Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-bg-nav);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(10px);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text-main);
}

.site-logo__text {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  letter-spacing: 0.1em;
}

.main-nav__list {
  display: none;
  /* Mobile hidden by default */
}

@media (min-width: 768px) {
  .main-nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }
}

.main-nav__link {
  font-size: var(--text-sm);
  color: var(--color-text-body);
  font-weight: var(--weight-medium);
  padding: 0.5em 1em;
  border-radius: var(--radius-pill);
}

.main-nav__link:hover {
  color: var(--color-primary);
  background: rgba(197, 144, 144, 0.08);
  opacity: 1;
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  z-index: 0;
  opacity: 0.8;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to right, transparent, black 40%);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40%);
}

.hero__content {
  max-width: 600px;
  position: relative;
  z-index: 1;
  padding: var(--space-4) 0;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.5;
  margin-bottom: var(--space-8);
  color: var(--color-text-main);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.hero__subtitle {
  font-size: var(--text-base);
  margin-bottom: var(--space-8);
  line-height: 2.2;
  background: rgba(255, 255, 255, 0.4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
}

/* ==========================================================================
   7. Page Headers & Section Base
   ========================================================================== */
.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  position: relative;
}

.page-header {
  padding-top: calc(var(--header-height) + var(--space-6));
  padding-bottom: var(--space-4);
  text-align: center;
}

.page-header__icon img {
  width: 120px;
  margin-bottom: var(--space-2);
  filter: drop-shadow(0 4px 6px rgba(197, 144, 144, 0.3));
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-primary-deep);
}

/* ==========================================================================
   8. Front Page Sections
   ========================================================================== */
/* -- About Intro -- */
.about-intro {
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.about-intro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-primary-light);
}

/* Header Centering Fix */
.about-intro .section__header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto var(--space-6);
}

.about-intro__content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-intro__content p {
  text-align: left;
  display: inline-block;
}

/* -- Services List (Front Page Grid) -- */
.services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.service-item {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: var(--space-6) 1.25rem;
  /* Mobile Padding (Reduced) */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary-light), var(--color-primary));
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(197, 144, 144, 0.15);
}

.service-item__name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-text-main);
  margin-bottom: var(--space-4);
  font-feature-settings: "palt";
  line-height: 1.4;
}

.service-item__desc {
  font-size: var(--text-base);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.service-item__link {
  display: inline-block;
  padding: 0.8em 2em;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 50px;
  font-size: var(--text-sm);
  margin-top: auto;
}

.service-item__link:hover {
  background: var(--color-primary);
  color: white;
  opacity: 1;
}

/* Front Page Desktop Grid */
@media (min-width: 768px) {
  .services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }

  .service-item {
    padding: var(--space-8) var(--space-6);
    /* Restore generous padding */
  }
}

/* -- Site CTA -- */
.site-cta {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  background: var(--gradient-warm);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  border: 1px solid rgba(197, 144, 144, 0.1);
}

.site-cta__title {
  font-size: var(--text-2xl);
  color: var(--color-primary-deep);
  font-family: var(--font-heading);
}

@media (min-width: 768px) {
  .site-cta {
    padding: var(--space-10) var(--space-8);
  }
}

/* ==========================================================================
   9. Services Page Sections
   ========================================================================== */
.service-intro {
  max-width: 800px;
  margin: 0 auto var(--space-12);
  text-align: center;
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  /* Large gap between detail cards */
  width: 100%;
  /* Fill container */
}

.service-detail {
  /* Inherits .glass-card via class, specific overrides here */
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-smooth);
}

.service-detail:hover {
  transform: translateY(-2px);
}

.service-detail__header {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(197, 144, 144, 0.2);
}

.service-detail__name {
  font-size: var(--text-xl);
  color: var(--color-primary-deep);
  font-family: var(--font-heading);
  margin-bottom: var(--space-1);
}

.service-detail__target {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-detail__body {
  margin-bottom: var(--space-4);
  line-height: 1.8;
  color: var(--color-text-body);
}

.service-detail__action {
  margin-top: var(--space-4);
  text-align: right;
}

@media (min-width: 768px) {
  .service-detail {
    padding: var(--space-8);
  }
}

/* ==========================================================================
   10. About Page Sections
   ========================================================================== */
.about-mission,
.founder-section,
.about-origin {
  padding: var(--space-6);
  margin-bottom: var(--space-8);
  position: relative;
}

.about-mission__header {
  text-align: center;
  margin-bottom: var(--space-4);
}

.about-mission__content {
  max-width: 800px;
  margin: 0 auto;
  line-height: 2.2;
}

.founder-profile {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
}

.founder-profile__image {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.founder-profile__name {
  text-align: center;
}

.founder-profile__name h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {

  .about-mission,
  .founder-section,
  .about-origin {
    padding: var(--space-8);
  }
}

/* Business Info Table */
.business-info-card {
  padding: var(--space-6);
  max-width: 800px;
  margin: 0 auto;
}

.business-info__table {
  width: 100%;
  border-collapse: collapse;
}

.business-info__row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.business-info__row:last-child {
  border-bottom: none;
}

.business-info__header {
  width: 30%;
  padding: var(--space-2);
  color: var(--color-text-main);
  font-weight: var(--weight-bold);
  text-align: left;
}

.business-info__data {
  padding: var(--space-2);
  text-align: left;
}

/* ==========================================================================
   11. Forms
   ========================================================================== */
.contact-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.contact-info__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-primary-deep);
  margin-bottom: var(--space-4);
}

.contact-form-wrapper {
  background: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(197, 144, 144, 0.1);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
}

.form-input,
.form-textarea,
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-md);
  background: var(--color-bg-body);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--color-text-main);
  transition: all var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus,
.wpcf7-form-control-wrap input:focus,
.wpcf7-form-control-wrap textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(197, 144, 144, 0.1);
  background: var(--color-white);
}

.wpcf7-submit {
  display: inline-block;
  padding: 0.8em 2.4em;
  background: var(--gradient-primary);
  color: var(--color-white);
  font-weight: var(--weight-medium);
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.wpcf7-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  opacity: 0.9;
}

/* ==========================================================================
   12. Site Footer
   ========================================================================== */
.site-footer {
  background-color: var(--color-primary-deep);
  color: var(--color-white);
  padding-top: var(--space-10);
  padding-bottom: var(--space-6);
  margin-top: var(--space-12);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-primary-light);
  margin-bottom: var(--space-2);
}

.footer-nav__link {
  color: #F7FAFC;
  font-size: var(--text-sm);
  display: inline-block;
  padding: 0.2em 0;
  transition: color 0.2s;
}

.footer-nav__link:hover {
  text-decoration: underline;
  color: var(--color-white);
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--space-6);
  font-size: var(--text-xs);
  color: #E2E8F0;
}

/* ==========================================================================
   13. Utilities
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.mb-lg {
  margin-bottom: var(--space-8);
}

.mb-xl {
  margin-bottom: var(--space-12);
}

/* Decoration Helpers */
.flower-divider {
  text-align: center;
  margin: var(--space-8) 0;
  opacity: 0.8;
}

.flower-divider::before,
.flower-divider::after {
  content: '';
  display: inline-block;
  width: 60px;
  height: 1px;
  background: var(--color-primary);
  vertical-align: middle;
  margin: 0 1rem;
  opacity: 0.5;
}

.flower-divider img {
  width: 50px;
  vertical-align: middle;
}