/* self-hosted-fonts:start */
/* Noto Sans JP, SIL OFL 1.1. Subsets served from /fonts. See fonts/OFL.txt. */
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-jp-400-main.758f6700.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+00A0-00FF, U+2010-2016, U+2018-201A, U+201C-201E, U+2020-2022, U+2025-2027,
    U+2190, U+2192-2193, U+2212, U+2713, U+3000-303F, U+3041-3096, U+3099-30FF, U+4E00, U+4E07,
    U+4E0A, U+4E2D, U+4E3B, U+4E86, U+4E88, U+4E8B, U+4EBA, U+4ED8, U+4EE3, U+4EF6, U+4F1A,
    U+4F4D, U+4F50, U+4F53, U+4F5C, U+4F7F, U+4F8B, U+4F9B, U+4FDD, U+4FE1, U+50CD, U+5148,
    U+5165, U+516C, U+5171, U+5185-5186, U+518D, U+51FA, U+5206, U+5217, U+521D, U+5225,
    U+5229, U+5236, U+524A, U+524D, U+52A0, U+52D5, U+52D9, U+5358, U+53BB, U+53C2, U+53CE,
    U+53D6, U+53E3, U+53EF, U+5408, U+540C-540D, U+542B, U+5546, U+554F, U+55B6, U+56DE,
    U+57FA, U+5831, U+5834, U+5897, U+58EB, U+5909, U+5927, U+5951, U+59CB, U+5B57, U+5B89,
    U+5B8C, U+5B9A-5B9B, U+5BA2, U+5BA4, U+5BB9, U+5BFE, U+5C0F, U+5DE5, U+5DEE, U+5E33,
    U+5E97, U+5EA6, U+5F15, U+5F27, U+5F37, U+5F53, U+5F8B-5F8C, U+5FC5, U+5FDC, U+6027,
    U+60C5, U+614B, U+6210, U+623B, U+6253, U+6255, U+628A, U+629C, U+629E, U+62C5, U+62EC,
    U+6301, U+63A2, U+63B2, U+63D0, U+63E1, U+64CD, U+652F, U+6570, U+6574, U+6587, U+6599,
    U+65B0, U+65B9, U+65E5, U+660E, U+6642, U+66F8, U+6700, U+6708, U+671F, U+6728, U+672A,
    U+672C, U+67A0, U+691C, U+696D, U+6A21, U+6A29, U+6A5F, U+6B21, U+6B62, U+6B8B, U+6BCE,
    U+6C42, U+6CC1, U+6CD5, U+6D41, U+6D88, U+6DFB, U+6E08, U+6F0F, U+7121, U+7167, U+7279,
    U+72B6, U+7406, U+7528, U+7531, U+753B, U+7570, U+767B, U+76F4, U+77E5, U+78BA, U+793A,
    U+793E, U+7968, U+79FB, U+7A0E, U+7A2E, U+7A3C, U+7A4D, U+7A93, U+7BA1, U+7C21, U+7CFB,
    U+7D04, U+7D10, U+7D22, U+7D30, U+7D42, U+7D4C, U+7D61, U+7D99, U+7F8E, U+8005, U+80FD,
    U+81EA, U+822C, U+85E4, U+884C, U+8868, U+88DC, U+8981, U+898B, U+898F, U+89A7, U+89E3,
    U+8A18, U+8A2A, U+8A2D, U+8A3C, U+8A66, U+8A71, U+8A8D, U+8AB2, U+8AC7, U+8ACB, U+8CBB,
    U+8DE1, U+8F09, U+8FBC, U+8FD4, U+8FFD, U+9001, U+9014, U+901A, U+9023, U+904B, U+904E,
    U+9055, U+9078, U+90E8, U+91CF, U+91D1, U+9234, U+9332, U+958B, U+9593, U+95A2, U+95B2,
    U+9632, U+9650, U+9664, U+96E2, U+96FB, U+9762, U+9818, U+984D, U+985E, U+9867, U+9A13,
    U+FF08-FF09, U+FF0F, U+FF5E;
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/noto-sans-jp-400-more.17f7cf32.woff2") format("woff2");
  unicode-range:
    U+203B, U+25B3, U+25CB, U+4E01, U+4E09, U+4E0B, U+4E0D, U+4E16, U+4E21, U+4E26, U+4E89,
    U+4E8C, U+4EA4, U+4ECA-4ECB, U+4ED5-4ED6, U+4EE4-4EE5, U+4EFB, U+4F01, U+4F1D, U+4F3C,
    U+4F4E-4F4F, U+4F55, U+4F9D, U+4FA1, U+4FC2, U+4FEE, U+500B, U+5019, U+5024, U+505C,
    U+5074, U+5099, U+50B5, U+50CF, U+511F, U+5143, U+5168, U+516B, U+5177-5178, U+5199,
    U+51E6, U+5207, U+5224, U+523B, U+5247, U+5272, U+529B, U+529F, U+52B9, U+52D8, U+5316,
    U+533A, U+5341, U+5370-5371, U+539A, U+539F, U+53CD, U+53D7, U+53E4, U+53F7, U+5404,
    U+5411, U+5426, U+544A, U+5468, U+5473, U+548C, U+54C1, U+54E1, U+5584, U+56E0, U+56F0,
    U+56F2-56F3, U+56FA, U+56FD, U+5728, U+5730, U+57CB, U+57DF, U+5883, U+58F2, U+5916,
    U+591A, U+5931, U+5949, U+59A8, U+59D4, U+5B50, U+5B58, U+5B9F, U+5BB3, U+5BB6, U+5BC4,
    U+5BC6, U+5BE7, U+5BE9, U+5BFA, U+5C02, U+5C0E, U+5C11, U+5C3E, U+5C4A-5C4B, U+5C5E,
    U+5C65, U+5DE6, U+5DF1, U+5E02, U+5E30, U+5E38, U+5E74, U+5E78-5E79, U+5E81, U+5E83,
    U+5EA7, U+5EAB, U+5F0F, U+5F25, U+5F35, U+5F62, U+5F71, U+5F79, U+5F85, U+5F93, U+5F97,
    U+5FA9, U+5FB4, U+5FC3, U+5FD8, U+601D, U+60F3, U+610F, U+611F, U+6163, U+6240, U+624B,
    U+6271, U+6280, U+6291, U+62D2, U+62DB, U+62E0, U+6319, U+632F, U+639B, U+63A5,
    U+63A7-63A8, U+640D, U+643A, U+6539, U+6557, U+6563, U+65AD, U+65CF, U+65E2, U+65E7-65E9,
    U+6697, U+66F4, U+66FF, U+6709, U+672B, U+6750, U+675F, U+6761, U+6765, U+6790, U+679A,
    U+679C, U+67D4, U+67FB, U+682A, U+683C, U+6848, U+697D, U+69D8, U+6A2A, U+6B20, U+6B63,
    U+6B69, U+6B74, U+6BB5, U+6BD4, U+6C0F, U+6C17, U+6C7A, U+6CE8, U+6D5C, U+6E1B, U+6E21,
    U+6E2C, U+6E80, U+6E96, U+6ECB, U+6EDE, U+70B9-70BA, U+7136, U+7248, U+7269, U+72EC-72ED,
    U+7387, U+73FE, U+74B0, U+751F, U+7533, U+753A, U+754C, U+756A, U+767A, U+7684, U+76CA,
    U+76E3, U+76EE, U+76F8, U+770C, U+771F, U+7740, U+77ED, U+7950, U+79C1, U+79F0, U+7A0B,
    U+7A81, U+7ACB, U+7AEF, U+7B2C, U+7B49, U+7BC4, U+7C3F, U+7D0D, U+7D19, U+7D1B, U+7D39,
    U+7D44, U+7D50, U+7D9A, U+7DAD, U+7DCF, U+7DD2, U+7DDA, U+7DE0, U+7DE8, U+7DEF, U+7E3E,
    U+7E70, U+7F6E, U+7FA9, U+7FCC, U+8003, U+8077, U+80A2, U+826F, U+82E6, U+82F1, U+8853,
    U+88C1, U+88FD, U+8907, U+8996, U+899A, U+89AA, U+89D2, U+89E6, U+8A00, U+8A02, U+8A08,
    U+8A0E, U+8A33, U+8A72-8A73, U+8AA4, U+8AAC-8AAD, U+8AB0, U+8ABF, U+8B58, U+8B72, U+8B77,
    U+8C61, U+8CA0, U+8CA9, U+8CAC, U+8CC0, U+8CC7, U+8CEA, U+8D77, U+8D85, U+8EAB, U+8EDF,
    U+8EE2, U+8EFD, U+8F03, U+8F44, U+8FD1, U+8FF0, U+8FF7, U+9032, U+9045, U+9053-9054,
    U+9069, U+90F5, U+914D, U+91CD-91CE, U+91DD, U+9280, U+9375, U+9577, U+967A, U+968E,
    U+969B-969C, U+96C6, U+975E, U+97FF, U+9805, U+9808, U+983C, U+98DF, U+98F2, U+9AD8,
    U+FF1A, U+FF1D;
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/noto-sans-jp-500.fc23dd5b.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+2192, U+2212, U+2713, U+3042, U+304F, U+3088, U+308B, U+30A4, U+30AC,
    U+30C9, U+554F, U+6599, U+6A5F, U+80FD, U+8CEA, U+91D1;
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/noto-sans-jp-600.b306cfe6.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+2192, U+2212, U+2713, U+3001, U+3042, U+304B-304D, U+304F-3050, U+3057,
    U+3059, U+305B, U+3064, U+3066-306B, U+306E-306F, U+3079, U+307F, U+3082, U+3084, U+3089,
    U+308B, U+3092, U+30A4, U+30AB, U+30B0, U+30C1, U+30C9, U+30CB, U+30D7, U+30DB,
    U+30E0-30E1, U+30E5, U+30E9, U+30ED, U+30F3, U+30FB-30FC, U+4E2D, U+4E88, U+4ECA, U+4F53,
    U+5165, U+5171, U+5186, U+5229, U+529B, U+52D9, U+53EF, U+57FA, U+5831, U+5909, U+5B9A,
    U+5BA2, U+5BFE, U+5F8C, U+5FDC, U+60C5, U+624B, U+629C, U+6570, U+6599, U+65E5, U+66F4,
    U+6708-6709, U+672C, U+696D, U+6A5F, U+6C42, U+6E08, U+6E1B, U+7121, U+7528, U+767B,
    U+7A0E, U+7A4D, U+7D04, U+80FD, U+898B, U+89E3, U+8AB2, U+8ACB, U+91D1, U+9332, U+9593,
    U+984D, U+9867, U+9A13, U+FF08-FF09, U+FF0F;
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/noto-sans-jp-700-main.81f4d438.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+2192, U+2212, U+2713, U+3002, U+301C, U+3044, U+3046, U+3048, U+304B-304F,
    U+3051, U+3053, U+3057-3059, U+305B, U+305F-3060, U+3064, U+3066-306B, U+306E-3070, U+307E,
    U+3081-3082, U+3084, U+3089-308C, U+308F, U+3092-3093, U+30A1-30A2, U+30A4, U+30A6, U+30A9,
    U+30AC, U+30AF, U+30B3, U+30B5, U+30B8-30B9, U+30BF, U+30C3, U+30C7-30C9, U+30D5, U+30D7,
    U+30DA, U+30DE, U+30E0-30E1, U+30E9-30ED, U+30F3, U+30FB-30FC, U+4E00, U+4E0A, U+4E86,
    U+4E88, U+4E8B-4E8C, U+4ED8, U+4F1A, U+4F53, U+4F55, U+4F5C, U+4F7F, U+4FDD, U+4FE1,
    U+5148, U+5165, U+5186, U+518D, U+51FA, U+521D, U+5229, U+529B, U+52D9, U+53CE, U+53D6,
    U+5408, U+540C, U+5411, U+554F, U+57FA, U+5831, U+58EB, U+58F2, U+59CB, U+5B9A, U+5BA2,
    U+5BA4, U+5BB9, U+5BFE, U+5C0E-5C0F, U+5C65, U+5DE5, U+5E97, U+5EA6, U+5F0F, U+5F15,
    U+5F8C, U+5FDC, U+60C5, U+6210, U+6301, U+63A8, U+6563, U+6570, U+6599, U+65B9, U+65E5,
    U+65E9, U+66F8, U+671F, U+672C, U+682A, U+696D, U+6A21, U+6A29, U+6A5F, U+6B74, U+6BB5,
    U+6C42, U+6DFB, U+7121, U+7169, U+7406, U+751F, U+7528, U+767A, U+76F4, U+793E, U+79FB,
    U+7A4D, U+7BA1, U+7D04, U+7D19, U+7D42, U+7D99, U+7F8E, U+8005, U+80FD, U+884C, U+898B,
    U+898F, U+89E3, U+8A2A, U+8A3C, U+8A71, U+8A8D, U+8AB2, U+8ACB, U+8CBB, U+8FBC, U+8FD1,
    U+9001, U+90E8, U+91D1, U+9593, U+9650, U+968E, U+96D1, U+96FB, U+9818, U+985E, U+9867,
    U+9A13, U+FF08-FF09, U+FF1F;
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/noto-sans-jp-700-more.d21289b9.woff2") format("woff2");
  unicode-range:
    U+3001, U+3042, U+304A, U+3054-3055, U+305A, U+305D, U+3061, U+3063, U+3065, U+3072-3073,
    U+3078, U+307B, U+307F-3080, U+3088, U+308D, U+30A3, U+30A7, U+30AB, U+30AD, U+30B1,
    U+30B7, U+30BB, U+30BD, U+30C4, U+30C6, U+30D0, U+30D3, U+30D6, U+30DC-30DD, U+30E3,
    U+30E5, U+4E09, U+4E3B, U+4EBA, U+4ECA, U+4ED6, U+4EE3, U+4EF6, U+4EFB, U+4F1D, U+4F4D,
    U+4F8B, U+4F9B, U+4FA1, U+500B, U+505C, U+5168, U+516C, U+5171, U+5178, U+5185, U+5199,
    U+5206-5207, U+5217, U+5225, U+524A, U+524D, U+52A0, U+52B9, U+52D5, U+5352, U+5358,
    U+53D7, U+53F7, U+5404, U+540D, U+542B, U+5546, U+55B6, U+56DE, U+56F0, U+56F2, U+5728,
    U+5730, U+5834, U+5883, U+5909, U+5916, U+591A, U+5931, U+5951, U+59D4, U+5B50, U+5B58,
    U+5B89, U+5B9F, U+5E79, U+5F37, U+5F79, U+5F97, U+5FB4, U+60AA, U+610F, U+6240, U+624B,
    U+6253, U+6255, U+6271, U+629C, U+62E0, U+62EC, U+63D0, U+640D, U+643A, U+652F, U+6539,
    U+6557, U+6587, U+660E, U+6642, U+66F4, U+66FF, U+6708-6709, U+6761, U+679A, U+683C,
    U+6848, U+691C, U+69D8, U+6B62-6B63, U+6B8B, U+6BCE, U+6BD4, U+6C17, U+6C7A, U+6CD5,
    U+6CE8, U+6D41, U+6E08, U+6E96, U+70B9, U+7279, U+74B0, U+756A, U+7684, U+76CA, U+76EE,
    U+76F8, U+78BA, U+793A, U+7981, U+7A0E, U+7B2C, U+7B49, U+7BC4, U+7CFB, U+7D22, U+7D30,
    U+7D4C, U+7D61, U+7D9A, U+7DEF, U+7E3E, U+7E70, U+7FA9, U+8003, U+81EA, U+8868, U+8907,
    U+8996, U+89A7, U+89E6, U+8A02, U+8A08, U+8A17-8A18, U+8AAC-8AAD, U+8AC7, U+8CA9, U+8CAC,
    U+8CEA, U+8F03, U+8F09, U+8F44, U+8FD4, U+8FFD, U+9023, U+9032, U+904B, U+9055, U+9069,
    U+9078, U+90F5, U+91CD, U+9332, U+9577, U+958B, U+9632, U+9664, U+96E2, U+9805, U+984D,
    U+FF1A, U+FF5C;
}
@font-face {
  font-family: "Noto Sans JP";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/noto-sans-jp-800.79329ab9.woff2") format("woff2");
  unicode-range:
    U+0020-007E, U+00A5, U+2192-2193, U+2212, U+2713, U+3001-3002, U+301C, U+3042, U+3044,
    U+3046, U+304A-304C, U+304F, U+3051, U+3053, U+3057, U+3059, U+305B, U+305D, U+3060,
    U+3063-3064, U+3066-3068, U+306A-306B, U+306E, U+3072, U+307E-307F, U+3081-3082,
    U+3088-308C, U+3092-3093, U+30D0, U+30D7, U+30E9, U+30F3, U+4E07, U+4E0A, U+4E8B, U+4ECA,
    U+4ED5, U+4EF6, U+4F4D, U+4F7F, U+5165, U+5186, U+5225, U+52D9, U+554F, U+57FA, U+5831,
    U+59CB, U+5B89, U+5BA2, U+5C0F, U+5FC3, U+60A9, U+60C5, U+629C, U+65B9, U+65E5, U+66F8,
    U+6708, U+672C, U+696D, U+6A21, U+6C42, U+6C7A, U+7406, U+7531, U+7A0E, U+7A2E, U+7A4D,
    U+7BA1, U+8005, U+898B, U+898F, U+89E3, U+8ACB, U+8CEA, U+8FBC, U+91D1, U+9593, U+984D,
    U+9867, U+FF08-FF09, U+FF1F;
}
/* self-hosted-fonts:end */

:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --bg-soft: #e8f0fb;
  --paper: #ffffff;
  --ink: #152238;
  --ink-soft: #3a4a63;
  /* #6b7a90 を色相のまま最小限に濃くした値。白と --bg の両方で WCAG AA 4.5:1 を超える */
  --muted: #647287;
  --line: #e4ebf3;
  --line-strong: #cfd9e6;
  --blue: #1e6bff;
  --blue-deep: #1554d4;
  --blue-bright: #3d82ff;
  --blue-soft: #eaf1ff;
  /* アプリ本体のアクセント（#0a7c84）と揃えたブランド接続色 */
  --teal: #0a7c84;
  --teal-deep: #066068;
  --teal-bright: #0d9aa3;
  --teal-soft: #e6f4f5;
  --navy: #0f2850;
  --navy-soft: #1a3a6b;
  --trial: #f5a623;
  --trial-bg: #fff8eb;
  --ok: #0a7c84;
  --warn: #d97706;
  --shadow: 0 1px 2px rgba(15, 40, 80, 0.04), 0 16px 40px rgba(15, 40, 80, 0.08);
  --shadow-lg: 0 8px 32px rgba(30, 107, 255, 0.14), 0 24px 56px rgba(15, 40, 80, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1160px;
  --header-h: 68px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--paper);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
  min-width: 0;
}

.accent {
  color: var(--blue);
}

/* 語句の区切りは .jp-phrase か .nowrap。幅が足りないときは枠の中で折る。 */
.jp-phrase {
  display: inline-block;
  max-width: 100%;
  line-break: strict;
  word-break: normal;
  text-wrap: wrap;
  /* anywhere は最小幅を縮め、Safari と Firefox で語句の途中を早く折る。溢れたときだけ折る。 */
  overflow-wrap: break-word;
}

/* 収まるときは一塊。親より広いときは中で折って、画面の外へ出さない。 */
.nowrap {
  display: inline-block;
  max-width: 100%;
  line-break: strict;
  overflow-wrap: anywhere;
}

/* 「（基本プラン）」は収まるときは一塊。幅が足りないときは枠の中で折る。 */
.fact-plan {
  display: inline-block;
  max-width: 100%;
  line-break: strict;
  overflow-wrap: anywhere;
}

.home {
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Safari だけが付ける。直前の1文字と句読点を離さず、行頭の「。」を防ぐ。 */
.kinsoku {
  white-space: nowrap;
}

/* ブランド名は「KOKYAKU」と「+」の間で折らない。 */
.brand-nb {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

/* 料金カードの短い語句。収まるときは一塊。カードより広いときだけ、区切りで折る。 */
@media (min-width: 961px) {
  .phrase-nb {
    display: inline-block;
    max-width: 100%;
    line-break: strict;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}

/* auto-phrase は Chromium だけ。Safari と Firefox は normal のまま折る。keep-all は使わない。 */
@supports (word-break: auto-phrase) {
  .home,
  .jp-phrase {
    word-break: auto-phrase;
    overflow-wrap: normal;
  }
}

a[href^="http"],
a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

/* 基本文字サイズを上げても、グリッドの中身が画面幅を押し広げない。
   料金の2列は含めない。含めると1024pxで右カードが狭くなり、語句の途中で折れる。 */
.hero-grid > *,
.footer-cta-grid > *,
.pain-grid > *,
.feature-grid > *,
.section-head {
  min-width: 0;
}

/* 右カードの文章幅で列を決める。auto-phrase だと最小幅が縮み、1.5fr / 0.7fr に寄る。 */
@media (min-width: 961px) {
  .pricing-layout > * {
    word-break: keep-all;
  }

  /* 左の2枚は列の中で折る。右の「安心して始められる理由」は keep-all のまま。 */
  .pricing-layout > .pricing-grid {
    min-width: 0;
    line-break: strict;
    word-break: normal;
  }

  .pricing-grid > .plan {
    min-width: 0;
  }

  /* 文字を大きくしたとき、右カードの文が列からはみ出さない。
     漢字の途中では折らず、足りない行だけ wbr と overflow-wrap で収める。 */
  .pricing-layout > .pricing-aside,
  .pricing-layout > .pricing-aside .check-list,
  .pricing-layout > .pricing-aside .check-list li {
    min-width: 0;
    line-break: strict;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}

@supports (word-break: auto-phrase) {
  @media (min-width: 961px) {
    .pricing-layout > .pricing-grid {
      word-break: auto-phrase;
      overflow-wrap: normal;
    }
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

/* 字間はロゴと画面内の製品名だけ。フォント自体は本文と同じ Noto Sans JP（自前配信）のまま。 */
.logo,
.dash-brand {
  font-kerning: none;
  font-feature-settings: "kern" 0, "palt" 0, "liga" 0, "calt" 0;
  font-variant-ligatures: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.28rem;
  color: var(--blue);
  text-decoration: none;
}

.logo .plus {
  color: var(--blue);
  letter-spacing: 0;
  font-kerning: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px 22px;
}

.nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--blue-deep);
}

.nav-login {
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 0.9rem;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(30, 107, 255, 0.28);
}

.nav-cta:hover {
  background: var(--blue-deep);
  text-decoration: none !important;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  text-decoration: none !important;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}

.btn-primary {
  background: var(--blue);
  color: #fff !important;
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(30, 107, 255, 0.28);
}

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

.btn-secondary {
  background: var(--paper);
  color: var(--blue-deep) !important;
  border-color: var(--blue);
}

.btn-secondary:hover {
  background: var(--blue-soft);
}

.btn-on-dark {
  background: #fff;
  color: var(--blue-deep) !important;
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.btn-on-dark:hover {
  background: #f0f6ff;
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
  min-height: 52px;
}

.btn-arrow::after {
  content: "→";
  font-weight: 700;
}

/* Hero */
.hero {
  padding: 48px 0 56px;
  background:
    radial-gradient(ellipse 70% 55% at 92% 8%, rgba(30, 107, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 8% 90%, rgba(61, 130, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 72%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px 48px;
  align-items: center;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid rgba(30, 107, 255, 0.12);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3.25vw, 2.45rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-break: strict;
}

.hero-lead {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 34em;
  line-break: strict;
}

.hero-lead strong {
  color: var(--navy);
  font-weight: 700;
}

.hero-offer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 28px;
}

.price-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(30, 107, 255, 0.32);
}

.price-label {
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.92;
}

.price-num {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-num .yen {
  font-size: 0.55em;
  font-weight: 700;
  margin-left: 2px;
}

.price-tax {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.price-badge .price-incl {
  flex-basis: 100%;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
}

.mid-cta .price-incl,
.footer-cta .price-incl {
  font-weight: 800;
}

.mid-cta .price-incl {
  color: var(--navy);
}

.footer-cta .price-incl {
  color: #fff;
}

/* 数字と「円」は離さない。税抜の括弧は、全体が収まるとき1行、狭いときだけ「（税抜」のあとで折る。 */
.tax-unit {
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
  white-space: normal;
}

.tax-ex,
.yen-nb {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .footer-cta .cta-price-line {
    display: block;
  }
}

.trial-seal {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--trial-bg);
  border: 3px solid var(--trial);
  color: #9a6200;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.22);
  flex-shrink: 0;
}

.trial-hours {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.trial-label {
  font-size: 0.78rem;
  font-weight: 700;
}

.trial-seal.on-dark {
  background: rgba(255, 255, 255, 0.14);
  border-color: #ffd27a;
  color: #fff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  max-width: 38em;
  line-height: 1.6;
}

.hero-sample-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.fact-span {
  grid-column: 1 / -1;
  margin-top: 8px;
  min-width: 0;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.fact-card {
  min-width: 0;
  max-width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(15, 40, 80, 0.03);
}

.fact-num {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fact-unit {
  font-size: 0.5em;
  font-weight: 800;
  margin-left: 2px;
}

.fact-label {
  margin: 8px 0 0;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.fact-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.fact-footnote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.fact-footnote a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.preview-slot {
  position: relative;
}

.sample-flag {
  position: absolute;
  top: -12px;
  right: 14px;
  z-index: 6;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.06em;
  pointer-events: none;
}

/* Hero dashboard mock / screenshot slot */
.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-illust-stage {
  position: relative;
  /* 人物・流れチップはパネルの上の帯に置き、ロゴやグラフに被せない */
  padding-top: 108px;
}

.hero-float {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 8px 18px rgba(15, 40, 80, 0.12));
}

.hero-float-person {
  width: 96px;
  height: auto;
  left: 0;
  top: 0;
  bottom: auto;
  animation: float-soft 4.8s ease-in-out infinite;
}

.hero-float-flow {
  width: min(210px, 46%);
  height: auto;
  top: 28px;
  right: 4px;
  animation: float-soft 5.4s ease-in-out infinite 0.4s;
}

.hero-float-cloud {
  width: 44px;
  top: 18px;
  left: 108px;
  z-index: 4;
  animation: float-soft 6s ease-in-out infinite 0.8s;
}

.hero-float-cloud svg {
  width: 100%;
  height: auto;
  display: block;
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

hero-dashboard-preview,
customer-preview,
estimate-preview,
invoice-preview,
payment-preview {
  display: block;
}

/* JS が中身を入れる前から高さを確保する。幅ごとの実測（中身が入ったあと）に合わせる。 */
hero-dashboard-preview:not([src]) {
  min-height: 366px;
}

@media (max-width: 1100px) {
  hero-dashboard-preview:not([src]) {
    min-height: 454px;
  }
}

@media (max-width: 969px) {
  hero-dashboard-preview:not([src]) {
    min-height: 469px;
  }
}

@media (max-width: 960px) {
  hero-dashboard-preview:not([src]) {
    min-height: 465px;
  }
}

@media (max-width: 720px) {
  hero-dashboard-preview:not([src]) {
    min-height: 843px;
  }
}

.preview-frame {
  width: 100%;
}

.preview-frame--shot {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  background: var(--paper);
}

.preview-shot {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.dash-stage {
  position: relative;
  padding-bottom: 0;
}

.dash-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  padding: 14px 14px 16px;
  background-image: linear-gradient(180deg, #f8faff 0%, #ffffff 40%);
}

.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.dash-brand {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--blue);
}

.dash-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.dash-tabs span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 6px;
  background: #f0f4fa;
}

.dash-tabs .on {
  background: var(--blue-soft);
  color: var(--blue-deep);
}

.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 9px;
}

.kpi-label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.kpi strong {
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dash-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
}

.chart-box,
.recent-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
}

.chart-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 72px;
}

.bars i {
  flex: 1;
  display: block;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
  opacity: 0.9;
}

.bars i:nth-child(even) {
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  opacity: 0.85;
}

.recent-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.recent-box li {
  font-size: 0.68rem;
  color: var(--ink-soft);
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
}

.recent-box li:last-child {
  border-bottom: 0;
}

.recent-box b {
  color: var(--teal-deep);
  margin-right: 4px;
}

.float-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  /* パネル下端の余白にだけかかる。本文（直近の対応の最終行）には届かない */
  margin-top: -14px;
  padding: 0 6px;
}

.float-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 10px 12px;
  box-shadow: var(--shadow);
  font-size: 0.7rem;
  line-height: 1.35;
}

.float-card .fc-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--blue-deep);
  background: var(--blue-soft);
  padding: 2px 7px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.float-card strong {
  display: block;
  color: var(--navy);
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.float-card span:last-child {
  color: var(--muted);
}

.fc-customer .fc-tag {
  color: var(--blue-deep);
  background: var(--blue-soft);
}
.fc-estimate .fc-tag {
  color: var(--teal-deep);
  background: var(--teal-soft);
}
.fc-invoice .fc-tag {
  color: var(--blue-deep);
  background: #eef4ff;
}
.fc-payment .fc-tag {
  color: var(--teal-deep);
  background: #dff3f4;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--bg);
}

.section-head {
  text-align: center;
  max-width: 42em;
  margin: 0 auto 44px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
}

.note {
  margin: 24px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Pain / solve */
.pain-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.pain-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pain-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 18px;
  box-shadow: 0 2px 10px rgba(15, 40, 80, 0.03);
  display: flex;
  flex-direction: column;
}

.pain-illust {
  width: 100%;
  max-width: 160px;
  height: auto;
  margin: 0 0 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
}

.pain-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 12px;
  color: #fff;
}

.pain-icon svg {
  width: 22px;
  height: 22px;
}

.pi-excel {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
}
.pi-paper {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}
.pi-mail {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
}
.pi-repeat {
  background: linear-gradient(135deg, #5bb8bf, var(--teal-deep));
}

.pain-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.4;
}

.pain-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.solve-panel {
  background: linear-gradient(160deg, #1e6bff 0%, #1554d4 55%, #0f3fa8 100%);
  color: #fff;
  border-radius: 20px;
  padding: 28px 26px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.solve-eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.85;
  letter-spacing: 0.06em;
}

.solve-panel h3 {
  margin: 0 0 16px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
}

.solve-panel .accent {
  color: #ffe08a;
}

.solve-illust {
  width: 100%;
  height: auto;
  margin: 0 0 18px;
  border-radius: 12px;
}

.solve-mini {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
}

.solve-mini-bar {
  height: 8px;
  width: 40%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
}

.solve-mini-rows span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.28);
  margin-bottom: 6px;
}

.solve-mini-rows span:nth-child(2) {
  width: 78%;
}
.solve-mini-rows span:nth-child(3) {
  width: 62%;
}

.check-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.95rem;
  font-weight: 600;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231e6bff' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 4.6-4.6L12.2 5.5z'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.solve-panel .check-list li::before {
  background: #ffe08a
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%231554d4' d='M6.5 11.2 3.3 8l1.1-1.1 2.1 2.1 4.6-4.6L12.2 5.5z'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.solve-panel .btn-primary {
  background: #fff;
  color: var(--blue-deep) !important;
  border-color: #fff;
  box-shadow: none;
  align-self: flex-start;
  margin-top: auto;
}

.solve-panel .btn-primary:hover {
  background: #f0f6ff;
}

/* Flow — completed look (no-JS and reduced motion). Motion overrides live below. */
.flow-figure {
  --flow-gap: 16px;
  --flow-cols: 5;
  position: relative;
  padding-top: 8px;
}

.flow-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--flow-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
  z-index: 1;
}

.flow-step {
  position: relative;
  text-align: center;
  --flow-delay: 0.15s;
}

.flow-step:nth-child(2) { --flow-delay: 0.85s; }
.flow-step:nth-child(3) { --flow-delay: 1.55s; }
.flow-step:nth-child(4) { --flow-delay: 2.25s; }
.flow-step:nth-child(5) { --flow-delay: 2.95s; }

.flow-mark {
  position: relative;
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
}

.flow-dot {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal);
  display: grid;
  place-items: center;
  color: var(--blue);
  box-shadow: 0 6px 20px rgba(15, 40, 80, 0.1);
  transition: background-color 0.3s, border-color 0.3s;
}

.flow-dot svg {
  width: 46px;
  height: 46px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-num {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 99px;
  padding: 3px 8px;
}

.flow-step-last .flow-dot {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.flow-step h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--navy);
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.flow-rail {
  position: absolute;
  left: calc((100% - (var(--flow-cols) - 1) * var(--flow-gap)) / (var(--flow-cols) * 2));
  right: calc((100% - (var(--flow-cols) - 1) * var(--flow-gap)) / (var(--flow-cols) * 2));
  top: 58px; /* 上余白8px + 円の中心52px − 線の半分 */
  height: 4px;
  background: #dbe4f3;
  border-radius: 2px;
  overflow: hidden;
  z-index: 0;
}

.flow-rail i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--teal));
  transform-origin: left center;
}

.flow-chip-track {
  position: absolute;
  left: calc((100% - (var(--flow-cols) - 1) * var(--flow-gap)) / (var(--flow-cols) * 2));
  width: calc(100% - (100% - (var(--flow-cols) - 1) * var(--flow-gap)) / var(--flow-cols));
  top: 44px;
  height: 0;
  z-index: 2;
  pointer-events: none;
  container-type: inline-size;
}

.flow-chip-mover {
  width: 0;
  height: 0;
  opacity: 0;
}

.flow-chip {
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(30, 107, 255, 0.35);
}

.flow-replay-row {
  text-align: center;
}

.flow-replay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  min-height: 44px;
  padding: 8px 18px;
  font: inherit;
  font-weight: 700;
  color: var(--blue);
  background: var(--paper);
  border: 2px solid var(--blue);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.flow-replay:hover {
  background: var(--blue-soft);
}

.flow-replay:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

.flow-replay[hidden] {
  display: none;
}

@media (max-width: 960px) {
  .flow-track {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .flow-step {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    text-align: left;
  }

  .flow-mark {
    margin: 0;
  }

  .flow-rail {
    left: 50px;
    right: auto;
    top: 60px;
    bottom: 52px;
    width: 4px;
    height: auto;
  }

  .flow-rail i {
    background: linear-gradient(180deg, var(--blue), var(--teal));
    transform-origin: top center;
  }

  .flow-chip-track {
    display: none;
  }

  .flow-replay {
    margin-top: 20px;
  }
}

/* Mid CTA */
.mid-cta {
  padding: 40px 0;
  background: linear-gradient(135deg, #eaf1ff 0%, #f0f9f9 48%, #e8f4ff 100%);
  border-top: 1px solid rgba(30, 107, 255, 0.08);
  border-bottom: 1px solid rgba(10, 124, 132, 0.1);
}

.mid-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.mid-cta h2 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  color: var(--navy);
  font-weight: 800;
}

.mid-cta p {
  margin: 0;
  color: var(--muted);
}

/* Features */
.features-day-illust {
  display: block;
  width: min(320px, 88%);
  height: auto;
  margin: 0 auto 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.feature-key {
  border-color: rgba(30, 107, 255, 0.28);
  box-shadow: 0 0 0 1px rgba(30, 107, 255, 0.08), 0 8px 24px rgba(30, 107, 255, 0.06);
  background: linear-gradient(180deg, #f3f7ff 0%, #ffffff 70%);
}

.feature-key h3 {
  color: var(--blue-deep);
}

.feature-icon-wrap {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.feature-icon-wrap.fi-blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.feature-icon-wrap.fi-teal {
  background: var(--teal-soft);
  color: var(--teal);
}

.feature-icon {
  width: 24px;
  height: 24px;
  margin-bottom: 0;
}

.feature > .feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--navy);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.f-a,
.f-e,
.f-i {
  background: linear-gradient(180deg, #f7faff, #ffffff);
}

.f-b,
.f-f,
.f-j {
  background: linear-gradient(180deg, var(--teal-soft), #ffffff);
}

.f-c,
.f-g,
.f-k {
  background: linear-gradient(180deg, #f7faff, #ffffff);
}

.f-d,
.f-h,
.f-l {
  background: linear-gradient(180deg, #eef8f8, #ffffff);
}

.feature-key.f-a,
.feature-key.f-e,
.feature-key.f-f,
.feature-key.f-g {
  background: linear-gradient(180deg, #f0f5ff 0%, #ffffff 72%);
}

/* Pricing */
.price-hook {
  text-align: center;
  margin-bottom: 40px;
}

.pricing-badge-illust {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
}

.pricing-aside-label {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
}

.price-hook h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* 全角括弧は halt で半角幅にする。見出し全体は palt を切っているので、この括弧だけ付ける。 */
.price-hook h2 .price-paren {
  font-feature-settings: "halt" 1;
}

.price-hook p {
  margin: 12px 0 0;
  color: var(--muted);
}

.pricing-layout {
  display: grid;
  /* 右は文章の幅（1024pxで359px）。0.7fr だけだと右が狭くなり、語句の途中で折れる。 */
  grid-template-columns: minmax(0, 1.5fr) minmax(359px, 0.7fr);
  gap: 24px;
  align-items: start;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.plan {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  box-shadow: var(--shadow);
}

.plan.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), var(--shadow);
}

.plan-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
}

.plan .plan-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.plan .plan-price {
  margin: 12px 0 4px;
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}

.plan .plan-price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.plan .plan-tax {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.plan-initial {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan li {
  padding: 8px 0 8px 18px;
  position: relative;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.plan li:first-child {
  border-top: 0;
  padding-top: 0;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 800;
}

.pricing-aside {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.pricing-aside .check-list {
  margin-bottom: 18px;
}

.pricing-aside .check-list li {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}

.pricing-aside .btn {
  width: 100%;
}

.pricing-notes {
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.pricing-notes h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--navy);
}

.pricing-notes ul {
  margin: 0;
  padding-left: 1.2em;
}

.pricing-notes li {
  margin: 6px 0;
}

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 0 18px;
  box-shadow: 0 1px 4px rgba(15, 40, 80, 0.03);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 36px 16px 0;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-weight: 800;
  font-size: 1.25rem;
}

.faq details[open] summary::after {
  content: "−";
}

.faq-icon {
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  border-radius: 10px;
  color: #fff;
  overflow: hidden;
}

.faq-icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
}

.faq-icon.fi-phone {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
}
.faq-icon.fi-mail {
  background: linear-gradient(135deg, #5bb8bf, var(--teal));
}
.faq-icon.fi-csv {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal-deep));
}
.faq-icon.fi-doc {
  background: linear-gradient(135deg, #3d82ff, #1554d4);
}
.faq-icon.fi-price {
  background: linear-gradient(135deg, #f5a623, #d97706);
}
.faq-icon.fi-support {
  background: linear-gradient(135deg, #5bb8bf, #0a7c84);
}

.faq-q {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.faq .answer {
  padding: 0 0 18px 48px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Footer CTA */
.footer-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 88% 20%, rgba(13, 154, 163, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 90%, rgba(61, 130, 255, 0.28), transparent 50%),
    linear-gradient(125deg, #1e6bff 0%, #1554d4 42%, #0a5f66 100%);
  color: #fff;
  padding: 72px 0;
}

.footer-cta-glow {
  position: absolute;
  /* 左端を 40% に置くと、グラデーションが透明になる前に箱が切れ、縦の継ぎ目になる。
     セクションより外まで広げ、親の overflow で切り、色は箱の内側で 0 にする。 */
  inset: -40%;
  background: radial-gradient(
    72% 62% at 82% 112%,
    rgba(255, 255, 255, 0.16) 0%,
    rgba(255, 255, 255, 0.06) 36%,
    rgba(255, 255, 255, 0) 64%
  );
  pointer-events: none;
}

.footer-cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.footer-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
}

.footer-cta p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.85);
}

.footer-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.footer-cta-note {
  margin: 0 !important;
  font-size: 0.82rem !important;
  color: #ffffff !important;
  /* グラデーションの明るい箇所でも白文字が 4.5:1 を下回らないよう、文字の背後だけを濃くする */
  background: rgba(15, 40, 80, 0.28);
  display: inline-block;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 8px;
  line-height: 1.55;
}

.final-cta-illust {
  width: 100%;
  max-width: 360px;
  height: auto;
  margin-inline: auto;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.18));
}

.cta-panel {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 22px 24px 26px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.cta-panel-top {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.cta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.cta-dot:nth-child(2) {
  background: rgba(255, 210, 122, 0.85);
}

.cta-mock-kpi {
  font-size: 1.65rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.cta-mock-flow {
  font-size: 0.95rem;
  font-weight: 600;
  opacity: 0.92;
  margin-bottom: 16px;
}

.cta-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.cta-chips span {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  background: var(--paper);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 24px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--blue-deep);
}

.footer-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.preview-banner {
  background: #fff7e8;
  color: #8a5a00;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 1px solid #f0e0c0;
}

.draft-banner {
  background: #fff7e8;
  color: #8a5a00;
  border: 1px solid #f0e0c0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 0 0 24px;
  font-size: 0.9rem;
}

/* Legal pages */
.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-main h1 {
  margin: 0 0 16px;
  color: var(--navy);
}

.legal-main .muted {
  color: var(--muted);
}

.legal-main h2 {
  margin: 28px 0 10px;
  font-size: 1.1rem;
  color: var(--navy);
}

.legal-main ul,
.legal-main ol {
  padding-left: 1.3em;
}

.legal-main li {
  margin: 6px 0;
}

.legal-main table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 12px 0;
}

.legal-main th,
.legal-main td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  min-width: 0;
}

.legal-main th {
  background: var(--bg);
  width: 12em;
  line-break: strict;
}

/* 狭い画面では列を表の4割に抑える。16px では語の区切りだけで折れる。 */
@media (max-width: 430px) {
  .legal-main th {
    width: 40%;
  }
}

/* 360px以下だけ左右の余白を減らす。法人番号は 4px で1行に収まる。
   販売価格は 8px にすると「（税抜980円）」は1行のまま、それより広い括弧だけ指定の位置で折れる。 */
@media (max-width: 360px) {
  .legal-main td.num-cell {
    padding-left: 4px;
    padding-right: 4px;
  }

  .legal-main td.price-cell {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.legal-main td {
  overflow-wrap: break-word;
}

/* 収まるあいだは一塊。nowrap だと溢れた分が切れ、anywhere が効かない。
   セルより広いときだけ anywhere で折る。 */
.legal-main th .nb {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

@supports (word-break: auto-phrase) {
  .legal-main th {
    word-break: auto-phrase;
  }
}

/* 金額と単位は、セルに収まるあいだは一塊。セルより広いときだけ中で折り、はみ出さない。 */
.legal-main .nowrap {
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
  overflow-wrap: break-word;
  word-break: normal;
  white-space: normal;
  line-break: strict;
}

/* 税抜は、括弧全体が行に収まるあいだは1行。収まらないときだけ「（税抜」と金額の間で折れる。 */
.legal-main .tax-unit {
  display: inline-block;
  max-width: 100%;
  vertical-align: baseline;
  white-space: normal;
}

/* 法人番号と URL の断片は一塊。字間は本文のまま。 */
.legal-main .tax-ex,
.legal-main .num,
.legal-main a .url-part {
  white-space: nowrap;
}

/* Guide articles. Same reading width and colors as the legal pages. */
.article-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.article-main h1 {
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1.45;
}

.article-main h2 {
  margin: 36px 0 12px;
  font-size: 1.2rem;
  color: var(--navy);
}

.article-main h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  color: var(--navy);
}

.article-main ul,
.article-main ol {
  padding-left: 1.3em;
}

.article-main li {
  margin: 6px 0;
}

.article-main blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--blue);
  background: var(--bg);
}

.article-main blockquote p {
  margin: 0;
}

.article-sources {
  font-size: 0.92rem;
}

.article-back {
  margin-top: 36px;
}

.guide-list {
  list-style: none;
  padding-left: 0;
}

.guide-list > li {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.guide-list a {
  font-weight: 700;
}

.guide-list p {
  margin: 6px 0 0;
  color: var(--ink-soft);
}

/* トップの業種別ページとガイドへの入口。 */
.industry-entry {
  padding: 48px 0 56px;
}

.industry-entry .section-head {
  margin-bottom: 0;
}

.industry-entry .section-head h2 {
  font-size: 1.25rem;
}

.industry-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.industry-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.industry-links a:hover {
  color: var(--blue-deep);
  border-color: var(--blue);
}

.nav a[aria-current="page"] {
  color: var(--blue-deep);
}

/* Responsive */
@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .pain-grid,
  .pricing-layout,
  .footer-cta-grid {
    grid-template-columns: 1fr;
  }

  .pricing-layout > * {
    min-width: 0;
  }

  .hero-copy {
    order: 1;
  }

  .fact-span {
    order: 2;
  }

  .hero-visual {
    order: 3;
  }

  .feature-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-illust-stage {
    padding-top: 92px;
    max-width: 520px;
    margin-inline: auto;
  }

  .hero-float-person {
    width: 80px;
    left: 0;
    top: 2px;
    bottom: auto;
  }

  .hero-float-flow {
    width: min(180px, 48%);
    top: 22px;
    right: 0;
  }

  .hero-float-cloud {
    left: 92px;
    top: 14px;
    width: 40px;
  }

  .float-cards {
    position: relative;
    margin-top: 12px;
    padding: 0;
    bottom: auto;
  }

  .dash-stage {
    padding-bottom: 0;
  }

  .preview-frame--shot {
    border-radius: 14px;
  }

  .final-cta-illust {
    max-width: 280px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
  }

  .nav.open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }

  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-login {
    border: 0;
    border-radius: 0;
    padding-left: 4px;
    padding-right: 4px;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .header-inner {
    position: relative;
  }

  .pain-col,
  .feature-grid,
  .pricing-grid,
  .float-cards,
  .dash-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan,
  .pricing-notes,
  .pricing-aside,
  .feature,
  .pain-card {
    min-width: 0;
  }

  .hero {
    padding: 28px 0 40px;
  }

  .hero h1 {
    font-size: clamp(1.42rem, 5.6vw, 1.9rem);
  }

  .section {
    padding: 56px 0;
  }

  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .price-badge {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .mid-cta-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .mid-cta .btn {
    width: 100%;
  }

  .footer-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-cta-actions .btn {
    width: 100%;
  }

  .footer-cta-visual {
    display: block;
    margin-top: 8px;
  }

  .final-cta-illust {
    max-width: 240px;
  }

  .hero-illust-stage {
    padding-top: 78px;
  }

  .hero-float-person {
    width: 64px;
    left: 0;
    top: 4px;
    bottom: auto;
  }

  .hero-float-cloud {
    display: none;
  }

  .hero-float-flow {
    width: min(156px, 50%);
    top: 16px;
  }

  .kpi strong {
    font-size: 0.82rem;
  }

  .faq .answer {
    padding-left: 0;
  }
}


/* 195〜207px でもヘッダーは1行。ロゴだけ小さくし、メニューボタンは44px以上。 */
@media (max-width: 240px) {
  .header-inner {
    gap: 8px;
  }

  .logo {
    font-size: 0.92rem;
    letter-spacing: 0;
    min-width: 0;
  }

  .menu-toggle {
    flex: none;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 10px;
  }
}

/* 見出しは文節で折り返す。keep-all は未対応ブラウザで語の途中を折るので使わない。
   カーニング無効は見出しだけ。本文やヒーロー、数字カードにはかけない。 */
h1,
h2,
h3 {
  line-break: strict;
  text-wrap: pretty;
  font-kerning: none;
  font-feature-settings: "kern" 0, "palt" 0, "liga" 0, "calt" 0;
  font-variant-ligatures: none;
}

@supports (word-break: auto-phrase) {
  h1,
  h2,
  h3 {
    word-break: auto-phrase;
  }
}

/* #8 / #10 のヒーロー見出し。行分割・字間・サイズは変えない。 */
.hero h1 {
  text-wrap: wrap;
  word-break: normal;
  overflow-wrap: normal;
  font-kerning: auto;
  font-feature-settings: normal;
  font-variant-ligatures: normal;
  letter-spacing: -0.02em;
}

@media (max-width: 430px) {
  .badge-row .pill:last-child {
    display: none;
  }

  .price-num {
    font-size: 2.1rem;
  }

  .trial-seal {
    width: 84px;
    height: 84px;
  }

  .section-head h2,
  .price-hook h2,
  .mid-cta h2,
  .footer-cta h2,
  .solve-panel h3,
  .pain-card h3,
  .legal-main h1,
  .legal-main h2,
  .article-main h1,
  .article-main h2,
  .article-main h3 {
    letter-spacing: 0;
  }

  .legal-main h1,
  .article-main h1 {
    font-size: 1.4rem;
    line-height: 1.45;
  }
}

/* 約600px以下は、カードを積まず1つの枠の中の行にする。数字は小さくしない。
   数字列は3行で共有する。既定の16pxでは 3.7rem（約59px）が「10万件」の幅。
   ブラウザの基本文字サイズが上がると rem と中身に合わせて伸び、14px の間隔を残す。 */
@media (max-width: 600px) {
  .fact-grid {
    display: grid;
    grid-template-columns: 18px minmax(3.7rem, max-content) minmax(0, 1fr) 18px;
    column-gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 2px 10px rgba(15, 40, 80, 0.03);
    overflow: hidden;
  }

  .fact-card {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 16px 0;
  }

  .fact-card + .fact-card {
    border-top: 1px solid var(--line);
  }

  .fact-num {
    grid-column: 2;
    min-width: 3.7rem;
    white-space: nowrap;
    text-align: left;
  }

  .fact-copy {
    grid-column: 3;
    min-width: 0;
    padding-left: 14px;
  }

  .fact-label {
    margin: 0;
  }

  .fact-note {
    margin: 2px 0 0;
  }
}

/* スマホだけ、ヒーローを過ぎたら下に登録CTAを出す */
.sticky-cta {
  display: none;
}

.sticky-cta[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(15, 40, 80, 0.1);
  }

  .sticky-cta .btn {
    width: 100%;
    min-height: 48px;
  }

  /* The fixed trial bar covers the bottom of the viewport. Extra footer
     padding, equal to the bar height, keeps © KOKYAKU+ above it. */
  body.has-sticky-cta .site-footer {
    padding-bottom: calc(40px + var(--sticky-cta-space, 96px));
  }

  .footer-links {
    gap: 0 8px;
  }

  .footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
  }

  /* スマホでは浮遊を止める */
  .hero-float-person,
  .hero-float-flow,
  .hero-float-cloud {
    animation: none;
  }
}

/* Phase 1 motion. html.motion が無いとき（JS無効・reduced-motion）は完成形のまま。 */
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-rise-y {
  from {
    transform: translateY(8px);
  }
  to {
    transform: none;
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes flow-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes flow-pop {
  from {
    transform: scale(0.85);
    border-color: #dbe4f3;
  }
  to {
    transform: scale(1);
    border-color: var(--teal);
  }
}

@keyframes flow-fill {
  from {
    background-color: #fff;
    color: var(--blue);
  }
  to {
    background-color: var(--teal);
    color: #fff;
  }
}

@keyframes flow-rail-x {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes flow-rail-y {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes flow-chip {
  0% {
    opacity: 0;
    transform: translateX(0);
  }
  10% {
    opacity: 1;
    transform: translateX(0);
  }
  90% {
    opacity: 1;
    transform: translateX(100cqw);
  }
  100% {
    opacity: 0;
    transform: translateX(100cqw);
  }
}

html.motion .hero-rise {
  animation: hero-rise 400ms var(--ease-out) both;
}

html.motion .hero-rise.hero-rise-1 {
  opacity: 1;
  animation-name: hero-rise-y;
}

html.motion .hero-rise-2 {
  animation-delay: 80ms;
}

html.motion .hero-rise-3 {
  animation-delay: 160ms;
}

html.motion .hero-rise-4 {
  animation-delay: 240ms;
}

html.motion .reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(12px);
}

html.motion .reveal.is-in {
  animation: reveal-up 400ms var(--ease-out) both;
}

html.motion .flow-figure:not(.is-play):not(.is-done) .flow-step {
  opacity: 0;
  transform: translateY(16px);
}

html.motion .flow-figure:not(.is-play):not(.is-done) .flow-dot {
  transform: scale(0.85);
  border-color: #dbe4f3;
  background-color: #fff;
  color: var(--blue);
}

html.motion .flow-figure:not(.is-play):not(.is-done) .flow-rail i {
  transform: scaleX(0);
}

html.motion .flow-figure.is-play .flow-step {
  animation: flow-up 0.5s var(--ease-out) both;
  animation-delay: var(--flow-delay);
}

html.motion .flow-figure.is-play .flow-dot {
  animation: flow-pop 0.45s var(--ease-out) both;
  animation-delay: var(--flow-delay);
}

html.motion .flow-figure.is-play .flow-step-last .flow-dot {
  animation: flow-pop 0.45s var(--ease-out) both, flow-fill 0.3s var(--ease-out) both;
  animation-delay: var(--flow-delay), calc(var(--flow-delay) + 0.3s);
}

html.motion .flow-figure.is-play .flow-rail i {
  animation: flow-rail-x 2.8s var(--ease-out) 0.15s both;
}

html.motion .flow-figure.is-play .flow-chip-mover {
  animation: flow-chip 2.8s var(--ease-out) 0.15s both;
}

@media (max-width: 960px) {
  html.motion .flow-figure:not(.is-play):not(.is-done) .flow-rail i {
    transform: scaleY(0);
  }

  html.motion .flow-figure.is-play .flow-rail i {
    animation-name: flow-rail-y;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .hero-float-person,
  .hero-float-flow,
  .hero-float-cloud,
  .hero-rise,
  .reveal,
  .flow-step,
  .flow-dot,
  .flow-rail i,
  .flow-chip-mover {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .flow-dot {
    border-color: var(--teal) !important;
    background: #fff !important;
    color: var(--blue) !important;
    transition: none !important;
  }

  .flow-step-last .flow-dot {
    background: var(--teal) !important;
    border-color: var(--teal) !important;
    color: #fff !important;
  }

  .flow-chip-track,
  .flow-replay {
    display: none !important;
  }
}
